cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP B1 Add On Stops Working after opening and closing a created form multiple times

abeyvelezb1
Member
0 Kudos
234

Hi, currently developing an Add On, in which I take the Invoice Form and change its components locations and add buttons and labels. I have buttons that work for adding items to the invoice, some being that they have the item description as their text and they are added to the invoice when clicked, but have others that open created forms, one for example is used to search and add an item to the invoice, when I open and close the form a couple of times, most of the time being in the range of 15-20 times, the button that opens that form and its components keep working as normal but the rest of the add on stops working, clicking the rest of the buttons does not do anything and it does not even enters to the button's Click Before method.

Saw in a community post that System.Runtime.InteropServices.Marshal.ReleaseComObject(object); could help resolve this issue, applied it to all the items that could be released and it did not help, do not know what else I can do to try and make the add on stop becoming unresponsive, debugging does not gives back an error, have try catch statements on everything and it has not gotten an error when the add on stops working. Any help would be appreciated, really stuck here and do not know what else I can do, any code that needs to be sent to see a certain area let me know and I'll glady share it.

Accepted Solutions (0)

Answers (0)