I have used "DmFindDatabase(0,"Survey");" to find the dbid. But Now it showed the memory location as "0x8E6E0040". When I checked the dbid is not getting fetched. Is the syntax I have written is correct. My application name is "Survey".
Please help me on this, I am new to this. ----- Original Message ----- From: "Ben Combee" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, April 24, 2002 10:49 PM Subject: Re: SysNotifyRegister giving error > 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
