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
However, the program runs fine on both a Palm V and a Tungsten T3.
Whats wrong here?
Best regards
Tam Hanna
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/