Skip to content
Tcl Source Code Artifact [2f2e89bdca]
Login

Artifact [2f2e89bdca]

Artifact 2f2e89bdcae37e8d61aae2c7825dec7766b565de:

Ticket change [2f2e89bdca] - Closed ticket [648022ffffffffff|648022ffff]: <i>Dde package crashing under Windows 98</i> plus 8 other changes by dkf on 2016-07-10 08:10:13.
D 2016-07-10T08:10:13.559
J closedate 2457579.84043471
J closer dkf
J comment I\suse\stcldde12.dll\sto\simplement\sDrag-n-Drop\s(thru\ssend\s\r\ncommand\semulation)\swithin\sour\smedical\simaging\s\r\nsoftware.\sUnder\sWindows\s98,\sthe\soriginating\shalf\sof\sthe\s\r\nprocess\soften\s(not\salways)\scrashes.\r\n\r\nI\sbelieve\sI\shave\stracked\sthis\sdown\sto\sa\spossible\simproper\s\r\nuse\sof\sDdeCreateDataHandle(),\sDdeClientTransaction()\s\r\nand\sDdeFreeDataHandle()\sin\sthe\stclWinDde.c\sfile\swithin\s\r\nthe\stcl8.4.1\swin\sdirectory.\r\n\r\nWhile\smy\sexperience\swith\sthese\sfunctions\sis\slimited\sto\s\r\nthis\simplementation\sand\sthe\sonline\sMSDN\sdocuments,\sit\s\r\nis\smy\sinterpretation\sthat\sa\sdata\shandle\screated\swith\s\r\nDdeCreateDataHandle()\scan\sbe\sused\sfor\s"read\sonly",\s\r\nonce\sit\shas\sbeen\ssuccessfully\spassed\sto\sa\sclient\susing\s\r\nthe\sDdeClientTransaction().\sI\sbelieve\sthat\sthe\suse\sof\s\r\nDdeFreeDataHandle()\sviolates\sthis\s"read\sonly"\susage\s\r\nrestriction.\r\n\r\nMy\sworkaround\sto\sthis\sproblem\sis\sto\sset\sthe\s\r\nddeItemData\svariable\sto\sNULL\swhen\sa\ssuccessful\s\r\nDdeClientTransaction()\soccurs\s(two\splaces).\sThis\s\r\nprevents\sthe\sDdeFreeDataHandle(ddeItemData)\sline\sin\s\r\nthe\scleanup\ssection\sof\sthe\scode\sfrom\scrashing.\r\n\r\nI've\smarked\sthe\saddional\slines\sin\sthe\sattached\scode\swith\s\r\nmy\sinitials,\sAGL.\sI\swould\shope\sthat\ssomeone\swith\sa\s\r\nbetter\sunderstanding\sof\sthe\sDde\scalls\smight\stake\sa\slook.\s\r\nMaybe\sI've\smisinterpreted\sthe\sDde\sdocumentation\sand\s\r\njust\screated\sa\smemory\sleak,\sbut\sif\sso,\sI\sneed\sa\snew\s\r\nsolution\swhich\sprevents\sthe\scrashes.\s\r\n\r\nThanks\sfor\syour\stime.
J icomment Win98\snot\ssupported\sany\smore;\sopen\sa\snew\sbug\sif\sthe\sproblems\sare\sobservable\son\sa\scurrently\ssupported\sOS.
J login dkf
J mimetype text/x-fossil-wiki
J resolution Out\sof\sDate
J severity Minor
J status Closed
K 648022ffffffffffffffffffffffffffffffffff
U dkf
Z 15e8569518575a155e3adf3b030b2967