t_joseph833

Desktop ArcObjects - Dispose VB.NET forms upon ArcMap close

Discussion created by t_joseph833 on Aug 6, 2010
Latest reply on Aug 6, 2010 by vini1
Hi there, the custom application (compile as DLL) has multiple forms open and close. When the forms are open and we close ArcMap ... it gives memory leak errors.

Some forums mention using IDllThreadManager? Theres a IDllThreadManager.OnShutdown method - terminate any threads that were created by the components in dll.

Also there's some that suggest it could be COM objects are not released after the VB forms are disposed - http://resources.esri.com/help/9.3/arcgisdesktop/dotnet/ESRI.ArcGIS.ADF/apiref_01/ESRI.ArcGIS.ADF.COMSupport.AOUninitialize.html

Anyone has ideas how to solve this? Any help or sample code is much appreciate. Thanks.

Outcomes