Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot create fxp
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00085036
Message ID:
00086320
Views:
39
>>>>Occasionnaly, when a prg contains an error, it seems to stay opened even if I cancel, close all, clear all, set proc to...
>>>>
>>>>The only way I found is to close and re-start VFP.
>>>>
>>>>Any ideas?
>>>>
>>>>TIA
>>>
>>>Mario,
>>>Is the error within a DO WHILE ... ENDDO loop? I had a similar problem in a constant loop where I had CANCEL within the loop. I could not recompile the exe and found that, using Windows NT task manager, there was still a process active for the exe!! I had to end the process to release the exe! I changed the CANCEL to EXIT and it never happened again. There was no button on the task bar but there WAS an entry in the process list.
>>===
>>In fact, yes, in this case, my programs stop (because of an error) in the middle of a Do While loop. however, I can't do EXIT, because I'm at the command window ands EXIT can only be used in programs.
>>
>>This close/reload of VFP is really time consuming.
>>
>>Any other suggestions?
>
>Mario,
>To get past this problem (just 'til you sort out the error) try this:-
>Before you enter the DO WHILE...ENDDO loop, put ON ERROR EXIT
>After the ENDDO, put IF ERROR()!=0, DO , ENDIF
>Without trying this, I can't guarantee that it will work straight away - check the help for ERROR().
!!! Something went missing in my reply - should read IF ERROR()!=0, DO errorhandler, ENDIF !!!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform