|
From: <and...@us...> - 2009-04-30 09:08:08
|
Revision: 9866
http://plplot.svn.sourceforge.net/plplot/?rev=9866&view=rev
Author: andrewross
Date: 2009-04-30 09:08:06 +0000 (Thu, 30 Apr 2009)
Log Message:
-----------
Add call to XInitThreads before any Tk window functions are called. This solves the segmentation fault on exit for the tk examples.
Modified Paths:
--------------
trunk/bindings/tk/tkMain.c
Modified: trunk/bindings/tk/tkMain.c
===================================================================
--- trunk/bindings/tk/tkMain.c 2009-04-29 15:42:02 UTC (rev 9865)
+++ trunk/bindings/tk/tkMain.c 2009-04-30 09:08:06 UTC (rev 9866)
@@ -185,6 +185,10 @@
char buf[20];
int code;
+#ifdef HAVE_PTHREAD
+ XInitThreads();
+#endif
+
Tcl_FindExecutable(argv[0]);
interp = Tcl_CreateInterp();
#ifdef TCL_MEM_DEBUG
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|