Peter Koch Larsen wrote:[color=blue]
> "Adam Hartshorne" <oracle3001@yahoo.com> skrev i en meddelelse
> news:d7lfup$im0$1@wisteria.csv.warwick.ac.uk...
>[color=green]
>>Hi All,
>>
>>I have the strangest problem, and at an end to try and explain it/know
>>what to do.
>>
>>I have a program written in c++ using visual studio 7.1. It was all
>>working no problems, then after not changing the code or recompiling
>>between two runs using the debugger I all of a sudden got the following
>>error.
>>
>>unhandled exception at 0x0012fe01 in multiselect.exe: 0x0c0000005
>>
>>and this occurred in malloc.c at line 212 which is at the end of the heap
>>alloc method.
>>
>>Well I thought maybe I did change my code between runs, but I am pretty
>>sure I didn't. Luckily I had a recent backup, again fully working, and I
>>wiped my code, and replaced it with the backup.
>>
>>I rebuilt the whole project, and tried running the backup. To my shock and
>>horror the same error message appeared and crashed my program.
>>
>>I have no clue what is causing this, and no idea how to proceed now. Any
>>suggestions would be much appreciated,
>>
>>Adam[/color]
>
>
> You have corrupted your head somehow, e.g. by overwriting memory somewhere[/color]
^^^^
That may be the case -- but ITYM `heap'! ;-)[color=blue]
> or by freeing twice. This causes undefined behaviour. One possibility is
> raising an exception, another is continuing as if everything worked
> perfectly.
>
> /Peter
>
>[/color]
--ag
--
Artie Gold -- Austin, Texas
http://it-matters.blogspot.com (new post 12/5)
http://www.cafepress.com/goldsays