Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program not unloading from memory
Message
 
 
À
18/02/2004 17:20:04
Fred Fattore
Americomm Direct Marketing
Louisville, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00878537
Message ID:
00878614
Vues:
17
Fred,

You need CLEAR EVENTS as well as clearing the ON SHUTDOWN handler.

In general:
* main.prg
on shutdown EnditAll()
do yourmenu.mpr
do form ...
read events

on shutdown
return

* EndItAll
function EnditAll

* close down any active forms
for i = 1 to _screen.FormCount
   if ( _screen.Forms[1].QueryUnload() )
      _screen.Forms[1].Release()
   endif
endfor
clear events
return
>I have a program that I am creating, a single form with multiple pageframes as a top level form and it runs fine, but when I quit the program the executable stays loaded in memory and the only way to unload it is with task manager. This prevents me from compiling any changes because the executable is locked until I end the process manually. I am using VP 6.0 under Windows 2000. I have clear reads in both the exit.click event and the main.prg after the read events.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform