RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLocalAppServer.SafeCallException Method

Handles exceptions in methods declared using the safecall calling convention.

Pascal
function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult; override;
C++
virtual __fastcall HRESULT SafeCallException(TObject * ExceptObject, void * 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::TObject, System::TObject::SafeCallException simply returns E_UNEXPECTED. This is the appropriate response for classes that do no support interfaces 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!