.
D 2002-12-12T07:52:43
J assignee andreas_kupries
J cmimetype text/plain
J comment While\splaying\saround\swith\sTk\s8.4.1\sand\nmulti-threading\son\sWin32\sI\sobserved\ssome\nstrange\sbehaviour\sw.r.t.\sTk_Uids:\n\n1.\sTk_ConfigureWidget()\sconverts\sthe\nname/class/default\svalues\sin\sthe\sgiven\nTk_ConfigSpec\sto\sUIDs.\n\n2.\sTk_GetUid()\sinstalls\sa\sper-thread\nexit\shandler\s(FreeUidThreadExitProc())\nwhich\sdestroys\sthe\sper-thread\sUID\ntable\s(and\sthe\sUIDs,\stoo)\son\sthread\ntermination,\si.e.\safter\sthe\sthread\nusing\sTk\sexited,\ssome\sTk_ConfigSpec\nfields\spoint\sto\sfree'd\smemory.\n\n3.\sWhen\sTk\sis\sre-animated\slater\s(Tk_Init())\nin\sa\snew\sthread,\sarbitrary\s\sBad\sThings\nhappen\sas\sconsequence\sto\sinvalidated\sUIDs\nfrom\spoint\s2.\n\nQuestions:\n\n-\sIs\sit\sreally\snecessary\sto\sconvert\nname/class/default\svalues\sto\sUIDs\nin\sTk_ConfigureWidget\s?\n\n-\sIs\sit\sreally\snecessary\sto\shave\sa\nper-thread\sUID\stable\s?\n\n--\n\nIn\sthe\smeantime\sI\stried\sto\stemporarily\sfix\sit\sby:\n\n1.\sMaking\sdbName/dbClass/defValue\sfields\sin\s\nTk_ConfigSpec\sto\snormal\schar\spointer\sinstead\nof\sTk_Uids\n2.\sUsing\sa\smutex\slocked\sglobal\s(=\sper\sprocess)\nUid\stable\n3.\sMaking\sa\stemporary\scopy\sof\sthe\sTk_ConfigSpec\narray\sin\sTk_ConfigureWidget\n\nSee\sthe\sattached\spatch.\sHowever,\sthis\sisn't\nperfect\ssince\sthe\sTK_CONFIG_OPTION_SPECIFIED\nbit\sis\snot\sreflected\sto\scallers\sof\nTk_ConfigureWidget\sfor\sthreaded\sbuilds\sof\sTk.\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title Invalidated\sTk_Uids
J type Bug
K 652530ffffffffffffffffffffffffffffffffff
U nobody
Z 074b40dd6769ed8e8218e4f5c33f59d1