105 references to ReleaseComObject
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
121Marshal.ReleaseComObject(_rcwForCurrentCtx);
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\RCWForCurrentContext.cs (1)
121Marshal.ReleaseComObject(_rcwForCurrentCtx);
Microsoft.CodeAnalysis.Features (1)
Debugging\DebugInformationReaderProvider.cs (1)
98Marshal.ReleaseComObject(symReader);
Microsoft.DotNet.SignCheckLibrary (5)
Interop\StructuredStorage.cs (5)
72Marshal.ReleaseComObject(rootStorageEnum); 77Marshal.ReleaseComObject(rootStorage); 96Marshal.ReleaseComObject(rootStorage); 127Marshal.ReleaseComObject(fileStg); 130Marshal.ReleaseComObject(stg);
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\InvisibleEditor.cs (1)
180Marshal.ReleaseComObject(_invisibleEditor);
Snippets\SnippetExpansionClient.cs (1)
364Marshal.ReleaseComObject(xmlNode);
PresentationCore (27)
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
247Marshal.ReleaseComObject(_inputPane);
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
167Marshal.ReleaseComObject(_uisettings);
System\Windows\Input\DefaultTextStore.cs (1)
283Marshal.ReleaseComObject(compartment);
System\Windows\Input\DefaultTextStoreTextComposition.cs (4)
65Marshal.ReleaseComObject(composition); 68Marshal.ReleaseComObject(context); 88Marshal.ReleaseComObject(doc); 107Marshal.ReleaseComObject(enumCompositionView);
System\Windows\Input\InputMethod.cs (5)
1510Marshal.ReleaseComObject(fnConfigure); 1513Marshal.ReleaseComObject(funcPrv); 1563Marshal.ReleaseComObject(fnConfigure); 1566Marshal.ReleaseComObject(funcPrv); 1674Marshal.ReleaseComObject(enumIpp);
System\Windows\Input\InputProcessorProfiles.cs (1)
58Marshal.ReleaseComObject(_ipp);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
1120Marshal.ReleaseComObject(penContext._pimcContext);
System\Windows\Input\Stylus\Wisp\WispTabletDevice.cs (1)
342Marshal.ReleaseComObject(tablet);
System\Windows\Input\TextServicesCompartment.cs (6)
98Marshal.ReleaseComObject(compartment); 99Marshal.ReleaseComObject(source); 117Marshal.ReleaseComObject(compartment); 118Marshal.ReleaseComObject(source); 198Marshal.ReleaseComObject(compartment); 210Marshal.ReleaseComObject(compartment);
System\Windows\Input\TextServicesContext.cs (6)
81Marshal.ReleaseComObject(_defaultTextStore.DocumentManager); 120Marshal.ReleaseComObject(_dimEmpty); 129Marshal.ReleaseComObject(_threadManager); 218Marshal.ReleaseComObject(context); 359Marshal.ReleaseComObject(comp); 391Marshal.ReleaseComObject(comp);
PresentationFramework (63)
System\Windows\Documents\FrameworkTextComposition.cs (4)
163Marshal.ReleaseComObject(composition); 166Marshal.ReleaseComObject(context); 177Marshal.ReleaseComObject(context); 325Marshal.ReleaseComObject(enumCompositionView);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
76Marshal.ReleaseComObject(optionDescription);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
615Marshal.ReleaseComObject(_speller.Value);
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
104Marshal.ReleaseComObject(error);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
122Marshal.ReleaseComObject(Singleton.ComFactory);
System\Windows\Documents\MsSpellCheckLib\Utils\Extensions.cs (4)
59Marshal.ReleaseComObject(enumString); 106Marshal.ReleaseComObject(spellingErrors); 164Marshal.ReleaseComObject(iSpellingError); 176Marshal.ReleaseComObject(spellingErrors);
System\Windows\Documents\NLGSpellerInterop.cs (15)
58Marshal.ReleaseComObject(textContext); 80Marshal.ReleaseComObject(_textChunk); 120Marshal.ReleaseComObject(_textChunk); 167Marshal.ReleaseComObject(options); 173Marshal.ReleaseComObject(textContext); 253Marshal.ReleaseComObject(sentenceEnumerator); 281Marshal.ReleaseComObject(lexicon); 285Marshal.ReleaseComObject(textContext); 340Marshal.ReleaseComObject(lexicon); 348Marshal.ReleaseComObject(textContext); 609Marshal.ReleaseComObject(variantEnumerator); 759Marshal.ReleaseComObject(_textSegment); 848Marshal.ReleaseComObject(sentence); 988Marshal.ReleaseComObject(lexicon); 992Marshal.ReleaseComObject(textContext);
System\windows\Documents\TextEditor.cs (1)
1546Marshal.ReleaseComObject(threadManager);
System\windows\Documents\TextEditorContextMenu.cs (2)
587Marshal.ReleaseComObject(candString); 653Marshal.ReleaseComObject(CandidateList);
System\Windows\Documents\TextServicesDisplayAttributePropertyRanges.cs (6)
160Marshal.ReleaseComObject(attributeRanges[0]); 179Marshal.ReleaseComObject(attributeRangeEnumerator); 182Marshal.ReleaseComObject(displayAttributeProperty); 232Marshal.ReleaseComObject(catmgr); 256Marshal.ReleaseComObject(dai); 264Marshal.ReleaseComObject(dam);
System\Windows\Documents\TextServicesHost.cs (6)
142Marshal.ReleaseComObject(comp); 171Marshal.ReleaseComObject(comp); 240Marshal.ReleaseComObject(context); 244Marshal.ReleaseComObject(textstore.DocumentManager); 339Marshal.ReleaseComObject(context); 377Marshal.ReleaseComObject(_threadManager);
System\Windows\Documents\TextServicesPropertyRanges.cs (5)
88Marshal.ReleaseComObject(outRangesProp[0]); 90Marshal.ReleaseComObject(rangesProp); 93Marshal.ReleaseComObject(outRanges[0]); 95Marshal.ReleaseComObject(ranges); 97Marshal.ReleaseComObject(prop);
System\Windows\Documents\TextStore.cs (15)
90Marshal.ReleaseComObject(_sink); 109Marshal.ReleaseComObject(_sink); 1449Marshal.ReleaseComObject(editRecord); 1778Marshal.ReleaseComObject(funcReconv); 1783Marshal.ReleaseComObject(range); 1801Marshal.ReleaseComObject(funcReconv); 1806Marshal.ReleaseComObject(range); 1856Marshal.ReleaseComObject(functionPrv); 1860Marshal.ReleaseComObject(funcReconv); 1864Marshal.ReleaseComObject(range); 1865Marshal.ReleaseComObject(context); 2922Marshal.ReleaseComObject(range); 2923Marshal.ReleaseComObject(view); 4250Marshal.ReleaseComObject(_range); 4256Marshal.ReleaseComObject(_sink);
System\Windows\Standard\Utilities.cs (1)
214Marshal.ReleaseComObject(t);
ReachFramework (2)
PrintConfig\PTProvider.cs (2)
601Marshal.ReleaseComObject(result); 804Marshal.ReleaseComObject(stream);
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3438Marshal.ReleaseComObject(_instance);
System.Windows.Forms.Interop.Tests (2)
PropertyGridTests.cs (2)
43Marshal.ReleaseComObject(target); 74Marshal.ReleaseComObject(target);