Tk Library Source Code

View Ticket
Login
2026-11-16
00:07 • Ticket [4c5222924f] ipentry::ipentry crash after window is destroyed and recreated status still Open with 3 other changes artifact: 2cc8ac77f2 user: serhiy.storchaka
00:01
Fix [4c5222924f]: ipentry failed after it was destroyed and created again with the same -textvariable. Destroying it removed the first trace of the variable, whichever it was, and could leave its own. Remove exactly the trace of the widget. Add ipentry.test. leaf check-in: 38862c9602 user: serhiy.storchaka tags: ipentry-remove-traces
2015-01-23
03:49 • New ticket [4c5222924f] ipentry::ipentry crash after window is destroyed and recreated. artifact: c7c273a9b8 user: anonymous

Ticket UUID: 4c5222924f40252cd77507fbf48f408a134d719e
Title: ipentry::ipentry crash after window is destroyed and recreated
Type: Bug Version: ipentry 0.3
Submitter: anonymous Created on: 2015-01-23 03:49:04
Subsystem: tklib :: ipentry Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2026-11-16 00:07:23
Resolution: None Closed By: nobody
    Closed on:
Description:
> tclsh                                                     Thu 9:35pm
% package require Tk
8.5.9
% package require ipentry
0.3
% set ipadddress {}
% toplevel .t
.t
% ipentry::ipentry .t.ip -textvariable ipaddress
.t.ip
% destroy .t
% toplevel .t
.t
% ipentry::ipentry .t.ip -textvariable ipaddress
bad operation list "": must be one or more of array, read, unset, or write
%
User Comments: serhiy.storchaka added on 2026-11-16 00:07:23:

Proposed fix in branch ipentry-remove-traces.

When the widget was destroyed, it removed the first trace of its -textvariable, whichever it was, and could leave its own trace, which then failed for the new widget. Now it removes exactly its own trace.