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

Describe the .net framework architecture.

1045


What is the 'page life cycle' of an ASP.NET MVC?

1032


Can you explain the page life cycle of mvc?

979


Is .net framework 4.8 the last version?

1028


Does .NET Framework support SAX?

976


What are html helpers in asp.net mvc?

1015


Describe the roles of clr in .net framework.?

1103


What are Action Filters in ASP.NET MVC and its use?

1062


What is separation of concerns in asp.net mvc?

1115


what is eager loading?

999


What is associationset? : Entity framework

1046


what is entity graph in entity framework?

1112


Explain RenderBody and RenderPage in ASP.Net MVC?

1146


what is ssdl?

1138


What filters are executed in the end?

1020