I am having a strange issue with my plugin. I have a plugin in InDesign which is basically a dialog.
I've made the plugin so that a shortcut key can be assigned to the dialog by the user.The issue is that if the user assigns a shortcut key to the dialog, and then opens the dialog using that shortcut key, InDesign crashes. The most surprising thing is that the crash occurs only on a new install of the plugin, and before the dialog first launch i.e. after the plugin is installed, if the user assigns a shortcut to the dialog and presses the shortcut (before opening the dialog), InDesign crashes. Subsequent launches of the dialog (even after restarting InDesign and clearing preferences) work fine.
The plugin works fine when the dialog is invoked for the first time using the menu entry (though the same code is called at both places). It is only the first time shortcut usage results in a crash.
The issue is only on Mac, on windows everything works fine!
Here is a crash report :
Hope someone can help me out.