Solved

How to cleanly exit out of VFP every time.

Posted on 2010-11-09
7
492 Views
Last Modified: 2012-05-10
I have this great application that is getting used like crazy and really catching on. One of my clients is reporting that the application doesn't always remove itself from memory completely. When  user chooses to exit, the program executes the following commands;
SET SYSMENU TO DEFAULT
CLEAR EVENTS
CLEAR WINDOWS
CANCEL

Shouldn't that remove it completely every time?
0
Comment
Question by:mikejcurtis
7 Comments
 
LVL 14

Expert Comment

by:tusharkanvinde
ID: 34099219
Why does your client feel it is not removing itself.
0
 

Author Comment

by:mikejcurtis
ID: 34099270
When he presses Ctrl+Alt+Del he can see the process still running.
0
 

Author Comment

by:mikejcurtis
ID: 34099276
I should add that I can't make it do what he is seeing.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 14

Expert Comment

by:tusharkanvinde
ID: 34099304
Maybe there is a virus or something somewhere. The only way to make a VFP exe disappear after appearing is to have _screen.visible=.F. in the code. Run the VFP exe, check the processes and applications in task manager, then exit it and check it again. See if any item has been removed from the list.
0
 
LVL 27

Accepted Solution

by:
CaptainCyril earned 250 total points
ID: 34099664
Try this
CLOSE ALL
QUIT
0
 
LVL 41

Expert Comment

by:pcelba
ID: 34100032
I would say the best and fastest (but too agressive) is

CLEAR EVENTS  && optional
ON SHUTDOWN QUIT
QUIT

CANCEL does not remove VFP.EXE from memory.
 
0
 
LVL 3

Expert Comment

by:AndrewJen
ID: 34101142
I certainly always use QUIT as well.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
the command is "append from" in VF 9.0 6 62
TSWEB on windows 7 1 1,122
Creating an empty sheet in an existing PDF and adding a watermark 9 736
FoxPro Version 9.0 2 67
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question