Tk Source Code

View Ticket
Login
Ticket UUID: 697915
Title: Tk_MainWindow error ?
Type: Bug Version: obsolete: 8.4.2
Submitter: lvirden Created on: 2003-03-05 10:59:34
Subsystem: 63. Tk_Win Functions Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-01-07 18:17:46
Resolution: Fixed Closed By: dkf
    Closed on: 2005-01-07 11:17:46
Description:
If I try to start a C application which makes use of
Tk, and
DISPLAY is not set, tk/generic/tkWindow.c's
Tk_MainWindow() routine appears to output this message:
this isn't a Tk applicationcouldn't connect to display ":0"


There appears to be a missing newline - and it might
not hurt to capitalize "this" and "couldn't" .

I just saw this in Tk 8.4.2 - but I suspect it has been
there for quite some time.
User Comments: dkf added on 2005-01-07 18:17:46:
Logged In: YES 
user_id=79902

There was a missing Tcl_ResetResult in GetScreen() in
tkWindow.c, so an old error message (which was effectively
saying that Tk hadn't yet been successfully started, which
is to be expected when Tk is still loading of course!)
wasn't cleared out properly.

Fixed in 8.4 branch and HEAD.