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