This is a migrated thread and some comments may be shown as answers.

Exception "Error creating window handle" in RadForm

24 Answers 832 Views
Form
This is a migrated thread and some comments may be shown as answers.
Franco
Top achievements
Rank 1
Franco asked on 07 Feb 2011, 10:45 AM

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

24 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 07 Feb 2011, 12:33 PM
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
0
Franco
Top achievements
Rank 1
answered on 08 Feb 2011, 11:54 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 08 Feb 2011, 12:08 PM
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
0
Franco
Top achievements
Rank 1
answered on 09 Feb 2011, 08:43 AM
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
0
Stefan
Telerik team
answered on 10 Feb 2011, 10:14 AM
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.
0
Patrick Barranis
Top achievements
Rank 1
answered on 07 Sep 2011, 04:51 PM
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.
0
Franco
Top achievements
Rank 1
answered on 08 Sep 2011, 04:16 PM
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
0
Stefan
Telerik team
answered on 12 Sep 2011, 02:30 PM
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 >>

0
Jason
Top achievements
Rank 1
answered on 11 Mar 2013, 02:31 PM
Hi Stefan,

I'm also getting the exact same error, but somewhat randomly. I have an app with a ribbon control and that appears to be causing it. When I launch another .Net application (even one without Telerik controls) this error appears at random. It doesn't always happen immediately. Sometimes it waits a few minutes and then pops up. In either case, it is causing our application to crash. Has there been a fix for this?

FYI. I tried to create a support ticket, but it appears my support has expired (despite the fact that we have never used it). Since this is quite clearly a bug with the Telerik controls, it seems like you should offer free support if the issue is a bug with your software. I'm not asking for free training or free support, just the ability to have you fix your internal bugs without having to pay for it.

Here is my error message.

