<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=617514116-03092002><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial size=2>I am attempting to
construct an application with an embedded scripting language on Win32. Tcl
seemed like a good candidate because you get the </FONT></SPAN><SPAN
class=617514116-03092002><FONT face=Arial size=2>graphics for free. I have
successfully linked to the tcl84.dll and tk84.dll that come in the Win32 Tcl
install. Although the code executes reasonably well some times, I get a
variety of internal error messages (usually Runtime error 217) but sometimes by
trapping the exceptions I have errors referrering to access violations.
The crashes are almost certainly due to memory problems since I get different
results when I pass a string to Tcl from the main program rather than from a
procedure, or if the length of the string being passed in changes. The errors
may have something to do with finalization since I have managed to block them by
inserting a HALT before the end of the main program. This only works
sometimes though. </FONT></SPAN><SPAN class=617514116-03092002><FONT face=Arial
size=2>I have wondered if this could be a threading issue, since Tcl and Tk
create extra threads at their initialization (according to
gdb).</FONT></SPAN></DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial size=2>Does anyone have
experience with this type of thing. There is a package for the GNAT Ada
compiler that works fine but I would rather use Pascal if possible. (My
test code essentially mirrors that of the Ada package, which itself just links
to the entry points in the DLLs).</FONT></SPAN></DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial size=2>Any help would be
appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=617514116-03092002><FONT face=Arial size=2><BR>David
Eidelman</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>