in reply to Re: Getting segfaults when destroying and recreating Tk box
in thread Getting segfaults when destroying and recreating Tk box
I note that if you ever destroy a TopLevel window, you eventually provoke another segmentation fault. However if you withdraw the TopLevel windows instead of destroying them, you can go on seemingly indefinitely by withdrawing the old TopLevel window and then defining a subsequent TopLevel window.
Then to exit the MainLoop gracefully, you destroy the original (hidden and withdrawn) MainWindow.
Thanks,
Stefan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting segfaults when destroying and recreating Tk box
by zentara (Cardinal) on Sep 06, 2007 at 10:43 UTC |