I have a multi threaded single form WinForms application using mostly(all) Telerik controls. Recently i have experienced a problem that seems to be at random. Sometimes, when giving focus to the application it throws a NullReferenceException and causes the application to shutdown.
I captured the detail from the exception this time which has been pasted below. I found another post that may be related.
http://www.telerik.com/community/forums/winforms/general-discussions/net-runtime-2-0-error.aspx
I have not always had this problem as it just appeared in the past few days. Some of the recent changes i have made that may or may not be related:
Recently upgraded to the latest controls package.
Added additional RadButtons
Added columns to an existing RadGridView's (I found another error here but wasn't able reproduce after i corrected it where my control was not being recognized at runtime.)
Also, although my application has multiple threads the error seems to be related to me giving the application focus or clicking on a button(or attempting to) and it doesn't seems to be related to any specific button, other thread changes\events.
Is anyone else experiencing this or know a solution?
Thanks!
Exception Detail:
-----------------------------------------------------------------------------------------------------------------------------------
System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.
Source=Telerik.WinControls
StackTrace:
at Telerik.WinControls.RadControlAnimationTimer.Stop()
at Telerik.WinControls.ElementValuesAnimator.Stop()
at Telerik.WinControls.ElementValuesAnimator.AnimationTimer_Tick(Object sender, EventArgs e)
at Telerik.WinControls.RadControlAnimationTimer.OnTick(EventArgs e)
at Telerik.WinControls.RadControlAnimationTimer.internalTimer_Tick(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Home_Automation_Server.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
I captured the detail from the exception this time which has been pasted below. I found another post that may be related.
http://www.telerik.com/community/forums/winforms/general-discussions/net-runtime-2-0-error.aspx
I have not always had this problem as it just appeared in the past few days. Some of the recent changes i have made that may or may not be related:
Recently upgraded to the latest controls package.
Added additional RadButtons
Added columns to an existing RadGridView's (I found another error here but wasn't able reproduce after i corrected it where my control was not being recognized at runtime.)
Also, although my application has multiple threads the error seems to be related to me giving the application focus or clicking on a button(or attempting to) and it doesn't seems to be related to any specific button, other thread changes\events.
Is anyone else experiencing this or know a solution?
Thanks!
Exception Detail:
-----------------------------------------------------------------------------------------------------------------------------------
System.NullReferenceException was unhandled
Message=Object reference not set to an instance of an object.
Source=Telerik.WinControls
StackTrace:
at Telerik.WinControls.RadControlAnimationTimer.Stop()
at Telerik.WinControls.ElementValuesAnimator.Stop()
at Telerik.WinControls.ElementValuesAnimator.AnimationTimer_Tick(Object sender, EventArgs e)
at Telerik.WinControls.RadControlAnimationTimer.OnTick(EventArgs e)
at Telerik.WinControls.RadControlAnimationTimer.internalTimer_Tick(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Home_Automation_Server.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: