Alan Williams-Key
2009-10-13 21:38:03 UTC
My program reads text files and converts them into binary data stored in
various CArray structures. When finished, it destroys the data with RemoveAt
or RemoveAll function calls. A user has reported that with his files the
program always crashes at the end and the stack trace in the crash dump shows
this to be caused by a RemoveAt or RemoveAll call. When I run the program
with his data it does exactly this. When I run under debug (release image,
run to suspect instruction) the program crashes in a completely different
place in the initial text file processing stage. Best I can see it happens on
a "new" call embedded within a SetAtGrow() call . How is this possible that
the program behaves so differently?
various CArray structures. When finished, it destroys the data with RemoveAt
or RemoveAll function calls. A user has reported that with his files the
program always crashes at the end and the stack trace in the crash dump shows
this to be caused by a RemoveAt or RemoveAll call. When I run the program
with his data it does exactly this. When I run under debug (release image,
run to suspect instruction) the program crashes in a completely different
place in the initial text file processing stage. Best I can see it happens on
a "new" call embedded within a SetAtGrow() call . How is this possible that
the program behaves so differently?