OK Who's a Windows expert? I've got a heaping problem!
OK Who's a Windows expert? I've got a heaping problem!
Alright lets find the true windows gurus here.
I wrote a WTL dialog that models a RF detector.
Sometimes when I run it I get a message stating a heap corruption. It says I wrote over the heap buffer.
Does this mean I overwrote the end of a dynamically allocated array? I don't think so, because if it was it would throw a different type of message.
Am I actually using up all the memory windows is allocating for my program?
And how do I debug it?
I wrote a WTL dialog that models a RF detector.
Sometimes when I run it I get a message stating a heap corruption. It says I wrote over the heap buffer.
Does this mean I overwrote the end of a dynamically allocated array? I don't think so, because if it was it would throw a different type of message.
Am I actually using up all the memory windows is allocating for my program?
And how do I debug it?
OK, I'm a little rusty here. What's a WTL dilog? I write machine code for 8051's and I also do some C# .NET stuff. The compiler usually takes care of that stuff.
The Heap is your memory area for variables. What it sounds like is you've got a stack overrun because of to many pushes and not enough pops. Check that you're not doing a recursive loop or some other strangeness like doing a jump out of a subroutine.
Edwin
The Heap is your memory area for variables. What it sounds like is you've got a stack overrun because of to many pushes and not enough pops. Check that you're not doing a recursive loop or some other strangeness like doing a jump out of a subroutine.
Edwin
Here's a little help. As the article states heap corruption is a BIG topic and involves many things.
http://www.windowsitpro.com/Web/Arti...275/22275.html
Bottom-line, memory is being mishandled.
http://www.windowsitpro.com/Web/Arti...275/22275.html
Bottom-line, memory is being mishandled.
Trending Topics
Thread
Thread Starter
Forum
Replies
Last Post
Rednecktastic
3rd Generation Ram - Non Drivetrain - All Years
10
Nov 15, 2010 09:29 PM
markster
2nd Gen. Dodge Ram - No Drivetrain
6
Oct 7, 2006 02:20 PM