Thanks.
Jason

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: Error creating window handle.
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Timer.TimerNativeWindow.EnsureHandle()
   at System.Windows.Forms.Timer.TimerNativeWindow.StartTimer(Int32 interval)
   at System.Windows.Forms.Timer.set_Enabled(Boolean value)
   at System.Windows.Forms.Timer.Start()
   at Telerik.WinControls.RadControlAnimationTimer.EnsureTimer()
   at Telerik.WinControls.RadControlAnimationTimer.Start()
   at Telerik.WinControls.ElementValuesAnimator.StartTimer()
   at Telerik.WinControls.ElementValuesAnimator.ValuesAnimatorNotRunningState.PerformActionOverride(AnimationState newState)
   at Telerik.WinControls.ElementValuesAnimator.ValuesAnimatorState.PerformAction(AnimationState newState)
   at Telerik.WinControls.ElementValuesAnimator.ChangedCurrentAction(AnimationState newState)
   at Telerik.WinControls.AnimatedPropertySetting.ApplyValueInternal(RadElement element)
   at Telerik.WinControls.AnimatedPropertySetting.ApplyValue(RadElement element)
   at Telerik.WinControls.Styles.StylesheetTreeNode.ApplyGroupSettingsOnElement(PropertySettingGroup group, RadElement element)
   at Telerik.WinControls.Styles.StylesheetTreeNode.ApplyPropertySettingsOnAttachedElement(RadElement element, Boolean onPropertyChanged)
   at Telerik.WinControls.Styles.StylesheetTreeNode.AttachElement(RadElement element)
   at Telerik.WinControls.Styles.StylesheetTree.NodeMapElement(StylesheetTreeNode node, RadElement element, MapElementContext context)
   at Telerik.WinControls.Styles.StylesheetTree.NodeMapElement(StylesheetTreeNode node, RadElement element, MapElementContext context)
   at Telerik.WinControls.Styles.StylesheetTree.MapStyleNodesToElement(RadElement element, MapElementContext context)
   at Telerik.WinControls.Styles.StylesheetTree.MapStyleNodesToElementHierarchy(MapElementContext context)
   at Telerik.WinControls.Styles.StylesheetTree.AttachElement(RadElement addedElement)
   at Telerik.WinControls.Styles.StylesheetTree.OnElementSelectorKeyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
   at Telerik.WinControls.Styles.StyleMap.OnElementStyleSelectorKeyPropertyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
   at Telerik.WinControls.Styles.StyleManager.ElementStyleSelectorKeyPropertyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
   at Telerik.WinControls.Styles.StyleManager.Telerik.WinControls.IPropertyChangeListener.OnRadPropertyChanged(RadElement element, RadPropertyChangedEventArgs changeArgs)
   at Telerik.WinControls.ComponentThemableElementTree.NotifyElementPropertyChanged(RadElement element, RadPropertyChangedEventArgs args)
   at Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.RadRibbonBarElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
   at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
   at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
   at Telerik.WinControls.RadObject.SetValue(RadProperty property, Object value)
   at Telerik.WinControls.Styles.ItemStateManagerBase.SetItemState(RadItem item, String[] stateNames)
   at Telerik.WinControls.Styles.ItemStateManager.StateInvalidated(RadItem item, StateNodeBase elementStateBase)
   at Telerik.WinControls.Styles.ItemStateManager.ItemStateChanged(RadItem senderItem, RadPropertyChangedEventArgs changeArgs)
   at Telerik.WinControls.Styles.StateManagerAttachmentData.attachedElement_RadPropertyChanged(Object sender, RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.VisualElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadComponentElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadItem.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.UI.RadRibbonBarElement.OnPropertyChanged(RadPropertyChangedEventArgs e)
   at Telerik.WinControls.RadObject.RaisePropertyNotifications(RadPropertyValue propVal, Object oldValue, Object newValue, ValueSource oldSource)
   at Telerik.WinControls.RadObject.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
   at Telerik.WinControls.RadElement.SetValueCore(RadPropertyValue propVal, Object propModifier, Object newValue, ValueSource source)
   at Telerik.WinControls.RadObject.SetValue(RadProperty property, Object value)
   at Telerik.WinControls.UI.RadRibbonFormBehavior.OnWMActivate(Message& m)
   at Telerik.WinControls.UI.RadRibbonFormBehavior.HandleWndProc(Message& m)
   at Telerik.WinControls.UI.RadFormControlBase.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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PLCDataAcquisition
    Assembly Version: 3.3.6.0
    Win32 Version: 3.3.6.0
    CodeBase: file:///C:/Prolink/QC-PLC%203.3/PLCDataAcquisition.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5442 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Telerik.WinControls.UI
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.UI/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.UI.dll
----------------------------------------
Telerik.WinControls
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.dll
----------------------------------------
INGEAR.NET.ABLink
    Assembly Version: 3.0.2010.2018
    Win32 Version: 3.0.2010.2018
    CodeBase: file:///C:/Prolink/QC-PLC%203.3/INGEAR.NET.ABLink.DLL
----------------------------------------
INGEAR.NET.MBLINK
    Assembly Version: 3.0.2011.110
    Win32 Version: 3.0.2011.110
    CodeBase: file:///C:/Prolink/QC-PLC%203.3/INGEAR.NET.MBLINK.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.HwHash
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Prolink/QC-PLC%203.3/Interop.HwHash.DLL
----------------------------------------
TelerikCommon
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/TelerikCommon/2011.2.11.831__5bb2a467cbec794e/TelerikCommon.dll
----------------------------------------
pnfjkd2r
    Assembly Version: 2011.2.11.831
    Win32 Version: 2.0.50727.5442 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Telerik.WinControls.GridView
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.GridView/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.GridView.dll
----------------------------------------
Telerik.WinControls.Themes.Office2010Black
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Office2010Black/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.Themes.Office2010Black.dll
----------------------------------------
Telerik.WinControls.Themes.Office2010Blue
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Office2010Blue/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.Themes.Office2010Blue.dll
----------------------------------------
Telerik.WinControls.Themes.Office2010Silver
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Office2010Silver/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.Themes.Office2010Silver.dll
----------------------------------------
Telerik.WinControls.Themes.Desert
    Assembly Version: 2011.2.11.831
    Win32 Version: 2011.2.11.0831
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Telerik.WinControls.Themes.Desert/2011.2.11.831__5bb2a467cbec794e/Telerik.WinControls.Themes.Desert.dll
----------------------------------------
System.ServiceProcess
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
fv6zipcy
    Assembly Version: 2011.2.11.831
    Win32 Version: 2.0.50727.5442 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5459 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Data.SQLite
    Assembly Version: 1.0.66.0
    Win32 Version: 1.0.66.0
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data.SQLite/1.0.66.0__db937bc2d44ff139/System.Data.SQLite.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
Nevron.Chart
    Assembly Version: 10.10.14.12
    Win32 Version: 10.10.14.12
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Nevron.Chart/10.10.14.12__2961c51bb98125d2/Nevron.Chart.dll
----------------------------------------
Nevron.Presentation
    Assembly Version: 10.10.14.12
    Win32 Version: 10.10.14.12
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Nevron.Presentation/10.10.14.12__6656c5d1103e75cc/Nevron.Presentation.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



0
Peter
Telerik team
answered on 14 Mar 2013, 11:39 AM
Hi Jason,

Thank you for writing.

I think that this exception is not directly related to Telerik controls (the exceptions is in System.Windows.Forms.NativeWindow.CreateHandle method) and may be raised by low system resources.

There are many blog posts and publications regarding this matter -
error creating window handlecannot create window handle

Thank you for your understanding.

Regards,
Peter
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Jason
Top achievements
Rank 1
answered on 14 Mar 2013, 02:44 PM
Hi Stefan,

It is definitely an issue with Telerik because I only have one app deployed with the Telerik controls and it is the only app where this happens. I have plenty of system resources. I'm running 64bit Win 7 with 8Gb of RAM and there are several Gigs free at any moment.

I'm running VS 2012 targeting .Net 2.0 framework.

We're currently running Q2 2011 Winforms controls. Do we have access to upgrade to the latest? Maybe you fixed the bug in more recent versions and that's why you can't repeat it?

Thanks.
Jason
0
Patrick Barranis
Top achievements
Rank 1
answered on 14 Mar 2013, 02:54 PM
Hello all,

I had this problem a long time ago, and it was resolved via a support ticket.  I forget the details, but re-reading the support ticket, it appears Telerik recommended I try disabling animations, which solved the problem.  The relevant code snippet is:
ThemeResolutionService.AllowAnimations = false;

I hope this helps.  For Telerik support, if you'd like to look at the ticket so you can provide more info on this thread, the ticket ID is 461700.

Good luck.
0
Jason
Top achievements
Rank 1
answered on 14 Mar 2013, 03:13 PM
Hi Patrick,

That appears to have solved it! Thank you so much for your help. This is definitely some sort of bug in the Telerik controls.

Telerik People - Please look into the following.

1. This only happens when you run the application as an executable OUTSIDE of the IDE. If you run it in visual studio, it works great and never has the problem. In order to test, I would compile the exe and then copy it to the regular app install directory.

2. When I open another .net application that has windows that launch other sub windows (frm.ShowDialog()), if I go more than 3 sub windows deep and then close the windows in the other application (that does not use Telerik controls), it crashes the app with telerik controls.

To test, create a regular executable app that opens sub windows at least 3 deep and does not use Telerik at all. Then launch it at the same time a Telerik app is running. I just put them side by side on the screen and didn't touch the Telerik app. Open the sub windows in your test app and then close them. The error happens when you close the windows, not when you open them. I was able to get it to repeat every time I closed the deepest sub window until I added the line of code from Patrick. Once I added that and re-compiled, the issue went away.

Weird, but your animations appear to be interacting with other unrelated applications in Windows. My telerik app is using Telerik forms as well as a Telerik Ribbon Control Form for the screen that is causing the crash. Looking through the error stack trace, it appears to have something to do with the ribbon animations that are on a timer. Please fix this as I'm sure others will have the same issue.

Thanks and thanks again to Patrick. I was pulling my hair out trying to figure out why this was happening.

Jason
0
Patrick Barranis
Top achievements
Rank 1
answered on 14 Mar 2013, 03:19 PM
Hi Jason,

I didn't look at the thread very closely before I posted.  You're running a very ancient version of the controls.  Incidentally, I believe that's the exact version I was running when I had this problem.  I could be wrong, but I think Telerik fixed it in the very next version.

But regardless, you really should upgrade.  Time marches on, bugs get fixed, things are more compatible... best not to live in the past.

Good luck.
0
Jason
Top achievements
Rank 1
answered on 14 Mar 2013, 03:23 PM
Hi Patrick,

Ha ha.. ancient = < 2 years old. :)

