When you call FileClose, set the handle to 0 and then test for that. Make sure you initialize it to zero to begin with...
-----Original Message----- From: Steve Orens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 12:30 PM To: Palm Developer Forum Subject: calling FileClose twice greetings, if I have a handle to a file and I happen to call FileClose on that handle twice, the emulator gives me an error indicating that i just tried to read from an unallocated chunk of memory. is there a way i can test the handle prior to doing a FileStream API call on it to make sure it is valid? thanks, steve -- ---------------------------------------------------- steve orens http://www.orens.com [EMAIL PROTECTED] ---------------------------------------------------- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments is privileged and confidential and is intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify me immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
