Samsung / Dexter

Dexter is a static analysis platform to find and remove defects efficiently and immediately during the coding-time.
BSD 2-Clause "Simplified" License
57 stars 33 forks source link

Exception thrown when closing Visual Studio instance #158

Closed KarolAntczak closed 7 years ago

KarolAntczak commented 7 years ago

After closing experimental instance of Visual Studio, a System.NullReferenceException is thrown:

image

Stack trace:

 at Dexter.UI.DexterCommandPackage.UnregisterSolutionManager() in D:\\Projects\\Dexter\\Dexter\\project\\dexter-vs\\Dexter\\Core\\UI\\DexterCommandPackage.cs:line 173
 at Dexter.UI.DexterCommandPackage.Dispose(Boolean disposing) in D:\\Projects\\Dexter\\Dexter\\project\\dexter-vs\\Dexter\\Core\\UI\\DexterCommandPackage.cs:line 167
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.Close()"   string
KarolAntczak commented 7 years ago

This does not seem to be a normal shutdown situation. A experimental instance for the debugging should be closed by 'Stop Dubugging' button of host VS.

Ok. When instance is closed by 'Stop Debugging' the problem does not occur. I am closing this issue then.

mdopark commented 7 years ago

@KarolAntczak I deleted my comment because I realized that the basis of what I said was not clear. I think this issue and fix are reasonable.

KarolAntczak commented 7 years ago

Ok. I reopened issue and will apply fix once again.