?
Solved

How to cleanly exit out of VFP every time.

Posted on 2010-11-09
7
Medium Priority
?
518 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
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 1000 total points
ID: 34099664
Try this
CLOSE ALL
QUIT
0
 
LVL 42

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

765 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