Hot Door CORE Forum
0.7.4 assert problem - 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: 0.7.4 assert problem (/showthread.php?tid=227)



0.7.4 assert problem - konstantin.zinchenko - 12-11-2019

Hello. I have ported my plugin on 0.7.4 framework with following changes:

-HDI_CORE_AIP_MODE define was added
-void hdi::core::pluginLoaded() was defined
references to hdicorePiPL were replaced

No other changes were made. Plugin compiles successfuly and runs. However when AI is closed I get the following assertion (see attached file). This did not manifest before. What could possibly be the cause of this? Is there any workaround? I encountered it on AI19, did not test with other versions


RE: 0.7.4 assert problem - Rick Johnson - 12-21-2019

Hi Konstantin,

I don't work for Hot Door (I'm just another plugin developer), nor am I an expert on Visual Studio, but I may be able to offer a few clues.

What is on line 99 of your source file hdipuiBasePlugin.cpp? Is that in the Plugin::shutdown method? If you have a timer in this project, maybe it's related to the issue I posted here just after yours.

I hope you can get it figured out. CORE is by far the best way I've seen to write Illustrator plugins. Best of luck!

-- Rick


RE: 0.7.4 assert problem - garrett - 12-22-2019

(12-11-2019, 09:46 AM)konstantin.zinchenko Wrote: Hello. I have ported my plugin on 0.7.4 framework with following changes:

-HDI_CORE_AIP_MODE define was added
-void hdi::core::pluginLoaded() was defined
references to hdicorePiPL were replaced

No other changes were made. Plugin compiles successfuly and runs. However when AI is closed I get the following assertion (see attached file). This did not manifest before. What could possibly be the cause of this? Is there any workaround? I encountered it on AI19, did not test with other versions

That assertion is regarding modal dialogs. If you can reproduce it, you may notice a warning in the debug output just before the assertion fails.

In short, you must destroy all instances of the ModalDialog class before the plugin is fully unloaded. Depending on your use case, you can do this in either the plugin pre-shutdown or the regular shutdown event.