RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::SafeCallException Method

Handles exceptions in methods declared using the safecall calling convention.

Pascal
function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult; virtual;
C++
virtual HResult SafeCallException(TObject ExceptObject, Pointer ExceptAddr);

System::TObject::SafeCallException handles exceptions in methods that use the safecall calling convention. Some classes that implement interfaces override this method to handle errors that might occur. 

As implemented in System::TObject, System::TObject::SafeCallException simply returns E_UNEXPECTED. This is the appropriate response for classes that do no support interfaces 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!