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

Threading Problems with ThemeColors

Thread ID:

Created:

Updated:

Platform:

Replies:

25679 Mar 3,2005 05:06 PM UTC Mar 11,2005 02:44 PM UTC WinForms 6
loading
Tags: Tools
Brian Ingenito
Asked On March 3, 2005 05:06 PM UTC

I believe I''ve tracked down the source of a random red X over the toolbars in our application. Version 2.1. We have a UI consisting of windows created in different STA threads. Each of these windows many have their own MainFrameBarManager. I''ve found that when a CommandBar paints, it first calls static methods MenuColors.UpdateMenuColors() and Office2003Colors.UpdateColors(). These in turn fire events in the original painting CommandBars thread to all other CommandBars in different threads w/o marshalling. These other CommandBars then invoke repainting in the incorrect thread. Is there any way to prevent these events from firing short of modifying the CommandBar code to marshal? I really don''t want to go down this road. I also want to stick with full XPMenu support over XPToolbar since it adds support for chevrons.

Administrator [Syncfusion]
Replied On March 3, 2005 09:51 PM UTC

Hi Brian, I''ll take a look into this and I hope to be able to update you on it tomorrow. In the mean time, if you have a sample available, please e-mail it to me at gregorya@syncfusion.com. Regards, Gregory Austin Syncfusion Inc.

Administrator [Syncfusion]
Replied On March 4, 2005 07:58 PM UTC

Hi Brian, I''ve attempted to reproduce this problem and have been unable to do so. Is there anything special you''re doing other than creating multiple Forms? Regards, Gregory Austin Syncfusion Inc.

Administrator [Syncfusion]
Replied On March 6, 2005 11:30 PM UTC

Yes. The forms are created in separate threads marked as STA. These other forms also host a MainFrameBarManager. >Hi Brian, > > I''ve attempted to reproduce this problem and have been unable to do so. Is there anything special you''re doing other than creating multiple Forms? > >Regards, >Gregory Austin >Syncfusion Inc.

Administrator [Syncfusion]
Replied On March 10, 2005 04:42 PM UTC

Hi Brian, I apologize for my question being vague. My intent was to ask for anything you''re doing in addition to marking the threads as STA. Regards, Gregory Austin Syncfusion Inc.

Administrator [Syncfusion]
Replied On March 10, 2005 09:52 PM UTC

No problem. I''ll try and create a repro tomorrow. Should I just attach the zip to a post here? >Hi Brian, > > I apologize for my question being vague. My intent was to ask for anything you''re doing in addition to marking the threads as STA. > >Regards, >Gregory Austin >Syncfusion Inc.

Administrator [Syncfusion]
Replied On March 11, 2005 02:44 PM UTC

Hi Brian, Yes, attaching a zip file here would be the best way to do it. However, if that doesn''t work you could send it directly to me at gregorya@syncfusion.com. 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.

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

;