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


Please Help Members By Posting Answers For Below Questions

Is http stateful or stateless?

557


differences between poco, model first and data first approach?

602


What are bundling & minification features in asp.net mvc 4?

540


What is oauth in web api?

530


How do you handle variable number of segments in a route definition?

541






What is meant by bootstrap in mvc5?

645


Explain RenderBody and RenderPage in ASP.Net MVC?

602


What is Area in ASP.Net MVC?

619


Can you please explain the request flow in ASP.NET MVC framework?

628


What is work of clr?

584


How do I use partial view?

538


Define the core components of an ASP.NET MVC application?

585


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

1812


Is .net framework backwards compatible?

615


Possible ways to prevent xss attacks on mvc application?

580