Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap COM instantiation
Message
From
31/07/2003 17:07:54
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00815490
Message ID:
00815637
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
Brian,

OK, well, if you can declare it outside of the try/catch, no problem:
XceedZipLib.XceedZipClass loZipper;
try
{
  loZipper = new XceedZipLib.XceedZipClass();
}
etc....
but if just the declaration is blowing up (if the COM object doesn't exist), then I think tha you have no choice but to put it all in the try/catch (or call another method from inside the try/catch that does everything that you need to have done).

~~Bonnie




>Brian,
>>
>>Yeah, duh, I wasn't thinking. What I should have suggested was to put *everything* in the try

>
>Bonnie,
>
>I *could* put everything in the try, but I don't want to :)
>
>
>- Brian
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform