From: "John Crouch" <[EMAIL PROTECTED]>
> Thank you Peter and everybody else for their input.  I think I am going to
> create a replacement for my use of FrmCustomAlert and a keyboard
replacement
> function.  Can anyone offer me tips or a starting point for either of
these
> two routines?
>
The main thing that caught me was multiple dialogs.  I was using
a global structure to define the form flags and contents and then
store the button that closed it and (of course) with multiple dialogs
this didn't work.  Multiple dialogs also cause problems if you're
using FrmPopupForm.

I ended up creating a simple dialog stack and, IMHO, if you have to
do this you may as well implement the full system from day one.  I
just used an array of form structures and some simple code in my
ShowAlert that iterated looking for an empty spot.  This code also
checks the control array to see if an alert is currently being handled
and, if so, just stores the values and returns.  When each alert is ready
to close it checks for a non-empty alert definition and, if it finds one,
re-initialises with those values instead of returning to the pre-Popup
form.  While this is a bit more work it'll handle anything you can
throw at it.

> there are two problems:  1) it is not full-proof and you can miss an event
> very easily, and 2) there seems to be a bug in the MSR library causing
fatal
> errors when you do miss the events.
>
Hey, look on the bright side - you could have half a K of GPS data
arriving every two seconds.  You don't want to know what sort of
buffer overrun occurs when someone spends ten seconds pecking
away at the keyboard.

And, in passing, we are looking at implementing what is appararently
the only robust solution which is to implement a low-level driver
that sits beside the serial driver and (apparently) receives interrupts
regardless of interface state.  If you can't solve this we may be in
a position to contract low level solutions in a few months (once we
finished swearing at our own hardware).

Chris Tutty


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

Reply via email to