Re: Segmentation fault in Tcl_Init()

2012-01-20 Thread Larry W. Virden
A Tcl programmer that I know says: He is not calling Tcl_FindExecutable() before creating interpreters. That is needed to initialize things like encodings. -- Tcl - The glue of a new generation. http://wiki.tcl.tk/ Larry W. Virden http://www.facebook.com/lvirden/ Even if explicitly stated to t

RE: Segmentation fault in Tcl_Init()

2012-01-18 Thread Nellis, Kenneth
From: Pavel Kudrna > > Hi All, > I have problem with tcl initialization, see example. Am I doing > something wrong? > Thanks for help > Pavel Kudrna > Change: if (Tcl_Init(0) == TCL_ERROR) To: if (Tcl_Init(interp) == TCL_ERROR) Still, it shouldn't seg fault. --Ken Nellis -- Problem reports

Segmentation fault in Tcl_Init()

2012-01-18 Thread Pavel Kudrna
Hi All, I have problem with tcl initialization, see example. Am I doing something wrong? Thanks for help Pavel Kudrna $ cat example.c #include #include int main(int argc, char * argv[]) { printf("Tcl_CreateInterp()\n"); Tcl_Interp * interp = Tcl_CreateInterp(); if (!interp) { printf("fa