System.OutOfMemoryException from AddinExpress.Extensions.AdxContainerPane

Add-in Express™ Support Service
That's what is more important than anything else

System.OutOfMemoryException from AddinExpress.Extensions.AdxContainerPane
Pane in Inbox sometimes thows Out of Memory Exception 
Bargholz Thomas




Posts: 239
Joined: 2006-12-18
Hi,
I have an add-in for Outlook 2010/2013, which have apane in the Inbox, shoing details about the customer WHO have sent the currently selected e-mail.
For some users, sometimes they get an Out of memory exception when they click an e-mail or navigate to another folder and back. It appears random, so it's virtually impossible to replicate, but it happens once in a while. None of the user affected have any issues with low memory when they recive the exception.

The exception appears to happen before any of my code is executed, so I cannot catch and handle the error (nor do I know what to do about it).
Do you have an idea to why the users get this exception, and what we can do to fix it?

This is the stacktrace from the error:

Assembly Full Name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Assembly Version: 4.0.0.0
Assembly Build Date: 11-09-2013 22:33:38

Exception Source: System.Drawing
Exception Type: System.OutOfMemoryException
Exception Message: Out of memory.
Exception Target Site: CheckErrorStatus

---- Stack Trace ----
System.Drawing.Graphics.CheckErrorStatus(status As Int32)
AddinExpress.OL.2005.DLL: N 0000 (0x0) IL
System.Drawing.Graphics.DrawImage(image As Image, x As Int32, y As Int32)
AddinExpress.OL.2005.DLL: N 0055 (0x37) IL
AddinExpress.Extensions.AdxContainerPane.PaintTo(destDC As IntPtr, X As Int32, Y As Int32)
AddinExpress.OL.2005.DLL: N 0181 (0xB5) IL
AddinExpress.Extensions.AdxContainerPane.OnPaint(e As PaintEventArgs)
AddinExpress.OL.2005.DLL: N 0028 (0x1C) IL
System.Windows.Forms.Control.PaintWithErrorHandling(e As PaintEventArgs, layer As Int16)
AddinExpress.OL.2005.DLL: N 0055 (0x37) IL
System.Windows.Forms.Control.WmPaint(m As Message&)
AddinExpress.OL.2005.DLL: N 0412 (0x19C) IL
System.Windows.Forms.Control.WndProc(m As Message&)
AddinExpress.OL.2005.DLL: N 0884 (0x374) IL
AddinExpress.Extensions.AdxTheme.WndProc(m As Message&)
AddinExpress.OL.2005.DLL: N 0001 (0x1) IL
AddinExpress.Extensions.AdxContainerPane.WndProc(m As Message&)
AddinExpress.OL.2005.DLL: N 0846 (0x34E) IL

Regards/Thomas
Posted 29 May, 2014 08:02:39 Top
Andrei Smolin


Add-in Express team


Posts: 14690
Joined: 2006-05-11
Hello Thomas,

What Outlook version, service pack and bitness are you using? Add-in Express build?

We suppose this is a result of how the add-in's code works. Would it be possible for us to look into your code? Add-in Express and Outlook events used, methods called - this sort of things. Business logic can be removed. If the code is compilable, we will solve the issue sooner. Still, this is not a requirement: we will try to reproduce the issue basing on the code.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 May, 2014 08:34:02 Top
Bargholz Thomas




Posts: 239
Joined: 2006-12-18
Hi Andrei,

We have seen this exception in both Outlook 2010 and 2013. All x86.
We are currently using Add-in-express version 7.4.4067.2005.

Yes, you can look into our code. Let me know and I can give you access to my Development PC and the code with th use of TeamViewer.

Regards/Thomas
Posted 29 May, 2014 08:57:25 Top
Andrei Smolin


Add-in Express team


Posts: 14690
Joined: 2006-05-11
Thomas,

I'm going to send you an email tomorrow somewhere around 2 PM our time, see http://www.timeanddate.com/worldclock/belarus/minsk. Please let me know if this is okay with you.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 May, 2014 09:22:53 Top
Bargholz Thomas




Posts: 239
Joined: 2006-12-18
Hi Andrei,
tomorrow is not possible for me, as I'm out of the office.
I'm at the office all monday, so if that suits you as well, that would be perfect.
Regards/Thomas
Posted 29 May, 2014 13:11:46 Top
Andrei Smolin


Add-in Express team


Posts: 14690
Joined: 2006-05-11
okay, I'll contact you on Monday.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 30 May, 2014 01:47:23 Top
Bargholz Thomas




Posts: 239
Joined: 2006-12-18
Hi Andrei,
it's now 5 pm and I'm leaving the office for today. I will be at the office all day tomorrow as well, so I hop you can find time to look at this issue.
Best regards
Thomas
Posted 02 Jun, 2014 09:58:47 Top
Andrei Smolin


Add-in Express team


Posts: 14690
Joined: 2006-05-11
Hello Thomas,

Sorry for the delay. I've just sent you an email.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 03 Jun, 2014 03:34:49 Top