This is most offen caused by calling drawing functions (that need a valid
draw window) 
and forgetting to call WinDrawForm() before. 
So you can manually set the drawWindow (discouraged)
Or call WinDrawWindow() before any other WinXXX calls.

Regards,
        miro
 

>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Brian
>Sent: Tuesday, September 20, 2005 04:52
>To: Palm Developer Forum
>Subject: Re: WinSetForeColor in form event handler kills simulator
>
>Bump! Because I am having the exact same problem. Also, it 
>works fine in the 5.2 Simulator in Debug version, but when I 
>run 5.3 or 5.4, I get this 'bad window' error on the 
>FrmSetForeColor() call.
>
>Any ideas?
>--
>For information on using the PalmSource Developer Forums, or 
>to unsubscribe, please see http://www.palmos.com/dev/support/forums/
>


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

Reply via email to