Display: Cloud | List
Most Popular Tags
Results (3 total) All > garbage (x)
In a VB.NET application that plays WAV sounds asynchronously, using the SoundPlayer class or the Win32 PlaySound call, the 'garbage collector' may free and reuse the memory before the sound has finished. This situation is easy to recognise, and hard to forget: it sounds hideous. A working solution is the following 'clsSound' class:-------------------------------------------------Imports System.IOC
Last modified by -eVe- on 1/22/2010 9:33:48 AM
.NET Framework Developer's GuideGarbage CollectionThe .NET Framework's garbage collector manages the allocation and release of memory for your application. Each time you use the newoperator to create an object, the runtime allocates memory for the object from the managed heap. As long as address space is available in the managed heap, the runtime continues to allocate space for new objects. Howeve
Last modified by Microsoft on 12/16/2009 1:17:55 AM
Break the example into two parts please (Implementing a Dispose Method)
The example should be broken into two examples, one an example of Dispose for a class that does not need to release unmanaged resources, but simply pass Dispose on to child objects, and second example of a class that is a thin wrapper around an unmanaged resource. This reflects the recommendations of Microsoft. The Dispose provided for simple objects that do not own unmanaged resources should not
Last modified by Frank Hileman on 9/4/2007 11:41:59 PM
Page view tracker