System.NullReferenceException was unhandled

SyntaxEditor for WPF Forum

Posted 12 years ago by Lieven Cardoen
Version: 12.1.0562
Avatar

When double clicking in the SyntaxEditor, my application crashes. I have no idea whether it is a bug in SyntaxEditor or in my application. This is the stacktrace:

System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.
Source=ActiproSoftware.SyntaxEditor.Net20
StackTrace:
at ActiproSoftware.SyntaxEditor.Document.GetWordTextRange(Int32 offset)
at ActiproSoftware.SyntaxEditor.EditorView.OnMouseDown(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIElement.ActiproSoftware.WinUICore.IInputElement.RaiseMouseDownEvent(MouseEventArgs e)
at ActiproSoftware.WinUICore.UIControl.OnMouseDown(MouseEventArgs e)
at ActiproSoftware.SyntaxEditor.SyntaxEditor.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
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(IntPtr 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.Application.Run(Form mainForm)
at MisplEditorTest.Program.Main() in C:\Workspace\OE_11\Glims_9_0\Csharp\MISPLEditor\MisplEditorTest\MisplEditorTest\Program.cs:line 19
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

 

I don't know if this is the right place for posting this question as I'm using version 4.0.0285.

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, please try it with the latest v4.0 maintenance release, which you can get from your organization account.  If that doesn't help then please e-mail our support address with a new simple sample project that shows it happening so we can debug the problem.  Rename the .zip file extension so it doesn't get spam blocked.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.