Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki example for "Hooking object method" throws 'Invalid TrampoLine Pointer' for me #73

Open
JonRobertson opened this issue Jul 11, 2024 · 0 comments

Comments

@JonRobertson
Copy link

Using Delphi 11.3 and hooking TCustomForms.MakeFullyVisible, passing the address of TrampoLine pointer throws 'Invalid TrampoLinePointer' for me:

var
TrampolineMakeFullVisible: Pointer;
//
TrampolineMakeFullVisible := InterceptCreate(@TCustomForm.MakeFullyVisible, @InterceptMakeFullyVisible);
//
InterceptRemove(@TrampolineMakeFullVisible);

Passing just the pointer works without throwing an exception:

InterceptRemove(TrampolineMakeFullVisible);

Am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant