Hi Silvia,

The code you posted on the other thread about this subject doesn't work for one simple reason: it isn't allocating global variable space for the Hotsync application. So, Hotsync is writing its global vars on top of your app's global vars.

You used:
Err SysAppLaunch( UInt cardNo, LocalID dbID, UInt launchFlags, Word cmd, Ptr cmdPBP, DWord* resultP)

And you set launchFlags to 0, which means the following flags are false:
sysAppLaunchFlagNewStack
sysAppLaunchFlagNewGlobals
sysAppLaunchFlagUIApp

The global allocation problem is enough to crash your application, or Hotsync. Anyway, I don't know if you can set launchFlags to anything but 0, as the docs say:
launchFlags Set to 0.

If you have a conduit, and it modifies the database, your application has to be called by the system. Check it carefully.
--
Sergio Carvalho
---------------
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you
 

Reply via email to