Home All Groups Group Topic Archive Search About

How to lock a remote object to pretend it from being freed?

Author
13 Oct 2006 1:21 AM
dotNeter
I have to access some resource which resides at a cross-domain
assembly.
But I got a problem that the resource I obtained was freed at unknown
time, then crash my app.

Why was it freed? How to lock it in a normal way?

Very appreciated for your reply.

Author
13 Oct 2006 4:34 PM
Vadym Stetsyak
Hello, dotNeter!

d> I have to access some resource which resides at a cross-domain
d> assembly.
d> But I got a problem that the resource I obtained was freed at unknown
d> time, then crash my app.

d> Why was it freed? How to lock it in a normal way?

you can use named Mutex object to control access to that resource.

Have a look at ( http://msdn2.microsoft.com/en-us/library/hw29w7t1.aspx )


--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

AddThis Social Bookmark Button