Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMSaveYourself geometry "errors"

Status
Not open for further replies.

xhonzi

Programmer
Joined
Jul 29, 2003
Messages
196
Location
US
When we have a P/Tk gui up and running, it reports roughly every 3-4 minutes what the geometry of the GUI is. It looks like this:

postWMSaveYourself:GUI -geometry 780x500+1400+100 -iconic
preWMSaveYourself:GUI -geometry 780x500+1400+100 -iconic

I'm guessing something isn't set up right. This happens with every P/Tk GUI we have, so I'm thinking it's not a code problem.

Has anyone ecountered this before?

Xhonzi
 
Do you call the WMSaveYourself function in your code?

--jim
 
Looks like Tk::CmdLine uses this function, and I googled and found a post on some mailing list that might indicate there is an problem w/ that function.

But I don't think the problem is affecting you, the problem they were pointing out is that there appears to be a potentially never ending loop in the MWSaveYourself subroutine.

Anyways, redirecting stdout to the trash (in your code) will work, but even better would be to pump out problems to the system console. Methods to do that will depend on your platform.
--jim
 
No, we don't call WMS.Y. in the code. The simplest of Tk GUI's will produce the output. Also, the output appears even when STDOUT and STDERR are reassigned.

Xhonzi
 
Actually, let me take it back. I reassigned STDERR and they seemed to have gone away. Not the best solution, but it's a step.

Xhonzi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top