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

TSynBaseCompletionProposalForm.CreateWnd Bug #194

Open
ErwinDenissen opened this issue Sep 14, 2022 · 1 comment
Open

TSynBaseCompletionProposalForm.CreateWnd Bug #194

ErwinDenissen opened this issue Sep 14, 2022 · 1 comment

Comments

@ErwinDenissen
Copy link

SetWindowLong in TSynBaseCompletionProposalForm.CreateWnd should use IntPtr, otherwise it can cause an AV in x64.
SetWindowLong(Handle, GWL_WNDPROC, IntPtr(GetWindowLong(Handle, GWL_WNDPROC)));

Not sure if that code is even still required and/or correct.

On a side note Integer is also used in a couple of other places (in SynEdit.pas), but that is inside {$IFNDEF UNICODE}.

@jBitHub
Copy link

jBitHub commented Oct 6, 2022

SetWindowLong is not called under 64bit. However, the component still crashes at startup.
EAccessViolation with message 'Access violation at address FFFFFFF2F80F84. Execution of address FFFFFFF2F80F84'.

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

2 participants