This is a migrated thread and some comments may be shown as answers.
NullReferenceException
5 Answers 47 Views
This is a migrated thread and some comments may be shown as answers.
Frank Schürer
Top achievements
Rank 1
Frank Schürer asked on 12 Oct 2010, 02:01 PM
Hi,

i have a problem concerning a standard radtextbox (Q2 2010 => 2010.2.10.914).
Sometimes, but not everytime, when i start entering a value into one of my radtextboxes the following error will be thrown.
There are no events associated with these radtextboxes and i have absolutely no idea why this error appears.
Any help appreciated.

System.NullReferenceException was not handled
  Message="Object Reference not set to an instance of an object"
  Source="Telerik.WinControls"
  StackTrace:
       at Telerik.WinControls.Keyboard.ChordMessageFilter.FindChordPattern(IList`1 list)
       at Telerik.WinControls.Keyboard.ChordMessageFilter.FindChordPattern()
       at Telerik.WinControls.Keyboard.ChordMessageFilter.ProccessChord()
       at Telerik.WinControls.Keyboard.ChordMessageFilter.System.Windows.Forms.IMessageFilter.PreFilterMessage(Message& msg)
       at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
       at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 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 System.Windows.Forms.Application.Run(ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at MediaCenter.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
       at System.Activator.CreateInstance(ActivationContext activationContext)
       at 
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

5 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 12 Oct 2010, 02:07 PM
Hi, 

One line in here 
(at 
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone)
makes me think that this is not a Telerik issue. 
Is this specifically in debug mode? 
Can you try disabling the hosting process as detailed in this link:
http://msdn.microsoft.com/en-us/library/ms185330.aspx

Let me know if that helps
Richard
0
Richard Slade
Top achievements
Rank 2
answered on 12 Oct 2010, 02:20 PM
you may also want to try deleting everything from the Obj and Bin directories and re-building. 
Richard
0
Jack
Telerik team
answered on 15 Oct 2010, 07:42 AM
Hi Frank,

Thank you for reporting this issue. We have not observed it before and I was not able to reproduce it locally. Please send me your application and describe how exactly to reproduce it. I am looking forward to your reply.

All the best, Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Peter Szintai
Top achievements
Rank 1
answered on 24 Sep 2013, 09:40 PM
Hi All,

I do not want to unnecessarily revive the thread, but today we faced with the same problem (plus: we got the exception in the case of radgrids).
Version: 2012.1.321.20

We tried the suggestions, without success.
Later we found the problem: on the form in the Load event we called a method async, in the Shown event we called the same method again.
So, in our case it was a simple threading issue, but the exception message is misleading.

Regards,
Peter
0
George
Telerik team
answered on 27 Sep 2013, 02:34 PM
Hello Peter,

Thank you for contacting us.

We recently encountered the issue described in this thread and it was addressed. The fix will be available in our upcoming release. Here is a link to the item at hand: 
If you have any other queries, do not hesitate to ask.

Regards,
George
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 >>
Asked by
Frank Schürer
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Jack
Telerik team
Peter Szintai
Top achievements
Rank 1
George
Telerik team
Share this question
or