on 2023 Nov 29 6:07 PM
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.
Request clarification before answering.
User | Count |
---|---|
15 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.