Re: Tcl script fails on some platforms
- From: Mark Janssen <mpc.janssen@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 04:05:14 -0700
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?
Mark
.
- Follow-Ups:
- Re: Tcl script fails on some platforms
- From: Bryan Oakley
- 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
- Tcl script fails on some platforms
- Prev by Date: TclMagick, GraphicMagick and the registry (WAS: Re: resizing JPEGs (with Img and photo image))
- Next by Date: Sorting Addresses
- Previous by thread: Re: Tcl script fails on some platforms
- Next by thread: Re: Tcl script fails on some platforms
- Index(es):
Relevant Pages
|