Ticket #52 (closed defect)
Memory checking error
| Reported by: | walky_one | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | |
| Keywords: | Cc: | walky_one, vadz | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
I just can't allocate anything on the heap without getting an assertion fault when I delete it again.
Assert happens in Function
void operator delete(void* pUserData)
(it's in file msvc\crt\src\dbgdel.cpp)
on line 47:
_ASSERTE(_BLOCK_TYPE_IS_VALID(pHead->nBlockUse));
I don't know exactly why it happens. Tried around and always the same:
Take a sample (I took docview), add the following two lines anywhere in the project (I did in constructor of MyApp, the application object. So it will be executed right at the start):
int* pInt = new int;
delete pInt;
compile and run.....
As soon as delete get's called, my app crashes.
Anyone a idea or a way around?
btw: my system:
Win95,
MSDEV 6.0 with VC6.0
service pack I'm not sure, probably 1.....
application version nr: 6.0.0.0.0626 (1033)
And I'm trying the whole thing with using dll's....
Thanks for helping me
