I have written a class in c# and the assembly is registered as a com object.
When I use this assembly fron a .net windows app it works great, and if the
assembly throws an exception it is caught by the .net winform app. When I
use this assembly from Excel, Excel will report an exception "Exception of
type System.OutofMemoryException was thrown." when my assembly throws an
exception, but the original exception is a custom class derived from the
Exception class. Why would I get different behaviour in excel vs my app?
Howard Swope - 07 Jan 2005 21:32 GMT
Check out:
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhresultsexceptions.asp
?frame=true
> I have written a class in c# and the assembly is registered as a com object.
> When I use this assembly fron a .net windows app it works great, and if the
[quoted text clipped - 3 lines]
> exception, but the original exception is a custom class derived from the
> Exception class. Why would I get different behaviour in excel vs my app?