>
> But how do I simulate card insertion? OK, I have a directory of the local
PC mapped as a card in slot 1 - but not mounted. Check the "Mounted"
checkbox, click "OK" - is that supposed to simulate card insertion? Instead,
I get:
>
> "Applications (4.0) just executed an illegal or unknown machine language
instruction. The opcode executed was 0xA0AD."
Yes, "Mounted" checkbox is that what simulates card insertion. The control
should go to the handler that you registered via SysNotifyRegister. So you
are there. Maybe you should check the parameters to that call.
The handler is called from EvtGetEvent() call from your event loop.
Best,
Jan Slodicka
----- Original Message -----
From: "Dr. Vesselin Bontchev" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Wednesday, April 27, 2005 7:01 PM
Subject: Re: How do I debug on the device?
> > First, sysNotifyVolumeMountedEvent can be debugged on the
> > emulator, too.
>
> How exactly?
>
> > Some emulators (notably Clie) offer a GUI to simulate card
> > mount/unmount events.
>
> Where is the Clie emulator available from? Couldn't find anything about
Clie on PalmOne.
>
> > Older OS4 emulators allowed to do it via changing emulator settings.
>
> Hmmm... OK, so I started the emulator and told it to create a new session,
using a PalmOS 4.2.1 ROM. Right-click, Settings/HostFS. Opens a dialog,
seemingly allowing you to install up to 8 cards, any one of which could be
mounted or not. Tried with one. Said that it needed HostFS.prc. Fair enough.
OK, I put that on the emulator. Had to reset. Now I can indeed map a
directory to a card in the emulator.
>
> But how do I simulate card insertion? OK, I have a directory of the local
PC mapped as a card in slot 1 - but not mounted. Check the "Mounted"
checkbox, click "OK" - is that supposed to simulate card insertion? Instead,
I get:
>
> "Applications (4.0) just executed an illegal or unknown machine language
instruction. The opcode executed was 0xA0AD."
>
> and I must reset. On reset I get
>
> "Prefs (4.0) just read from memory location 0x00000000, which is in low
memory, blah-blah".
>
> I can click on "Continue", though. Eventually, the Launcher appears. It
has a category "POSESlot1", which sees the contents of the mapped directory.
However, CardInfo insists that there is no card inserted and my program did
not get any notifications.
>
> Next idea, please?
>
> Regards,
> Vesselin
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/