Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f7d676112cad814db8307f221b52048fbf00c2ed
Ticket: f50ff6f929119c62f9994d974a69be5e8bbf52d0
memory command is not available with TCL_MEM_DEBUG enabled libraries
User & Date: sakthivp on 2014-03-11 14:22:28
Changes

  1. closer changed to: "nobody"
  2. icomment:
    After adding '#define TCL_MEM_DEBUG' i compiled the program with -ltcl8.4g. But the output of the program is same.
    
    -----------
    #include <stdio.h>
    #include <tcl.h>
    #include <stdio.h>
    #define TCL_MEM_DEBUG
    #include <tcl.h>
    int main()
    {
     int x=0;
     Tcl_Interp* a;
     a =  Tcl_CreateInterp();
     Tcl_Init(a);
     Tcl_InitMemory(a);
     if (a == NULL)
     printf("Interpreter creation Failed \n");
     x = Tcl_Eval(a,(char *)"memory info");
     Tcl_DeleteInterp(a);
     printf("DeleteInterpreter x=%d \n",x);
    }
    ----------------------
    compilation
    
    /opt/Studio11/SUNWspro/bin/CC -L/scratch/sakthi/Tcl_8.4.9_debug/lib -ltcl8.4g -I/scratch/sakthi/Tcl_8.4.9_debug/include  Tcl_inter_problem.c -o 
    -----------------------
    output of the program:
    
    Tcl_inter_problem
    DeleteInterpreter x=1
    ------------------------
    Tcl8.6 Library
    ==============
    I compiled the Tcl8.6 source code with TCL_MEM_DEBUG flag (attached the config.log), but there was no libtcl8.6g.so libraries. I linked the library with my program and found the same result with 8.6 libraries.
    
    /opt/Studio11/SUNWspro/bin/CC -L/scratch/sakthi/Tcl_8.6_debug_2/lib -ltcl8.6 -I/scratch/sakthi/Tcl_8.6_debug_2/include  Tcl_inter_problem.c -o Tcl_inter_problem
    
    output
    ------
    Tcl_inter_problem
    DeleteInterpreter x=1
    
    Can you please help me on this?
    
  3. login: "sakthivp"
  4. mimetype: "text/plain"
  5. status changed to: "Open"
  6. username: "sakthivp"