LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Excel, VB.Net and shutdown

Hi Jay,

Has anyone seen this before? Is there anything special that needs to be
done when invoking VB.Net objects from Excel macros to allow a clean exit?


Sorry, but I've no idea. The only thing I can think of is that the .NET
objects have yet to be garbage-collected when Excel is closing down, so you
might be triggering an event in one of your classes that's calling into
Excel after it's shut down VBA. To test that, you could try adding an
explicit Dispose method in your .Net objects, which is called by Excel prior
to setting them to nothing. In the Dispose method, you'd explicitly turn off
the timer/event raising.

If that doesn't help, the people that know about Excel/.Net integration hang
out in the Public.vsnet.vstools.office newsgroup, so you might get a more
informed response if you ask your question there.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


 
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
Customized buttons cause Excel shutdown in Vista? RAL/PSCN[_2_] Excel Discussion (Misc queries) 0 April 15th 09 10:11 PM
excel.exe has generated errors and will be shutdown by windows jcook Excel Discussion (Misc queries) 0 April 22nd 08 02:20 PM
excel shutdown MRR Excel Discussion (Misc queries) 0 July 20th 06 01:58 PM
Custom Addin, Excel Shutdown Problem RodT Excel Programming 4 April 15th 04 06:14 AM
Problems On Shutdown with Excel/VBA App Tim Sheppard Excel Programming 3 September 4th 03 08:19 AM


All times are GMT +1. The time now is 12:16 PM.

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

About Us

"It's about Microsoft Excel"