| Ticket UUID: | 2850031 | |||
| Title: | Tk hangs when creating MessageDlg with very long message | |||
| Type: | Bug | Version: | None | |
| Submitter: | grt | Created on: | 2009-09-03 15:14:27 | |
| Subsystem: | bwidget | Assigned To: | oehhar | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-09-04 00:34:57 | |
| Resolution: | Fixed | Closed By: | oehhar | |
| Closed on: | 2009-09-03 17:34:57 | |||
| Description: |
On my ActiveTcl 8.4.19 Windows Machine the following code freezes wish:
package require BWidget
set Msg [string repeat "########################\n" 1000]
MessageDlg::create .tst -type user -buttons {OK Cancel} -message $Msg
It's not best practice to let very long messages appear in that widget - but I think it should not freeze anyway.
| |||
| User Comments: |
oehhar added on 2009-09-04 00:34:57:
The issue was, that "winfo reqheight" was used as real height. The real height is not jet known, because the window is not jet mapped. When mapped, the size is bound on the screen size which highly reduces the height in this case (reqheight was around 16000). The estimated value is now bound on the screen size. The patch was committed to utils.tcl in cvs. Thank you, Harald oehhar added on 2009-09-03 22:57:42: Hi Thomas, Thank you reporting the bug. For me, it does not freeze. It just does not display. But a console window is still responsive. Actually, it is moved out of the screen. > winfo geometry .tst 290x1035+695+-6007 I will try to fix it. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki