Skip to content
Tcl Source Code Artifact [0d1da44146]
Login

Artifact [0d1da44146]

Artifact 0d1da4414697e920748981fb7f5af48af75898d4:

Ticket change [0d1da44146] - Ticket [555058ffffffffff|555058ffff] <i>Tcl initialization fails in external app</i> status still Open with 4 other changes by davygrvy on 2002-06-03 04:20:21.
D 2002-06-03T04:20:21
J icomment Logged\sIn:\sYES\s\nuser_id=7549\n\n>How\scan\sone\suse\sTcl\swithout\sTcl_Main?\n\nCall\sTcl_FindExecutable()\sto\sset\sthe\slibrary\spath,\sthus\swhere\s\nthe\sencoding\sfiles\sare\sprior\sto\sthe\sfirst\sTcl_Init().\n\n>How\sis\sthis\sproblem\ssolved\sin\sthe\sTcl\sPlugin?\n\nUmm,\sno\sdevelopment\swork\shas\sbeen\sdone\sto\sthe\splugin\sfor\s\nat\sleast\s2\syears\snow,\sAFAIK.\s\sIt's\sway\sout-of-date.\s\sPlease\s\ndon't\srefer\sto\sit\sas\sa\sreference\spoint.\s\sIt's\smisuse\sof\sthe\sevent\s\nloop\sand\sthread\scontexts\sare\sbad\senough\sas\sit\sis.\n\nWithout\sknowing\sargv[0],\sat\sleast\son\swindows,\scan\sbe\sderived\s\nwith:\n\nchar\sapp[MAX_PATH];\n\nGetModuleFile(GetModuleHandle(NULL),\sapp,\sMAX_PATH);\nTcl_FindExecutable(app);\n\nThe\sfirst\s"crash"\slisted\sin\sthe\stest\ssource\sis\snot\sa\scrash.\s\s\nTcl_Init()\sreturns\sTCL_ERROR\sand\sthe\sresult\sis\sset\swith\sthe\s\nerror\smessage.\s\sThe\ssecond\smight\sbe\sbe\sworth\sdigging\sinto,\s\nbut\sfor\show\sthe\slogic\sof\sinitialisation\sis\sat\sthis\smoment,\stoday,\s\ncalling\sTcl_FindExecutable()\sbefore\sTcl_Init()\sis\sthe\scorrect\s\nway\sto\sdo\sit.\n\nTo\shave\sTcl_Init\scall\sTcl_FindExecutable\son\sit's\sown\swould\s\nrequire\sargv[0],\sor\sthe\sderivation\sof\sit.\n
J login davygrvy
J mimetype text/plain
J username davygrvy
K 555058ffffffffffffffffffffffffffffffffff
U davygrvy
Z 5b5fc64e880ca53d37882690c8a7f813