Article # 465, added by Geoworks, historical record
| first | previous | index | next | last |

Will I get notification when PCMCIA card is removed?



Q. Will I receive notification if my application is using a file that
   is located on the PCMCIA card and the user closes out the card?

A. The PCMCIA library will notify you in this case. It does this by
   sending MSG_META_REMOVING_DISK to your process object, but only if
   you're application is using a file that is on the card.

   We recommend that your application quit (without saving to state)
   when it finds out that this has happened.

   Warning: make sure you're not putting your process object on the GCN
   list that sends out MSG_META_REMOVING_DISK (GCNSLT_REMOVABLE_DISK).
   Because if you do, then your process object will always receive
   MSG_META_REMOVING_DISK when a card is removed, not just when you have
   a file open on the card (plus you'll get the message twice).