We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDI Exception in 4.3 version.

Thread ID:

Created:

Updated:

Platform:

Replies:

50169 Oct 7,2006 07:51 AM UTC Oct 19,2006 11:39 AM UTC WinForms 7
loading
Tags: Tools
Ravi
Asked On October 7, 2006 07:51 AM UTC

Hi,

Iam using syncfusion 4.3 version, I got the following exception in GroupView control. This exception occurs occasionally, I cannot reproduce it regularly. Whenever an exception occurs a big red cross mark will be displayed. Any ideas/suggessions to resolve the problem. I have faced this problem with 4.3 version only with 4.2 version same code works fine.

System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at Syncfusion.Windows.Forms.Tools.GroupView.DrawText(Graphics gph, Int32 nindex, Rectangle rc, ItemState state)
at Syncfusion.Windows.Forms.Tools.GroupView.DrawItem(Graphics gph, Int32 nindex, Rectangle rc, ItemState state)
at Syncfusion.Windows.Forms.Tools.GroupView.DrawAllItems(Graphics gph)
at Syncfusion.Windows.Forms.Tools.GroupView.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.Tools.GroupView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Thanks,
-Ravi.

Anupama Roy [Syncfusion]
Replied On October 9, 2006 06:41 AM UTC


Hi Ravi,

Would it be possible for you to provide us the Windows Form Designer generated code snippet for this GroupView control.Also please let us know if you have set any properties in the Form''s Load event or Constructor.

Thanks for choosing Syncfusion products.

Regards,

Anu.

Ravi
Replied On October 9, 2006 11:15 AM UTC

Hi Anupama,

I haven''t set any properties in Form_Load event. Below is the designer generated code. Iam using around 10 group view controls and I have pasted designer code related to only one group view control. All other group view control''s code is similar.

private void InitializeComponent()
{
this.crmGV = new Syncfusion.Windows.Forms.Tools.GroupView();
//Initialisation is done for all the group view controls which i used

this.groupBar.AllowDrop = true;
this.groupBar.Controls.Add(this.crmGV);
//All the group view controls are added to GroupBar control

this.groupBar.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBar.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.groupBar.GroupBarItems.AddRange(new Syncfusion.Windows.Forms.Tools.GroupBarItem[] {
this.crmGroupBarItem,
this.salesGroupBarItem,
this.inventoryGroupBarItem,
this.manufacturingGroupBarItem,
this.glGroupBarItem,
this.arGroupBarItem,
this.apGroupBarItem,
this.fixedAssetsGroupBarItem,
this.hrGroupBarItem,
this.adminGroupBarItem});
this.groupBar.Location = new System.Drawing.Point(0, 80);
this.groupBar.Name = "groupBar";
this.groupBar.SelectedItem = 0;
this.groupBar.Size = new System.Drawing.Size(152, 373);
this.groupBar.TabIndex = 5;
this.groupBar.Text = "groupBar";
//
// crmGV
//
this.crmGV.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.crmGV.LargeImageList = null;
this.crmGV.Location = new System.Drawing.Point(2, 23);
this.crmGV.Name = "crmGV";
this.crmGV.SelectedItem = 0;
this.crmGV.Size = new System.Drawing.Size(148, 151);
this.crmGV.SmallImageList = null;
this.crmGV.TabIndex = 0;
this.crmGV.Text = "crmGV";
this.crmGV.GroupViewItemSelected += new System.EventHandler(this.crmGV_GroupViewItemSelected);

//
// crmGroupBarItem
//
this.crmGroupBarItem.Client = this.crmGV;
this.crmGroupBarItem.Text = "CRM";
}

Regards,
-Ravi.

Saradha [Syncfusion]
Replied On October 10, 2006 12:54 PM UTC

Hi Ravi,

I have tested this issue in v.4.3.0.30. I am sorry, I was not able to reproduce this issue. Does this exception reproducible in our demo
Groupview samples.

Please let us know your machine details and .Net Framework version you are working with. I have attached my test sample.

rel='nofollow' href="http://www.syncfusion.com/Support/user/uploads/Forum_50169_50212ab
a.zip">Forum_50169.zip


Could you please check the sample and let me know whether you are able to reproduce the issue in this sample?

Thanks for using Syncfusion products.

Regards,
K.Saradha Devi.

Saradha [Syncfusion]
Replied On October 10, 2006 01:23 PM UTC

Hi Ravi,

Sorry for the broken link. Here is the correct link.
Forum_50169.zip

Regards,
K.Saradha Devi.

Ravi
Replied On October 12, 2006 06:27 AM UTC

Hi Saradha Devi,

Iam not able to reproduce the bug with your sample application. Iam using ".NET Framework 2.0", "Syncfusion 4.3", "Windows 2000 Professional (5.0, Build 2195)", "DirectX Version - DirectX 8.0"

Regards,
-Ravi.

Saradha [Syncfusion]
Replied On October 12, 2006 02:38 PM UTC

Hi Ravi,

We will check this issue in a machine with Windows 2000 and provide an update at the earliest.

Thanks for your patience.

Regards,
K.Saradha Devi.

Ravi
Replied On October 19, 2006 11:39 AM UTC

Hi Saradha Devi,

Any updates.

Regards,
Ravi.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;