protected override void Dispose(bool disposing)
{
try
{
IStyleGallery styleGallery = new StyleGalleryClass() as IStyleGallery;
IntPtr pointer = Marshal.GetComInterfaceForObject(styleGallery, typeof(IStyleGallery));
Common.GIS.GISUtil.releaseCOMObjects(styleGallery);
//Close the ARCGIS map license
ESRI.ArcGIS.ADF.COMSupport.AOUninitialize.Shutdown();
GC.Collect();
GC.WaitForPendingFinalizers();
}
catch (Exception e)
{
Common.Utilities.LogFile.appendLine_error(e);
}
finally
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
}Type t = Type.GetTypeFromProgID("esriFramework.StyleGallery");
System.Object obj = Activator.CreateInstance(t);
IStyleGallery sg = obj as IStyleGallery;AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionCaptured);
Type t = Type.GetTypeFromProgID("esriFramework.StyleGallery");IMoleSymbol moleSymbol = new MoleMarkerSymbolClass(); moleSymbol.SymbolID = APP6IDSymbol; moleSymbol.Style = moleSymbologyStyleEnum.moleSSAPP6A; IMoleSymbolImportExport pExport = (IMoleSymbolImportExport)moleSymbol; int handle = pExport.ToBitmapHandle(null, 70, 70);
I cannot give you more information because I don't have it.
Besides, if I use your code to get the StyleGallery, the t object is null: