Hi all,

I just got the OS 3.3 debug and release ROMs. When I run my app. on POSE
using the release ROM, everything appears to be OK. However, when I run the
debug version, I get:

"UIAppShell" (unknown version) reports "SystemMgr.c, Line: 4192, Possible
memory leak. Use the 'hd 0' command to find chunks owned by your app."

This error message pops up as I am exiting my application. This happens even
if I just enter my app. and immediately exit by pressing the Applications
silk-screen button or any of the application hardware buttons.

So, I figured, "OK, there's a memory leak either ENTERING or EXITING my
first form". I confirmed this by commenting out the initial FrmGotoForm, and
getting no error message when I exited. Since that form has no frmCloseEvent
handler, I figured it must be something in the frmOpenEvent handler.

Here is the really strange part: I commented out EVERY line in my
frmOpenEvent handler, so that it just looks like this:

      case frmOpenEvent:
         handled = true;
         break;

I had planned on selectively uncommenting lines until I found the one that
caused the error. However, I *STILL* get the error, even with ALL of the
lines commented out! The only variables declarations I have are:

   FormPtr  frm;
   Boolean  handled;

There are NO other statements before or after the event handling SWITCH
statement, except CALLBACK_PROLOGUE and CALLBACK_EPILOGUE at the start and
end of the routines. Obviously, I am using GCC.

I am stumped. Can anyone guess what might be going on? Is this "possible
memory leak" really something to worry about? How exactly do I use the 'hd
0' command to try to track this down?

Thanks in advance,

Tom

Reply via email to