Welcome to the Xceed Community | Help
Community Search  
More Search Options

Disabling a MenuItem crashes program when shortcut is called

Sort Posts: Previous Next
  •  11-20-2009, 5:39 PM Post no. 24945

    Disabling a MenuItem crashes program when shortcut is called

    Hi,

    I have a menu item that is assigned a shortcut. If I programmatically disable the menu item and try the shortcut from I get the following exception:

        at Xceed.SmartUI.SmartItemCollection.OnShortcut(Shortcut shortcut)
       at Xceed.SmartUI.SmartItemCollection.OnShortcut(Shortcut shortcut)
       at Xceed.SmartUI.SmartItemCollection.OnShortcut(Shortcut shortcut)
       at Xceed.SmartUI.Win32.SingletonKeyboardHook.Hook(Int32 code, IntPtr wparam, IntPtr lparam)
       at Xceed.SmartUI.Win32.Win32Hook.IntPtrHookProc(Int32 code, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.GetMessageW(MSG& msg, HandleRef hWnd, Int32 uMsgFilterMin, Int32 uMsgFilterMax)
       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(Form mainForm)
       at MyApp.Main() in myApp.cs:line 2767

    Is this a known issue?

     

    thanx

  •  12-22-2009, 4:05 PM Post no. 25277 in reply to 24945

    Re: Disabling a MenuItem crashes program when shortcut is called

    Hi,

    pasting an exception stack trace is rarely enough to debug a case.  Try debuging using Step-by-Step, perhaps?  Also, it would be helpful to have a little more information; a few lines of code, ideally the few lines right before the exception is being thrown.


    Ghislain
    Technical Support and software developer
    Xceed Software Inc.
    Knowledge Base : http://xceed.com/kb/
    Update Center : http://xceed.com/updates/
    Documentation Center : http://xceed.com/doc/
    For everything else, there is Google
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.