Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Forms, Dialogs, TitleBar, StatusStrip > Exception "Error creating window handle" in RadForm

Not answered Exception "Error creating window handle" in RadForm

Feed from this thread
  • Franco avatar

    Posted on Feb 7, 2011 (permalink)

    Good morning.
      I use RadControls Q3 2010 and Windows 7 Professional. I have an exception in a particular case, and I recreate it in a very simple test project:

    1. With VB.net 2008 Express Edition, create a new Windows Form Application.
    2. Add reference to Telerik.WinControls and Telerik.WinControls.UI.
    3. In the designer of the form, replace the line "Inherits System.Windows.Forms.Form" with "Inherits Telerik.WinControls.UI.RadForm".
    4. Run the project.

    Now you have to open at least 2 windows of type "explorer", see Image1.png attached. Click on the document icon in the bottom bar to reproduce the situation in the Image1. Two small preview windows will be displayed by Windows 7. Click again, to make them disappearing, and an exception will be thrown (Image2). How can I solve this problem?

    Thank you
    Gianfranco Pesenato

    Attached files

    Reply

  • Posted on Feb 7, 2011 (permalink)

    Hello,

    I have tried this out, though I am using VS 2010, and .NET 4.0 but I have been unable to replicate the issue. From the look of the error message dialog, this looks like it could be an issue with your installation of the .NET Framwork. Are you able to replicate this issue on another machine?

    If so, please can you also post the full error.
    Regards,
    Richard

    Reply

  • Franco avatar

    Posted on Feb 8, 2011 (permalink)

    Good morning.
        I tried with VB.net 2010 and Framework 4.0, but the result is always the same. I use Telerik RadControls 2010.3.10.1109. See below for full error message.

    System.ComponentModel.Win32Exception (0x80004005): Errore durante la creazione dell'handle della finestra.
       in System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
       in System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle()
       in System.Windows.Forms.Timer.TimerNativeWindow.StartTimer(Int32 interval)
       in System.Windows.Forms.Timer.set_Enabled(Boolean value)
       in System.Windows.Forms.Timer.Start()
       in Telerik.WinControls.RadControlAnimationTimer.EnsureTimer()
       in Telerik.WinControls.RadControlAnimationTimer.Start()
       in Telerik.WinControls.ElementValuesAnimator.StartTimer()
       in Telerik.WinControls.ElementValuesAnimator.ValuesAnimatorNotRunningState.PerformActionOverride(AnimationState newState)
       in Telerik.WinControls.ElementValuesAnimator.ValuesAnimatorState.PerformAction(AnimationState newState)
       in Telerik.WinControls.AnimatedPropertySetting.ApplyValueInternal(RadElement element)
       in Telerik.WinControls.AnimatedPropertySetting.ApplyValue(RadElement element)
       in Telerik.WinControls.Styles.StylesheetTreeNode.ApplyGroupSettingsOnElement(PropertySettingGroup group, RadElement element)
       in Telerik.WinControls.Styles.StylesheetTreeNode.ApplyPropertySettingsOnAttachedElement(RadElement element, Boolean onPropertyChanged)
       in Telerik.WinControls.Styles.StylesheetTreeNode.AttachElement(RadElement element)
       in Telerik.WinControls.Styles.StylesheetTree.NodeMapElement(StylesheetTreeNode node, RadElement element, MapElementContext context)
       in Telerik.WinControls.Styles.StylesheetTree.NodeMapElement(StylesheetTreeNode node, RadElement element, MapElementContext context)
       in Telerik.WinControls.Styles.StylesheetTree.MapStyleNodesToElement(RadElement element, MapElementContext context)
       in Telerik.WinControls.Styles.StylesheetTree.MapStyleNodesToElementHierarchy(MapElementContext context)
       in Telerik.WinControls.Styles.StylesheetTree.AttachElement(RadElement addedElement)
       in Telerik.WinControls.Styles.StylesheetTree.OnElementSelectorKeyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
       in Telerik.WinControls.Styles.StyleManager.ElementStyleSelectorKeyPropertyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
       in Telerik.WinControls.Styles.StyleManager.Telerik.WinControls.IPropertyChangeListener.OnRadPropertyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
       in Telerik.WinControls.ComponentThemableElementTree.NotifyElementPropertyChanged(RadElement element, RadPropertyChangedEventArgs args)
       in Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
       in Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       in Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       in Telerik.WinControls.Styles.ItemStateManagerBase.SetItemState(RadItem item, String[] stateNames)
       in Telerik.WinControls.Styles.ItemStateManager.StateInvalidated(RadItem item, StateNodeBase elementStateBase)
       in Telerik.WinControls.Styles.ItemStateManager.ItemStateChanged(RadItem senderItem, RadPropertyChangedEventArgs changeArgs)
       in Telerik.WinControls.Styles.StateManagerAttachmentData.attachedElement_RadPropertyChanged(Object sender, RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadObject.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
       in Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
       in Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       in Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
       in Telerik.WinControls.UI.RadFormElement.SetIsFormActiveInternal(Boolean isActive)
       in Telerik.WinControls.UI.RadFormBehavior.OnWMActivate(Message& m)
       in Telerik.WinControls.UI.RadFormBehavior.HandleWndProc(Message& m)
       in Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Thank you
    Gianfranco Pesenato

    Reply

  • Posted on Feb 8, 2011 (permalink)

    Hello Franco,

    I still haven't been able to replicate this issue I'm afraid. However, I notice that you are not using the latest version of the controls. I'd first advise upgrading. If this still does not solve the issue, it would be best to open a support ticket.
    All the best
    Richard

    Reply

  • Franco avatar

    Posted on Feb 9, 2011 (permalink)

    Good morning.
        I updated RadControls to last version, but unfortunately I still have the problem. I submit a support ticket now.

    Kind regards
    Gianfranco Pesenato

    Reply

  • Stefan Stefan admin's avatar

    Posted on Feb 10, 2011 (permalink)

    Hello Franco,

    So far my tests did no show such an exception (see attached video). For this reason we will need some more time to investigate this case. Meanwhile can you please check if the described behavior occurs on another machine and let me know what the results are.

    Looking forward to your reply.

    Greetings,
    Stefan
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
    Attached files

    Reply

  • Patrick Barranis avatar

    Posted on Sep 7, 2011 (permalink)

    Hello, I just had someone report this exact same issue and callstack in our product.  We're running the 2011 Q1 SP1 build.  Was a fix ever found or the issue resolved?

    Thanks.

    Reply

  • Franco avatar

    Posted on Sep 8, 2011 (permalink)

    Hello Patrick.
        Unfortunately I have found no fix for the problem. I disabled grouping in Windows bottom bar (application bar?), so that I don't get the problem. Till now, none of our customers complained about this problem.
    Gianfranco

    Reply

  • Stefan Stefan admin's avatar

    Posted on Sep 12, 2011 (permalink)

    Hello guys,

    I was not able to replicate this behavior on my end and this is why a fix was not introduced. If you are able to provide me with a project demonstrating the issue, feel free to open a support ticket and attach it there. Once I am able to replicate it, we will investigate the issue and log it in our issue tracking system.
     
    Best wishes,
    Stefan
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Forms, Dialogs, TitleBar, StatusStrip > Exception "Error creating window handle" in RadForm
Related resources for "Exception "Error creating window handle" in RadForm"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]