Read-only archive of the All About Symbian forum (2001–2013) · About this archive

panic ALLOC after RemoveLibrary

1 replies · 1,919 views · Started 10 November 2004

Hi All,

I am trying to debug an auction program I have built for my phone. Everything works fine until the second time, I exit the program. When I do this I get a ALLOC panic with a hex error code. I have found that the hex code belongs to the Heap object that has not been deallocated but when I display the hex values of all my object they do not correspond to error hex code.
How can I debug something that happens when the OS is pulling my program off the stack?
I am using the winsb emulator in the limited environment of Borlands free C++ Builder 6 for Nokia.

Any thoughts?

Thanks,
martin

Hi All,

I figured out I was leaving an object on the heap when I left the program. I discovered this by printing out the address of objects as I was creating them. The address in the panic is the address of the object that is causing hte problem. You can print hte address of hte object by printing the 'this' object in text format.

Thanks