<i>Information request regarding 'memory' command</i> status still Open with 3 other changes
by
.
D 2014-03-07T07:35:47.361
J icomment I\scompiled\sthe\sTcl\slibraries\swith\sTCL_MEM_DEBUG\ssymbol\sby\sconfiguring\susing\sbelow\scommand.\r\n\r\n./configure\s--prefix=/scratch/sakthi/Tcl_8.4.9_debug\s--enable-symbols=all\r\n\r\nI\sfound\sa\slibrary\swith\sname\slibtcl8.4g.so.\sThen\si\swrote\sa\sC\sprogram\swhich\suses\sthe\sdebug\sshared\sobject\sto\sinvoke\sTcl\s'memory'\scommand.\sThe\sprogram\sfailed\sto\sexecute\sthe\s'memory'\scommand.\r\nC\sprogram\r\n---------\r\n#include\s<stdio.h>\r\n#include\s<tcl.h>\r\n#include\s<stdio.h>\r\n#include\s<tcl.h>\r\nint\smain()\r\n{\r\n\sint\sx=0;\r\n\sTcl_Interp*\sa;\r\n\sa\s=\s\sTcl_CreateInterp();\r\n\sTcl_Init(a);\r\n\sTcl_InitMemory(a);\r\n\sif\s(a\s==\sNULL)\r\n\sprintf("Interpreter\screation\sFailed\s\\n");\r\n\sx\s=\sTcl_Eval(a,(char\s*)"memory\sinfo");\r\n\sTcl_DeleteInterp(a);\r\n\sprintf("DeleteInterpreter\sx=%d\s\\n",x);\r\n}\r\n---------------------\r\nCompilation\sflags\son\ssolaris10\sserver\r\n\r\n/opt/Studio11/SUNWspro/bin/CC\s-L/scratch/sakthi/Tcl_8.4.9_debug/lib\s-ltcl8.4g\s-I/scratch/sakthi/Tcl_8.4.9_debug/include\s\sTcl_inter_problem.c\s-o\sTcl_inter_problem\r\n----------------------\r\nOutput\sof\sthe\sprogram\r\n\r\nDeleteInterpreter\sx=1\s\s//\sTcl_Eval\sfunction\sreturns\s1\s(TCL_ERROR),\sunable\sto\sexecute\smemory\scommand.\r\n\r\nAm\si\sdoing\sanything\swrong?\r\n\r\nI\shave\sattached\sthe\sMakefile\swhich\swas\sgenerated\sby\sconfigure\sscript.
J login sakthivp
J mimetype text/plain
K 1abbfcdff166b9f6bd2de2c27e5d09315f7baaa0
U sakthivp
Z bc331665479b0e7c816daa3b055673c1