Posted 17 years ago
by Scott Waletzko
I am receiving a System.NullReferenceException that crashes the form that my Syntax Editor is on. It appears to be related to mouse movement over the control - if I do not use the mouse it never occurs. I am not handling any events on the control at all, and am using the following code to set up the control:
Following is the exception information:
Clearly it's something that I cannot fix or handle myself - I am not handling any events for the control and the error is occuring within the control's assembly. Please help, I need to start using this control in a production application and cannot deploy it with this bug!
Thanks in advance,
Scott
[Modified at 10/10/2007 12:47 PM]
this.synMain.Document.Language
= new ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage();
this.synMain.Document.AutoCaseCorrectEnabled = false;
Quote:
Message:
Object reference not set to an instance of an object.
Source:
"ActiproSoftware.SyntaxEditor.Addons.DotNet.Net20"
Target Site:
{Void a(ActiproSoftware.SyntaxEditor.Document, ActiproSoftware.SyntaxEditor.Addons.DotNet.Ast.CompilationUnit, ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetProjectResolver)}
Stack Trace:
at ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpContext.a(Document A_0, CompilationUnit A_1, DotNetProjectResolver A_2)
at ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpContext.GetContextAtOffset(Document document, Int32 offset, CompilationUnit compilationUnit, DotNetProjectResolver projectResolver)
at ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage.GetContext(SyntaxEditor syntaxEditor, Int32 offset, Boolean beforeOffset, Boolean forParameterInfo)
at ActiproSoftware.SyntaxEditor.Addons.DotNet.Dom.DotNetSyntaxLanguage.a(DotNetLanguage A_0, SyntaxEditor A_1, Int32& A_2)
at ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage.OnSyntaxEditorViewMouseHover(SyntaxEditor syntaxEditor, EditorViewMouseEventArgs e)
at ActiproSoftware.SyntaxEditor.SyntaxLanguage.a(SyntaxEditor A_0, EditorViewMouseEventArgs A_1)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.b(EditorViewMouseEventArgs A_0)
at ActiproSoftware.SyntaxEditor.EditorView.OnMouseHover(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseHoverEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnMouseHover(EventArgs e)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at [NAMESPACE REMOVED].CodeEditor.EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) in [PATH REMOVED]\CodeEditor.cs:line 29
Clearly it's something that I cannot fix or handle myself - I am not handling any events for the control and the error is occuring within the control's assembly. Please help, I need to start using this control in a production application and cannot deploy it with this bug!
Thanks in advance,
Scott
[Modified at 10/10/2007 12:47 PM]