I am a newbie to Palm Programming, and I seem to run into many troubles in
compiling my code. I ahve used C before, so that is not a problem.

I am using pilrc and GCC in order to compile, my budget is very limited.

Does anyone know of a good debugger, or a manual to the debugger of GCC?

Secondly, my application does not seem to load any form. I have tried
playing about, but I know the code should be right, as I pasted it from a
standard code.

I really cannot find the fault. My POSE (sony) is stating "called
SysFatalAlert with the message "MemoryMgr.c Line 4365, NULL handle"

I would be very grateful if you could help me out, as I know it must be
somthing very simple and basic. Besides, if this skeleton code does not
work....

Thanks

Stefe



This is the Pilotmain, i have integrated EVENTLOOP & APPHANDLE EVENT into
the Pilotmain for my convenience, to check that it was not a question of
parameters.

UInt32 PilotMain (UInt16 cmd, void *cmdPBP, UInt16 launchFlags)
{
 UInt16 error = 0;
 Boolean launched;
 EventType event;
 UInt32    formID;
 FormPtr   form;

 if (cmd == sysAppLaunchCmdNormalLaunch)
 {
  error = StartApplication ();

  FrmGotoForm(1100);

  do
  {
   EvtGetEvent (&event, evtWaitForever);     //line 40

   if (! SysHandleEvent (&event))
    if (! MenuHandleEvent (NULL, &event, &error))
     if (event.eType == frmLoadEvent)
     {
      formID = event.data.frmLoad.formID;
      form = FrmInitForm(formID);
      FrmSetActiveForm(form);
      switch (formID)
      {
       case SELECTFORM:
       FrmSetEventHandler(form, (FormEventHandlerPtr)

SelectPatient);
       break;
      }
     }
     else FrmDispatchEvent (&event);
  }
  while (event.eType != appStopEvent);
  StopApplication ();
 }


 return (0);
}


selectPatient is as follows
Boolean SelectPatient (EventPtr event)
// Handles the events that occur on the SELECTFORM, basically the following:
{
 FormPtr form;
 Boolean handled = false;

 switch (event->eType)
 {
  case frmOpenEvent:
   form = FrmGetActiveForm();
   FrmDrawForm(form);
   handled = 1;
   break;
 }
 return handled;

}


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003


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

Reply via email to