"Creative Digital Publishing Inc." <[EMAIL PROTECTED]> writes:

> 
> I've got a case where I'm receiving asynchronous launches from incoming
> paging messages on a PagerCard. When I get a page, all I do is stuff it in
> a database. They, if my application is already active, I want to update an
> onscreen message counter. If it's not, I just want to go back to what was
> happening bevore.

> Would anyone have any explanation for how/why this might be happening? More
> importantly, is there any way I can accurately and effectively determine
> that I was in fac _not_ the active application when I receive a page?
> Checking the GUi seems fraught with problems. Thanks in advance.

        My experience is that doing anything GUI-related in the launch
from the paging system is dangerous, as it may be running in the pager
card's thread rather than the usual app/GUI thread. So in that sense,
you're never really the actice app in the usual sense when you get
that launch.

         What I did (at the advice of Bruce Thompson) was to always
stick the message into the database, and if I wanted my active,
running app to do something, to send it a message via the alarm
mechanisim. This eliminated all sorts of strange errors.

        - Nathan

Reply via email to