Question about error after adding serialization...
I have completed serialization, created a document, and saved it.
When loading the document I double-click the filename in the file dialog box. Sometimes I get an error saying "Bad Element Code," followed by "Debug Error! This application has requested the runtime to terminate it in an unusual way." If I click OK or press enter, the error never occurs.
I've also noticed that when double-clicking the filename an element is added to the drawing using the top left corner as the start point and the current mouse position as the end point. I'm thinking maybe a race-condition is causing the left mouse button down event handler to add an element before the serialization retrieval process completes but that is only a guess. Any ideas?
I am using Visual Studio 2005 so there may be an issue with that alone- I would rather hear if others have had this problem with VC++6.0 than spend the time recreating the entire program.
Thanks,
Dave
|