[Pkg-tcltk-devel] Bug#462409: Bug#462409: Tcl_DecrRefCount () SIGSEGVs on a result of Tcl_NewDictObj ()

Ivan Shmakov ivan at theory.asu.ru
Fri Jan 25 15:43:45 UTC 2008


>>>>> dgp  <dgp at nist.gov> writes:

 >> Thanks, I've added the following to my program and it seems to work
 >> correctly.

 >> static void ensure_tcl_initialized (void) {

[...]

 >>     /* . */
 >> }

 > That's fine, but a simple

 > Tcl_FindExecutable(NULL);

 > would work just as well.

	Thanks!

 > Going a bit further,

 > Tcl_FindExecutable(argv[0]);

 > in your main() would have the added benefit of making Tcl's [info
 > nameofexecutable] command return a correct result.

	Oh, it's probably not the case where I should modify main ().

	I'm actually trying to evaluate a proof of concept patch
	implementing the generic options facility [1] for GDAL [2].
	There, I use Tcl to implement the prototype since it offers both
	a decent FFI and a string library, not to mention dictionary
	objects.

[1] http://article.gmane.org/gmane.comp.gis.gdal.devel/14356
[2] http://www.gdal.org/






More information about the Pkg-tcltk-devel mailing list