Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel.exe not terminated after spreadsheet saved

I create an Excel spreadsheet from VC++ and save it. After I am done an
EXCEL.EXE Process is visable in the Task Manager. After creating several
spreasheet I have several EXCEL.EXE around. Why are these not being
terminated?

p_excel-objBook.Save ();
p_excel-objBook.Close (COleVariant ((long) 1), VOptional, VOptional);
p_excel-objApp.SetVisible (false);
p_excel-objApp.SetUserControl (false);
//objApp = NULL; // doesn't help
//objRange.Quit ();
p_excel-objRange.ReleaseDispatch(); // doesn't help
p_excel-objRange = NULL; // doesn't help
//objSheet.Quit ();
p_excel-objSheet.ReleaseDispatch(); // doesn't help
p_excel-objSheet = NULL; // doesn't help
//objSheets.Quit ();
p_excel-objSheets.ReleaseDispatch(); // doesn't help
p_excel-objSheets = NULL; // doesn't help
//objBook.Quit ();
p_excel-objBook.ReleaseDispatch(); // doesn't help
p_excel-objBook = NULL; // doesn't help
//objBooks.Quit ();
p_excel-objBooks.ReleaseDispatch(); // doesn't help
p_excel-objBooks = NULL; // doesn't help
p_excel-objApp.Quit ();
p_excel-objApp.ReleaseDispatch(); // doesn't help
//objApp.Release (); // not defined
p_excel-objApp = NULL; // doesn't help


================================================== =
Zachary Hilbun
Software Consultant http://www.vianova.com
Via Nova OpenGL, Open Inventor 3D products, Windows 95/NT
Dallas, Texas VC++, C#, embedded systems, VxD's
1977 SSII SRX31185


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I delete an already previously saved Excel spreadsheet? Tish Excel Worksheet Functions 2 July 6th 09 12:03 AM
Can password be removed on Excel WS from terminated employee? pb Excel Discussion (Misc queries) 5 September 8th 06 08:12 PM
Can an excel spreadsheet that was saved over be restored? Chris Excel Discussion (Misc queries) 2 March 2nd 06 12:16 AM
How do I display the last saved date in an EXCEL spreadsheet? Andrea Excel Discussion (Misc queries) 1 March 10th 05 08:55 PM
Excel Process is not terminated when using C# and com Interrop Hendrix4578 Excel Programming 1 June 27th 04 07:31 AM


All times are GMT +1. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"