Tam Hanna wrote:
Hi Dudes,
I am currently porting over a project to PODS from OnBoardC. The PalmOS 5
simulator dies whenever a new form is opened. This is the beginning of the
event handler:
Boolean colorFormEventHandler(EventPtr pEvent)
{
Boolean handled = false;
FormPtr pForm = FrmGetActiveForm();
RectangleType bounds;
IndexedColorType oldc=WinSetForeColor(prefs.fore);
switch (pEvent->eType)
I have already performed some testing and found out that the program always
dies at the WinSetForeColor call. The simulator pops out the following
message:
Window.c Line 78 Bad Window
This is the last event I get:
Event # Timestamp Type Details
479 11.436 sysWinExit enterWindow=0x0, exitWindow=0xF02788
Is a kind of FAQ: set up a draw window...
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-side contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/