At 09:26 AM 1/7/98 -0500, Dave Phillips wrote:
...
> Error in startup script: window name "" already exists in parent
>
>I kept a pristine copy of the original code. I note that the vTcl saved
>version reorders everything, adds main & init, and is apparently adding
>something else which is bombing my app, and I haven't been able to find
>the fault. Btw, vTcl is adding all that even though I've changed or
>added nothing else to the code: I open vTcl, open the application for
>editing, immediately do a "Save as..." or "Save"
>, close vTcl, and voila, I have a rewritten program which won't run. It
>also won't run in Test mode.
>
>So my question is: what's happening here ? I'm using vTcl 1.11 with
>Tcl/Tk 8.0. I've tried to find what's jiving my work but I'm not getting
>anywhere. Advice ? Comments ? Good jokes ?
>
>Any and all assistance vastly appreciated...
vTcl can deal with imported code fragments, but not whole applications.
This is due to the fact that vTcl has preconceived notions about how to
manage windows. Your code which drives the "." toplevel may be in conflict.
Also, vTcl uses dynamic introspection on the current intepreter for
information on the loaded/running application. It does not parse tcl. As a
result, any code not contained in a procedure will be lost when the
application is resaved (this also impacts some GUI code, but that's another
story). The order is not preserved because tcl does not preserve procedure
creation order (see "info procs"). The "main" and "init" procedures are
added to allow a main code body (that which would otherwise appear outside
of a procedure) and a special place to do var initialization and image
loading which your application may depend on these when being edited in the
vTcl graphical environment.
Stewart Allen Automate the Web webMethods, Inc.
[EMAIL PROTECTED] - - - ---- - - - FAX 703-352-0370
3975 University Dr. Ste #360 * Fairfax, VA * 22030 * OFFICE 703-352-1018
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).