While I agree about keeping up to date, we use Telerik in a product that is rolled out to end customers so we can only upgrade the controls when we do a version upgrade (which requires a re-install of our product). Unfortunately, we don't have the luxury of constantly updating for every bug fix and sometimes we get stuck with ancient versions for a couple of years.

Thanks again.
Jason
0
Patrick Barranis
Top achievements
Rank 1
answered on 14 Mar 2013, 03:30 PM
Haha - well, almost 3 years :)

Ouch.  I understand and feel your pain.  Btw, we discovered WyUpdate from WyDay a while back as an excellent auto-update tool.  We were using Microsoft's ClickOnce technology but hated the shortcomings.  Since we switched to WyUpdate we couldn't be happier - it's a solid tool with a very no-nonsense approach.  You should check it out if auto-updating your app is something that's not impossible due to other requirements.
0
Peter
Telerik team
answered on 15 Mar 2013, 08:41 AM
Hi all,

Thank you Jason for the sharing which version do you use. This was a known issue in 2011 versions, so in this case you can try use the work-around from Patrik - disabling the Animation in RadControls:

ThemeResolutionService.AllowAnimations = false;

Thank you Patrik for the cooperation.

Kind regards,
Peter
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Timothy
Top achievements
Rank 1
answered on 13 Jun 2013, 12:07 AM
This is still a problem in Q1 2013 (I think, check the attached image for the dlls and their version numbers).

