<i>Problems with binary packages on NT 4.0</i> status still Open with 4 other changes
by
.
D 2002-03-23T05:04:31
J icomment Logged\sIn:\sYES\s\nuser_id=99768\n\nThe\schange\sfrom\slazy\sto\seager\sloading\sin\s8.4\swas\sby\sdesign,\nbut\sin\sany\scase\sseems\sirrelevant\sto\sthe\smain\spoint\sof\sthis\nbug\sreport.\n\nThe\sdouble\sloading\sof\sa\sDLL\sis\shard\sto\sexplain,\sparticularly\nin\slight\sof\sthe\sfact\sthat\sthe\sLoadLibrary\scall,\swhich\ntclWinLoad.c\suses\sinternally,\sis\sdocumented\snever\sto\sload\sany\nDLL\smore\sthan\sonce.\s\sThe\sonly\sexplanation\sthat\sI\scan\seasily\narrive\sat\sis\sthat\sthe\sDLL\sfound\swhen\sresolving\sthe\simport\ntable\sof\sthe\sexecutable\swas\sNOT\sthe\ssame\sfile\s--\sor\sat\sleast,\ndid\snot\shave\sthe\ssame\spath\sname\s(I'm\snot\ssure\swhat\shappens\nif\sLoadLibrary\sis\scalled\swith\sshort\sname\sversus\slong\sname.)\nIt's\sconceivable\sthat\sNT\s4.0\sin\sparticular\shas\sa\sbug\sin\sthis\narea,\sbut\sI\shaven't\sfound\sanything\sin\sa\scursory\ssearch\sof\nMSDN.\n\nIn\sany\scase,\sthe\s[load]\scommand\shas\sno\sway\sof\sbeing\saware\nwhat\sDLLs\smay\sbe\spresent\sin\sthe\sprocess\sas\sa\sresult\sof\narbitrary\sC\scode.\n\nYour\ssolution\sof\spackaging\sthe\sC\sAPI's\sseparately\sfrom\stheir\nTCL\swrappers\sis\sa\sgood\sone\sif\sit's\spracticable;\sat\sleast,\nit\smeans\sthat\syou\sdon't\shave\sa\s<package>_Init\sfunction\nthat's\snever\scalled\sfloating\saround\sin\sthe\sexecutable\nsomewhere.\n\nAnother\sgood\sidea\sis\sto\sdo\scompatibility\schecking\sinside\nyour\spkgIndex.tcl\sfiles.\sThis\sis\snot\sdone\seasily\sif\sthey\nare\smade\sby\spkg_mkIndex,\sbut\sit's\sactually\seasier\sin\smost\ncases\sto\sbuild\sthe\sindices\sby\shand!\n\nDon's\ssuggestion\sof\sdoing\sTcl_StaticPackage\sfor\sall\spackages\nthat\syou\sknow\sto\sbe\sstatically\slinked\sis\salso\sgood\spractice.\nAdding\sappropriate\s[package\sifneeded]\scalls\sat\sinitialization\nwill\sthen\sload\sthe\sstatically\slinked\spackages\swithout\nneeding\sto\sresort\sto\sLoadLibrary.\n\nAnother\sgood\spractice\swould\sbe\sto\suse\sthe\sStubs\smechanism,\nboth\sfor\sbacklinking\sto\sTcl\sitself\sand\sfor\scrosslinking\samong\nyour\sload\smodules.\s\sThis\scan\soften\sreduce\sor\seliminate\sthe\ndependencies\samong\sthe\sDLLs\sso\sthat\syou\sdon't\sneed\sas\smany\nmultiple\scopies\sof\sthings.\n\nFinally,\sI'd\ssuggest\sthat\syou\saudit\syour\sNT\s4.0\stest\nconfiguration\sand\smake\ssure\sthat\syour\s"doubly\sloaded"\sDLL\nisn't\sturning\sup\ssomeplace\sunexpected.\s\sGiven\sthe\sway\sthat\nLoadLibrary\sworks,\sit's\shard\sto\simaging\sthe\sdouble\sloading\nactually\shappening\sany\sother\sway.\n
J login kennykb
J mimetype text/plain
J username kennykb
K 533221ffffffffffffffffffffffffffffffffff
U kennykb
Z d06a75233016236b8625bd17ab50590a