|
-
October 14th, 2004, 09:39 AM
#1
"delete" causes a crash
When I "delete" an array created by "new" I get a fatal error saying that there is damage after block 98. Does anyone have an idea of how I can figure out what is causing that error?
Is there anything else that can cause the error besides an overwrite?
The error happens when I increase the sampling rate of the soundcard. I think (hope) that all arrays have been scaled appropriately. The error occurs after the second deletion of an object that has all these fields using the higher sampling rate (at lower sampling rates there is no problem). The first time I delete and recreate the object its okay. The second time it crashes.
(I do use the "NULL" test to keep track of whether a memory block has been created by "new" and deleted by "delete".)
Any hint on even how to look for this error would be greatly appreciated. (Using VC++ 6.0).
Thanks,
Brian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|