Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS 2013 Extension - Text Completion sample crashes

$
0
0

Hello,

I am trying to make the completion test sample work ( sample https://msdn.microsoft.com/en-us/library/vstudio/ee372314.aspx :  Walkthrough: Displaying Statement Completion )

I installed VS2013 sdk, am running vs 2013.

The sample compiles and launches, but when I open a text file and press a key, I trgger an exception:

In TestCompletionCommandHandler.TriggerCompletion(), a completion session is created:

m_session = m_provider.CompletionBroker.CreateCompletionSession....

then a callback is attached to the session's Dismissed event. When m_session.Start() is called, the session is automatically dismissed ( in a SDK function called ..ensureValid()) , which sets the session pointer  to null, and makes the code crash afterwards.

I dutifully followed the instructions to create the sample, the rest seems ok...

Does someone know what could be going wrong ? Any help will be greatly appreciated !

BTW , I disabled most of the extensions I have.



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>