Hi,

i would like to ask your opinion about the following scenario (described
here to understand my problem):
-my app hosts the .net clr
-there are several .net objects (each one in its own appdomain) which use
com objects (as fields and in methods)
-i have my own threadpool implementation to have STA threads (my com objects
are not freethreaded and they are MFC based)

-every time an execution (=call to a method) is requested a thread executes
a method on a given object
----------
The problem is after a few executions my taskmanager shows about 111Mega
memory used. After a time this drops to a more convenient value(about 25
mega, this is ok for my app) and remains around this value (with further
executions).
And the worst is: sometimes when i stop my application a huge number of com
object remain as memory leak.

I tried also just create a new thread for every execution, then call abort
after the execution(in the same thread). In this case i never have memory
leak reported, but in taskmanager i have a huge number of "Handles" after a
few executions. And they drop after a very long interval (hours).

Any ideeas?
Thank you,

Zoli

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to