* Classes unit functions related to exceptions and stacktraces updated to use CodePointer

git-svn-id: trunk@25516 -
This commit is contained in:
nickysn 2013-09-17 22:13:31 +00:00
parent 5e09b7a56f
commit fccbbd92b2
2 changed files with 3 additions and 3 deletions

View File

@ -1692,7 +1692,7 @@ type
NameCount, LocaleID: Integer; DispIDs: Pointer): HResult; stdcall;
function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult; stdcall;
function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult;
function SafeCallException(ExceptObject: TObject; ExceptAddr: CodePointer): HResult;
procedure FreeOnRelease;
end;
@ -1809,7 +1809,7 @@ type
procedure InsertComponent(AComponent: TComponent);
procedure RemoveComponent(AComponent: TComponent);
function SafeCallException(ExceptObject: TObject;
ExceptAddr: Pointer): HResult; override;
ExceptAddr: CodePointer): HResult; override;
procedure SetSubComponent(ASubComponent: Boolean);
function UpdateAction(Action: TBasicAction): Boolean; dynamic;
property ComObject: IUnknown read GetComObject;

View File

@ -622,7 +622,7 @@ end;
Function TComponent.SafeCallException(ExceptObject: TObject;
ExceptAddr: Pointer): HResult;
ExceptAddr: CodePointer): HResult;
begin
if Assigned(VCLComObject) then
Result := IVCLComObject(VCLComObject).SafeCallException(ExceptObject, ExceptAddr)