vrushali katkade

vrushali katkade

  • NA
  • 128
  • 46.2k

BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress

Feb 18 2012 2:39 AM
i have used the winform with C# & devexress tool in application . in this when i have processed into the grid view on row click event ,in this event display the row values in report & report display into the another panel . but when i will try to this process speedly i.e click on one row to another row then another & so on...then it throw exception to the starting point of the program.cs as follow
 
BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress at following line
 

        Application.Run(new frmMainForm());

when try to avoid this error then it throws exception to the form designer of the initialize component() for creating Imagelist

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
& somtimes display the following exception
Index was outside bound array or system.outoffmemory
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "");//exception
            this.imageList1.Images.SetKeyName(1, "configuration-icon.png");
            this.imageList1.Images.SetKeyName(2, "eventviewer.gif");
            this.imageList1.Images.SetKeyName(3, "Users1.png");
            this.imageList1.Images.SetKeyName(4, "events.gif");
            this.imageList1.Images.SetKeyName(5, "B1.png");
            this.imageList1.Images.SetKeyName(6, "R1.png");
            this.imageList1.Images.SetKeyName(7, "U1.png");
            this.imageList1.Images.SetKeyName(8, "UR1.png");
            this.imageList1.Images.SetKeyName(9, "G1.png");
            this.imageList1.Images.SetKeyName(10, "B3.png");
            this.imageList1.Images.SetKeyName(11, "GR.png");
            this.imageList1.Images.SetKeyName(12, "key-icon.png");
            this.imageList1.Images.SetKeyName(13, "keyv.png");