- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CVF6.6C Windows XP Pro
When running from the debugger, some of my DEALLOCATE statements are giving me heap errors (debug asserts) e.g.:
HEAP: Invalid Address specified to RtlValidateHeap( 003F0000, 03A3E0A0 )
Is this important?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe. Is this when the program exits? The MSVC debug library doesn't deal well with the way CVF does memory allocation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Its when I execute (some of) the deallocate statements. I have some allocatable UDTs in a MODULE...I allocate them at the start of a model run and DEALLOCATE them afterwards.
The error the debugger throws up can be 'Ignore'd and it doesn't seem to cause any problems, it's just a little annoying having to process it all the time when debugging.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It could be a sign that you are writing to memory outside the bounds of what was allocated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably was something like that...
I found some coding errors (cut'n'paste ...ssshhhhh!)...fixed the errors and the problem disappeared...
Cheers

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page