Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error that brings down VFP 5.0
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00024532
Message ID:
00024614
Vues:
33
>I can consistently bring down VFP 5.0 by forgetting to put a floppy in the a: drive and have my application execute the following where gcPassName = A:\STUDENT.IMS
>
>gcPassName = IMSLOCATION &&Public set in Splash Form
>gcPassFile = PUTFILE('Student logfile disk:', gcPassName, 'IMS')
>IF EMPTY(gcPassFile) && Esc or Cancel pressed
> CLOSE TABLES ALL
> THISFORM.Release
>ENDIF
>COPY TO &gcPassFile ALL TYPE DELIMITED WITH TAB
>MESSAGEBOX('Log file successfully created!', 0, 'IMS Logfile')
>
>------------------------------------------------------
>I get a message from Windows95 that "This program has performed an illegal operation and will be shutdown". The error occurs on the second line of the above code, issuing the PUTFILE without a floppy in the drive. When I put a floppy in prior to executing this command, it works. Also, if gcPassName is set to the C or D drive, everything is OK. Any ideas how to prevent this crash? My users are bound to forget to put a floppy in occassionaly. Please respond here or to dowe@itsnet.com. Thanks.

Don: Try Vlad's Drive Information Class. Click on the File Cabinet in the top frame, and you'll find it in the Classes section. The discussion on it has been very positive. With it you can check for an open drive and warn the user or handle it in other ways.

It's easy to find, because it has a large NEW sticker on it.

Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform