Overview
| Artifact ID: | 5459af51c2b69c85b0129228e03d33a4d5e0ffe4 |
|---|---|
| Ticket: | 648022ffffffffffffffffffffffffffffffffff
Dde package crashing under Windows 98 |
| User & Date: | speedboat on 2002-12-03 20:36:07 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- comment changed to:
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.
- foundin changed to: "obsolete: 8.4.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "speedboat"
- subsystem changed to: "28. dde Package"
- title changed to: "Dde package crashing under Windows 98"
- type changed to: "Bug"