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

List the new features added in .net framework 4.0.

512


Explain representational state transfer (rest) in detail?

547


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

568


how do you query in entity model when the result has a join from from different database other than the entity model?

550


What is storage model? : Entity framework

545






what is conceptual model?

593


Which version of .net framework is installed?

481


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

528


Is http stateful or stateless?

539


What is RouteConfig.cs in ASP.Net MVC 4?

571


What is model first? : Entity framework

531


i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources

1571


what is entityclient?

673


What is associationset? : Entity framework

553


Can I remove .net framework?

533