Dr. Vesselin Bontchev wrote:
> 
> If a piece of code receives control from a system 
> trap patch, is it allowed to display forms,
> alerts, etc.?
> 
> In one place my application loads and displays a 
> form via FrmInitForm, FrmDrawForm, etc. This
> works fine when invoked from a notification under
> Palm OS 5.x - but seems to load a completely
> different (and system) form when invoked from a
> system trap patch under Palm OS 3.x-4.x.

It's generally dangerous to do things like that because you don't know which
database you're retrieving resources from.  IIRC if you call DmOpenDatabase
explicitly on your database first it might be okay, but I think the safer trick
is to call SysAppLaunch on yourself and then do whatever you want in your
PilotMain routine.

Presumably on OS 5 you're handling notifications via launch codes anyway.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to