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
what is complex type?
What is object service? : Entity framework
Is razor a server side?
How we can register the Area in ASP.Net MVC?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
How does work clr?
What is difference between viewbag and viewdata and tempdata?
What is viewstart page in mvc?
What is the difference between viewbag and viewdata in asp.net mvc?
Can you explain renderbody and renderpage in mvc?
What are Scaffold templates in ASP.Net MVC?
what is use of entitydatasource control?
what is msl?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources