Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: RegionMaster Controls Pin
James T. Johnson19-Apr-03 19:42
James T. Johnson19-Apr-03 19:42 
GeneralRe: RegionMaster Controls Pin
leppie20-Apr-03 2:33
leppie20-Apr-03 2:33 
GeneralUDP broadcast problem Pin
smartnose19-Apr-03 15:34
smartnose19-Apr-03 15:34 
GeneralDynamically move ScrollBar to bottom in a TextBox or a RichTextBox Pin
krisp19-Apr-03 14:00
krisp19-Apr-03 14:00 
GeneralRe: Dynamically move ScrollBar to bottom in a TextBox or a RichTextBox Pin
J. Dunlap19-Apr-03 14:12
J. Dunlap19-Apr-03 14:12 
GeneralRe: Dynamically move ScrollBar to bottom in a TextBox or a RichTextBox Pin
krisp19-Apr-03 16:11
krisp19-Apr-03 16:11 
GeneralRe: Dynamically move ScrollBar to bottom in a TextBox or a RichTextBox Pin
J. Dunlap19-Apr-03 17:03
J. Dunlap19-Apr-03 17:03 
GeneralGC - again Pin
peterchen19-Apr-03 12:58
peterchen19-Apr-03 12:58 
OK, I hvae a class Foo that holds a Brush.
Since Brush holds an unmanaged resource and implements IDisposable, I guess Foo has to implement IDisposable as well.

However, I'm still mixed up about Dispose, Finalize, and the recommended Dispose(bool disposing).

What's the "true" method to do here? Just
class Foo : IDisposable
{
  protected Brush m_brush = null;

  Dispose()
  {
    m_brush.Dispose();
    m_brush=null;
  };
}
or is there more to it=

I know someday I'll get it Roll eyes | :rolleyes:
TIA

(Just today I found an article that explaiend it nicely - but it's poof! gone..)


"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS

sighist | Agile Programming | doxygen

GeneralRe: GC - again Pin
Paul Ingles19-Apr-03 14:00
Paul Ingles19-Apr-03 14:00 
GeneralRe: GC - again Pin
James T. Johnson19-Apr-03 14:02
James T. Johnson19-Apr-03 14:02 
GeneralMaking class properties editable Pin
peterchen19-Apr-03 12:19
peterchen19-Apr-03 12:19 
GeneralRe: Making class properties editable Pin
James T. Johnson19-Apr-03 12:56
James T. Johnson19-Apr-03 12:56 
GeneralRe: Making class properties editable Pin
peterchen19-Apr-03 13:10
peterchen19-Apr-03 13:10 
GeneralPrefixing Classes and Interfaces Pin
J. Dunlap19-Apr-03 11:47
J. Dunlap19-Apr-03 11:47 
GeneralRe: Prefixing Classes and Interfaces Pin
dog_spawn19-Apr-03 12:11
dog_spawn19-Apr-03 12:11 
GeneralRe: Prefixing Classes and Interfaces Pin
J. Dunlap19-Apr-03 12:32
J. Dunlap19-Apr-03 12:32 
GeneralRe: Prefixing Classes and Interfaces Pin
James T. Johnson19-Apr-03 13:00
James T. Johnson19-Apr-03 13:00 
GeneralRe: Prefixing Classes and Interfaces Pin
J. Dunlap19-Apr-03 14:04
J. Dunlap19-Apr-03 14:04 
GeneralRe: Prefixing Classes and Interfaces Pin
Arun Bhalla19-Apr-03 13:32
Arun Bhalla19-Apr-03 13:32 
GeneralRe: Prefixing Classes and Interfaces Pin
J. Dunlap19-Apr-03 14:02
J. Dunlap19-Apr-03 14:02 
GeneralWrappers for P/Invoke Pin
Alex Korchemniy19-Apr-03 8:27
Alex Korchemniy19-Apr-03 8:27 
GeneralRe: Wrappers for P/Invoke Pin
Stephane Rodriguez.19-Apr-03 9:13
Stephane Rodriguez.19-Apr-03 9:13 
GeneralRe: Wrappers for P/Invoke Pin
Alex Korchemniy19-Apr-03 15:34
Alex Korchemniy19-Apr-03 15:34 
GeneralRe: Wrappers for P/Invoke Pin
Stephane Rodriguez.19-Apr-03 20:58
Stephane Rodriguez.19-Apr-03 20:58 
QuestionHwo to use SecondaryBuffer to play sound through Buffer? Pin
JmmJ19-Apr-03 1:02
JmmJ19-Apr-03 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.