mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:09:16 +02:00
* Classes unit functions related to exceptions and stacktraces updated to use CodePointer
git-svn-id: trunk@25516 -
This commit is contained in:
parent
5e09b7a56f
commit
fccbbd92b2
@ -1692,7 +1692,7 @@ type
|
|||||||
NameCount, LocaleID: Integer; DispIDs: Pointer): HResult; stdcall;
|
NameCount, LocaleID: Integer; DispIDs: Pointer): HResult; stdcall;
|
||||||
function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
|
function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
|
||||||
Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult; stdcall;
|
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;
|
procedure FreeOnRelease;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1809,7 +1809,7 @@ type
|
|||||||
procedure InsertComponent(AComponent: TComponent);
|
procedure InsertComponent(AComponent: TComponent);
|
||||||
procedure RemoveComponent(AComponent: TComponent);
|
procedure RemoveComponent(AComponent: TComponent);
|
||||||
function SafeCallException(ExceptObject: TObject;
|
function SafeCallException(ExceptObject: TObject;
|
||||||
ExceptAddr: Pointer): HResult; override;
|
ExceptAddr: CodePointer): HResult; override;
|
||||||
procedure SetSubComponent(ASubComponent: Boolean);
|
procedure SetSubComponent(ASubComponent: Boolean);
|
||||||
function UpdateAction(Action: TBasicAction): Boolean; dynamic;
|
function UpdateAction(Action: TBasicAction): Boolean; dynamic;
|
||||||
property ComObject: IUnknown read GetComObject;
|
property ComObject: IUnknown read GetComObject;
|
||||||
|
@ -622,7 +622,7 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
Function TComponent.SafeCallException(ExceptObject: TObject;
|
Function TComponent.SafeCallException(ExceptObject: TObject;
|
||||||
ExceptAddr: Pointer): HResult;
|
ExceptAddr: CodePointer): HResult;
|
||||||
begin
|
begin
|
||||||
if Assigned(VCLComObject) then
|
if Assigned(VCLComObject) then
|
||||||
Result := IVCLComObject(VCLComObject).SafeCallException(ExceptObject, ExceptAddr)
|
Result := IVCLComObject(VCLComObject).SafeCallException(ExceptObject, ExceptAddr)
|
||||||
|
Loading…
Reference in New Issue
Block a user