Skip to content
Tcl Source Code History Of Ticket 648022ffffffffff
Login

History Of Ticket 648022ffffffffff

Artifacts Associated With Ticket 648022ffffffffff

  1. Ticket change [5459af51c2] (rid 93934) by speedboat on 2002-12-03 20:36:07:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "speedboat"
    9. subsystem initialized to: "28. dde Package"
    10. title initialized to: "Dde package crashing under Windows 98"
    11. type initialized to: "Bug"
  2. Ticket change [80d103c563] (rid 116938) by speedboat on 2002-12-04 03:36:08:

    1. icomment:
      
      
      File Added - 36754: tclWinDde.c
      
      
      
    2. login: "speedboat"
    3. mimetype: "text/plain"
    4. username: "speedboat"
  3. Add attachment "tclWinDde.c" [b9c0328d27] (rid 129211) by speedboat on 2002-12-04 03:36:08.

  4. Ticket change [6c58a21d5b] (rid 128490) by kennykb on 2003-01-29 07:12:15:

    1. icomment:
      Logged In: YES 
      user_id=99768
      
      Converted changes to a patch so that they can be applied more readily.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  5. Add attachment "tclWinDde.patch" [c5ed560e9c] (rid 121670) by kennykb on 2003-01-29 07:12:16.

  6. Ticket change [b873e85f0f] (rid 128970) by kennykb on 2003-01-29 07:12:16:

    1. icomment:
      
      
      File Added - 40905: tclWinDde.patch
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  7. Ticket change [2102991260] (rid 130509) by kennykb on 2003-02-02 00:26:11:

    1. icomment:
      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.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "kennykb"
  8. Ticket change [be26fff836] (rid 102025) by kennykb on 2003-02-02 00:39:37:

    1. icomment:
      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.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  9. Ticket change [931b185de4] (rid 105758) by kennykb on 2003-03-22 06:58:08:

    1. assignee changed to: "patthoyts"
  10. Ticket change [2f2e89bdca] (rid 147821) by dkf on 2016-07-10 08:10:13:

    1. closedate changed to: "2457579.84043471"
    2. closer changed to: "dkf"
    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. icomment:
      Win98 not supported any more; open a new bug if the problems are observable on a currently supported OS.
      
    5. login: "dkf"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Out of Date"
    8. severity changed to: "Minor"
    9. status changed to: "Closed"