Author Topic: Multistate Selector - System.OutOfMemoryException  (Read 443 times)

brian3472

  • Newbie
  • *
  • Posts: 2
    • View Profile
Multistate Selector - System.OutOfMemoryException
« on: November 14, 2019, 04:12:13 PM »
I'm using a Multi-State Selector which works fine until I change the SelectedStateBackColor to any color other than the default of Maroon. I start the app and get a System.OutOfMemoryException: "Out of Memory"' error. The copied details are down below and I also attached a PDF screenshot. A similar issue was reported repaired in an earlier post.

Visual Studio 2019 16.3.7
AdvancedHMI v399xR1
Win10 Pro 10.0.18362 Build 18362

----------------------
System.OutOfMemoryException
  HResult=0x8007000E
  Message=Out of memory.
  Source=System.Drawing
  StackTrace:
   at System.Drawing.Drawing2D.LinearGradientBrush..ctor(Point point1, Point point2, Color color1, Color color2)
   at MfgControl.AdvancedHMI.Controls.MultiStateIndicator.set_SelectedStateBackColor(Color value)
   at MfgControl.AdvancedHMI.MainForm.InitializeComponent() in C:\Users\bharrington\Downloads\AdvancedHMI\AdvancedHMI\MainForm.Designer.vb:line 351
   at MfgControl.AdvancedHMI.MainForm..ctor()
----------------------

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile