开发者

0xe0434f4d exception when closing .NET VSTO Excel 2003 Workbook solution

开发者 https://www.devze.com 2022-12-25 22:18 出处:网络
I\'ve written a control that runs from the Actions Pane in Excel 03. This control references a satellite .NET assembly.The control works fine but when I exit excel I get an exception.I\'ve gone throug

I've written a control that runs from the Actions Pane in Excel 03. This control references a satellite .NET assembly. The control works fine but when I exit excel I get an exception. I've gone through and made sure that I'm properly disposing all of my objects. I called the dispose method on cldatapi object I created and set it to nothing. I can't figure out how to catch this error either. I tried catching unhandled exceptions from the thisworkbook class but it didn't catch it.

EventType : clr20r3 P1 : excel.exe P2 : 11.0.5612.0 P3 : 3f39ff9d P4 : okuma.cldatapi P5 : 1.7.0.3 P6 : 494bc115 P7 : 25 P8 : f2 P9 : system.exception

When I look at the details of the error report it show the exception code as 0开发者_JAVA百科xe0434f4d

okuma.cldatapi is the satellite reference.


That's the exception code for a managed exception. While your code is running in Excel, start Visual Studio and use Tools + Attach to Process. Select excel.exe from the list and select Managed code. Debug + Exceptions, check the Thrown box for Common Language Runtime Exceptions.

The debugger will stop when the exception is thrown.

0

精彩评论

暂无评论...
验证码 换一张
取 消