M
Matt MacDonald
Hi all,
I'm working on a web app that uses a client-designed com dll to access a
database, do calculations, etc. When I create a new object from this dll it
takes up a lot of memory, so I want to get rid of it asap. My code looks
similar to the following"
Dim obj as new COMobj
.....
Do Processing
......
obj = Nothing
gc.collect
As you can see, I'm setting the object that I create to nothing and calling
the garbage collector, which, in my mind, should release the allocated
memory. While watching the task manager however, this does not appear to be
happening until about 20 minutes afterwards, around the time that the web
session would expire. How can I force the memory for this object to be
released. Once again, this is not a .NET assembly, this is a COM dll.
Any help would be very appreciated.
Thanks in advance,
Matt
I'm working on a web app that uses a client-designed com dll to access a
database, do calculations, etc. When I create a new object from this dll it
takes up a lot of memory, so I want to get rid of it asap. My code looks
similar to the following"
Dim obj as new COMobj
.....
Do Processing
......
obj = Nothing
gc.collect
As you can see, I'm setting the object that I create to nothing and calling
the garbage collector, which, in my mind, should release the allocated
memory. While watching the task manager however, this does not appear to be
happening until about 20 minutes afterwards, around the time that the web
session would expire. How can I force the memory for this object to be
released. Once again, this is not a .NET assembly, this is a COM dll.
Any help would be very appreciated.
Thanks in advance,
Matt