PDA

View Full Version : error: Exception at 0x778f7ef8, code: 0xc0000138: , flags=0x1 (execution cannot be c



Mathan
22nd September 2016, 16:22
:-1: error: Exception at 0x778f7ef8, code: 0xc0000138: , flags=0x1 (execution cannot be continued) (first chance) - Destructor
Hi,

i setup destructor to clear the objects and I am receiving this error.

:-1: error: Exception at 0x778f7ef8, code: 0xc0000138: , flags=0x1 (execution cannot be continued) (first chance)



Code snippets:



HomeController .h
-------
class HomeController : public QObject

{
Q_OBJECT

public:

explicit HomeController (QObject *parent=0);

~HomeController();
};


HomeController::~HomeController()

{


}


Thanks in advance.

d_stranz
22nd September 2016, 17:38
i setup destructor to clear the objects and I am receiving this error.

The code snippet shows exactly nothing related to the error. Your destructor does nothing to clear any "objects" - it is an empty method. The QObject destructor will also be called by your HomeController destructor, so you probably did something wrong before your code gets to the HomeController destructor to corrupt the QObject base class instance.