Groups | Blog | Home
all groups > dotnet component services > february 2004 >

dotnet component services : Throwing a custom exception from the constructor


Chris Bernholt
2/24/2004 5:00:13 PM
Is it possible to throw a custom exception from the constructor of a com
component? I always get an Invalid Pointer exception when I throw from the
constructor. Anywhere else, my custom exception comes through fine.

-- Chris

VR
3/4/2004 1:03:01 PM
If you are using COM+ yes, if COM no, because the construction routine is a
feature of ServicedComponents namespace and this component should be running
in COM+.


Regards,
Victor


[quoted text, click to view]

Chris Bernholt
3/10/2004 2:05:54 PM
What would I be doing incorrectly that would cause the exception to show as
an Invalid Pointer?

-- Chris Bernholt

[quoted text, click to view]

AddThis Social Bookmark Button