Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-12-09
16:30 • Ticket [510453ffff] Memory leak in win32 status still Closed with 4 other ch... artifact: 54f5af0c2f user: hungtv
2002-11-23
04:27 • Ticket [510453ffff]: 6 changes artifact: 0cdafc1aed user: hobbs
2002-11-21
00:08 • Ticket [510453ffff]: 4 changes artifact: 01cb7f7e29 user: nobody
2002-02-23
14:02 • Closed ticket [510453ffff]. artifact: ccf6c9e113 user: hobbs
2002-01-30
00:33 • New ticket [510453ffff]. artifact: f6f3dea255 user: pikonrad

Memory leak in win32

Closed / Invalid510453ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 22 years ago
Descriptionplain2002-01-30 00:33:58
Using the simple sequence

m_interp = Tcl_CreateInterp();
Tcl_DeleteInterp(m_interp);

on win32 yealds a memory leak. Or
is there another release command 
that I have forgotten?

The sequence is inside a dll.
TCL Version is tcl8.3.4
hobbsplain2002-02-23 14:02:53
Logged In: YES 
user_id=72656

There are certain elements missing from this report, but I 
believe that the user needs to first of all ensure that 
Tcl_Finalize is called at some time.  Certain subsystems 
will be initialized, and not freed until that call.
nobodyplain2002-11-21 00:08:53
Logged In: NO 

We also noticed that in Solaris 8 and all TCL versions. (e.g. 
8.3.4,8.3.5, and 8.4) . We also added the Tcl_Finalize with 
NO success!. Help is needed!

P.S. You can send a reply directly to my email.

Thanks,

Rony.
hobbsplain2002-11-23 04:27:20
Logged In: YES 
user_id=72656

this refers to bug 641330, which is not valid IMO at this point.
hungtvplain2004-12-09 16:30:23
Logged In: YES 
user_id=1172204

Could you tell me how to solve memory leaks in TCL? Please 
reply this message on [email protected]. Thanks.

m_pInterp = Tcl_CreateInterp();
.......

if (!Tcl_InterpDeleted(m_pInterp)) {
     Tcl_DeleteInterp(m_pInterp);
     Tcl_Finalize();
}
Log in (anonymous is fine) to add a comment.