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

[BUG] The ScintillaDemo exits unexpectedly whenever I attempt to input a character. #1

Open
zouhuidong opened this issue Jul 11, 2024 · 1 comment

Comments

@zouhuidong
Copy link

I'm eager to try out the ScintillaDemo, but unfortunately, it abruptly exits as soon as I try to type a character into the edit box. I've attempted to debug it using Visual Studio 2022, and the program encounters an assertion error whenever I press a key while the Scintilla Editbox is in focus. The error message appears as follows:
图片
录制_2024_07_11_20_37_16_111

I'm wondering if this issue might be related to my system's Chinese language settings. It might sound unlikely, but I haven't been able to find a more plausible explanation so far.

@DavidNash2024
Copy link
Owner

I'm unable to reproduce this problem, but I don't use Chinese.

The Scintilla dll provides a windows control when it is loaded. This control behaves much like the Window's RichEdit control. Win32++ subclasses the Scintilla control in the same way it subclasses any other control.

The problem you've reported indicates that the Scintilla control wasn't subclassed successfully. Perhaps, as you suggest, this is related to your system's Chinese language settings.

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