Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 97e739b5778a050807aa681576f53335f30f1421
Ticket: 229181ffffffffffffffffffffffffffffffffff
Compiler Leaks Memory
User & Date: nobody on 2001-01-17 22:18:11
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Running and embedded interpreter from C++. The following code leaks memory.
    
    ...
    while(1){
    
         char* theScript = GetScript();
         returnLength = NPstrlen( theScript );
         theObj = Tcl_NewUnicodeObj(theScript, returnLength );
    
         Tcl_EvalObjEx(theInterp, theObj , TCL_EVAL_DIRECT );
    
    }
    
    
    However, once you switch to pre-compiling the scripts into bytecode objects and using them, the leak disappears. Seems that the compile stage is not 100%.
    
    
    
  4. foundin changed to: "obsolete: 8.4a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "Compiler Leaks Memory"
  11. type changed to: "Bug"