Skip to content
Tcl Source Code Artifact [5459af51c2]
Login

Artifact [5459af51c2]

Artifact 5459af51c2b69c85b0129228e03d33a4d5e0ffe4:

Ticket change [5459af51c2] - New ticket [648022ffffffffff|648022ffff] <i>Dde package crashing under Windows 98</i>. by speedboat on 2002-12-03 20:36:07.
D 2002-12-03T20:36:07
J assignee kennykb
J cmimetype text/plain
J comment I\suse\stcldde12.dll\sto\simplement\sDrag-n-Drop\s(thru\ssend\s\ncommand\semulation)\swithin\sour\smedical\simaging\s\nsoftware.\sUnder\sWindows\s98,\sthe\soriginating\shalf\sof\sthe\s\nprocess\soften\s(not\salways)\scrashes.\n\nI\sbelieve\sI\shave\stracked\sthis\sdown\sto\sa\spossible\simproper\s\nuse\sof\sDdeCreateDataHandle(),\sDdeClientTransaction()\s\nand\sDdeFreeDataHandle()\sin\sthe\stclWinDde.c\sfile\swithin\s\nthe\stcl8.4.1\swin\sdirectory.\n\nWhile\smy\sexperience\swith\sthese\sfunctions\sis\slimited\sto\s\nthis\simplementation\sand\sthe\sonline\sMSDN\sdocuments,\sit\s\nis\smy\sinterpretation\sthat\sa\sdata\shandle\screated\swith\s\nDdeCreateDataHandle()\scan\sbe\sused\sfor\s"read\sonly",\s\nonce\sit\shas\sbeen\ssuccessfully\spassed\sto\sa\sclient\susing\s\nthe\sDdeClientTransaction().\sI\sbelieve\sthat\sthe\suse\sof\s\nDdeFreeDataHandle()\sviolates\sthis\s"read\sonly"\susage\s\nrestriction.\n\nMy\sworkaround\sto\sthis\sproblem\sis\sto\sset\sthe\s\nddeItemData\svariable\sto\sNULL\swhen\sa\ssuccessful\s\nDdeClientTransaction()\soccurs\s(two\splaces).\sThis\s\nprevents\sthe\sDdeFreeDataHandle(ddeItemData)\sline\sin\s\nthe\scleanup\ssection\sof\sthe\scode\sfrom\scrashing.\n\nI've\smarked\sthe\saddional\slines\sin\sthe\sattached\scode\swith\s\nmy\sinitials,\sAGL.\sI\swould\shope\sthat\ssomeone\swith\sa\s\nbetter\sunderstanding\sof\sthe\sDde\scalls\smight\stake\sa\slook.\s\nMaybe\sI've\smisinterpreted\sthe\sDde\sdocumentation\sand\s\njust\screated\sa\smemory\sleak,\sbut\sif\sso,\sI\sneed\sa\snew\s\nsolution\swhich\sprevents\sthe\scrashes.\s\n\nThanks\sfor\syour\stime.\n\n\n\n\n\n\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter speedboat
J subsystem 28.\sdde\sPackage
J title Dde\spackage\scrashing\sunder\sWindows\s98
J type Bug
K 648022ffffffffffffffffffffffffffffffffff
U speedboat
Z 2b5390ab14eb1c0930c48b4c817c1c29