Re: [Lazarus] Memory leak in TThread class

2010-10-07 Thread Luca Olivetti
En/na Sergei Gorelkin ha escrit: Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Tobias Giesen
Hi, I think you shouldn't create suspended threads anyway. The Windows API docs say that suspend/resume is only for debuggers. To synchronize threads or to delay the starting of a thread you should use events, WaitForMultipleObjects etc. Cheers, Tobias --

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Tobias Giesen пишет: Hi, I think you shouldn't create suspended threads anyway. The Windows API docs say that suspend/resume is only for debuggers. To synchronize threads or to delay the starting of a thread you should use events, WaitForMultipleObjects etc. Creating a suspended TThread is a

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Marcos Douglas
On Wed, Oct 6, 2010 at 11:23 AM, Sergei Gorelkin sergei_gorel...@mail.ru wrote: Tobias Giesen пишет: Hi, I think you shouldn't create suspended threads anyway. The Windows API docs say that suspend/resume is only for debuggers. To synchronize threads or to delay the starting of a thread you

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing before it was completely

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Sergei Gorelkin wrote: Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Marcos Douglas
On Wed, Oct 6, 2010 at 3:24 PM, Sergei Gorelkin sergei_gorel...@mail.ru wrote: Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread silvioprog
Thanks to all. ;) 2010/10/6 Sergei Gorelkin sergei_gorel...@mail.ru Sergei Gorelkin wrote: Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue

Re: [Lazarus] Memory leak in TThread class

2010-10-05 Thread Luca Olivetti
En/na silvioprog ha escrit: Hi folks, I detected a small leak in the TThread class. I made a simple test and I sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the leak, just open and close the demo. That's probably because the thread has no chance to run (you create it

Re: [Lazarus] Memory leak in TThread class

2010-10-05 Thread Marcos Douglas
On Tue, Oct 5, 2010 at 9:40 AM, Luca Olivetti l...@wetron.es wrote: En/na silvioprog ha escrit: Hi folks, I detected a small leak in the TThread class. I made a simple test and I sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the leak, just open and close the demo.

Re: [Lazarus] Memory leak in TThread class

2010-10-05 Thread Luca Olivetti
En/na Marcos Douglas ha escrit: On Tue, Oct 5, 2010 at 9:40 AM, Luca Olivetti l...@wetron.es wrote: En/na silvioprog ha escrit: Hi folks, I detected a small leak in the TThread class. I made a simple test and I sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the leak, just

Re: [Lazarus] Memory leak in TThread class

2010-10-05 Thread Marcos Douglas
On Tue, Oct 5, 2010 at 9:50 AM, Luca Olivetti l...@wetron.es wrote: En/na Marcos Douglas ha escrit: On Tue, Oct 5, 2010 at 9:40 AM, Luca Olivetti l...@wetron.es wrote: En/na silvioprog ha escrit: Hi folks, I detected a small leak in the TThread class. I made a simple test and I sending

Re: [Lazarus] Memory leak in TThread class

2010-10-05 Thread waldo kitty
On 10/5/2010 08:40, Luca Olivetti wrote: En/na silvioprog ha escrit: Hi folks, I detected a small leak in the TThread class. I made a simple test and I sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the leak, just open and close the demo. That's probably because the

Re: [Lazarus] Memory leak in TThread class

2010-10-05 Thread Andrew Brunner
On Tue, Oct 5, 2010 at 10:26 AM, waldo kitty wkitt...@windstream.net wrote: if it has no chance to run, it should not allocate the memory... if it allocates the memory during a create-suspended, it should un-allocate that memory during a destroy-suspended... in other words, it should not

Re: [Lazarus] Memory leak in TThread class

2010-10-04 Thread Marcos Douglas
2010/10/4 silvioprog silviop...@gmail.com: Hi folks, I detected a small leak in the TThread class. I made a simple test and I sending in attached (or http://pastebin.com/aWNuHyDQ). To reproduce the leak, just open and close the demo. My environment: Lazarus 0.9.29 r27568 FPC 2.5.1