135 references to ReleaseComObject
mscorlib (6)
system\__comobject.cs (1)
146Marshal.ReleaseComObject(ComObj);
system\activationcontext.cs (3)
359Marshal.ReleaseComObject(o); 377Marshal.ReleaseComObject(o); 438Marshal.ReleaseComObject(_actContext);
system\Runtime\InteropServices\ComEventsSink.cs (1)
278Marshal.ReleaseComObject(_connectionPoint);
system\security\policy\applicationtrust.cs (1)
403Marshal.ReleaseComObject(m_pStore.InternalStore);
PresentationCore (5)
Core\CSharp\System\Windows\DataObject.cs (2)
846Marshal.ReleaseComObject(istream); 1905Marshal.ReleaseComObject(istream);
Core\CSharp\System\Windows\Input\InputProcessorProfiles.cs (1)
108Marshal.ReleaseComObject(_ipp.Value);
Core\CSharp\System\Windows\Input\TextServicesContext.cs (2)
144Marshal.ReleaseComObject(_dimEmpty.Value); 156Marshal.ReleaseComObject(_threadManager.Value);
PresentationFramework (22)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (2)
952Marshal.ReleaseComObject(_unmanagedStream.Value); 963Marshal.ReleaseComObject(browserCallback);
src\Framework\System\Windows\Documents\NLGSpellerInterop.cs (13)
69Marshal.ReleaseComObject(textContext); 91Marshal.ReleaseComObject(_textChunk); 136Marshal.ReleaseComObject(_textChunk); 192Marshal.ReleaseComObject(options); 198Marshal.ReleaseComObject(textContext); 314Marshal.ReleaseComObject(lexicon); 318Marshal.ReleaseComObject(textContext); 399Marshal.ReleaseComObject(lexicon); 408Marshal.ReleaseComObject(textContext); 873Marshal.ReleaseComObject(_textSegment); 970Marshal.ReleaseComObject(sentence); 1134Marshal.ReleaseComObject(lexicon); 1138Marshal.ReleaseComObject(textContext);
src\Framework\System\Windows\Documents\TextServicesHost.cs (1)
465Marshal.ReleaseComObject(_threadManager.Value);
src\Framework\System\Windows\Documents\TextStore.cs (2)
4098Marshal.ReleaseComObject(_range.Value); 4103Marshal.ReleaseComObject(_sink.Value);
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (2)
243Marshal.ReleaseComObject(HostBrowser); 249Marshal.ReleaseComObject(_hostHtmlDocumentServiceProvider.Value);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
1045Marshal.ReleaseComObject(_browserCallbackServices);
src\Framework\System\Windows\Standard\Utilities.cs (1)
249Marshal.ReleaseComObject(t);
System.Data (19)
fx\src\data\System\Data\OleDb\OleDbCommand.cs (2)
513Marshal.ReleaseComObject(ict); 672Marshal.ReleaseComObject(executeResult);
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
611Marshal.ReleaseComObject(errorInfo);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
269Marshal.ReleaseComObject(unknown);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (5)
587Marshal.ReleaseComObject(rowset); 643Marshal.ReleaseComObject(multipleResults); 725Marshal.ReleaseComObject(imultipleResults); 741Marshal.ReleaseComObject(irowset); 750Marshal.ReleaseComObject(irow);
fx\src\data\System\Data\OleDb\OleDbError.cs (4)
38Marshal.ReleaseComObject(errorInfo); 63Marshal.ReleaseComObject(errorInfo); 82Marshal.ReleaseComObject(errorInfo); 97Marshal.ReleaseComObject(sqlErrorInfo);
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (1)
195Marshal.ReleaseComObject(wrapper);
fx\src\data\System\Data\OleDb\OleDbWrapper.cs (5)
357Marshal.ReleaseComObject(unknown); 384Marshal.ReleaseComObject(unknown); 409Marshal.ReleaseComObject(unknown); 436Marshal.ReleaseComObject(unknown); 461Marshal.ReleaseComObject(unknown);
System.Drawing (1)
commonui\System\Drawing\Icon.cs (1)
887Marshal.ReleaseComObject(picture);
System.Management (19)
Instrumentation\EventSource.cs (7)
397int references = Marshal.ReleaseComObject(comObject); 436Marshal.ReleaseComObject(pInitSink); 535Marshal.ReleaseComObject(pResponseHandler); 547Marshal.ReleaseComObject(pResponseHandler); 602Marshal.ReleaseComObject(pResponseHandler); 607Marshal.ReleaseComObject(pResponseHandler); 913Marshal.ReleaseComObject(pResponseHandler);
Instrumentation\MetaDataInfo.cs (2)
114Marshal.ReleaseComObject(dispenser); 162Marshal.ReleaseComObject(importInterface);
InteropClasses\WMIInterop.cs (2)
101Marshal.ReleaseComObject(stream); 130Marshal.ReleaseComObject(stream);
managementeventwatcher.cs (2)
562Marshal.ReleaseComObject(enumWbem); 800System.Runtime.InteropServices.Marshal.ReleaseComObject(stub);
managementobject.cs (2)
1549Marshal.ReleaseComObject(wbemCallResult); 1852Marshal.ReleaseComObject(wbemCallResult);
managementobjectcollection.cs (3)
123Marshal.ReleaseComObject (enumWbem); 459Marshal.ReleaseComObject (enumWbem); 654Marshal.ReleaseComObject((IWbemClassObject_DoNotMarshal)(Marshal.GetObjectForIUnknown(cachedObjects[i])));
wmieventsink.cs (1)
251System.Runtime.InteropServices.Marshal.ReleaseComObject(stub);
System.ServiceModel (26)
System\ServiceModel\Administration\WbemProvider.cs (8)
156Marshal.ReleaseComObject(wbemSink); 165Marshal.ReleaseComObject(comObject); 256Marshal.ReleaseComObject(wbemSink); 377Marshal.ReleaseComObject(wbemSink); 439Marshal.ReleaseComObject(wbemSink); 501Marshal.ReleaseComObject(wbemSink); 562Marshal.ReleaseComObject(wbemSink); 654Marshal.ReleaseComObject(wbemSink);
System\ServiceModel\Channels\MsmqQueue.cs (4)
346Marshal.ReleaseComObject(dtcTransaction); 508Marshal.ReleaseComObject(dtcTransaction); 562Marshal.ReleaseComObject(dtcTransaction); 668Marshal.ReleaseComObject(dtcTransaction);
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
81Marshal.ReleaseComObject(serviceConfig);
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (1)
143Marshal.ReleaseComObject(instance);
System\ServiceModel\ComIntegration\ComPlusSynchronizationContext.cs (1)
50while (Marshal.ReleaseComObject(this.activity) > 0);
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (3)
114Marshal.ReleaseComObject(cf); 140Marshal.ReleaseComObject(proxyProvider); 160Marshal.ReleaseComObject(proxyProvider);
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (4)
89Marshal.ReleaseComObject(stream); 114Marshal.ReleaseComObject(stream); 186Marshal.ReleaseComObject(persistableObject); 239Marshal.ReleaseComObject(persistableObject);
System\ServiceModel\ComIntegration\TransactionProxy.cs (3)
360Marshal.ReleaseComObject(this.notification); 370Marshal.ReleaseComObject(this.notification); 378Marshal.ReleaseComObject(this.notification);
System\ServiceModel\ComIntegration\TypeCacheManager.cs (1)
230Marshal.ReleaseComObject((object)typeLibrary);
System.Web (16)
Configuration\IISVersionHelper.cs (2)
67Marshal.ReleaseComObject(_version); 71Marshal.ReleaseComObject(_versionManager);
Configuration\RemoteWebConfigurationHost.cs (3)
93while (Marshal.ReleaseComObject(remoteSrv) > 0) { 226while (Marshal.ReleaseComObject(remoteSrv) > 0) { } // release the COM object 366while (Marshal.ReleaseComObject(remoteSrv) > 0) { } // release the COM object
Configuration\RemoteWebConfigurationHostStream.cs (2)
74while (Marshal.ReleaseComObject(remoteSrv) > 0) 216while (Marshal.ReleaseComObject(remoteSrv) > 0)
Hosting\ProcessHost.cs (1)
809refCount = Marshal.ReleaseComObject( _functions );
Util\AspCompat.cs (1)
439Marshal.ReleaseComObject(component);
Util\SmtpMail.cs (7)
239Marshal.ReleaseComObject(newMail); 274Marshal.ReleaseComObject(fields); 340Marshal.ReleaseComObject(body); 377Marshal.ReleaseComObject(bodyPart); 398Marshal.ReleaseComObject(fields); 400Marshal.ReleaseComObject(config); 417Marshal.ReleaseComObject(m);
System.Web.Services (1)
System\Web\Services\Protocols\RemoteDebugger.cs (1)
141Marshal.ReleaseComObject(connection);
System.Windows.Forms (10)
winforms\Managed\System\WinForms\Application.cs (2)
2523Marshal.ReleaseComObject(msgFilterObj); 3732Marshal.ReleaseComObject(msocm);
winforms\Managed\System\WinForms\AxHost.cs (4)
3738Marshal.ReleaseComObject(connectionPoint); 3755Marshal.ReleaseComObject(connectionPoint); 3793Marshal.ReleaseComObject(connectionPoint); 6016Marshal.ReleaseComObject(siteUIActive.iOleInPlaceActiveObjectExternal);
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
273Marshal.ReleaseComObject(_original);
winforms\Managed\System\WinForms\Cursor.cs (1)
654Marshal.ReleaseComObject(picture);
winforms\Managed\System\WinForms\StringSource.cs (1)
89Marshal.ReleaseComObject(autoCompleteObject2);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
7521return Marshal.ReleaseComObject(objToRelease);
System.Workflow.ComponentModel (5)
AuthoringOM\Compiler\PDBReader.cs (5)
36Marshal.ReleaseComObject(metaDataImport); 39Marshal.ReleaseComObject(dispenser); 58Marshal.ReleaseComObject(this.symReader); 128Marshal.ReleaseComObject(documents[i]); 131Marshal.ReleaseComObject(symMethod);
System.Workflow.Runtime (1)
DebugEngine\ProgramPublisher.cs (1)
122Marshal.ReleaseComObject(this.publisher);
WindowsBase (4)
Base\MS\Internal\Security\AttachmentService.cs (1)
130Marshal.ReleaseComObject(_native);
Base\MS\Internal\Utilities.cs (1)
78Marshal.ReleaseComObject(t);
Base\System\Windows\Threading\Dispatcher.cs (1)
2410if (messagePump != null) Marshal.ReleaseComObject(messagePump);
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (1)
1452refCount = Marshal.ReleaseComObject(o);