Ask a Question related to ASP.NET General, Design and Development.
-
Jenny #1
Destroy COM object
Hi all,
my ASP.NET page generates an COM object which is filled
with a lot of data (approx. 30 MB).
It is then stored in the Application-Collection to be
accessible for all users of the page.
Under some conditions I don't need this COM object anymore
and like it to be destroyed.
I'm using the following code to destroy this object:
Application.Lock()
Application.RemoveAll()
Application.Clear()
Application.UnLock()
GC.Collect()
GC.WaitForPendingFinalizers()
But the Private Memory Size increases instead of descreasing!!
Why???
Thanks in advance for all help!
Jenny
Jenny Guest
-
#40511 [NEW]: __destruct() does not destroy vars $var
From: afuzaylov at mlgpro dot com Operating system: linux PHP version: 5.2.1 PHP Bug Type: Class/Object related Bug... -
PAPACY IS THE ANTICHRIST THAT IS TRYING TO DESTROY THE LAW OF GOD. DANIEL 7.25
PAPACY IS THE ANTICHRIST THAT IS TRYING TO DESTROY THE LAW OF GOD. DANIEL 7.25 SUNDAY IS THE DAY OF THE ROMAN BEAST, SABATH 7TH IS GODīS TRUE DAY.... -
destroy an Object?
is there a way to destroy and object? like ... thisObject = new Object(); can i destroy this? i have tried thisObject = null and unload()... -
IPC : destroy IPC::ShareLite-segments
I use IPC::ShareLite-segments but havnt figured out an elegant way to destroy the created segments. The recommended way (manpage) always fails with... -
references => how not to destroy my data ?
Hi, I'm struggling with references again. Underneath you will find a code snippet with some comments interleaved to tell what's going on. #... -
Alvin Bruney #2
Re: Destroy COM object
Try setting the COM object to tell after all this. If this com object is
wrapped in some class you will need to call/implement dispose on it.
"Jenny" <j.malloyNO@SPAMx-mail.net> wrote in message
news:04ee01c34f66$462cde70$a501280a@phx.gbl...> Hi all,
>
> my ASP.NET page generates an COM object which is filled
> with a lot of data (approx. 30 MB).
> It is then stored in the Application-Collection to be
> accessible for all users of the page.
>
> Under some conditions I don't need this COM object anymore
> and like it to be destroyed.
> I'm using the following code to destroy this object:
>
> Application.Lock()
> Application.RemoveAll()
> Application.Clear()
> Application.UnLock()
> GC.Collect()
> GC.WaitForPendingFinalizers()
>
> But the Private Memory Size increases instead of descreasing!!
> Why???
>
>
> Thanks in advance for all help!
>
> Jenny
Alvin Bruney Guest
-
Jenny #3
Destroy COM object
Hi all,
I'm using a COM DLL in order to generate an object. This
object is then stored in the application state. But after
setting it to nothing and doing a garbage collection it's
still there. Is there another way to remove such an object
completly?
Regards
Jenny
Jenny Guest
-
Rob #4
Destroy COM object
use the below statement to clear the com dll.
Marshal.ReleaseComObject(objcomDll)
Note: objcomDll is the com dll name
-Rob>-----Original Message-----
>Hi all,
>
>I'm using a COM DLL in order to generate an object. This
>object is then stored in the application state. But after
>setting it to nothing and doing a garbage collection it's
>still there. Is there another way to remove such an object
>completly?
>
>Regards
>Jenny
>.
>Rob Guest



Reply With Quote

