ProcessCmdKey throws OverflowException

2 posts, 1 answers
  1. Markus
    Markus avatar
    42 posts
    Member since:
    Sep 2008

    Posted 27 Aug 2010 Link to this post


    I have a mdi form with RadMenu. In my mdi child forms I have a few text boxes. When a text box has focus and user press ^ key the following Exception is thrown:

    System.OverflowException : "Value for a character was too small or too big"  or similar ( translated from german )

     bei System.Convert.ToChar(UInt32 value)\r\n   bei Telerik.WinControls.UI.RadMenu.ProcessCmdKey(Message& m, Keys keyData)\r\n   bei Telerik.WinControls.UI.RadMenu.PreviewMessage(Message& msg)\r\n   bei Telerik.WinControls.RadMessageFilter.NotifyGetMessageEvent(Message& msg)\r\n   bei Telerik.WinControls.RadMessageFilter.GetMessageHookProc(Int32 code, IntPtr wParam, IntPtr lParam)\r\n   bei System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)\r\n   bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n   bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n   bei System.Windows.Forms.Application.Run(Form mainForm)\r\n   bei Turnierplaner.Program.Main() in D:\\Projekte\\Kicker\\Turnierplaner\\Turnierplaner\\Program.cs:Zeile 19.\r\n   bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n   bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n   bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n   bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   bei System.Threading.ThreadHelper.ThreadStart()"

    But I have no chance to catch key press before exception occurs

  2. Answer
    Jack avatar
    2333 posts

    Posted 01 Sep 2010 Link to this post

    Hello Markus,

    Thank you for contacting us.

    I noticed that you have downloaded an old version of RadControls for WinForms. This issue should be addressed in Q2 2010 SP1. I recommend that you download and try this version. If the issue continues to appear, please send us your application so we can test and locate the reason for the described behavior..

    I am looking forward to your reply.

    Kind regards, 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
Back to Top