LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ghost Process using Excel Object Library

Hello,
im using LabWindows/CVI 5.5 on Win2k SP4 (and a lot more patches) and try to use Excel (2003) to save measurement data. opening,writing,reading,...,saving,closing works all like charm with one exception - there is always a ghost process left behind eating a lot of memory.
I'm quite sure i cleaned up all my used objecthandels with "CA_DiscardObjHandle" - oh and the supplied sample (activex\excel\excel2000dem) shows this behavior too.
Is this a confirmed/annoying/never go away bug, or am I just missing something?

Thanks in advance

Andreas
0 Kudos
Message 1 of 4
(3,261 Views)
Make sure you are calling the Quit method on the Application object before you discard the application object. Also, some ActiveX servers will continue running if you make them visible and the user interacts with the program (like clicking a menu or typing some keys in the program) - in such cases, the program expects the user to quit it.
0 Kudos
Message 2 of 4
(3,255 Views)
Thanks for the answer,
but it looks like (at least for me) that i do everything correct. As in the example I first call Excel_AppQuit an then clear the application objecthandel. Since no user interaction is intended, Excel is set to be invisible.

Anybody else got an idea ??
0 Kudos
Message 3 of 4
(3,255 Views)
I can only confirm that I have the same problem with Excel 2003. Excel 2000 appears to shut down OK.
--
Martin
Certified CVI Developer
0 Kudos
Message 4 of 4
(3,211 Views)