1

Resolved

LoadDefaultInterpreter may fail with InvalidComObjectException

description

Assertion details:
System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.
   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
   at Microsoft.VisualStudio.Shell.Interop.IVsSettingsManager.GetReadOnlySettingsStore(UInt32 scope, IVsSettingsStore& store)
   at Microsoft.VisualStudio.Shell.Settings.ShellSettingsManager.GetReadOnlySettingsStore(SettingsScope scope)
   at Microsoft.PythonTools.Interpreter.InterpreterOptionsService.LoadDefaultInterpreter(Boolean suppressChangeEvent) in d:\PTVS\Main\Python\Product\VSInterpreters\InterpreterOptionsService.cs:line 365
   at Microsoft.PythonTools.Interpreter.InterpreterOptionsService.DefaultInterpreterRegistry_Changed(Object sender, RegistryChangedEventArgs e) in d:\PTVS\Main\Python\Product\VSInterpreters\InterpreterOptionsService.cs:line 342

   at Microsoft.PythonTools.Interpreter.InterpreterOptionsService.DefaultInterpreterRegistry_Changed(Object sender, RegistryChangedEventArgs e) in d:\PTVS\Main\Python\Product\VSInterpreters\InterpreterOptionsService.cs:line 354
   at Microsoft.PythonTools.RegistryWatcher.WatchEntry.Invoke(RegistryWatcher sender) in d:\PTVS\Main\Python\Product\VSInterpreters\RegistryWatcher.cs:line 352
   at Microsoft.PythonTools.RegistryWatcher.Worker(Object param) in d:\PTVS\Main\Python\Product\VSInterpreters\RegistryWatcher.cs:line 271
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart(Object obj)

comments