un-init ptr, file attrs, tclWin32Dll
Closed / Invalid590674ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-08-04 03:50:49
Using tcl C interface in win32 (not using wish) During Tcl_Init(), crash on uninitialized pointer: tclWinProcs->getFileAttributesExProc, in tclWin32Dll.c This happens because TclWinSetInterfaces() is never called to initialize the pointer (if you don't use Tcl_Main ()). I find I can work around this by first calling Tcl_FindExecutable() before I do Tcl_CreateInterp(). This does get down to TclWinSetInterfaces() and the pointer is set. Otherwise, a programmer using the C interface to replace Tcl_Main() will crash.
nobodyplain2002-08-04 10:52:08
Logged In: NO This was posted by Jesse Newcomb, [email protected]
vincentdarleyplain2002-08-05 16:19:03
Logged In: YES user_id=32170 I don't believe this is a bug. Tcl_FindExecutable must be called for all sorts of reasons, not just this. Assigning to 'init' category.
dkfplain2002-08-05 17:51:28
Logged In: YES user_id=79902 IIRC, you've been supposed to call Tcl_FindExecutable() first for quite a while. I don't know how this squares with use from a separate executable though, so while I'm marking this invalid (as I believe it to be, because the original questioner already knows the way to deal with this) I'm not closing it. I'll let someone who really understands the init process do that...
hobbsplain2002-12-01 04:06:49
Logged In: YES user_id=72656 dup of 642280
Log in (anonymous is fine) to add a comment.