ShowInsertSnippetPopup Crash

SyntaxEditor for Windows Forms Forum

Posted 17 years ago by 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 17 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

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.