Solved

How to cleanly exit out of VFP every time.

Posted on 2010-11-09
7
470 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
Comment Utility
Why does your client feel it is not removing itself.
0
 

Author Comment

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

Author Comment

by:mikejcurtis
Comment Utility
I should add that I can't make it do what he is seeing.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 14

Expert Comment

by:tusharkanvinde
Comment Utility
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
Comment Utility
Try this
CLOSE ALL
QUIT
0
 
LVL 41

Expert Comment

by:pcelba
Comment Utility
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
Comment Utility
I certainly always use QUIT as well.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now