Out of memory exceptions

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

Only registered users are allowed to subscribe.
Out of memory exceptions
Add-in Express Regions - Outlook 
Subscribe
Andy W




Posts: 8
Joined: 2017-09-27
Hi,

We were experiencing OutOfMemory Exception's with an older build of Add-in Express Regions, we updated hoping these issue's would be resolved.
Unfortunately, these exceptions seemed to have reared their ugly head once again.
Please find the exception below.

Out of memory.: ADXContainerControlOL.OnPaintBackground error:
Out of memory.:
WndProc: Out of memory.: at System.Drawing.Image.FromHbitmap(IntPtr hbitmap, IntPtr hpalette)
at System.Drawing.Image.FromHbitmap(IntPtr hbitmap)
at AddinExpress.Extensions.CompatibleBitmap.Update(Int32 width, Int32 height)
at AddinExpress.Extensions.CompatibleBitmap..ctor(IntPtr handle, Int32 width, Int32 height)
at AddinExpress.Extensions.ADXContainerControl.PaintBitmap(Int32 AWidth, Int32 AHeight)
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)
Regions Unhandled Error [System.OutOfMemoryException: Out of memory.
at System.Drawing.Image.FromHbitmap(IntPtr hbitmap, IntPtr hpalette)
at System.Drawing.Image.FromHbitmap(IntPtr hbitmap)
at AddinExpress.Extensions.CompatibleBitmap.Update(Int32 width, Int32 height)
at AddinExpress.Extensions.CompatibleBitmap..ctor(IntPtr handle, Int32 width, Int32 height)
at AddinExpress.Extensions.ADXContainerControl.PaintBitmap(Int32 AWidth, Int32 AHeight)
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)]

Any help would be really appreciated.
Thanks,
A
Posted 04 Oct, 2017 06:31:45 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Andy,

In a couple of minutes I'll send you an email containing a download link for the assembly which fixes the issue for us. Please let me know if it works for you.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Oct, 2017 08:34:49 Top
Andy W




Posts: 8
Joined: 2017-09-27
Thanks Andrei,

Will check it out and see if any more issues arise.

Thanks,
A
Posted 04 Oct, 2017 09:47:35 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Waiting for your result!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Oct, 2017 09:48:25 Top
Andy W




Posts: 8
Joined: 2017-09-27
Hi Andrei,

No longer seeing the same issue, but instead getting a big red cross on my screen and receiving the following exception.

