Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tcl, Tcl::Tk now much better, but need documentation improvements

by Anonymous Monk
on Aug 27, 2003 at 11:40 UTC ( [id://287008]=note: print w/replies, xml ) Need Help??


in reply to Tcl, Tcl::Tk now much better, but need documentation improvements

exception number: c0000005 (access violation)
get this in an error log when i do
$interp->Eval($fileName)
  • Comment on Re: Tcl, Tcl::Tk now much better, but need documentation improvements

Replies are listed 'Best First'.
Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements
by Anonymous Monk on Aug 27, 2003 at 11:41 UTC
    in windows 2000 sp2 ...
Re: Re: Tcl, Tcl::Tk now much better, but need documentation improvements
by Courage (Parson) on Aug 28, 2003 at 11:24 UTC
    Need more information: what version of Tcl/Tk installed, whether it is seen in PATH (actually it is possible to "bring" Tcl/Tk dictribution and have it together with perl, but anyway it should find correct tclXXX.dll)

    What is inside that variable $fileName?

    Note that you probably should do

    $interp->Eval("source $fileName");

    Courage, the Cowardly Dog

      actually its tcl::0.72 (not tcl::tk) perl 5.8 tcl 8.4 ... i started with $interp->evalfile("source $fileName") but changed to Eval because this was happening ... also it happens of i to $interp->Eval("set fh open $fileName").... basically what is happening is that wimdows os throwing a protection error when the Tcl process is trying to open a file
        odd.

        But please discover your $fileName variable.

        Of course there should be no protection error.
        May be backslashes backslashed once again in Tcl interpreter?
        You may need

        $interp->Eval("source {$fileName}");
        Note curly braces,.
        If there will be still problems, then show output of $interp->Eval("puts {$fileName}");

        Courage, the Cowardly Dog

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://287008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-26 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found