> From: manish jaggi
>
> but whta do you mean by use of global variables
> during hotsync . I am not using any conduit to
> hotsync the application.
> Just the simple way .

Manish, you previosly said:

> > >> >My applications seems working fine when i
> > >> >run it on emulator.  But when i install it
> > >> > / hotsync it on the device it gives
> > >> >error like Null DBID passed or flatal errror
> > >> >reser , ot error in memory manager line ....
> > >> >I dont know what is wrong in my program .
> > >> >Can anyone Helo me Out.

So, apparently the problem is when you install the application. (which could
happen during hotsync)

The most likely problem is that your app is written so it uses a global
variable when it receives a launch code (e.g., after being installed) which
does not allow globals.  The Companion doc says "In most cases, when you
respond to other launch codes, you are not able to access global variables.
Global variables are generally only allocated after an application receives
sysAppLaunchCmdNormalLaunch (see Listing 3.2) or sysAppLaunchCmdGoto; so if
the application hasn’t received either of these launch codes, its global
variables are usually not allocated and not accessible.  In addition, if the
application has multiple code segments, you cannot access code outside of
segment 0 (the first segment) if the application has no access to global
variables.".

I suggest you read the entire "Application Startup and Stop" section of the
"Palm OS Companion.pdf".  Then look carefully at your code to make sure you
aren't trying to access a global variable when globals are not available.



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