japskar
Programmer
- Feb 13, 2002
- 27
Hi,
I'm trying to get a GUI on my screen using a TCL/TK script called from C.
So far, no problem as long as I use "tkwait window ." so that my GUI knows that it needs to stay alive as long as the user didn't close it.
However, I often get error messages from TCL83.DLL or KERNEL32.DLL when passing data between C and Tcl.
Although this bothers me, my greatest frustration is, for example, when I press an exitbutton, I get the error:
bgerror failed to handle background error.
Original error:
Error in bgerror: attempt to call eval in deleted interpreter.
And all I do is call a script from C containing:
pack [label .l1 -text {this is a test}];
pack [button .b1 -text {Ok} -command {exit};
tkwait window .
Can someone tell me where I go wrong?
Best regards,
Jasper van Dijk
I'm trying to get a GUI on my screen using a TCL/TK script called from C.
So far, no problem as long as I use "tkwait window ." so that my GUI knows that it needs to stay alive as long as the user didn't close it.
However, I often get error messages from TCL83.DLL or KERNEL32.DLL when passing data between C and Tcl.
Although this bothers me, my greatest frustration is, for example, when I press an exitbutton, I get the error:
bgerror failed to handle background error.
Original error:
Error in bgerror: attempt to call eval in deleted interpreter.
And all I do is call a script from C containing:
pack [label .l1 -text {this is a test}];
pack [button .b1 -text {Ok} -command {exit};
tkwait window .
Can someone tell me where I go wrong?
Best regards,
Jasper van Dijk