As you all have figured out I'm very new to Tcl/Tlk. I was assigned the hard task to fix a couple of bugs in a Tcl/Tk GUI implemented by someone else. The existent GUI allows for left-button clicking on a color-coded particles flux representation. The numeric value of the flux is correctly displayed on a Point info widget. But for values greater than 10^9 (1e9) an error message pops up on the screen which reads: "Error in Tcl Script Error: integer value too large to represent. OK Skip Messages Stack Trace" If I click on the Stack Trace button I get the following info that I cannot quite understand: integer value too large to represent while executing "expr $num-int($num)" (procedure "format_vis" line 29) invoked from within "format_vis $hst_id """ (procedure "show_info_frame" line 106) invoked from within "show_info_frame 304 335" (command bound to event) In fact the package I'm testing includes a module named "mf.tcl" which is a sequential collection of procs. There is indeed the following boud proc: bind $base.canvas_field <Button-1> {show_info_frame %x %y} proc show_info_frame { h v } { **** Question: **** Is the 106 indicated in the Stack Trace an offset inside the proc show_info_frame ? The proc show_info_frame is at line 1558 of the "mf.tcl" file. If I add ( 1558 + 106) = 1664 which is a line inside the proc show_info_frame but such a proc is NOT recursive. I mean it doesn't call itself. Infact at line 1664 there is the following statement: if { $plot(info_frame) == "" } { There is indeed an "info_frame" but it's not a call to proc show_info_frame. I would appreciate if someone could help me interpret the information provided in the Stack Trace with the hope that helps me find and fix the bug. Thank you in advance for your help, Maura
On Wednesday 26 April 2006 01:01, Maura Edeweiss Monville wrote:
As you all have figured out I'm very new to Tcl/Tlk. I was assigned the hard task to fix a couple of bugs in a Tcl/Tk GUI implemented by someone else. The existent GUI allows for left-button clicking on a color-coded particles flux representation. The numeric value of the flux is correctly displayed on a Point info widget. But for values greater than 10^9 (1e9) an error message pops up on the screen which reads: "Error in Tcl Script Error: integer value too large to represent. OK Skip Messages Stack Trace"
If I click on the Stack Trace button I get the following info that I cannot quite understand:
integer value too large to represent while executing "expr $num-int($num)" (procedure "format_vis" line 29) invoked from within "format_vis $hst_id """ (procedure "show_info_frame" line 106) invoked from within "show_info_frame 304 335" (command bound to event)
The top message is the most recent and usually the one causing the problem. All messages after that trace the call back. The final lines is the call that was first made that eventuall let to the error. What is the value of $num ? Seems that it is too big. -- Roger Oberholtzer OPQ Systems AB
Maura Edeweiss Monville wrote:
As you all have figured out I'm very new to Tcl/Tlk.
Maura, It is generally considered rude to cross-post - that is, to send the same message to more than one list. It clutters peoples' inboxes and for some people, it incites them not to reply to you. You seem to be sending your messages to THREE lists. Please pick whichever list you feel is most appropriate for a particular question and just send it to that one. Thanks and regards, Dave Howorth
On Wed, 2006-04-26 at 09:41 +0100, Dave Howorth wrote:
Maura Edeweiss Monville wrote:
As you all have figured out I'm very new to Tcl/Tlk.
Maura,
It is generally considered rude to cross-post - that is, to send the same message to more than one list. It clutters peoples' inboxes and for some people, it incites them not to reply to you.
You just did the same thing, sent one copy to Maura -and- the three lists he was sending to. This makes you just as bad as Maura. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
I apologize for stepping on someone's feet. It didn't even dawn on me that posting my question to three different lists I would violate some statue. I did not mean to be offensive to anyboby. This reaction does strike me. I just did not know which list would be more approprite for my simple question. All what I know is that since I switched to SuSE I've received a great deal of help from competent good-hearted professional from either list. Sncerely, Maura On Wed, 26 Apr 2006, Ken Schneider wrote:
On Wed, 2006-04-26 at 09:41 +0100, Dave Howorth wrote:
Maura Edeweiss Monville wrote:
As you all have figured out I'm very new to Tcl/Tlk.
Maura,
It is generally considered rude to cross-post - that is, to send the same message to more than one list. It clutters peoples' inboxes and for some people, it incites them not to reply to you.
You just did the same thing, sent one copy to Maura -and- the three lists he was sending to. This makes you just as bad as Maura.
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Wed, 2006-04-26 at 11:55 -0500, Maura Edeweiss Monville wrote:
I apologize for stepping on someone's feet. It didn't even dawn on me that posting my question to three different lists I would violate some statue. I did not mean to be offensive to anyboby. This reaction does strike me. I just did not know which list would be more approprite for my simple question. All what I know is that since I switched to SuSE I've received a great deal of help from competent good-hearted professional from either list.
Sncerely, Maura
You really are not stepping on anyone's feet. When asking a programming question you will have better luck asking on the programming list so there is no need to ask everywhere. Many people, like myself, subscribe to many of the lists that SUSE offers. When you post to many lists at once you end up sending many copies to the people on multiple lists. That is what many frown on. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
participants (4)
-
Dave Howorth
-
Ken Schneider
-
Maura Edeweiss Monville
-
Roger Oberholtzer