ArgumentOutOfRangeException when GetPixel called

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

ArgumentOutOfRangeException when GetPixel called
exception on Windows 10, Office2016,  
Subscribe
andrew bernat




Posts: 2
Joined: 2017-09-21
Hello,

We have a user who is experiencing an issue when using Outlook 2016 with our plugin using AddInExpress. The user does not see the expected UI and a message box appears with the exception details [see below]. I saw an earlier forum report about this being related to the windows text scaling. We tried setting it to 100 [as the other forum post suggested] but that didn't fix the issue. So I'm not sure the recommended hotfix will address the issue. Any recommendations for troubleshooting?

Thanks,
Andrew



Date and Time: 9/3/2017 2:38:38 PM
Machine Name: xxxxxxxx
IP Address: xxxxxxxxx
Current User: xxxxxxx

Application Domain: C:\Users\xxxxx\AppData\Local\Apps\2.0\T8DHWTLR.YTK\9H1O9DP7.XQC\tell..ddin_50dbcc6396dcd4ec_0001.0000_baa7333bb9bb9fa2\
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: 3/18/2017 4:59:47 PM

Exception Source: System.Drawing
Exception Type: System.ArgumentOutOfRangeException
Exception Message: Parameter must be positive and < Width.
Parameter name: x
Exception Target Site: GetPixel

---- Stack Trace ----
System.Drawing.Bitmap.GetPixel(x As Int32, y As Int32)
AddinExpress.OL.2005.DLL: N 0000 (0x0) IL
AddinExpress.Extensions.ADXContainerControl.OnDrawText(e As DrawTextArgs)
AddinExpress.OL.2005.DLL: N 0017 (0x11) IL
AddinExpress.Extensions.SkinPainter.DrawPaneTextIndex(dc As Graphics, rect As Rectangle, index As Int32, state As ADXDrawControlState)
AddinExpress.OL.2005.DLL: N 0070 (0x46) IL
AddinExpress.Extensions.AdxPanePartGalleryItemCaption.Paint(dc As Graphics)
AddinExpress.OL.2005.DLL: N 0001 (0x1) IL
AddinExpress.Extensions.DrawArgs.DrawControls()
AddinExpress.OL.2005.DLL: N 0047 (0x2F) IL
AddinExpress.Extensions.ADXContainerControl.OnDrawContainerItem(e As DrawContainerItemArgs)
AddinExpress.OL.2005.DLL: N 0043 (0x2B) IL
AddinExpress.Extensions.AdxPanePartGalleryItem.Paint(dc As Graphics)
AddinExpress.OL.2005.DLL: N 0054 (0x36) IL
AddinExpress.Extensions.AdxPanePartGalleryItems.Paint(dc As Graphics)
AddinExpress.OL.2005.DLL: N 0027 (0x1B) IL
AddinExpress.Extensions.AdxPanePart.Paint(dc As Graphics)
AddinExpress.OL.2005.DLL: N 0029 (0x1D) IL
AddinExpress.Extensions.DrawArgs.DrawControls()
AddinExpress.OL.2005.DLL: N 0047 (0x2F) IL
AddinExpress.Extensions.ADXContainerControl.OnDrawHeader(e As DrawArgs)
AddinExpress.OL.2005.DLL: N 0066 (0x42) IL
AddinExpress.Extensions.AdxPanePartHeader.Paint(dc As Graphics)
AddinExpress.OL.2005.DLL: N 0020 (0x14) IL
AddinExpress.Extensions.DrawArgs.DrawControls()
AddinExpress.OL.2005.DLL: N 0047 (0x2F) IL
AddinExpress.Extensions.ADXContainerControl.OnDraw(e As DrawContainerControlArgs)
AddinExpress.OL.2005.DLL: N 0025 (0x19) IL
AddinExpress.Extensions.AdxPanePartMain.Paint(dc As Graphics)
AddinExpress.OL.2005.DLL: N 0145 (0x91) IL
AddinExpress.Extensions.ADXContainerControl.PaintBitmap(AWidth As Int32, AHeight As Int32)
AddinExpress.OL.2005.DLL: N 0161 (0xA1) IL
AddinExpress.Extensions.ADXContainerControl.PaintTo(destDC As IntPtr, X As Int32, Y As Int32)
AddinExpress.OL.2005.DLL: N 0114 (0x72) IL
AddinExpress.Extensions.ADXContainerControl.OnPaint(e As PaintEventArgs)
AddinExpress.OL.2005.DLL: N 0042 (0x2A) IL
System.Windows.Forms.Control.PaintWithErrorHandling(e As PaintEventArgs, layer As Int16)
AddinExpress.OL.2005.DLL: N 0043 (0x2B) IL
System.Windows.Forms.Control.WmPaint(m As Message&)
AddinExpress.OL.2005.DLL: N 0441 (0x1B9) IL
System.Windows.Forms.Control.WndProc(m As Message&)
AddinExpress.OL.2005.DLL: N 0939 (0x3AB) IL
AddinExpress.Extensions.ADXContainerControl.WndProc(m As Message&)
AddinExpress.OL.2005.DLL: N 0885 (0x375) IL
Posted 21 Sep, 2017 17:44:30 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Andrew,

What Add-in Express build number are you using?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Sep, 2017 09:56:03 Top
andrew bernat




Posts: 2
Joined: 2017-09-21
We are using the following:

AddInExpress.OL.2005 - version number 8.2.4371.2005
AddInExpress.MSO.2005 - version number 8.2.4371.0

Thank you,
Andrew
Posted 22 Sep, 2017 11:38:14 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Andrew,

Please install the latest Add-in Express version. It contains a code change targeting this issue.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 25 Sep, 2017 06:44:15 Top