LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Excel Automation Issue

We are having the following odd issue in our C# application that
automates Excel. We wrote a layer of code which creates the Excel
objects, handles them and then calls Marshal.ReleaseComObject on them
and setts them to null. We were very meticuluos to go through and
ensure nothing is being referenced without it being released. Here's
what's happening. The first iteration through, Excel opens exceutes
fine but hangs around after the call to GC.Collect. Because Excel isn't
going away on it's own, I kill Excel from the task manager here. On all
subsequent interations, Excel executes properly and dissapears after
each time on it's own. Does anyone have suggestions as to what's going
on? Why is Excel hanging around after the first iteration?
thanks!

 
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
automation - import into excel Tracy[_4_] New Users to Excel 2 March 26th 10 02:18 PM
Using Excel with automation Thomas Bodell Excel Discussion (Misc queries) 5 May 8th 09 03:09 PM
Automation issue Dimmer Excel Discussion (Misc queries) 1 June 30th 05 11:38 AM
Vb.net - excel 97 automation michael Excel Programming 0 August 14th 03 06:16 PM
inexperienced header entry automation resizing/scaling issue(s) D Franseen Excel Programming 0 July 9th 03 06:08 AM


All times are GMT +1. The time now is 05:48 AM.

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"