Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is the lack of deterministic destruction in .NET a problem

Answer Posted / kirti

It's certainly an issue that affects component design. If you have objects that maintain expensive or scarce resources (e.g. database locks), you need to provide some way for the client to tell the object to release the resource when it is done. Microsoft recommend that you provide a method called Dispose() for this purpose. However, this causes problems for distributed objects - in a distributed system who calls the Dispose() method? Some form of reference-counting or ownership-management mechanism is needed to handle distributed objects - unfortunately the runtime offers no help with this.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object service? : Entity framework

1181


How to use multiple submit buttons in asp.net mvc?

1211


How can you return string result from Action in ASP.Net MVC?

1062


what do you mean by table-per-type?

1105


What is difference between viewbag and viewdata and tempdata?

1018


what is linq to entities?

1143


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

1060


What is ViewData and TempData in ASP.Net MVC?

1046


List the new features added in .net framework 4.0.

959


Explain linq to entities? : Entity framework

1052


How to Redirect Tracing to a File

1068


Explain something about model, view and controllers in asp.net mvc?

1042


Does .NET Framework support SAX?

1027


What is entitytypes? : Entity framework

1048


Is it possible to cancel filter execution?

1029