--- Mike <[EMAIL PROTECTED]> wrote:
>
> Right now every time I stop the debugging in CW, the Emu gives me
> "Accessed memory.... which means you are accessing global variables
> during a SysAppLaunchCmdSystemReset." I didn't change anything, and
> it never complained before.
That's because the emulator is now better than before!
> Here is my pilot main...untouched since I started writing this
> program 2 years ago.
>
> {
> Err error;
> error = RomVersionCompatible (version20, launchFlags);
> if (error) return (error);
> switch (cmd)
> {
> case sysAppLaunchCmdNormalLaunch:
> error = AppStart();
> if (error)
> return error;
>
> FrmGotoForm(MainForm);
> AppEventLoop();
> AppStop();
> break;
>
> default:
> break;
>
> }
>
> return 0;
> }
>
> I dont even do anything during that event so why is it complaining?
Is is possible that you are using a global variable in
RomVersionCompatible(), which is being called for every launch code?
> Another problem: if I turn on "memory Leak Detection" I get a memory
> leak that I cant track down...Other ones were obvious but this one
> looks likeit's from within the system?
Did you forget to call FrmCloseAllForms() in your AppStop?
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/