From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29918 invoked by alias); 21 Nov 2001 00:06:49 -0000 Mailing-List: contact insight-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 29859 invoked from network); 21 Nov 2001 00:06:45 -0000 Message-ID: <3BFAFBC1.2E63C3A2@redhat.com> Date: Wed, 03 Oct 2001 16:57:00 -0000 From: Ian Roxborough X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: Andy Hare CC: insight@sources.redhat.com Subject: Re: Insight windows problems. References: <3BCCA38E.53B8418E@redhat.com> <011201c17133$90876e30$0100000a@dualbeast> <3BF977D4.F2B74C79@redhat.com> <021301c1721a$05a9ba10$0100000a@dualbeast> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-q4/txt/msg00044.txt.bz2 Andy Hare wrote: > > The actual code at the crash point looks thus : > > HWND > Tk_GetHWND(window) > Window window; > { > TkWinDrawable *twdPtr = (TkWinDrawable *) window; > return twdPtr->window.handle; > } > > so window is passed OK but GDB claims that twdPtr does not exist, surely > that can't be right can it ??? Yeah it is right, the window doesn't exist (in Tk) because it's been destroyed already (but not in win32 side). The window causing the crash is left over from the combobox pop list window thing. I think I've post more details on the problem before. > Hope this helps, if you have got any further than this then I would be > pleased to aid in any way possible. It's really nice to see other people reproduce this problem (it elimates me for the list of things going wrong ;-). If you want to get around this problem you need to do the following nastiness: In the "ModalDialog::post" method in modal.tcl you need to change the line at the end of the method (~line 100) which reads: ::delete object $this to: wm withdraw [winfo toplevel [namespace tail $this]] This will stop the crashing problem and allow people to continue to use Insight on Windows until I've got time to work on fixing it for real again. I'm sorry it's ended up broken for so long. Ian. P.S.: On the bright side I've notice that (other than the noted problems) Insight seems a lot more stable on Windows than the Tcl8.0 based version (based on my observations when comparing the two version over the last couple of months YMMV). From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Roxborough To: Andy Hare Cc: insight@sources.redhat.com Subject: Re: Insight windows problems. Date: Tue, 20 Nov 2001 16:06:00 -0000 Message-ID: <3BFAFBC1.2E63C3A2@redhat.com> References: <3BCCA38E.53B8418E@redhat.com> <011201c17133$90876e30$0100000a@dualbeast> <3BF977D4.F2B74C79@redhat.com> <021301c1721a$05a9ba10$0100000a@dualbeast> X-SW-Source: 2001-q4/msg00345.html Message-ID: <20011120160600.Xz6LluKfCARAkWZgAJydJQRFX7xFsEzFqL6SZseB2hM@z> Andy Hare wrote: > > The actual code at the crash point looks thus : > > HWND > Tk_GetHWND(window) > Window window; > { > TkWinDrawable *twdPtr = (TkWinDrawable *) window; > return twdPtr->window.handle; > } > > so window is passed OK but GDB claims that twdPtr does not exist, surely > that can't be right can it ??? Yeah it is right, the window doesn't exist (in Tk) because it's been destroyed already (but not in win32 side). The window causing the crash is left over from the combobox pop list window thing. I think I've post more details on the problem before. > Hope this helps, if you have got any further than this then I would be > pleased to aid in any way possible. It's really nice to see other people reproduce this problem (it elimates me for the list of things going wrong ;-). If you want to get around this problem you need to do the following nastiness: In the "ModalDialog::post" method in modal.tcl you need to change the line at the end of the method (~line 100) which reads: ::delete object $this to: wm withdraw [winfo toplevel [namespace tail $this]] This will stop the crashing problem and allow people to continue to use Insight on Windows until I've got time to work on fixing it for real again. I'm sorry it's ended up broken for so long. Ian. P.S.: On the bright side I've notice that (other than the noted problems) Insight seems a lot more stable on Windows than the Tcl8.0 based version (based on my observations when comparing the two version over the last couple of months YMMV).