Filer_OpenDir
Chris Hall (132) 3505 posts |
If I use the following code in a multi-tasking application:
the error is neatly trapped (Edit: actually it seems a subsequent attempt to write to the SCSI::0.$ drive is what generates an error) and no attempt is made to carry out a download operation. This is on a device with just an OLED display. However a desktop error is generated ‘The disc drive is empty’ once the Wimp_Poll loop is terminated. (Presumably because the desktop now has a window open for a non existant directory.) Not much use as it is invisible! The code below does what I want (to run the !Boot file in an unseen directory on the pen drive).
I would have expected Filer_OpenDir to have produced only a single error to the application which called it and then not to attempt to open a window on a directory it knows is on a device with no disc in it? |
Chris Hall (132) 3505 posts |
Ah! Filer_OpenDir does not return an error to the application calling it if the disc drive is empty it waits until the Wimp_Poll returns and then returns an error to the desktop. I need Filer_Boot (which does return an error to the application if the specified application is not there or the disc drive is empty). |