the efforts are worth it I'm sure, and they are very well apreciated!!! I
noticed some memleaks too (we have so many omg!) :
open amsn, do a "llength [image names]" it should return 100s.. then
connect, it becomes 200.. open a chat window, it becomes 245, close a chat
window, it goes down to 235 (while it should be 200 not 235), open again,
goes up to 245, close, goes down to 235.. open a chatwindow with someone
else, goes up to 247, close it, goes down to 237...
I noticed my amsn took a lot of memory and I had I think around 900 images
opened... closed all I could (user_pic, smallpic, etc... all user images),
and it went down to 600.. which is still a lot..
also, check for :
info commands ::http::*
there are a lot of http tokens that are never closed.. you can do this :
set memleak 0; foreach tok [info command ::http::*] { catch { incr memleak
[string length [array get $tok]] } }; puts $memleak
it should give you how much space "as a string of characters.." (doesn't
count internal representation of array and of unicoded string (2 bytes a
char))) is used by those tokens... that are never [http::cleanup $tok]..
after opening amsn, I think I had 100Kb used by that already...
KKRT
On Wed, 19 Apr 2006 10:52:00 -0400, Karel Demeyer <[EMAIL PROTECTED]>
wrote:
Hi,
I found 2 small memleaks in webcam.tcl but as I don't know anything
about this code apart from the gui, I'd like someone other to fix it.
The first is about entries in the array 'objects' that are never unset.
Every webcam session adds info to this array which I guess could be
unset after the session or whenever it's appropriate.
The second is about the images it creates. I made it create tmpX images
as I've done in other places throughout our codebase. Every webcam
session seems to add an image that isn't destroyed. This should be
destroyed too.
I hope all these efforts would be worth it and we'll have a less leaking
aMSN for the next release maybe ? :)
Karel.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel
--
KaKaRoTo
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel