Question

ShowInsertSnippetPopup Crash

Posted 7 years ago by Avatar ibrahim
I have subclassed DynamicSyntaxLanguage and set IntelliPromptCodeSnippetsSupported property to true. I used the protected constructor to load language syntax from an XML resource file.

I am getting this NullReferenceException while calling ShowInsertSnippetPopup. Can you please help.

object.

Stacktrace: at am.a(Int32 A_0)
at aw.a(EventArgs A_0)
at ActiproSoftware.WinUICore.PopupControl.ShowPopup(Control owner, Boolean activate)
at ActiproSoftware.SyntaxEditor.IntelliPromptCodeSnippets.ShowInsertSnippetPopup(Int32 offset, String labelText, CodeSnippetFolder folder, CodeSnippetTypes type)

Here is the offending code

bool ret = this.syntaxEditor1.IntelliPrompt.CodeSnippets.ShowInsertSnippetPopup(this.syntaxEditor1.Caret.Offset, "Insert Snippet:", this._SnippetFolder, CodeSnippetTypes.Expansion);
if (ret == false)
{
InfoBox.Show("Could not activate snippet.");
return;
}

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Hi, first are you sure you have the latest maintenance release? If you are sure, then could you please put together a small project that shows this issue occurring and email it over so we can debug it? Thanks!

Actipro Software Support
Information The latest build of this product (2014.1 build 0320) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.