|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to lock a remote object to pretend it from being freed?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. 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 ) |
|||||||||||||||||||||||