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

History Of Ticket 218786ffffffffff

Artifacts Associated With Ticket 218786ffffffffff

  1. Ticket change [61d24cf62e] (rid 92314) by nobody on 2000-10-26 01:05:20:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2124 Bug
      Version: 8.1
      SubmitDate: '1999-05-24'
      LastModified: '1999-07-01'
      Severity: MED
      Status: Released
      Submitter: pat
      ChangedBy: foster
      OS: Windows 95
      OSVersion: NA
      Machine: NA
      FixedDate: '1999-05-28'
      FixedInVersion: 8.2b1
      ClosedDate: '2000-10-25'
      
      
      Name:  Peter Hardie
      email:  [email protected]
      Support:  None
      Severity:  3
      OperatingSystem:  Windows 95
      Extensions:  DDE 1.0
      CustomShell:  Other than my fixes to DDE 1.0 the code is the distribution version.
      Synopsis:  Bug in DDE 1.0 package found
      
      ReproducibleScript:
          I reported the bug previously in comp.lang.tcl as a followup to another
          bug report of bizarre behaviour in the DDE V1.0 package. In the example
          I posted, my script was attempting to talk to Mirc, but the first such
          message always caused netscape to be executed instead. However, now that
          I know the cause of the problem it is clear that my example script will
          not necessarily produce the same behaviour on another system because the
          bug depends upon some things in the machine that are external to TCL/Tk.
          I have included a short code segment showing the fix (I do not have
          access to diff - sorry).
      
      DesiredBehavior:
          The problem is that Tcl_DdeObjCmd in TclWinDde.c is using the
          ddeInstance variable before it has been initialized by calling the
          Initialize() function.
          See the code below. My fix may not be the most effective way to solve
          the problem but it definitely does work.
      
      Patch:
      In the Tcl_DdeObjCmd function in TclWinDde.c add the two calls to Initialize() as shown below: 
      
         if (length == 0) {
         serviceName = NULL;
         }
         else
         if (index != DDE_SERVERNAME) {
      // *******************
      // This call to Initialize() is essential so that ddeInstance is defined the
      // first time through this routine.
            Initialize();
            ddeService = DdeCreateStringHandle(ddeInstance,serviceName,CP_WINANSI);
            }
      
         if ((index != DDE_SERVERNAME) &&(index != DDE_EVAL)) {
         topicName = Tcl_GetStringFromObj(objv[firstArg + 1], &length);
            if (length == 0) {
            topicName = NULL;
            } else {
      // ***************************
      // Must also call Initialize here too.
            Initialize();
            ddeTopic = DdeCreateStringHandle(ddeInstance,topicName, CP_WINANSI);
            }
         }
      
      Comments:
          There are several other bugs in the code, but this is by far the most
          serious.
          I have also added a "dde poke" command to my version of dde 1.0 and once
          I have tidied it up and squashed the other bugs, I will submit it (using
          diff once I find it).
      
      
      
      A call to Initialize has been added at the beginning of the block.
      05/28/1999 15:53 - stanton -
      
    4. foundin initialized to: "obsolete: 8.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Bug in DDE 1.0 package found"
    11. type initialized to: "Bug"
  2. Ticket change [be984447c3] (rid 102097) by welch on 2000-10-26 08:29:14:

    1. closedate changed to: "2000-10-26T01:29:14"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [550eb8314b] (rid 94062) by dgp on 2001-04-17 10:44:38:

    1. closedate changed to: "2001-04-17T03:44:38"
    2. closer changed to: "dgp"
    3. subsystem changed to: "28. dde Package"