|
2016-07-10
| ||
| 08:10 | • Closed ticket [648022ffff]: Dde package crashing under Windows 98 plus 8 oth... artifact: 2f2e89bdca user: dkf | |
|
2003-03-22
| ||
| 06:58 | • Ticket [648022ffff]: 1 change artifact: 931b185de4 user: kennykb | |
|
2003-02-02
| ||
| 00:39 | • Ticket [648022ffff]: 4 changes artifact: be26fff836 user: kennykb | |
| 00:26 | • Ticket [648022ffff]: 5 changes artifact: 2102991260 user: kennykb | |
|
2003-01-29
| ||
| 07:12 | • Add attachment tclWinDde.patch to ticket [648022ffff] artifact: c5ed560e9c user: kennykb | |
| 07:12 | • Ticket [648022ffff] Dde package crashing under Windows 98 status still Open ... artifact: b873e85f0f user: kennykb | |
| 07:12 | • Ticket [648022ffff]: 4 changes artifact: 6c58a21d5b user: kennykb | |
|
2002-12-04
| ||
| 03:36 | • Ticket [648022ffff]: 4 changes artifact: 80d103c563 user: speedboat | |
| 03:36 | • Add attachment tclWinDde.c to ticket [648022ffff] artifact: b9c0328d27 user: speedboat | |
|
2002-12-03
| ||
| 20:36 | • New ticket [648022ffff] Dde package crashing under Windows 98. artifact: 5459af51c2 user: speedboat | |
Dde package crashing under Windows 98
Closed / Out of Date648022ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 10 years ago
Descriptionplain2002-12-03 20:36:07
I use tcldde12.dll to implement Drag-n-Drop (thru send command emulation) within our medical imaging software. Under Windows 98, the originating half of the process often (not always) crashes. I believe I have tracked this down to a possible improper use of DdeCreateDataHandle(), DdeClientTransaction() and DdeFreeDataHandle() in the tclWinDde.c file within the tcl8.4.1 win directory. While my experience with these functions is limited to this implementation and the online MSDN documents, it is my interpretation that a data handle created with DdeCreateDataHandle() can be used for "read only", once it has been successfully passed to a client using the DdeClientTransaction(). I believe that the use of DdeFreeDataHandle() violates this "read only" usage restriction. My workaround to this problem is to set the ddeItemData variable to NULL when a successful DdeClientTransaction() occurs (two places). This prevents the DdeFreeDataHandle(ddeItemData) line in the cleanup section of the code from crashing. I've marked the addional lines in the attached code with my initials, AGL. I would hope that someone with a better understanding of the Dde calls might take a look. Maybe I've misinterpreted the Dde documentation and just created a memory leak, but if so, I need a new solution which prevents the crashes. Thanks for your time.
speedboatplain2002-12-04 03:36:08
File Added - 36754: tclWinDde.c
kennykbplain2003-01-29 07:12:15
Logged In: YES user_id=99768 Converted changes to a patch so that they can be applied more readily.
kennykbplain2003-01-29 07:12:16
File Added - 40905: tclWinDde.patch
kennykbplain2003-02-02 00:26:11
Logged In: YES user_id=99768 I'm using this bug as a place-holder for several apparent issues with handle mismanagement in tclWinDde.c. Observations so far with tracking data handles in DDESpy don't indicate obvious double-frees (which is NOT to say they aren't there!) but DO indicate that several tests leak handles, calling into question the whole approach to handle management. Tests in question are: winDde-1.1 - leaks one reference to "TclEval" winDde-2.1 - leaks one reference to "TclEval" and one to "self" winDde-2.3 - leaks one reference to "TclEval" and one to "self" winDde-4.1 - leaks one reference to "TclEval" winDde-4.2 - leaks one reference to "TclEval" winDde-4.3 - leaks one reference to "TclEval" winDde-4.4 - leaks one reference to "TclEval" In addition, I've observed, intemittently, a failure in winDde-4.2, "remote interpreter did not respond." DDESpy showed some corrupt data, but its output was lost and I haven't reproduced the problem since.
kennykbplain2003-02-02 00:39:37
Logged In: YES user_id=99768 The patch as submitted appears not to change the behavior where winDde.test leaks handles, for better or for worse. Precisely the same seven references to "TclEval" and two to "self" leak by the end of the test.
kennykb Ticket [648022ffff]: 1 change
[History diff]2003-03-22 06:58:08
dkfwiki2016-07-10 08:10:13
Win98 not supported any more; open a new bug if the problems are observable on a currently supported OS.
Log in (anonymous is fine) to add a comment.
Attachments:
- tclWinDde.patch [download] added by kennykb on 2003-01-29 07:12:16. [details]
- tclWinDde.c [download] added by speedboat on 2002-12-04 03:36:08. [details]