Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Scintilla.NET/Scintilla.cs
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,9 @@ public IntPtr DirectMessage(int msg, IntPtr wParam)
[EditorBrowsable(EditorBrowsableState.Advanced)]
public virtual IntPtr DirectMessage(int msg, IntPtr wParam, IntPtr lParam)
{
if (IsDisposed)
throw new ObjectDisposedException(!string.IsNullOrEmpty(Name) ? Name : nameof(Scintilla));

// If the control handle, ptr, direct function, etc... hasn't been created yet, it will be now.
return DirectMessage(SciPointer, msg, wParam, lParam);
}
Expand Down