not registered... ben@warre.co.uk
From Comp.lang.tcl:
OK, I am running ActiveTCL 8.4.4.0 on Windows XP
Professional. The
following two scripts recreate the problem on my
machine.
runme.tcl:
set r [open "|wish ui.tcl" r+]
after 500
puts $r "save"
flush $r
ui.tcl:
proc msg {} {
gets stdin r
if {[eof stdin]} {exit}
eval $r
}
proc save {} {
tk_getSaveFile
update
}
fileevent stdin readable msg
I have attached them as well.
Ben
"Bruce Hartweg" <bruce-news@hartweg.us> wrote in
message
news:owaZb.360188$na.537596@attbi_s04...
> can you post a short case that demonstrates the
problem?
> If it is truly an issue with tk_getSaveFile it wil help
> the maintainers find & fix the bug. but it will also allow
> people to help detect if the problem is on your end.
> (if I was a bettin' man, I'd lay odds on the latter ;)
>
> Also what platfom/OS and what version of Tcl/Tk ?
>
>
> bruce
>
>
>
> Ben John Warre wrote:
>
> > I think this is a real problem, but have localised it
somewhat. The
> > script works fine if I run it normally, but when I run
it as a process
> > (from another tcl script), the dialog hangs (and
doesn't get destroyed),
> > when you press Save.
> >
Logged In: NO
FYI - this also hangs the second GUI on Win2K, but in this case
it hangs before even displaying the save dialog. Also - I added
some color changes to each section to see whare the hang was
occurring & if I added calls to update in the msg proc it
actuallly
crashed the executable. without the updates, the last color
diplayed was the one set immediately before the tk_getSaveFile.
Bruce Hartweg
Logged In: YES
user_id=80530
This looks like an issue with
Tk, not Tcl. Please file the
report with the tktoolkit project's
tracker.