In article <84768@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> I am getting following problem:
> 
> I have used SysNotifyRegister in my PilotMain. My syntax is
> "SysNotifyRegister(0, '1234', sysNotifyLateWakeupEvent, NULL,0,0);".
> 
> I have written the application which start another application when palm is
> powered on. When I run the application and make on/off the palm in (POSE),
> it gives following error :
> 
> Applications (3.5) just read from memory location 0x31323334, causing a bus
> error.

First thing, what is 0x31323364 expressed as a four character code?  
'123D'  That looks suspiciously like the creator code you passed to 
SysNotifyRegister, which should have told you that you were misusing the 
routine.

If you look at the prototype, the second parameter to SysNotifyRegister 
is a LocalID.  This is not a 4 character code, this is the ID you get 
when you do a DmFindDatabase or one of the other DmWhatever calls that 
finds a database on the device.  In your case, you should have used 
SysCurAppDatabase to get the card number and ID.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/

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

Reply via email to