Skip to content
Tcl Source Code History Of Ticket 1481986
Login

History Of Ticket 1481986

Artifacts Associated With Ticket 1481986

  1. Ticket change [dc5a836544] (rid 114463) by nobody on 2006-05-04 16:57:19:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      From: [email protected] (Andrew Lin)
      After some discussion, DonP thinks it is necessary to
      patch this misfeature. A quick patch will be appreciated.
      
      OS: Redhat Fedora 4
      
      Problem: I use Tcl_SetMainLoop to setup myEventLoop for
      Qt window. However, Tcl_Main first blocks at tcl prompt
      "%" instead of starting myEventLoop until I hit RETURN,
      then myEventLoop starts properly while tcl prompt
      continues to accept command.
      
      Expected: Tcl_Main should enter interactive mode and
      run myEventLoop without waiting for RETURN at tcl prompt.
      
      Sample:
          Tcl_SetMainLoop(myEventLoop);
          Tcl_Main(1, argv, Tcl_AppInit);
      
    4. foundin initialized to: "obsolete: 8.4.9"
    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: "02. Event Loops"
    10. title initialized to:
      Tcl_Main blocks before starting my loop in Tcl_SetMainLoop
      
    11. type initialized to: "Bug"
  2. Ticket change [562fd8139b] (rid 94274) by dgp on 2006-05-05 00:27:13:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Here's a patch against
      8.4.13 to test.
      
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "50. Embedding Support"
    6. username: "dgp"
  3. Ticket change [42f3f078f8] (rid 116466) by dgp on 2006-05-05 00:27:14:

    1. icomment:
      
      
      File Added - 176859: 1481986.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Add attachment "1481986.patch" [0858c38c92] (rid 89549) by dgp on 2006-05-05 23:48:04.

  5. Ticket change [72598e55b8] (rid 100841) by dgp on 2006-05-05 23:48:04:

    1. icomment:
      
      
      File Deleted - 176859: 
      
      
      
      File Added - 176962: 1481986.patch
      
      Logged In: YES 
      user_id=80530
      
      
      New patch cleans up the
      code indentation, and supplies
      a test case showing the
      patch works.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [caa94d45b1] (rid 95395) by dgp on 2006-05-05 23:52:39:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      hmmm.... and now that test
      case is showing the fix
      to be incomplete.  investigating...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [2c704cabcd] (rid 118903) by dgp on 2006-05-06 00:02:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I think my testing just went
      off a bit.  Try the patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [158f2c5c21] (rid 124585) by nobody on 2006-05-06 00:58:16:

    1. icomment:
      Logged In: NO 
      
      Thanks Don, I downloaded 1481986.patch against 8.4.13 but it
      still had the same blocking problem. Then I traced down to
      Tcl_GetsObj() is actually blocking for RETURN in Tcl_Main,
      so I added "if (mainLoopProc == NULL)" to skip that code
      segment when Tcl_SetMainLoop is used. With this change, now
      Tcl_Main starts myEventLoop properly while giving me the
      interactive tcl prompt. Do you expect any side-effect from
      this change in tclMain.c?
      
      352a353,354
      >     // 2006.5.5 alin Do not block if mainLoopProc set
      >     if (mainLoopProc == NULL) {
      374a377
      >     } 
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  9. Ticket change [d4f219685a] (rid 123532) by dgp on 2006-05-06 01:06:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Somehow you're not testing the
      patched version.
      
      If you use the patched version,
      you should not reach Tcl_GetObj()
      (line 354) because the 
      (mainLoopProc == NULL) test on
      line 338 should be false and
      send control on to  line 415.
      
      Re-check your testing, or use
      the test suite case in the
      more recent patch to verify
      the bug fix.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [cf8a4d6a6e] (rid 112998) by dgp on 2006-05-06 01:10:25:

    1. closedate changed to: "2006-05-05T18:10:25"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      fix committed for 8.4.14 and 8.5a5
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  11. Ticket change [c80b6f6e93] (rid 122041) by nobody on 2006-05-06 04:04:28:

    1. icomment:
      Logged In: NO 
      
      Yes the new patch is good! After I rebuilt my application,
      Tcl_Main starts myEventLoop properly while giving me the
      interactive tcl prompt as expected. Thank you for fixing
      this problem so quickly, will wait for patch in 8.4.14 release.
      
      Thanks,
      Andrew ([email protected])
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"