OutOfMemoryException from AddinExpress.OL.2005.dll

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

OutOfMemoryException from AddinExpress.OL.2005.dll
 
Chris McA


Guest


I am using ADX to display a WPF control (hosted in an ElementHost, which is in turn hosted in an ADXForm) in the bottom navigation panel, and also as the "web view" of a particular folder.

I left my computer unattended for 30-40 minutes and the following exception was reported by ADX;

Application Domain: *snip*
Assembly Codebase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
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 23: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


The rendering of Outlook was totally trashed after this, with black boxes appearing and UI elements not being rendered correctly.

Can you help me diagnose the cause of this exception?

Thanks,
Chris
Posted 24 Apr, 2014 07:11:40 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Chris,

We would need to reproduce the issue.

Did the forms execute some code while you were away? Is there a possibility that the computer "went to bed"? Any screensaver?


Andrei Smolin
Add-in Express Team Leader
Posted 24 Apr, 2014 07:47:35 Top
Chris McA


Guest


Unfortunately I've only seen this once, and not in a test harness add-in or anything similar, so I'll have to create a dummy add-in to try and see the same behaviour.

My add-in was doing some background thread work while I was away. Do you think that if that process used up all the working memory, that ADX might react in the way it did when trying to re-render?

Also, the screensaver did kick in, but the computer didn't "sleep" - that's disabled.
Posted 24 Apr, 2014 08:21:32 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hi Chris,

I'm very sorry for leaving your message non-replied; I suppose I overlooked it somehow.

Chris McA writes:
Do you think that if that process used up all the working memory, that ADX might react in the way it did when trying to re-render?


No. If there's a problem in inter-thread communications, you can get any sort of errors generated/shown far from the real cause of the problem.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Apr, 2014 05:00:29 Top
Chris McA


Guest


That's no problem Andrei!

The problem has never occurred again, so I'm just going to keep an eye on it for now.

Thanks again.
Posted 07 May, 2014 09:57:52 Top