| Ticket UUID: | f1534f9d53238f9f4aba6dc1575b363e267eb8d9 | |||
| Title: | update does not work properly in some cases | |||
| Type: | Bug | Version: | 8.6.10 | |
| Submitter: | anonymous | Created on: | 2020-02-20 22:24:07 | |
| Subsystem: | 66. Aqua Window Operations | Assigned To: | nobody | |
| Priority: | 5 Medium | Severity: | Critical | |
| Status: | Open | Last Modified: | 2020-02-21 00:24:30 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
I have a procedure that creates a toplevel window:
toplevel .tl1
# add some widgets
update
set tlw [winfo width .tl1]
# more code
.tl1 is displayed as expected. After (!) I close .tl1, an error message is shown:
bad window path name ".tl1"
bad window path name ".tl1"
while executing
"winfo width .tl1"
(procedure "create_tl1" line 123)
invoked from within
...etc...
The error message does not occur, when I delete the 'update' after adding the widgets.
I changed the code like this:
toplevel .tl1
# add some widgets
winfo exists .tl1 # returns 1
update
winfo exists .tl1 # returns 0! --> the call to 'update' makes .tl1 unknown!
set tlw [winfo width .tl1]
# more code
I'm not able to reproduce the effect with an extract of the code. Only the full procedure as part of a bigger application reproduces the effect.
This happens under macOS Catalina, with Tcl 8.6.9 everything is fine. The code worked for more then 8 years.
| |||
| User Comments: |
bll added on 2020-02-21 00:24:30:
I cannot re-create using 8.6.10, I am not using a tclkit, I am using my own compiled version of 8.6.10. And I just tried it with the 8.6.10 tclkit provided by you, and no crash. The tclkit does not seem to know about dark mode. The menus and the program window came up in light mode, unlike running via my build. Off topic, I'm curious why your program seems sluggish and slow to respond. Something's going on there that should not be. In my application, my options screen, which has even more widgets than your preferences, perhaps takes a quarter of a second to build and display on mac os. You may want to provide a little .15c program and instructions on how to load it and open the program window and re-create the problem for the people who have never used an HP calculator. Though re-creating your issue now seems to be difficult. anonymous added on 2020-02-20 23:49:14: The full source code of the application and the tclkit are available here: https://drive.google.com/open?id=1g74oS2_cvrRVCuqrd28t6NSOTiUjts_o HP-15C_4.1.08_Source.zip tclkit-8.6.10-macosx-x86_64_threaded HP-15C.tcl The problematic 'update' statement is in HP-15C.tcl line 7346 bll added on 2020-02-20 23:10:09: Well, I expect you will need to make available the entire application so that this can be seen. There's no .tl1 in the hp-15c emulator code. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki