Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

MainWindow destructor

$
0
0
Hi, I have the following destructor MainWindow::~MainWindow() {     disconnect(plugNPlay, SIGNAL(hid_comm_update(bool, int)), this, SLOT(update_gui(bool, int)));     delete plugNPlay;     delete ui;     delete m_undoStack; } where in the constructor, I have the following plugNPlay = new HID_PnP(); m_undoStack = new QUndoStack(this); Now I get an error when exiting the destructor above “…write access error at 0×8…” Any idea? HID_PnP() is running a thread where its personnal destructor is HID_PnP::~HID_PnP() {     closeDevice();     disconnect(timer, SIGNAL(timeout()), this, SLOT(PollUSB()));     this->quit();     this->wait();     delete timer; }

Viewing all articles
Browse latest Browse all 13965

Trending Articles