IonicWind Software

IWBasic => General Questions => Topic started by: LarryMc on March 05, 2009, 01:39:33 PM

Title: Heap Stack Underflow
Post by: LarryMc on March 05, 2009, 01:39:33 PM
Part of my program quit working.
Ran in debug and get the heap stack underflow error right after it loaded the riched20.dll.

Any idea what causes it and how I can get rid of it?

Larry
Title: Re: Heap Stack Underflow
Post by: Ionic Wind Support Team on March 05, 2009, 02:40:20 PM
Not without seeing the code.  That is a very obscure error that can only happen if more heap objects are freed then were allocated.  In fact it is so obscure that your the first person to ever run into it.

Paul.
Title: Re: Heap Stack Underflow
Post by: Rock Ridge Farm (Larry) on March 05, 2009, 03:11:18 PM
Congratulations - not everyone can find a new way to break things.
Title: Re: Heap Stack Underflow
Post by: LarryMc on March 05, 2009, 03:13:06 PM
Quote from: Paul Turley on March 05, 2009, 02:40:20 PM
In fact it is so obscure that your the first person to ever run into it.

I guess that makes me a pioneer. ;)  But I guess there is a big difference between being famous and being notorious. ;D

I don't want to put you through looking at 29 source files and over 6,000 lines of code(not counting include files).

The area I'll look in is where I've used NEW and then deleted them a bunch of times.

Thanks

Larry
Title: Re: Heap Stack Underflow
Post by: LarryMc on March 05, 2009, 03:23:39 PM
Everything came back after I deleted the link, .a,.o,.map files AND restarted EBasic and then rebuilt.

Larry
Title: Re: Heap Stack Underflow
Post by: Ionic Wind Support Team on March 05, 2009, 03:32:34 PM
Good.  Sometimes Windows can maintain a file lock on a .o file, and data never gets flushed.  Told you it was an obscure error ;)