Hi Scott,
That warning is true, but in reality I haven't seen any real performance 
degradation.  Certainly it does affect performance in some way, but I have not 
observed any kind of sever impact.  This is especially true if you do work only 
intermittently in response to the event.  However, I do agree that an alarm is 
probably your easiest way to go, especially if you are new to the PalmOS.  The 
big tip I have to give you is that if you respond to an alarm and your 
application isn't the active application, there are some funky rules that you 
have to live by: no global variables, access only to code in your first 
segment, etc.  If you do a search on this newsgroup, you should find lots of 
helpful information.  I won't try and spew it all back in this posting.

Good luck!

-Jon

-------------------------------------------
Jonathan Hays
Palm OS Certified Developer
http://hazelware.luggle.com 
-------------------------------------------


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Scott Erickson
Sent: Friday, April 08, 2005 10:36 AM
To: Palm Developer Forum
Subject: Re: Running a Background Procsess On Garnet


Jonathan,
    It looks like sysNotifyEventDequeuedEvent is something that could slow 
down the system.  The API help files give a warning about using it due to 
possible significant degraded system performance.  Using an alarm sounds 
like its my best bet.  This is my first time developing on any palm OS, so 
if you could give me any pointers on alarms (stuff to avoid, any tips or 
anything i should know before trying to use them in my app)  I would be very 
greatful.  Thanks for the help.

Scott Erickson

----- Original Message ----- 
From: "Hays, Jonathan (GE Infrastructure)" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Friday, April 08, 2005 1:04 PM
Subject: RE: Running a Background Procsess On Garnet


> Since no one is really answering your question...  :-)
>
> There are a couple of ways to do this on Garnett, each with their own pros 
> and cons.  Here are the ones that I am aware of:
> 1. Register an alarm to go off every second or couple of seconds.
> 2. Register for the sysNotifyEventDequeuedEvent notification.  (This gets 
> called basically every time that an event is handled anywhere in the 
> system.)
> 3. Run in the callback of a sound stream thread.
> Let me know if you need more explanation on any of these.
>
> Hope this helps!
>
> -Jon
>
> -------------------------------------------
> Jonathan Hays
> Palm OS Certified Developer
> http://hazelware.luggle.com
> -------------------------------------------
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Scott Erickson
> Sent: Friday, April 08, 2005 6:24 AM
> To: Palm Developer Forum
> Subject: Running a Background Procsess On Garnet
>
>
> I am about to start development on an Anti-v program for the Garnet OS, my
> first project under this OS.  I would like to know if anyone knows how to
> run a background process.  I know Cobalt has stuff in the APIs to do this,
> but I have not found a way to do it in Garnet.  I need to have the Anti-v
> program scan all incomming data.  I need it to be able to scan bluetooth,
> SMS and email everytime data is sent to the device through one of these 
> data
> channels.  Any ideas???
>
> -Scott Erickson
>  FB-4, Inc.
>
>
>
> -- 
> 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/
>
>
> 



-- 
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/

Reply via email to