Hello Forum,
I have run into a bit of a snag with the application I
am writing. The app needs to read files off a memory
card and up until now this has not been a problem.
However, I recently got a memory card from the client
with live data on it and this is where the challenge
begins.
When the card is inserted into the palm, the palm
freezes. Checking the card reveals that there are
three files, of which two are 0 bytes in size. I am
assuming that the reason for the Palm freezing is on
account of these files. So to prevent the expansion
manager from mounting the card, I set my app up to
catch sysNotifyCardInsertedEvent and set the handled
variable to expHandledVolume. However, this does not
seem to do anything. The expansion manager still
seems to try and mount the card. I have also tried to
catch and handle the sysNotifyVolumeMountedEvent
notification with similar results. Below is a code
snipit:
case sysNotifyCardInsertedEvent:
FrmCustomAlert (ExpansionCardAlert, "Card insertion
notification occured.", "", "");
((SysNotifyParamType*) cmdPBP) -> handled |=
(expHandledVolume | expHandledSound);
break;
case sysNotifyVolumeMountedEvent:
FrmCustomAlert (ExpansionCardAlert, "Vol mounted
notification occured.", "", "");
// Inform VFS Manager that this application has
delt with the automatic running of start.prc.
((SysNotifyParamType*) cmdPBP) -> handled |=
vfsHandledStartPrc;
((SysNotifyParamType*) cmdPBP) -> handled |=
vfsHandledUIAppSwitch;
break;
Any suggestions greatly appreciated.
Cheers,
Joe
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/