Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tk_getSaveFile run with fileevent through a process hangs wi

Closed / Invalid901091ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-02-20 13:07:49
not registered... [email protected]

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" <[email protected]> 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.
> >
nobodyplain2004-02-20 23:07:35
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
dgpplain2004-02-21 01:22:25
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.
Log in (anonymous is fine) to add a comment.