Hot Door CORE Forum
ColorWell crash - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: ColorWell crash (/showthread.php?tid=247)



ColorWell crash - Rick Johnson - 10-23-2020

I've added a ColorWell to the preferences dialog of four plugins. In three, everything works perfectly. In one of them, it crashes when I click the color well control, before the color picker appears, on both Mac and Windows. All three plugins use the SDK in addition to CORE. In Xcode with AI 24, it stops here:


hdi::pui::ColorWell:__showPickerCallback()

callq *0x98(%rax) = Thread 1: EXC_BAD_ACCESS (code=1, address=0x98)


Here's the code where I define the dialog:



Code:
#include "hdicoreArtColor.h"
#include "hdicoreColorWell.h"

hdi::core::ArtColor col = hdi::core::ArtColor::red();
this->cWell = hdi::core::ColorWell(hdi::core::Rect(hdi::core::Point(18,36),hdi::core::Size(30,18)),col);
this->cWell.setValueChangedCallback(HDI_CORE_CALLBACK(gx::gxPrefs, this, __cWellCB));
this->cWell.setTooltip("Change the color of the help text");
this->PrefsMD.addWidget(this->cWell);


Any suggestions would be much appreciated.


RE: ColorWell crash - garrett - 10-24-2020

Does this happen for you if you add a color well to the PanelSample project?