Okay it sounds pretty unanimous, no globals during sync notify launch code.  Looking 
at my code I see that there is no handler for this launch code in the main routine so 
if it gets one the only thing that will happen is a routine called StopApplication is 
called with no parameters and stop application does a DmCloseDatabase() with my 
database as a
parameter.  The PostsitesDB is global but can somebody that knows the Memopad tutorial 
tell me how the Memopad app is getting away with this since my code is derived from it 
(also let me know if there are any copyright issues in using the Memopad code here 
:)).  Do I have to make the database local to PilotMain and then pass it all over the 
place?

Peter Epstein wrote:

> When your app is installed via HotSync, it should get a sync notify launch code. I 
>don't think you'll get that when you install the app using the debugger. You don't 
>have access to globals when handling that launch code, so it's pretty easy to make a 
>mistake in the handling of that launch code. This might not be the problem, but it's 
>worth a look.
> --
> Peter Epstein
> Palm Inc. Developer
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
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