RAD Studio VCL Reference
TObject::SafeCallException Method

Handles exceptions in methods declared using the safecall calling convention.

function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult; virtual;
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!