12-10-2014, 12:56 AM
I am a new one to Hot Door CORE and try to use it to develop illustrator plug-in. I want to create a panel with flyout menu. Currently, the panel has been created, but the flyout menu can't be added to the panel. Following are the code:
This code can be compiled, but when i start Illustrator, the error message "Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)" popped at the last line of the code.
If there some one can help me, thanks.
Code:
std::vector<hdi::core::EntryData> docPanelFlyoutMenuItems;
hdi::core::EntryData docPanelFlyoutMenuItem = hdi::core::EntryData("2", "Write XML", NULL, true);
docPanelFlyoutMenuItems.push_back(
hdi::core::EntryData(
"1",
"Load XML",
NULL,
true
)
);
docPanelFlyoutMenuItems.push_back(docPanelFlyoutMenuItem);
this->__docPanelFlyout = hdi::core::Flyout(docPanelFlyoutMenuItems);
this->__docPanel.setFlyoutMenu(this->__docPanelFlyout);
This code can be compiled, but when i start Illustrator, the error message "Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)" popped at the last line of the code.
If there some one can help me, thanks.