Value of 'null' is not valid for 'stream'.:
WndProc: Value of 'null' is not valid for 'stream'.: at System.Drawing.Bitmap..ctor(Stream stream)
at AddinExpress.Extensions.SkinPainter.get_SplitterBitmap()
at AddinExpress.Extensions.SkinPainter.DrawDots(Graphics dc, Rectangle rect, Boolean vertical, Boolean pressed)
at AddinExpress.Extensions.SkinPainter.DrawSplitterButton(Graphics dc, Rectangle rect, ADXDrawControlState state)
at AddinExpress.Extensions.SkinPainterOL2013.DrawPaneButton(Graphics dc, Rectangle btnRect, ADXDrawControlType
at AddinExpress.Extensions.ADXContainerControl.OnDrawControl(DrawControlArgs e)
at AddinExpress.Extensions.AdxPanePartSplitterButton.Paint(Graphics dc)
at AddinExpress.Extensions.DrawArgs.DrawControls()
at AddinExpress.Extensions.ADXContainerControl.OnDrawSplitter(DrawArgs e)
at AddinExpress.Extensions.AdxPanePartSplitter.Paint(Graphics dc)
at AddinExpress.Extensions.DrawArgs.DrawControls()
at AddinExpress.Extensions.ADXContainerControl.OnDraw(DrawContainerControlArgs e)
at AddinExpress.Extensions.AdxPanePartMain.Paint(Graphics dc)
at AddinExpress.Extensions.ADXContainerControl.PaintBitmap(Int32 AWidth, Int32 AHeight)
at AddinExpress.Extensions.ADXContainerControl.PaintTo(Graphics dc, 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)
Regions Unhandled Error [System.ArgumentException: Value of 'null' is not valid for 'stream'.
at System.Drawing.Bitmap..ctor(Stream stream)
at AddinExpress.Extensions.SkinPainter.get_SplitterBitmap()
at AddinExpress.Extensions.SkinPainter.DrawDots(Graphics dc, Rectangle rect, Boolean vertical, Boolean pressed)
at AddinExpress.Extensions.SkinPainter.DrawSplitterButton(Graphics dc, Rectangle rect, ADXDrawControlState state)
at AddinExpress.Extensions.SkinPainterOL2013.DrawPaneButton(Graphics dc, Rectangle btnRect, ADXDrawControlType
at AddinExpress.Extensions.ADXContainerControl.OnDrawControl(DrawControlArgs e)
at AddinExpress.Extensions.AdxPanePartSplitterButton.Paint(Graphics dc)
at AddinExpress.Extensions.DrawArgs.DrawControls()
at AddinExpress.Extensions.ADXContainerControl.OnDrawSplitter(DrawArgs e)
at AddinExpress.Extensions.AdxPanePartSplitter.Paint(Graphics dc)
at AddinExpress.Extensions.DrawArgs.DrawControls()
at AddinExpress.Extensions.ADXContainerControl.OnDraw(DrawContainerControlArgs e)
at AddinExpress.Extensions.AdxPanePartMain.Paint(Graphics dc)
at AddinExpress.Extensions.ADXContainerControl.PaintBitmap(Int32 AWidth, Int32 AHeight)
at AddinExpress.Extensions.ADXContainerControl.PaintTo(Graphics dc, 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)]

On the region, Splitter is set to SplitterBehaviorNone, unless this is something else we could be missing?

Thanks,
A
Posted 04 Oct, 2017 10:42:08 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Ah, that was our mistake! We've created a new build; I'll send you an email in a minute.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Oct, 2017 04:06:59 Top
Andy W




Posts: 8
Joined: 2017-09-27
Everything seems good so far!
We will continue with the testing and see if we experience any other issues.

Many thanks,
A
Posted 05 Oct, 2017 05:39:34 Top
Andrei Smolin


Add-in Express team


Posts: 14140
Joined: 2006-05-11
Great! Thank you very much!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Oct, 2017 05:45:33 Top
Andy W




Posts: 8
Joined: 2017-09-27
Hey Andrei,

Unfortunately these errors have started appearing again, please find the exception below.

ID=0 WndProc: Out of memory.: at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
ID=0 at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
ID=0 at AddinExpress.Extensions.ADXContainerControl.PaintTo(Graphics dc, Int32 X, Int32 Y)
ID=0 at AddinExpress.Extensions.ADXContainerControl.OnPaint(PaintEventArgs e)
ID=0 at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
ID=0 at System.Windows.Forms.Control.WmPaint(Message& m)
ID=0 at System.Windows.Forms.Control.WndProc(Message& m)
ID=0 at AddinExpress.Extensions.ADXContainerControl.WndProc(Message& m)
ID=3014 Regions Unhandled Error [System.OutOfMemoryException: Out of memory.
ID=3014 at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
ID=3014 at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit)
ID=3014 at AddinExpress.Extensions.ADXContainerControl.PaintTo(Graphics dc, Int32 X, Int32 Y)
ID=3014 at AddinExpress.Extensions.ADXContainerControl.OnPaint(PaintEventArgs e)
ID=3014 at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
ID=3014 at System.Windows.Forms.Control.WmPaint(Message& m)
ID=3014 at System.Windows.Forms.Control.WndProc(Message& m)
ID=3014 at AddinExpress.Extensions.ADXContainerControl.WndProc(Message& m)]
ID=0 Out of memory.: AppWindow.WndProc(c5c6; 210; 71792)
ID=0 Out of memory.: AppWindow.WndProc(c5c6; 210; 12156e)
ID=0 Out of memory.: AppWindow.WndProc(c5c6; 210; 71792)
ID=0 Out of memory.: AppWindow.WndProc(c5c6; 210; 12156e)

This is generally causing Outlook to begin running slow and then proceed to crash, and seeing big red X's across the region quite a lot and graphics stop rendering.

Thanks,
A
Posted 11 Oct, 2017 10:12:57 Top
Alexander Solomenko


Add-in Express team


Posts: 117
Joined: 2009-02-27
Hi Andy W,

We cannot reproduce this crash. It would be very helpful if you could provide us more information. On what configuration do you observe this error (Outlook and Windows version and bits). How often does it occur? Does Outlook crash on start or in a while? On which monitor? Can the issue be reproduced with a simple add-in?
Regards,
Aleksandr Solomenko
Posted 13 Oct, 2017 06:46:44 Top