Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2005

Tip: Looking for answers? Try searching our database.

Throwing exception from a .net com object

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeremy Chapman - 07 Jan 2005 00:16 GMT
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?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.