Hi,
I'm working on making PalmAlice the Open Source AI chatbot
compatible with PalmOS 3.0. PalmAlice is working well
with only few bugs to fix on the PalmOS 3.5 emulator
Rom. But when I try PalmOS 3.0 Emu Rom I got this error:
"SysFatalAlert wtm/ "MemoryMgrNew.c, Line:3970, Invalid
Handle"
And this from the debugger:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x10c1c054 in ErrDisplayFileLineMsg ()
(gdb) bt
#0 0x10c1c054 in ErrDisplayFileLineMsg ()
#1 0x10c1321c in PrvHandleCheck ()
#2 0x10c124da in MemHandleLock ()
#3 0x10c50caa in ResLoadForm ()
#4 0x10c44ba0 in FrmInitForm ()
#5 0x1001b0ba in ApplicationHandleEvent (e=0x14a4c) at palmAlice.c:358
#6 0x1001b20c in EventLoop () at palmAlice.c:433
#7 0x1001fdb8 in PilotMain (cmd=0, cmdPBP=0x0, launchFlags=142)
at palmAlice.c:2338
And this is the code that crashes:
static Boolean ApplicationHandleEvent(EventPtr e)
{
Boolean handled = false;
UInt16 formId;
FormPtr frm;
if (e->eType == frmLoadEvent) {
formId = e->data.frmLoad.formID;
->crash here-> frm = FrmInitForm(formId);
FrmSetActiveForm(frm);
I'm using 4.0SDK w/ PRCTools on cygwin to compile.
Any ideas?
Thanks,
Robert
PalmAlice (AI chatbot): GNU/GPL Open Source code is at:
http://savannah.gnu.org/cgi-bin/viewcvs/bang/PalmAlice/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/