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

Attempt to access DTE.ActiveDocument throws exception

$
0
0

Hi All,

During an attempt to use the automation object (DTE) property ActiveDocument an AccessViolation exception is being thrown.

Usage :

var dte = (DTE)iBProjectPackage.GetGlobalService(typeof(DTE));

 var doc = dte.ActiveDocument;

How can i trace the source of the problem ? What can cause this ? 

Any help will be appreciated :)

Thanks



Viewing all articles
Browse latest Browse all 4410

Trending Articles