Rodrigo Groener
Guest
|
Hi Add-In Express Team.
We've developed an outlook add-in that adds an panel to the ispector window for appoitments.
Each time it's opened, it loads all items (PostItems) of an specific folder in the inbox an shows values.
After closing the inspector window and opening an new instance a few times, our customers get an "out of memory" exception.
the memory consumption looks like this
Screenshots:
https://1drv.ms/f/s!AtZSA3gfJAx-wjiZp7QM7mjKMMHD
1. oputlook opend
2. first time inspector opend and closed afterwards
3. second time inspector opend and closed afterwards
4. thrid time inspector opend and closed afterwards
Do you have tipps how we ca takle this problem? |
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Hello Rodrigo,
I would recommend that you comment out blocks of code to locate the issue and identify it.
Do you release COM objects in the code of the add-in?
Andrei Smolin
Add-in Express Team Leader |
|
okgroener
Guest
|
Hello Andrei,
thank you for the tipp. With your help I identified that it could be an list of objects that i create. I think the problem is that they don't get disposed.
When is the right time to dispose such a list? Is there an event after closing an inspector panel?
Do you release COM objects in the code of the add-in? Yes not everywhere. But nearly 80% in the code.
"Gr??e" from Germany (GMT+1)
Rodrigo |
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Rodrigo,
okgroener writes:
Is there an event after closing an inspector panel?
If you mean an ADXOlForm, then see the ADXOlForm.ADXAfterFormHide event.
If you mean the inspector window, see the InspectorClose (or InspectorDeactivate) event of the Outlook Events component (ADXOutlookAppEvents).
Andrei Smolin
Add-in Express Team Leader |
|