FET Forum

FET Support (English) => Programming Help => Topic started by: Mejda on July 18, 2012, 07:56:44 AM

Title: signal/slots
Post by: Mejda on July 18, 2012, 07:56:44 AM
Hello,
I created a class to add another level of group (It becomes years, groups, subgroups and subgroupsTp) All works well but I still have the close button: when I link it to the close slot, my program terminates and displays an error message"The program ended abruptly". I did not understand where my problem is localized. please help me and thank you :)
Title: Re: signal/slots
Post by: Volker Dirr on July 18, 2012, 08:58:57 AM
Normally there are other errors visible if you write a false signal or slot. So i guess you signal and slot connection is correct and it crash, because the function in your slot try to access to unknown memory. so you should check the function from the slot.
Title: Re: signal/slots
Post by: Mejda on July 18, 2012, 09:08:37 AM
Hello,
but the function is just "this.close()" that is all.
I hope that you understand me because in the only the close button not working.
Title: Re: signal/slots
Post by: Volker Dirr on July 18, 2012, 09:23:33 AM
the destructor is called then. so check your ~xxx() function.
Title: Re: signal/slots
Post by: Mejda on July 18, 2012, 09:47:00 AM
OK this works I removed the destructor thank you Volker Dirr :)