The workaround seems to fix it but the problem, for me, is both when running VS 2010 and the executable.

The problem seems to occur when minimizing a maximized window. VS 2010 and Windows Explorer does not seem to trigger the error. However, Notepad, Outlook and Remote Desktop does.

I am using WinForms and VB.NET. OS is Windows 7 on a laptop.

Q2 2013 just came out today but I haven't downloaded it. I will make another post when I test the latest version.

0
Timothy
Top achievements
Rank 1
answered on 13 Jun 2013, 05:56 PM
This is still an issue as of Q2 2013.

The behavior is a little different from what I saw yesterday but it still crashes the program when minimizing certain, unrelated applications. Today it crashes when minimizing an application twice. I've noticed it with the following applications: Notepad, VS 2010 and SSMS 2012.
0
Peter
Telerik team
answered on 17 Jun 2013, 05:12 PM
Hello Timothy,

Thank you for writing back.

I not sure that I can help as we think that this is probably not related to our controls and it is possibly related to the Terminal Service. Our controls extensively use animations and this can cause the error under terminal server because the resources are limited. I am not aware of an approach for detecting that resource are running low so you can disable the animations in this case, so it will be best if you are aware of the system you are going to deploy the app to and test with it in advance.

I would like to mention that we have received a report from users that updating the display drivers might resolve the issue, you can give this approach a try.

Regards,
Peter
Telerik
RadChart for WinForms is obsolete. Now what?
0
Timothy
Top achievements
Rank 1
answered on 27 Jun 2013, 07:18 AM
As you can see in my last post there are multiple programs that will trigger the error.

I'm not sure how you can say "this is probably not related to our controls". It only happens when using your controls and adding the following code to the Load event prevents the error:
ThemeResolutionService.AllowAnimations = False

So, I'd say it's related regardless of whether the problem lies within your code or not. As far as I can tell my display drivers are up-to-date.

By the way, I'm not expecting Telerik to fix anything. I'm merely trying to keep the thread current in case others have this problem (and one of the earlier suggestions was to upgrade the Telerik controls, which, in my case, didn't help).
0
Peter
Telerik team
answered on 02 Jul 2013, 07:57 AM
Hello Timothy,

I am sorry to hear you are experiencing this problem with Telerik RadControls for Winforms. 
As I mentioned our controls extensively use animations and this can cause the error under terminal server because the resources under terminal server are limited. Also the Terminal server resources are related in some way to the video driver. You can decrease resource consummation under Terminal Server with disabling the animations.

Regards,
Peter
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Timothy
Top achievements
Rank 1
answered on 02 Jul 2013, 06:40 PM
I'm sorry, I must have confused you. It has nothing to do with Terminal Services. I don't get the error when I'm inside a terminal services session. I have a laptop and a desktop. Sometimes when I'm working from my laptop I will have a remote session open to my desktop. The first time I noticed the problem was when I was working from my laptop. I noticed that my application (on the laptop) would crash when I minimized the remote session. Further investigation revealed that other applications would cause my application to crash whether or not I had a remote session open. For instance, minimizing Notepad would cause my application to crash. The crash would occur while debugging my application from within VS 2010 Pro or running the exe.

When I first started getting the error I had no clue what was triggering it. I thought it just crashed after leaving it running for a while. I finally Googled it found this thread. Reading this thread gave me enough information to narrow down the problem for me so I wanted to share my results in case someone else was having what seemed to be random crashes.

I'm not sure what consequences result from using the suggested workaround but so far I haven't seen any.
0
Peter
Telerik team
answered on 08 Jul 2013, 07:51 AM
Hello Timothy,

Thank you for writing back.

We have never faced this issue with Minimizing the application and we did not received before such reports.
It seems that the system resources are limited because the exceptions is in System.Windows.Forms.NativeWindow.CreateHandle method. This exception happens when
the number of user objects (handles) grows and the application crashes because you probably pass the limit supported by Windows. This usually can be solved this by disposing unused hidden forms and doing some major cleanup. I would suggest to check your logic on that matter. Also if you are able to extract a portion of your application so that I can reproduce the issue locally I will be able to give you an accurate answer as to what the issue might be. If you are not able to extract a working sample you can send me your project and I will build and try to figure out where the issue is coming from.

Looking forward to your reply.

Regards,
Peter
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Form
Asked by
Franco
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Franco
Top achievements
Rank 1
Stefan
Telerik team
Patrick Barranis
Top achievements
Rank 1
Jason
Top achievements
Rank 1
Peter
Telerik team
Timothy
Top achievements
Rank 1
Share this question
or