ShowInsertSnippetPopup Crash

Posted 11 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.


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.");

Comments (1)

Posted 11 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 (2016.1 build 0330) was released 2 years ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.