Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exe still in memory after
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01063875
Message ID:
01063954
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>I've deployed a couple of small EXEs on a Win XP machine. Here's the Main.prg:
>
>*********************************************************************
>* NOTE: Adding a config.fpw with "SCREEN = OFF" makes this redundant.
>_SCREEN.Visible = .F.
>
>SET DELETED ON
>
>SET DEFAULT TO ADDBS(JUSTPATH(SUBSTR(SYS(16), AT(":", SYS(16) )-1)))
>
>DO FORM frmMyApp.scx
>
>ON SHUTDOWN QUIT
>
>READ EVENTS
>
>*********************************************************************
>
>The ON SHUTDOWN should end the EXE and pull it from system memory, but it doesn't. I first noticed this when I tried to rename the EXE and the OS wouldn't let me. I inspected Windows Task Manager and sure enough the bugger was still in memory. I killed it with Task Manager, but I need to know how to well and truely end the app.




Your ON SHUTDOWN should point to a program, instead of just QUIT. The program should do a cleanup of everything, including any dangling object references (which may be better cleaned in the program or method when they are not needed anymore). Obj references may be your problem, that does not allow VFP to exit.

See: http://fox.wikis.com/wc.dll?Wiki~ManualGarbageCollection


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform