Topic: Any clues why map<thing>.find throws? <- Solution


Author: "Steven S. Wolf" <steve.nospam@crocker.com>
Date: 1999/08/25
Raw View
Thanks to all who replied!

I have traced the problem to a mismatch in the packing used to compile/link
between my main application and the library in which this error occurred.

The basic issue was that the map was a member of a class, and the address of
that member was being miscalculated by 2 bytes, creating an invalid object
which would cause a memory access violation when any code related to it was
executed.

--

Steven S. Wolf
Senior Software Architect
steveATcrockerDOTcom

"Today's commercial software projects are among the most complex engineering
undertakings of humankind."
- Bartosz Milewski  (www.relisoft.com)

"...well over half of the time you spend working on a project (on the order
of 70 percent) is spent thinking, and no tool, no matter how advanced, can
think for you. Consequently, even if a tool did everything except the
thinking for you -- if it wrote 100 percent of the code, wrote 100 percent
of the documentation, did 100 percent of the testing, burned the CD-ROMs,
put them in boxes, and mailed them to your customers -- the best you could
hope for would be a 30 percent improvement in productivity. In order to do
better than that, you have to change the way you think. "
- Fred Brook [paraphrased] [as quoted from Allen Holub's
http://www.javaworld.com/javaworld/jw-07-1999/jw-07-toolbox.html]





[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]