Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-08 Thread Manuel Costa
n have a problem. Submitting peta-trillion of tasks per second can be a problem! - Original Message - From: "Paul Johansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 07, 2004 7:19 PM Subject: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Pro

Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-07 Thread Arlie Davis
f advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Paul Johansen Sent: Monday, June 07, 2004 2:20 PM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems I have implemented a multithreaded solution where I am calling ThreadPool.QueueUserWorkItem and I

Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-07 Thread Paul Johansen
Sent: Monday, June 07, 2004 1:49 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems WaitCallback class ? Are you creating a "WaitCallback" class for each queue item? --- Paul Johansen <[EMAIL PROTECTED]> wrote: > I

Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-07 Thread Paul Johansen
EMAIL PROTECTED] On Behalf Of Sam Ang Sent: Monday, June 07, 2004 1:42 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems How about setting your state object to null at the end of your PostData? sam --- Paul Johansen <[EMAIL PROTECTED]> wrot

Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-07 Thread Sam Ang
WaitCallback class ? Are you creating a "WaitCallback" class for each queue item? --- Paul Johansen <[EMAIL PROTECTED]> wrote: > I have implemented a multithreaded solution where I > am calling > ThreadPool.QueueUserWorkItem and I am passing both > the WaitCallback > class (using a method called

Re: [ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-07 Thread Sam Ang
How about setting your state object to null at the end of your PostData? sam --- Paul Johansen <[EMAIL PROTECTED]> wrote: > I have implemented a multithreaded solution where I > am calling > ThreadPool.QueueUserWorkItem and I am passing both > the WaitCallback > class (using a method called PostDa

[ADVANCED-DOTNET] ThreadPool.QueueUserWorkItem Memory Problems

2004-06-07 Thread Paul Johansen
I have implemented a multithreaded solution where I am calling ThreadPool.QueueUserWorkItem and I am passing both the WaitCallback class (using a method called PostData) as well as the state object (a custom class consisting of four strings and a bool). When I do this, I am leaking memory like