Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel.exe remove from memory
Message
From
13/02/2009 08:29:44
 
 
To
13/02/2009 07:06:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01381535
Message ID:
01381555
Views:
39
In this case you must make sure that you release oWorkbook also, since it holds a reference to oExce. And you must release it before oExcel.
oWorkbook=.null.
oExcel=.null.
Relase oWorkbook
Release oExcel
>Hi.
>I've created an Excel object named 'oExcel'.
>Then, I've loaded a XLS file and read information from it.
>When done I've issued 'oExcel.Quit()'.
>I've noticed in the Windows Task Manager that the process
>'excel.exe' didn't unload from memory. To unload it I've had
>to issue an 'Release oExcel'.
>Is that the correct way?
>Here is the pseudo-code
>
>
>vFile = 'my file'
>oExcel  = CreateObject("Excel.Application")
>oWorkbook = oExcel.Workbooks.Open(vFile)
>
>... bla bla bla ...
>
>oExcel.Quit()
>RELEASE oExcel
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform