At 02:53 PM 5/25/2004, you wrote:
Hi Bob,

the calls are ok - I used the short form. I wrote the code bellow. No other
part of the program can see the window handle - hence it cannot be
unintentionally freed.

I'm concerned about your use of SysAppLaunch to call a subprogram... how is that working? It's possible that the UI system state changes across the sublaunch, and that invalidates the WinHandle shadow structure that holds those bits.


I'd suggest using an offscreen window and doing your own WinCopyRectangle, rather than use WinSaveBits/WinRestoreBits -- those APIs have had problems in the past.


-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to