
Originally Posted by
[maTa]
*** glibc detected *** corrupted double-linked list: 0x080d1ea0 ***
It's hard to find such problem just by looking at the sources. Did you try to run your program from gdb? Could you post the backtrace (don't forget to compile your program in debug mode)?
void Form2::dodaj()
{
Form3 *forma3 = new Form3();
forma3->setModal(TRUE);
forma3->show();
}
void Form2::dodaj()
{
Form3 *forma3 = new Form3();
forma3->setModal(TRUE);
forma3->show();
}
To copy to clipboard, switch view to plain text mode
You use such code in several places, but this leads to a memory leak, because you don't delete the form when it's closed.
Try:
void Form2::dodaj()
{
Form3 *forma3 = new Form3( 0, 0, Qt::WDestructiveClose );
// ...
}
void Form2::dodaj()
{
Form3 *forma3 = new Form3( 0, 0, Qt::WDestructiveClose );
// ...
}
To copy to clipboard, switch view to plain text mode
Bookmarks