Closed GoogleCodeExporter closed 9 years ago
Hi,
This is not a bug ..
You are hooking a function that is declared in a class (TApplication).
When hooking such as function you need to include the object variable(Self)
that represent the object as a first parameter of your hooked and trampo
functions.
type
TUnhookSynchronizeWakeupProc = procedure(Self:TObject);
var
TrampoUnhookSynchronizeWakeup: TUnhookSynchronizeWakeupProc = nil;
procedure MyUnhookSynchronizeWakeup(Self:TObject);
begin
TrampoUnhookSynchronizeWakeup(Self);
ShowMessage('done!');
end;
Please take a look at Trunk.Demo.HookObject projects.
Original comment by ismspi...@gmail.com
on 6 Nov 2014 at 10:55
Original comment by ismspi...@gmail.com
on 6 Nov 2014 at 10:58
Original issue reported on code.google.com by
jac....@gmail.com
on 6 Nov 2014 at 4:45