Karl Blessing
Programmer
for a while this method seemed to do fine, fixed it up a bit<br>debuged it, the pointer addresses seemed valid(not NULL or those 0xdddddd) but yet I get an assertion error in the DebugHeap header file which didnt seem to happen the first couple of times, heres the routine.<br><br>void FileStorage::cleanup()<br>{<br> if(FHead != NULL)<br> {<br> FilePtr* DelMe = NULL;<br> FCurrent = FHead;<br> while(FCurrent != NULL)<br> {<br> DelMe = FCurrent;<br> FCurrent = FCurrent->next;<br> delete DelMe;<br> }<br> FHead = FCurrent = FEnd = DelMe = NULL;<br> }<br>}<br><br>at the delete DelMe; line is where it crashes, the address before I allowed it to continue past the breakpoint seemed like a valid address each time, and did match the Head pointer. Tho uncertain why this would cause a crash. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML, ASP(somewhat), QBasic(least i didnt start with COBOL)