[Mono-devel-list] Leak in System.Timers.Timer?

2005-03-10 Thread Brian Kroeker
Title: Leak in System.Timers.Timer? I'm seeing what looks like a memory leak somewhere in System.Timers.Timer. I'm using mono 1.1.4 on a linux system. The code I used to reproduce the problem is: -- using System; namespace TimerTest {     public class TimerTest     {   

Re: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-10 Thread Joe Audette
Looks to me like your creating timers in an infinite loop wich would of course continue to consume resources    while(true) {     InitTimeout(ref timeout);     System.Threading.Thread.Sleep(10); }   true will always be true so you are spinning off a lot of timers ri

Re: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-10 Thread Joe Audette
Oh, wait I see you are passing the same one by ref and setting it to null. Do you get different behaviour under windows? Joe Audette <[EMAIL PROTECTED]> wrote: Looks to me like your creating timers in an infinite loop wich would of course continue to consume resources    while(true) {

Re: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-10 Thread Joe Audette
Could it be the "lapsed listener problem"? http://www.andymcm.com/dotnetfaq.htm#5.8Brian Kroeker <[EMAIL PROTECTED]> wrote: I'm seeing what looks like a memory leak somewhere in System.Timers.Timer. I'm using mono 1.1.4 on a linux system. The code I used to reproduce the problem is: -

RE: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-10 Thread Brian Kroeker
h 10, 2005 12:03 PMTo: mono-devel-list@lists.ximian.comSubject: Re: [Mono-devel-list] Leak in System.Timers.Timer? Oh, wait I see you are passing the same one by ref and setting it to null. Do you get different behaviour under windows? Joe Audette <[EMAIL PROTECTED]> wrote: L

Re: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-11 Thread Rafael Teixeira
e event went away. > > Brian > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 10, 2005 12:03 PM > To: mono-devel-list@lists.ximian.com > Subject: Re: [Mono-devel-list] Leak in System.Timers.Timer? &

RE: [Mono-devel-list] Leak in System.Timers.Timer?

2005-03-11 Thread Brian Kroeker
Title: RE: [Mono-devel-list] Leak in System.Timers.Timer? The test code I posted creates way more timers than I would in my actual code - so that the symptoms can be seem more readily. Perhaps this is not a valid test if the code produces objects faster than the gc collects them. I did run