Hot Door CORE Forum
fileOpenPrompt crashes AI24 - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bugs (http://hotdoorcore.com/forum/forumdisplay.php?fid=5)
+--- Thread: fileOpenPrompt crashes AI24 (/showthread.php?tid=246)



fileOpenPrompt crashes AI24 - Rick Johnson - 10-01-2020

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.


RE: fileOpenPrompt crashes AI24 - Rick Johnson - 11-02-2020

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.


RE: fileOpenPrompt crashes AI24 - garrett - 01-18-2021

I somehow missed this post. Does it still crash in 0.7.7? Did it only affect AI24?


RE: fileOpenPrompt crashes AI24 - Rick Johnson - 01-21-2021

It only affects AI24. Still crashes with 0.7.7. Thanks for looking into this.


RE: fileOpenPrompt crashes AI24 - garrett - 03-07-2021

This should be fixed in 0.7.8