NullReferenceException

6 posts, 0 answers
  1. Frank Schürer
    Frank Schürer avatar
    13 posts
    Member since:
    Aug 2009

    Posted 12 Oct 2010 Link to this post

    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: 

  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Oct 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Oct 2010 Link to this post

    you may also want to try deleting everything from the Obj and Bin directories and re-building. 
    Richard
  5. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 15 Oct 2010 Link to this post

    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
  6. Peter Szintai
    Peter Szintai avatar
    28 posts
    Member since:
    Jul 2009

    Posted 24 Sep 2013 Link to this post

    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
  7. George
    Admin
    George avatar
    500 posts

    Posted 27 Sep 2013 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready