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.
Unfortunately, activation email could not send to your email. Please try again.

NullReferenceException in SystemColorTracker.CleanOutBrokenLinks()

Thread ID:

Created:

Updated:

Platform:

Replies:

24583 Feb 7,2005 03:40 PM Feb 9,2005 12:00 PM Windows Forms 4
loading
Tags: Tools
Brian Ingenito
Asked On February 7, 2005 03:40 PM

Switched focus from one application to one with XPMenus and received the following error: System.NullReferenceException: Object reference not set to an instance of an object. at System.Drawing.Internal.SystemColorTracker.CleanOutBrokenLinks() at System.Drawing.Internal.SystemColorTracker.GarbageCollectList() at System.Drawing.Internal.SystemColorTracker.Add(ISystemColorTracker obj) at System.Drawing.Pen..ctor(Color color, Single width) at Syncfusion.Windows.Forms.Tools.CommandBar.DrawGripper(Graphics gph) at Syncfusion.Windows.Forms.Tools.CommandBar.DrawDockedForeground(Graphics gph) at Syncfusion.Windows.Forms.Tools.CommandBar.OnPaint(PaintEventArgs e) at Syncfusion.Windows.Forms.Tools.XPMenus.CommandBarExt.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.XPMenus.CommandBarExt.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Brian Ingenito
Replied On February 7, 2005 03:41 PM

Using 2.1, with default menu style on Windows XP. >Switched focus from one application to one with XPMenus and received the following error: > >System.NullReferenceException: Object reference not set to an instance of an object. > at System.Drawing.Internal.SystemColorTracker.CleanOutBrokenLinks() > at System.Drawing.Internal.SystemColorTracker.GarbageCollectList() > at System.Drawing.Internal.SystemColorTracker.Add(ISystemColorTracker obj) > at System.Drawing.Pen..ctor(Color color, Single width) > at Syncfusion.Windows.Forms.Tools.CommandBar.DrawGripper(Graphics gph) > at Syncfusion.Windows.Forms.Tools.CommandBar.DrawDockedForeground(Graphics gph) > at Syncfusion.Windows.Forms.Tools.CommandBar.OnPaint(PaintEventArgs e) > at Syncfusion.Windows.Forms.Tools.XPMenus.CommandBarExt.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.XPMenus.CommandBarExt.WndProc(Message& m) > at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Administrator [Syncfusion]
Replied On February 8, 2005 10:38 AM

Hi Brian, Is this a one time problem or have you been able to reproduce it? Some more information or a sample could help me track this down. Thank you for your cooperation in this matter. Regards, Gregory Austin Syncfusion, Inc.

Brian Ingenito
Replied On February 9, 2005 11:23 AM

I''ve seen this twice while testing, but can''t readily reproduce. Both times resulted in the main menu having a red x over it. I''ve seen object in use elsewhere errors frequently in paint events. We upgraded from 1.6 to 2.1 to try and eliminate, but with no success. I think they happen more frequently now. I''ve double and triple checked threading and I''m positive all access to the barmanager is done on the appropriate thread. >Hi Brian, > > Is this a one time problem or have you been able to reproduce it? Some more information or a sample could help me track this down. Thank you for your cooperation in this matter. > >Regards, >Gregory Austin >Syncfusion, Inc.

Administrator [Syncfusion]
Replied On February 9, 2005 12:00 PM

Hi Brian, Please review the following MS Forum post to verify that you''re accessing your Controls correctly from your Threads: Controls / Thread Safe ? If that doesn''t help, could you please provide us with a sample that demonstrates this problem or a stripped down version of your application so that we can attempt to reproduce this problem? Regards, Gregory Austin Syncfusion, Inc.

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.

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.

;