Hi,
I have a hack that I want to have a "Please wait"
dialog pop up when data is being accessed from a VFS
device. This is while trapping
EvtProcessSoftKeyStroke. To pop up the form I try to
do something like this:
pForm = FrmGetActiveForm();
// ??? dies on this next line
pNewForm = FrmInitForm(PleaseWaitForm);
FrmDrawForm(pNewForm);
err = VFSImportDatabaseFromFile(
vfsInfo->vfsVol[vfsVolIndex].volRefNum,
vfsPath, cardNoP, dbIDP);
FrmEraseForm(pNewForm);
FrmDeleteForm(pNewForm);
FrmSetActiveForm(pForm);
Unfortunately, it dies on the FrmInitForm. (Note that
PleaseWaitForm = 5000.) I get this error under POSE:
X-Master (1.3) called SysFatalAlert with the message:
"MemoryMgr.c, Line:4365, NULL handle".
If I press continue, I get this message:
X-Master (1.3) just read from memory location
0x13000C71, causing an address error.
An "address error" means that the application accessed
a 2- or 4-byte value at an odd (i.e., not even) memory
address.
Any ideas on why this does not work? If I do this
within my preference dialog in the hack, it works just
fine.
Thanks,
Mike McCollister
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/