We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Crash while using a keyboard shortcut on popup menu item

Hello All,

Application is crashing while using the keyboard shortcut on popup menu.
In my application on right click on the gridcontrol item a popup is shown to delete the item as (Delete - Del). Where D is the keyboard shortcut. when user clicks on D. application is getting crashed.

Below is the crash details:

StackTraceString: <none>
HResult: 80131502
There are nested exceptions on this thread. Run with -nested for details

MANAGED_OBJECT: !dumpobj 12c6ef98
Name: System.String
MethodTable: 70c10d48
EEClass: 709cd66c
Size: 190(0xbe) bytes
 (C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll)
String: Index was out of range. Must be non-negative and less than the size of the collection.
Fields:
      MT    Field   Offset                 Type VT     Attr    Value Name
70c12f94  4000096        4         System.Int32  1 instance       87 m_arrayLength
70c12f94  4000097        8         System.Int32  1 instance       86 m_stringLength
70c11a28  4000098        c          System.Char  1 instance       49 m_firstChar
70c10d48  4000099       10        System.String  0   shared   static Empty
    >> Domain:Value  003bd2e0:02471198 <<
70c11978  400009a       14        System.Char[]  0   shared   static WhitespaceChars
    >> Domain:Value  003bd2e0:0247173c <<

EXCEPTION_MESSAGE:  Index was out of range. Must be non-negative and less than the size of the collection.

MANAGED_OBJECT_NAME:  System.ArgumentOutOfRangeException

MANAGED_STACK_COMMAND:  !pe 12c6eeac


LAST_CONTROL_TRANSFER:  from 71529a14 to 76fbc42d

ADDITIONAL_DEBUG_TEXT:  Followup set based on attribute [Is_ChosenCrashFollowupThread] from Frame:[0] on thread:[PSEUDO_THREAD]

FAULTING_THREAD:  ffffffff

BUGCHECK_STR:  APPLICATION_FAULT_CLR_EXCEPTION__SYSTEM.ARGUMENTOUTOFRANGEEXCEPTION_WRONG_SYMBOLS__SYSTEM.ARGUMENTOUTOFRANGEEXCEPTION

PRIMARY_PROBLEM_CLASS:  CLR_EXCEPTION_SYSTEM.ARGUMENTOUTOFRANGEEXCEPTION

DEFAULT_BUCKET_ID:  CLR_EXCEPTION_SYSTEM.ARGUMENTOUTOFRANGEEXCEPTION

STACK_TEXT:  
0017e7f4 712eafe9 mscorlib_ni!System.Collections.ArrayList.get_Item+0x7251d9
0017e804 088413b5 syncfusion_shared_base!Syncfusion.Collections.ArrayListExt.get_Item+0x5
0017e808 08848916 syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.BarItems.get_Item+0x6
0017e810 0b55b607 syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.MenuGridControlBase.ShowHighlight+0x57
0017e824 0b55b54c syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.ShowHighlight+0x14
0017e838 0b5532fa syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.MenuGridControlBase.set_HighlightRange+0x7a
0017e84c 0e3261a1 syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.ProcessMnemonic+0x4f1
0017e8a0 0e325a7c syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.ProcessKeyDown+0x44c
0017e8ec 0e325582 syncfusion_tools_windows!Syncfusion.Windows.Forms.Tools.XPMenus.MenuGrid.KeyboardMessage+0x52
0017e900 0e03e46c syncfusion_shared_base!Syncfusion.Windows.Forms.PopupManager.PreFilterMessage+0x8c

3 Replies

SK Senthil Kumaran Rajan Syncfusion Team April 7, 2015 05:30 PM UTC

Hi Girish,

Thank you for using Syncfusion products.

Based on the shared call stack, we have tried to reproduce the reported behavior by loading PopupMenu in GridControl with multiple aspects. But we are unable to reproduce this reported behavior. And normally index out of range exception will be raised, if incorrect item index is passed to the collection.

Could you please let us know if any functions has been performed based on item index, in mentioned item click event?

Sample Location : http://www.syncfusion.com/downloads/support/forum/118734/Popup-357943714.zip

Video Location : http://www.syncfusion.com/downloads/support/forum/118734/PopUpMenu1800849250.zip

Could you please check with the sample, video attached in above location? And additionally If we have misunderstood this reported requirement, could you please guide us by providing more details like, sample that can help us to reproduce this reported behavior?That will be helpful for us to analyze and provide prompt solution as earlier as possible.

Please let us know if you need further assistance.

Regards,
Senthil


GK girish kedim April 9, 2015 06:31 AM UTC

Hello Senthil,

Thanks for the sample application. I tried to modify the sample application to reproduce the defect. But could't able to succeed !!. 
I would like to know from your point of view, in which case the defect will come. so that I can modify the sample code to reproduce the defect.

With Regards,
Girish K


SK Senthil Kumaran Rajan Syncfusion Team April 10, 2015 09:01 AM UTC

Hi Girish,

Thank you for your update.

We would like to let you know that, Index out of range exception will be thrown if incorrect index is passed to the collection.

For example:

Mostly collections are based on zeroth index. if Popup menu has 5 items, it has the index from 0 to 4. And pointing unavailable index like “5” to collection will cause this exception or passing invalid index like “-1” to the collection will cause this exception. So please ensure, as only available items has to be invoked from collection.

Please let us know if it helps,

Regards,
Senthil

Loader.
Live Chat Icon For mobile
Up arrow icon