Hot Door CORE Forum
crash when adding ArtSymbolSetChangedNotifierType notifier - 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: crash when adding ArtSymbolSetChangedNotifierType notifier (/showthread.php?tid=373)



crash when adding ArtSymbolSetChangedNotifierType notifier - Rick Johnson - 02-13-2024

In Xcode 14 and CORE 0.8.2 I crash when adding a symbol set changed notifier.


Code:
this->symbolSetChangedNotifier = hdi::core::Notifier(hdi::core::ArtSymbolSetChangedNotifierType,
HDI_CORE_CALLBACK(myPlugin::Plugin, this, __symbolSetChangedCB));
this->__corePlug->dispatcher()->registerNotifier(this->symbolSetChangedNotifier);

Here's the error:

#0 0x000000013f26fee5 in hdi::core::ArtSymbolSetChangedNotification::ArtSymbolSetChangedNotification(hdi::core::NotifierType, void*) ()

Strangely, using ArtSymbolSetDetailedChangeNotifierType instead works fine, and is potentially more useful anyway, if one could access the AISymbolSetChangeNotifierData that should accompany it.