Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program not unloading from memory
Message
 
 
To
18/02/2004 17:20:04
Fred Fattore
Americomm Direct Marketing
Louisville, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00878537
Message ID:
00878614
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform