At 04:00 PM 11/13/2003, Claire wrote:
I've got a strange problem... hopefully someone here will know more about this than I do.

I have 2 programs, A and B. A will sometimes need to call B and when B exits it needs to return control to A. They call each other via SysUIAppSwitch. When A calls B, all goes well, however when I try to switch back from B to A I get a Fatal Alert saying it couldn't find form shadow for window. The really weird thing, though, is that if right before B calls SysUIAppSwitch I do a FrmCustomAlert so I know it's about to switch then A relaunches perfectly.

I'm guessing then that A has trouble redrawing its form when it's relaunched (although I don't know why it would since it acts as though it were a normal launch) or that B has trouble exiting. I don't understand why the FrmCustomAlert would be affecting things, nor do I know what it would be affecting.

Are both application A and B calling FrmCloseAllForms as part of their shutdown code? Do both applications correctly call FrmDrawForm before trying to call any routines that might redraw items on their forms?


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to