You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
I use a dockpanel suite with the ScintillaNET control in it. Everything was fine until one of the recent versions, where now if you drag the form that the control is on an exception is thrown. I don't know which version of ScintillaNET caused it because I only just noticed it. The following error is displayed:
An unhandled exception of type 'System.AccessViolationException' occurred in ScintillaNET.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
for the method:
privatestatic IntPtr DirectMessage(IntPtrsciPtr,intmsg,IntPtrwParam,IntPtrlParam){// Like Win32 SendMessage but directly to Scintillavarresult= directFunction(sciPtr, msg, wParam, lParam);returnresult;}
EDIT: now for some reason even if I try using an older version it happens. Is there a fix for this? It is absolutely necessary that I be able to drag it around in my application. Thanks.
The text was updated successfully, but these errors were encountered:
…st fix.
Added a new opt-in method SetDestroyHandleBehavior(true) to work around
issues with the control being sent WM_DESTROY messages when we don't
want them.
The fix for #85, #93, #97 and #123 has been out and vetted by users for
quite a while now and so I'm making it the default behavior. Instead of
calling SetDestroyHandleBehavior(true) to enable it, it is now enabled
by default and can be disabled by calling
SetDestroyHandleBehavior(false).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use a dockpanel suite with the ScintillaNET control in it. Everything was fine until one of the recent versions, where now if you drag the form that the control is on an exception is thrown. I don't know which version of ScintillaNET caused it because I only just noticed it. The following error is displayed:
for the method:
EDIT: now for some reason even if I try using an older version it happens. Is there a fix for this? It is absolutely necessary that I be able to drag it around in my application. Thanks.
The text was updated successfully, but these errors were encountered: