Skip to Content
0
Former Member
Nov 24, 2016 at 01:52 AM

MEMORY LEAK in SAP B1 DI API

595 Views

I am using following code ,

company.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode;
var productionTrees = company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees) as SAPbobsCOM.ProductTrees;
productionTrees.GetByKey(itemcode);

var bomxml = productionTrees.GetAsXML();
System.Runtime.InteropServices.Marshal.FinalReleaseComObject(productionTrees);
productionTrees = null;
GC.Collect();


This doesn't release any Memory. Please suggest.