Why not set a breakpoint and see what line it's crashing in?
You (or your compiler) are using a global somewhere, either that or you are
calling a function not in the first segement.


"Tom� Walek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi, I am trying to sort my DB after synchronization. I use
> "SysAppLaunchCmdSyncNotify", but it crashes with this error:
>
>
> case sysAppLaunchCmdSyncNotify:
>  {
>     LocalID dbID;
>     DmOpenRef DB;
>
>     dbID = DmFindDatabase (0, KLIENT_DB_NAME);
>     if(dbID != 0) {
>         DB = DmOpenDatabase (0,  dbID, dmModeReadWrite);
>      DmQuickSort(DB, &ComparKlientByID, 0);
>     }
>
> }
>
> but it crashes with this memory erorr and comment:
> this access usualy means that the application accessed a global variable
> after PilotMain was called with layunch code that does not support global
> variables.
>
> But I dont use any global  variables and I not at all know what can
happens
> this error. Can anyone advice?
>
> Thanks a lot
>
>         Tomas
>
>
>
>



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

Reply via email to