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

How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

484


Why we need a separate mobile project template, while we can render our web application in mobile ?

591


how to disable the lazy loading framework?

594


Is .net core replacing .net framework?

473


What is presentation framework?

548






What is separation of concerns in asp.net mvc?

600


How does �side by side� work for the .net framework 3.0?

529


If I have multiple filters implemented, what is the order in which these filters get executed?

525


Explain JSON Binding?

621


Can you set the unlimited length for "maxjsonlength" property in config?

561


What is Layout in ASP.Net MVC?

577


How route table has been created in ASP.NET ASP.Net MVC?

554


Explain unit test done by tester on development team?

532


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

594


What is the version number for the next version of the .net framework, codenamed �orcas�?

485