Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 533
  • Last Modified:

How to cleanly exit out of VFP every time.

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
mikejcurtis
Asked:
mikejcurtis
1 Solution
 
tusharkanvindeCommented:
Why does your client feel it is not removing itself.
0
 
mikejcurtisAuthor Commented:
When he presses Ctrl+Alt+Del he can see the process still running.
0
 
mikejcurtisAuthor Commented:
I should add that I can't make it do what he is seeing.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
tusharkanvindeCommented:
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
 
CaptainCyrilFounder, Software Engineer, Data ScientistCommented:
Try this
CLOSE ALL
QUIT
0
 
pcelbaCommented:
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
 
AndrewJenCommented:
I certainly always use QUIT as well.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now