• Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Hot Door CORE Forum All forums General discussion v
1 2 3 Next »
ColorWell crash

 
  • 0 Vote(s) - 0 Average
ColorWell crash
Rick Johnson
Offline

Senior Member

Posts: 259
Threads: 130
Joined: Jan 2014
Reputation: 0
#1
10-23-2020, 10:13 AM (This post was last modified: 10-24-2020, 09:31 AM by Rick Johnson.)
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.
garrett
Offline

Super Moderator

Posts: 248
Threads: 24
Joined: Nov 2013
Reputation: 1
#2
10-24-2020, 12:03 PM
Does this happen for you if you add a color well to the PanelSample project?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

Linear Mode
Threaded Mode