Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Daniel Hofford
  Where is Daniel Hofford?
 Ocala
 Florida - United States
 Daniel Hofford
 To: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 Tags
Subject: RE: Terminate VFP
Thread ID: 249110 Message ID: 249123 # Views: 1 # Ratings: 0
Version: Visual FoxPro 7 Category: Errors & Debugging
Date: Monday, December 28, 2009 10:07:37 PM         
   


> > Can anyone tell me the proper way to terminate a program kicked off from with VFP that uses no READ EVENT?
> > I don't want it to shut down VFP, therefore no QUIT.
> > This is a program that runs a set of reports with output to the screen, no forms.
> > The last three lines of code are:
> > CLOSE ALL
> > CLEAR ALL
> > RELEASE ALL
> > and it does that but it still leaves the program running as a process.
> > Thanks
> > Daniel
> > "Our gold does not chink and glitter. It gleams in the sun and neighs in the dark." Chief Joseph
> >
>
> Hi Daniel -
>
> If there is no Read Events and no Modal Form or other "waitstate" things in the code, it would just run to its end and exit gracefully - IOW, no Quit or similar required.
> Except when something went wrong, like a "dangling reference" scenario.
>
>
> > and it does that but it still leaves the program running as a process.
>
> Where do you see that process, is it in the debugger's Call Stack window, or in the Windows Task Manager, or by the fact that you cannot modify or delete its PRG/FXP files?
>
> If the latter, does "Clear Program" (after the PRG has finished) help?
>
>
> hth
> -Stefan

Thanks, Stefan.

by the fact that you cannot modify or delete its PRG/FXP files?

Yes, by that and that the debugger is still running even though the program appears to have terminated as told
by ctrl/alt/del.

Dan
"Our gold does not chink and glitter. It gleams in the sun and neighs in the dark." Chief Joseph

ENTIRE THREAD

Terminate VFP Posted by Daniel Hofford @ 12/28/2009 3:32:22 PM
RE: Terminate VFP Posted by Anders Altberg @ 12/28/2009 4:38:01 PM
RE: Terminate VFP Posted by Daniel Hofford @ 12/28/2009 10:05:31 PM
RE: Terminate VFP Posted by Anders Altberg @ 12/29/2009 12:32:38 AM
RE: Terminate VFP Posted by Stefan Wuebbe @ 12/28/2009 5:18:49 PM
RE: Terminate VFP Posted by Daniel Hofford @ 12/28/2009 10:07:37 PM