If you are using components in your application, how can you
handle exceptions raised in a component ?
Answer Posted / parag
A method call in a COM server that has generated an
exception creates an instance of the COM error object using
the ICreateErrorInfo interface. The server then populates
the error object with information about the source and cause
of an error. When program control returns to the COM client,
the client can retrieve the error object, find the
information, and use this information determine how to
handle the error.
Unlike exceptions thrown within a program, COM exceptions do
not stop the flow of execution; instead, a COM error object
is created within the current thread. The error object
supports the IErrorInfo interface, which has methods
allowing the client to get the name of the class and
interface that created the error and a description of the error.
COM defines another interface, ISupportErrorInfo, which is
used to indicate that a class may create a COM error object.
Many ArcObjects classes implement the ISupportErrorInfo
interface.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
Explain what is asp.net mvc?
what is csdl?
what do you mean by navigation property?
How does .net framework works?
What is an asynchronous controller in asp.net mvc?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
Do I need microsoft .net framework?
What is object service? : Entity framework
What is a model in android?
What is the advantage of using asp.net routing?
Can any particular component of .net framework 3.0 be removed?
mention what are the various methods provided by the dataset object to generate xml?
What is .net framwork?
Explain entity lifecycle? : Entity framework