Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-11-04
23:00 • Ticket [633293ffff] Tcl_Init crashes on Windows XP status still Closed with ... artifact: 6aa0a20032 user: dkf
23:00 • Closed ticket [633293ffff]. artifact: a860662e9d user: dkf
14:31 • New ticket [633293ffff]. artifact: 2b4b42a122 user: mahlonstacy

Tcl_Init crashes on Windows XP

Closed / Duplicate633293ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-11-04 14:31:22
In a console program under Windows, program startup 
crashes the program with a call to a NULL function. The
program is attempting to start using Tcl_CreateInterp 
followed by Tcl_Init. This worked fine under 8.3.
In tracing the crash, I discovered that the function call
tclWinProcs->getFileAttributesExProc is being called 
before it is defined. A workaround is to call 
Tcl_FindExecutable(NULL) prior to calling Tcl_Init. 
Tcl_FindExecutable calls the encoding reoutines, whcih 
check for the presence of tclWinProcs-
>getFileAttributesExProc and, if missing, defines it.

FYI, Tcl_LibraryPath is specifically defined in our 
program, from a value stored in the registry.
dkf Closed ticket [633293ffff]. [History diff]2002-11-04 23:00:43
dkfplain2002-11-04 23:00:44
Logged In: YES 
user_id=79902

Add a call to Tcl_FindExecutable() first (either with argv[0] 
from main() or NULL as an argument; the first is preferred) so 
that Tcl can initialize its file-system and encoding layers.
Log in (anonymous is fine) to add a comment.