Hi.
I have a big problem developing addons.
When my addons starts, occupies 80mb RAM memory.
When user uses addon 3 or 4 hours my addon occupies 400 or 450Mb RAM memory.
I'm developing with VB.NET, it has 2 propierties very important
1. object's life is the block wich contain object. Ex:
If pVal.ItemUID = "btnimport" Then If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then If Not pVal.BeforeAction Then Try Dim oBP As SAPbobsCOM.BusinessPartners = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners) Catch ex As Exception SBOApp.MessageBox(ex.Message) End Try '-> oBP doesn't exists because try block is end End If End If End If
2. VB.NET has an utility named "Garbage Collector" wich is running during program life and it clean all objects wich aren't used.
So VB.NET optimizes RAM memory.
Why my addon has 450Mb???
Shall it be because Company object is overloaded and doesn't release memory???
Exists any method for releasing Company memory??
Do you know some reasons for this wild growth???
SAP Spain said me "addons are addons"
Any comments will be thankful
Thnkx