>I get an error:-
>App called SysFatalAlert with the message:
>"MemoryMgr.c, Line: 4340, NULL Handle"
>
>I've traced it to that FrmInitForm call, the formID is valid and it's the
>first form initialised in the app through FrmGotoForm(). BTW, SDK version
>is 4.

First thing to do in situations like this is look at the stack trace.
FrmInitForm must have called something that then resulted in something
doing something with a null handle.  Knowing what it was in the process of
doing will usually get you much closer to the explanation.

For instance: if it was in FrmInitForm's call to ResLoadForm, then you
might assume there's a problem in actually loading the form... as opposed
to FrmInitForm's call to WinInitializeWindow or WinAddWindow or so forth,
which would lead you to find out if the window list has been corrupted or
something.

Also, if you're not using the latest Pose with a 4.0 debug rom and all the
debugging checks turned on, that'd be your first step even before the stack
trace.  The version of the SDK is more or less irrelevant when compared to
using the latest debugging tools.

-David Fedor
Palm, Inc.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to