Re: Tcl script fails on some platforms
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 06:28:14 -0500
Mark Janssen wrote:
On 31 jul, 11:06, hrp1...@xxxxxxxxx wrote:
Sorry, I thought I'd done that in the lines -
puts "this is the image filename: $l_image_file"
# If the user picked a file
if {$l_image_file != ""} {
puts "Okay, the image filename wasn't blank"
# add the image to the current session
$::session addImage $l_image_file
addImage is surely the method, and l_image_file is the variable???
You are not setting the ::session variable here, you are referencing
it ($::session)
Add this point the error indicates that $::session is "" so this is
substituted to:
"" addImage $l_image_file
giving the 'invalid command name ""' error.
Maybe you meant ::Session::addImage instead? I did notice that this is
defined as:
body Session::addImage ...
Is body some procedure you wrote yourself?
"body" is an incr tcl command. "body Session::addImage" defines the method "addImage" for any object of class "Session"
But yes, $::session is null for whatever reason. He needs to figure out why either a) session is never set, or b) what is causing it to be set to the null string.
.
- Follow-Ups:
- Re: Tcl script fails on some platforms
- From: hrp1000
- Re: Tcl script fails on some platforms
- References:
- Tcl script fails on some platforms
- From: hrp1000
- Re: Tcl script fails on some platforms
- From: Mark Janssen
- Re: Tcl script fails on some platforms
- From: hrp1000
- Re: Tcl script fails on some platforms
- From: Mark Janssen
- Tcl script fails on some platforms
- Prev by Date: Re: Sorting Addresses
- Next by Date: Re: resizing JPEGs (with Img and photo image)
- Previous by thread: Re: Tcl script fails on some platforms
- Next by thread: Re: Tcl script fails on some platforms
- Index(es):
Relevant Pages
|