BoundsChecker. I use it all the time to find memory leaks.
I wonder if you can use it on something compiled with GCC... It should be able to see bad parameters and leaks resulting from calls to the Win32 API, but I wonder if that would be the extent of what it can trap. In other words, it might not be able to follow NEW or MALLOC, because the object format might be too different. Tell you what, unless someone has actually tried BoundsChecker on GCC code and has a capsule about how well it works, I'll give it a shot and post back results. PS - I should say that I am NOT affiliated with the makers of BoundsChecker in any way, and on the whole, I find BoundsChecker pretty buggy itself and not very reliable that it won't crash during a run, so don't bother pointing that out. ;-) -----Original Message----- From: [EMAIL PROTECTED] [mailto:cygwin-xfree-owner@;cygwin.com]On Behalf Of Harold L Hunt II Sent: Tuesday, November 05, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: RE: XFree leaking memory? Konstantin, Interesting. So, this appears to be a new memory leak that has nothing to do with rootless mode. At this point I think we will need suggestions from others as to how we can find the source of this memory leak. There are not too many calls in the Windows-specific portion of XWin.exe that could result in continual memory leaks like this. However, I hope that the bug is in the Windows-specific portion of XWin.exe and not in either the rest of the XWin.exe code or in cygwin1.dll. Finding a memory leak in either of those would be tedious. Anybody got any suggestions? Harold -----Original Message----- From: [EMAIL PROTECTED] [mailto:cygwin-xfree-owner@;cygwin.com]On Behalf Of Konstantin N. Kudin Sent: Monday, November 04, 2002 8:49 PM To: [EMAIL PROTECTED] Subject: Re: XFree leaking memory? Harold I do not think I am using "-rootless" since I am running the standard *.bat file supplied with XFree and have a separate workspace for X. So this leak appears to be a separate issue. Is there a way to generate memory usage statistics for X? Konstantin On Mon, 4 Nov 2002, it was written: > Konstantin, > > Are you using the ``-rootless'' command-line parameter? If so, the > developer of that feature mentioned that there was a memory leak and > that he was working on fixing it. If not, then we might need to look > into your problem as a previously unknown problem. > > Harold > > Konstantin N. Kudin wrote: > > > Hi all > > > > I am using the cygwin + xfree combination for my X server. > >I run the program for days on a W2k laptop and put the machine on stand by > >every night. W2k and xfree are restarted quite infrequently (once every > >2-4 weeks). > > I have noticed in Task Manager that XWin process slowly but surely grows > >in size adding about 2Mb every day. It starts from 13 Mb but over the > >course of few days may become as large as 150 Mb (I have seen that). I > >tried to update XFree to the latest version a couple of weeks ago yet it > >did not stop growing in size. > > I mostly run fvwm and 2-3 xterms. I also occasionally display xterms and > >other things from other machines. > > I am curious if the developers are aware of/working on this issue? > > I could provide more details if needed/technically possible. > > > > Sincerely, > > Konstantin > > >