From: <no...@so...> - 2002-01-05 22:46:14
|
Bugs item #486453, was opened at 2001-11-28 05:02 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=486453&group_id=10894 Category: 46. Embedding Support Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Don Porter (dgp) Summary: tclsh exits when Tk interps deleted Initial Comment: [Based on my post to comp.lang.tcl] [cf. <http://groups.google.com/groups? hl=en&lr=lang_en&newwindow=1&selm=slrna087g6.sdm.dgp% 40clover.cam.nist.gov>] I executed the following code after installing the ActiveTcl8.3.4.1-8.win32-ix86.exe package from ActiveState's web site. The problem detailed below happens under Windows 2000 and Windows 98. I also got the same response when I compiled under Solaris 2.8. tclsh83.exe % interp create foo % interp create bar % load c:/program\ files/tcl/bin/tk83.dll Tk foo % load c:/program\ files/tcl/bin/tk83.dll Tk bar % interp delete foo % interp delete bar The load commands each cause a toplevel to appear, and interp eval commands allow widgets to be created in each toplevel, etc. However, when the last interpreter is deleted, tclsh exits. If Tk is loaded into sub interpreters, the main interpreter should not exit when all of the Tk enabled sub interpreters are deleted. ********* This appears to be a bug in the Tcl_Main() routine. Please file a bug report at the Tcl project at SourceForge.net. http://sf.net/projects/tcl/ File it under the Category "Application Embedding". -- Don Porter ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2002-01-05 14:46 Message: Logged In: YES user_id=80530 ...and here's the final version of the new test suite file. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2002-01-05 14:43 Message: Logged In: YES user_id=80530 Here's the final version of the patch ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2002-01-04 15:55 Message: Logged In: YES user_id=80530 ...and the updated tests file. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2002-01-04 15:53 Message: Logged In: YES user_id=80530 More work in progress. Nearly done now. Here's the updated patch... ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-12-21 15:29 Message: Logged In: YES user_id=80530 ...and here's a new file to add to the test suite. There's still more tests to be added. Just wanted to upload the work in progress. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-12-21 15:28 Message: Logged In: YES user_id=80530 Here's an updated patch that adds some tclTest.c code to help with testing Tcl_Main and friends. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2001-12-20 08:22 Message: Logged In: YES user_id=80530 Here's a patch that rewrites Tcl_Main to address this bug and several other bugs and shortcomings. It also brings the documentation up to date, and fills in more details. Still need some tests before commit. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=486453&group_id=10894 |