Out Of Memory Exception ADXContainerControl DrawImage

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

Out Of Memory Exception ADXContainerControl DrawImage
Out Of Memory Exception ADXContainerControl DrawImage 
Nick Whymark




Posts: 14
Joined: 2018-01-15
Hi,

One of our users who happens to have a 4K screen is getting an out of memory exception when displaying an add-in express folder form. I've found a number of similar threads on the forum where you appear to have sent out a fixed assembly.

I just wondered if you could confirm this is fixed in the current release and if so which version first had the fix? I just need to decide whether to upgrade and to which version if it has been fixed.

Some of the other similar threads are:
https://www.add-in-express.com/forum/read.php?FID=5&TID=13829
https://www.add-in-express.com/forum/read.php?FID=5&TID=13764
https://www.add-in-express.com/forum/read.php?PAGEN_1=2&FID=5&TID=14409#nav_start

My actual issue looks like this:

System Info:
===========

AdditionalVersionIdentifier:
Start Time: 15/01/2018 11:45:07
Professional: AddinExpress.OL.2005, Version=8.2.4371.2005, Culture=neutral, PublicKeyToken=e69a7e0f3592d2b8
Outlook version: 16.0.0.8201
...

Exceptions:
===========

SetHTMLDocumentTitle Error
Exception time: 15/01/2018 11:45:24
Exception has been thrown by the target of an invocation.

SetHTMLDocumentTitle Error
Exception time: 15/01/2018 11:45:24
Exception has been thrown by the target of an invocation.

Out of memory.
Exception time: 15/01/2018 12:07:36


WndProc: Out of memory.
Exception time: 15/01/2018 12:07:36
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y)
at AddinExpress.Extensions.ADXContainerControl.PaintTo(IntPtr destDC, Int32 X, Int32 Y)
at AddinExpress.Extensions.ADXContainerControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at AddinExpress.Extensions.ADXContainerControl.WndProc(Message& m)

AddinExpress.OL.ADXOlFormsManager error: Out of memory.
Exception time: 15/01/2018 12:07:36

AddinExpress.OL.ADXOlFormsManager error: Out of memory.
Error occured in WndProc . See 'Details' section to get more detailed information about the error.
Detailed technical information follows:
---

Thank you,
Nick
Posted 15 Jan, 2018 10:55:18 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Nick,

Please install the current Add-in Express version. It was the version that contained this fix first. Also note that the last messages at https://www.add-in-express.com/forum/read.php?PAGEN_1=4&FID=5&TID=14409#nav_start may indicate that the issue still exists (we are unable to reproduce it at the moment).


Andrei Smolin
Add-in Express Team Leader
Posted 17 Jan, 2018 06:04:34 Top
Nick Whymark




Posts: 14
Joined: 2018-01-15
Thanks Andrei,

I might wait to see what happens with that last one as it looks very much like my issue according to the stack trace:

at AddinExpress.Extensions.ADXContainerControl.PaintTo(IntPtr destDC, Int32 X, Int32 Y)
at AddinExpress.Extensions.ADXContainerControl.OnPaint(PaintEventArgs e)

I'm not sure if it's of any help but in our case we have a very simple form which hosts a web browser control, so although the form itself is very simple the content displayed is actually quite graphical. The screen in use is a 4K screen and it appears to be driven by a fairly low powered (Intel) chipset.

Thanks,
Nick.
Posted 17 Jan, 2018 08:48:12 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Thank you Nick

https://www.add-in-express.com/forum/read.php?PAGEN_1=2&FID=5&TID=14409#nav_start, we gave the following explanation of the issue:
According to our guys, the issue relates to an issue in GDI+. Add-in Express draws the pane in the memory and then show the resulting bitmap on screen. The issue occurs when GDI+ allocates a continuous memory chunk, which is big if you use a high-resolution monitor. Supposedly, the issue occurs when the memory is fragmented. Currently we work on our code to draw the pane in parts. This is a significant change. Implementing it may require some time.


The change is implemented in version 8.7. So far, we are unable to reproduce the issue mentioned in last message of that topic.


Andrei Smolin
Add-in Express Team Leader
Posted 18 Jan, 2018 00:49:55 Top