Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5459af51c2b69c85b0129228e03d33a4d5e0ffe4
Ticket: 648022ffffffffffffffffffffffffffffffffff
Dde package crashing under Windows 98
User & Date: speedboat on 2002-12-03 20:36:07
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "speedboat"
  9. subsystem changed to: "28. dde Package"
  10. title changed to: "Dde package crashing under Windows 98"
  11. type changed to: "Bug"