I’m using Bunifucards to create a list of items that can have about 50-200 cards at a time. After several hours of using the system, users report that they are receiving out of memory errors despite my app only consuming about 50-75mb of memory.
We remotely debugged an affected workstation and found that when this error is displayed, Bunifucards throws a different error (Parameter is not valid) upon initiazation of bunifucards or whenever certain properties are accessed. I’m guessing a Drawing/Graphics object is not properly being disposed when the bunifucards object is being disposed.
Calls that trigger the issue once it runs out of memory:
this.crdTicket = new Bunifu.Framework.UI.BunifuCards();
this.crdTicket.BottomSahddow = true;
this.crdTicket.TabIndex = 12;
System.ArgumentException
HResult=0x80070057
Message=Parameter is not valid.
Source=System.Drawing
StackTrace:
at System.Drawing.Region.FromHrgn(IntPtr hrgn)