
Calculator cgi/Subnet calculator
This sounds like it could be a known (and since fixed) bug; however,
only the tcl8.4 alphas were suceptible to it. See the report at
https://sourceforge.net/tracker/index.php?func=detail&aid=542142&grou...
If you provide some more details, maybe we can help. In the meantime, a
possible workaround is to use an intermediate variable
if {[catch procname result]} {
... handle ...
}
return $result
miguel
Quote:
> Hi all..
> I have a hextranslation and calculator cgi (Don Libes cgi.tcl based)
> that will not respond to error catching if the int value is too
> large to represent:
> Output(cgi-debug -on):
> cstr=34000000000+6&s=3&hexin=0x23&type=3
> An internal error was detected in the service software. The
> diagnostics are being emailed to the service system administrator
> (root).
> Heck, since you're debugging, I'll show you the errors right here:
> integer value too large to represent
> while executing
> "expr $sum [extract "s" $t] $el"
> ("foreach" body line 8)
> The return is called catch {return [procname]}
> This is not a problem catch can handle?
> Do I have to implement a string length type error check?
> How would you all handle this?