When I try to launch AI CC without my plugin, it doesn't crash. Then, I add .aip file in ../Program Files/Adobe/Adobe Illustrator CC 2014/Plugins/%plugin_name%/ , open illustrator, trying to close it and it crashes. But when I try to launch it with plugin at second time it works fine.
After debugging I found, that it successfully passes through ShutdownPlugin() and main(), and then crashes in ai::UnicodeString::~UnicodeString (void), line "result = sAIUnicodeString->Destroy(*this);"
I've checked my code on "empty" ai::UnicodeString's, tried to delete every generated at launch files(such as passwords etc.) but haven't succeed .
Sounds like you have an ai::UnicodeString as a global variable (or a static varaible within a function). The exit cleanup code is deleting the object and calling ai::UnicodeString::~UnicodeString, but by this point all the suites have been deallocated so sAIUnicodeString is NULL.