Hot Door CORE Forum

Full Version: fileOpenPrompt crashes AI24
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've encountered a bug that crashes AI24. To reproduce the bug, add these two lines to the postStartup method in the Skeleton project:


Code:
std::string s;
bool success = HDI_CORE_ILLUSTRATOR->fileOpenPrompt("Open a file", s);


and of course #include "hdicoreIllustrator.h" at the top.

When the code tries to execute in AI 24, it crashes with this result in Xcode (and similar in VS):

Thread 1: EXC_BAD_ACCESS (code=1, address=0x120)

I tested it with CORE 0.7.5, Illustrator 24.3.0 on both Mac and Windows, Xcode 10 and Visual Studio 2015, macOS Mojave and Windows 10. It works fine with Illustrator 2019 and earlier.

I sure hope there's a workaround.
I'd like to report that with CORE 0.7.6 this function works with AI25 for both Mac and Windows, but still crashes AI24.
I somehow missed this post. Does it still crash in 0.7.7? Did it only affect AI24?
It only affects AI24. Still crashes with 0.7.7. Thanks for looking into this.
This should be fixed in 0.7.8