Is the lack of deterministic destruction in .NET a problem



Is the lack of deterministic destruction in .NET a problem..

Answer / 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

More Dot Net Framework Interview Questions

can we call the garbage collector to run explicicitly?

6 Answers   Kanbay, Volvo,


what is entity graph in entity framework?

0 Answers   Microsoft,


What is display mode in mvc?

0 Answers  


what is conceptual model?

0 Answers   Microsoft,


what is msl?

0 Answers   Microsoft,


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

0 Answers   NA,


Explain the .net framework.

0 Answers  


Can we access the web controls in a page pre initialising event?

2 Answers  


mention what is code first approach and model first approach in entity framework?

0 Answers   Microsoft,


How do assemblies find each other?

2 Answers  


What is work of clr?

0 Answers  


What is the difference between model and entity?

0 Answers  


Categories