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 .