Logo 
Search:

c programming Interview FAQs

Submit Interview FAQ
No Records Found!!!
Go Ahead and Post your Interview FAQ
Home » Interview FAQs » c programmingRSS Feeds
.Net Framework
Comments: 0

What is the lapsed listener problem?

The lapsed listener problem is one of the primary causes of leaks in .NET applications. It occurs when a subscriber (or 'listener') signs up for a publisher's event, but fails to unsubscribe. The failure to unsubscribe means that the publisher mainta...
Posted By:Maurice Hanson      Posted On: Oct 02

.Net Framework
Comments: 0

When do I need to use GC.KeepAlive?

It's very unintuitive, but the runtime can decide that an object is garbage much sooner than you expect. More specifically, an object can become garbage while a method is executing on the object, which is contrary to most developers' expectations. Ch...
Posted By:Bellona Lopez      Posted On: Sep 06

.Net Framework
Comments: 0

Do I have any control over the garbage collection algorithm?

A little. For example the System.GC class exposes a Collect method, which forces the garbage collector to collect all unreferenced objects immediately.

Also there is a gcConcurrent setting that can be specified via the application configuration fi...
Posted By:Giovanna Silva      Posted On: Mar 24

.Net Framework
Comments: 0

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

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 to tell the object to release the resource when it is done. Microsoft recommend...
Posted By:Vivian Ruiz      Posted On: Feb 18

.Net Framework
Comments: 0

Should I implement Finalize on my class? Should I implement IDisposable?

This issue is a little more complex than it first appears. There are really two categories of class that require deterministic destruction - the first category manipulate unmanaged types directly, whereas the second category manipulate managed types ...
Posted By:Harold Graham      Posted On: Nov 30

.Net Framework
Comments: 0

What is garbage collection?

Garbage collection is a heap-management strategy where a run-time component takes responsibility for managing the lifetime of the memory used by objects. This concept is not new to .NET - Java and many other languages/runtimes have used garbage colle...
Posted By:Earl Stone      Posted On: Nov 26

.Net Framework
Comments: 0

What is the lapsed listener problem?

The lapsed listener problem is one of the primary causes of leaks in .NET applications. It occurs when a subscriber (or 'listener') signs up for a publisher's event, but fails to unsubscribe. The failure to unsubscribe means that the publisher mainta...
Posted By:Maurice Hanson      Posted On: Oct 02

.Net Framework
Comments: 0

When do I need to use GC.KeepAlive?

It's very unintuitive, but the runtime can decide that an object is garbage much sooner than you expect. More specifically, an object can become garbage while a method is executing on the object, which is contrary to most developers' expectations. Ch...
Posted By:Bellona Lopez      Posted On: Sep 06

.Net Framework
Comments: 0

Do I have any control over the garbage collection algorithm?

A little. For example the System.GC class exposes a Collect method, which forces the garbage collector to collect all unreferenced objects immediately.

Also there is a gcConcurrent setting that can be specified via the application configuration fi...
Posted By:Giovanna Silva      Posted On: Mar 24

.Net Framework
Comments: 0

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

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 to tell the object to release the resource when it is done. Microsoft recommend...
Posted By:Vivian Ruiz      Posted On: Feb 18

.Net Framework
Comments: 0

Should I implement Finalize on my class? Should I implement IDisposable?

This issue is a little more complex than it first appears. There are really two categories of class that require deterministic destruction - the first category manipulate unmanaged types directly, whereas the second category manipulate managed types ...
Posted By:Harold Graham      Posted On: Nov 30

.Net Framework
Comments: 0

What is garbage collection?

Garbage collection is a heap-management strategy where a run-time component takes responsibility for managing the lifetime of the memory used by objects. This concept is not new to .NET - Java and many other languages/runtimes have used garbage colle...
Posted By:Earl Stone      Posted On: Nov 26

  53  54  55  56  57  58  59  60  61  62  63