new operator causes user breakpoint
Posted on 2001-06-12
I'm writing an application where I use a lot of objects (classes). Somtimes I get a user breakpoint (int 3) when I use 'new' to create a new object.
First I thourght that I was out of heap space, but if that was the case I would just get a NULL-pointer.
The breakpoint occours in ntdll.dll at address 0x77F9EEA9.
My debugger writes:
HEAP[app.exe]: HEAP: Free Heap block 1815380 modified at 1815b44 after it was freed
My guess is that 'new' tries to free some memory, but why?
I don't expect any of you to give an exact answer - just some help that can lead me to a solution.