Crashes on first display (ArgumentOutOfRangeException)

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 12 years ago by Jake Pearson - Software Developer, Alion Science and Technology
Avatar
Hi,
When my synaxeditor first displays I get an ArgumentOutOfRangeException. Here is the stack trace:
>    ActiproSoftware.Text.Wpf.dll!#PZc.#SZc.Offset.set(int value) + 0x6f bytes    
     ActiproSoftware.SyntaxEditor.Addons.DotNet.Wpf.dll!ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.#U1b(ActiproSoftware.Text.ITextBufferReader reader, int? startOffset, int? endOffset, ActiproSoftware.Windows.Controls.SyntaxEditor.Outlining.IOutliningNodeDefinition definition) + 0x82 bytes    
     ActiproSoftware.SyntaxEditor.Addons.DotNet.Wpf.dll!ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.#wU(ActiproSoftware.Text.ITextBufferReader reader, ActiproSoftware.Text.Languages.DotNet.Ast.Implementation.NamespaceDeclaration astNode) + 0x91 bytes    
     ActiproSoftware.SyntaxEditor.Addons.DotNet.Wpf.dll!ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesRecursive(ActiproSoftware.Text.ITextBufferReader reader, ActiproSoftware.Text.Parsing.IAstNode astNode) + 0x3d9 bytes    
     ActiproSoftware.SyntaxEditor.Addons.DotNet.Wpf.dll!ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliningSource.AddNodesFromParseData(ActiproSoftware.Text.Languages.DotNet.IDotNetParseData parseData) + 0x13e bytes    
     ActiproSoftware.SyntaxEditor.Addons.DotNet.Wpf.dll!ActiproSoftware.Text.Languages.CSharp.Implementation.CSharpOutliner.GetOutliningSource(ActiproSoftware.Text.ITextSnapshot snapshot) + 0xbb bytes    
     ActiproSoftware.SyntaxEditor.Wpf.dll!#b3b.#a3b.GetOutliningSource(ref ActiproSoftware.Windows.Controls.SyntaxEditor.Outlining.AutomaticOutliningUpdateTrigger? updateTrigger) + 0x18c bytes    
     ActiproSoftware.SyntaxEditor.Wpf.dll!#b3b.#a3b.#0gc(ActiproSoftware.Windows.Controls.SyntaxEditor.Outlining.AutomaticOutliningUpdateTrigger? updateTrigger, ActiproSoftware.Text.TextSnapshotRange targetSnapshotRange, bool autoCollapse) + 0x76 bytes    
     ActiproSoftware.SyntaxEditor.Wpf.dll!#b3b.#a3b.#dgc(object sender, System.EventArgs e) + 0xd4 bytes    
     ActiproSoftware.Text.Wpf.dll!ActiproSoftware.Text.Implementation.CodeDocument.OnParseDataChanged(ActiproSoftware.Text.Parsing.ParseDataPropertyChangedEventArgs e) + 0x103 bytes    
     ActiproSoftware.Text.Wpf.dll!ActiproSoftware.Text.Implementation.CodeDocument.ParseData.set(ActiproSoftware.Text.Parsing.IParseData value) + 0x8a bytes    
     ActiproSoftware.Text.Wpf.dll!ActiproSoftware.Text.Implementation.CodeDocument.NotifyParseComplete(ActiproSoftware.Text.Parsing.IParseRequest request, ActiproSoftware.Text.Parsing.IParseData result) + 0x5d bytes    
     ActiproSoftware.Text.Wpf.dll!ActiproSoftware.Text.Implementation.CodeDocument.#bGc(ActiproSoftware.Text.Parsing.IParseRequest request, ActiproSoftware.Text.Parsing.IParseData result) + 0x44 bytes    
     ActiproSoftware.Text.Wpf.dll!ActiproSoftware.Text.Parsing.Implementation.ThreadedParseRequestDispatcher.#g.#0Yc.#nXc(ActiproSoftware.Text.Parsing.IParseRequest request) + 0xbd bytes    
     ActiproSoftware.Text.Wpf.dll!ActiproSoftware.Text.Parsing.Implementation.ThreadedParseRequestDispatcher.#g.#0Yc.#56c() + 0x400 bytes    
     mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x63 bytes    
     mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool ignoreSyncCtx) + 0xb0 bytes    
     mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x2c bytes    
     mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes    
     [Native to Managed Transition]    
Please let me know if you need more information.

thanks,
Jake

[Modified at 02/17/2012 10:19 AM]

Comments (3)

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

Yes for anything like this, we would need to debug it to see where things are going wrong. Please always first make sure you have the latest build. If that doesn't fix the problem, then make a new simple sample project that shows the issue. Then email it to our support address and rename the .zip file extension so it doesn't get spam blocked. Thanks!


Actipro Software Support

Posted 12 years ago by Jake Pearson - Software Developer, Alion Science and Technology
Avatar
Thanks, I just sent you a sample program.
Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Thanks for the sample project Jake, it's fixed now for the next maintenance release.

[Modified 12 years ago]


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.