.
D 2000-10-26T01:05:20
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2124\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-24'\nLastModified:\s'1999-07-01'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\sfoster\nOS:\sWindows\s95\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1999-05-28'\nFixedInVersion:\s8.2b1\nClosedDate:\s'2000-10-25'\n\n\nName:\s\sPeter\sHardie\nemail:\s\[email protected]\nSupport:\s\sNone\nSeverity:\s\s3\nOperatingSystem:\s\sWindows\s95\nExtensions:\s\sDDE\s1.0\nCustomShell:\s\sOther\sthan\smy\sfixes\sto\sDDE\s1.0\sthe\scode\sis\sthe\sdistribution\sversion.\nSynopsis:\s\sBug\sin\sDDE\s1.0\spackage\sfound\n\nReproducibleScript:\n\s\s\s\sI\sreported\sthe\sbug\spreviously\sin\scomp.lang.tcl\sas\sa\sfollowup\sto\sanother\n\s\s\s\sbug\sreport\sof\sbizarre\sbehaviour\sin\sthe\sDDE\sV1.0\spackage.\sIn\sthe\sexample\n\s\s\s\sI\sposted,\smy\sscript\swas\sattempting\sto\stalk\sto\sMirc,\sbut\sthe\sfirst\ssuch\n\s\s\s\smessage\salways\scaused\snetscape\sto\sbe\sexecuted\sinstead.\sHowever,\snow\sthat\n\s\s\s\sI\sknow\sthe\scause\sof\sthe\sproblem\sit\sis\sclear\sthat\smy\sexample\sscript\swill\n\s\s\s\snot\snecessarily\sproduce\sthe\ssame\sbehaviour\son\sanother\ssystem\sbecause\sthe\n\s\s\s\sbug\sdepends\supon\ssome\sthings\sin\sthe\smachine\sthat\sare\sexternal\sto\sTCL/Tk.\n\s\s\s\sI\shave\sincluded\sa\sshort\scode\ssegment\sshowing\sthe\sfix\s(I\sdo\snot\shave\n\s\s\s\saccess\sto\sdiff\s-\ssorry).\n\nDesiredBehavior:\n\s\s\s\sThe\sproblem\sis\sthat\sTcl_DdeObjCmd\sin\sTclWinDde.c\sis\susing\sthe\n\s\s\s\sddeInstance\svariable\sbefore\sit\shas\sbeen\sinitialized\sby\scalling\sthe\n\s\s\s\sInitialize()\sfunction.\n\s\s\s\sSee\sthe\scode\sbelow.\sMy\sfix\smay\snot\sbe\sthe\smost\seffective\sway\sto\ssolve\n\s\s\s\sthe\sproblem\sbut\sit\sdefinitely\sdoes\swork.\n\nPatch:\nIn\sthe\sTcl_DdeObjCmd\sfunction\sin\sTclWinDde.c\sadd\sthe\stwo\scalls\sto\sInitialize()\sas\sshown\sbelow:\s\n\n\s\s\sif\s(length\s==\s0)\s{\n\s\s\sserviceName\s=\sNULL;\n\s\s\s}\n\s\s\selse\n\s\s\sif\s(index\s!=\sDDE_SERVERNAME)\s{\n//\s*******************\n//\sThis\scall\sto\sInitialize()\sis\sessential\sso\sthat\sddeInstance\sis\sdefined\sthe\n//\sfirst\stime\sthrough\sthis\sroutine.\n\s\s\s\s\s\sInitialize();\n\s\s\s\s\s\sddeService\s=\sDdeCreateStringHandle(ddeInstance,serviceName,CP_WINANSI);\n\s\s\s\s\s\s}\n\n\s\s\sif\s((index\s!=\sDDE_SERVERNAME)\s&&(index\s!=\sDDE_EVAL))\s{\n\s\s\stopicName\s=\sTcl_GetStringFromObj(objv[firstArg\s+\s1],\s&length);\n\s\s\s\s\s\sif\s(length\s==\s0)\s{\n\s\s\s\s\s\stopicName\s=\sNULL;\n\s\s\s\s\s\s}\selse\s{\n//\s***************************\n//\sMust\salso\scall\sInitialize\shere\stoo.\n\s\s\s\s\s\sInitialize();\n\s\s\s\s\s\sddeTopic\s=\sDdeCreateStringHandle(ddeInstance,topicName,\sCP_WINANSI);\n\s\s\s\s\s\s}\n\s\s\s}\n\nComments:\n\s\s\s\sThere\sare\sseveral\sother\sbugs\sin\sthe\scode,\sbut\sthis\sis\sby\sfar\sthe\smost\n\s\s\s\sserious.\n\s\s\s\sI\shave\salso\sadded\sa\s"dde\spoke"\scommand\sto\smy\sversion\sof\sdde\s1.0\sand\sonce\n\s\s\s\sI\shave\stidied\sit\sup\sand\ssquashed\sthe\sother\sbugs,\sI\swill\ssubmit\sit\s(using\n\s\s\s\sdiff\sonce\sI\sfind\sit).\n\n\n\nA\scall\sto\sInitialize\shas\sbeen\sadded\sat\sthe\sbeginning\sof\sthe\sblock.\n05/28/1999\s15:53\s-\sstanton\s-
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Bug\sin\sDDE\s1.0\spackage\sfound
J type Bug
K 218786ffffffffffffffffffffffffffffffffff
U nobody
Z c8fbdf12e79b165038ad7777abb37657