Click here to Skip to main content
16,004,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to find the path of the file csc.exe Pin
Shyam Bharath26-Nov-08 0:44
Shyam Bharath26-Nov-08 0:44 
AnswerRe: How to find the path of the file csc.exe Pin
PIEBALDconsult26-Nov-08 3:34
mvePIEBALDconsult26-Nov-08 3:34 
Questionapplication on system tray Pin
balu1234526-Nov-08 0:31
balu1234526-Nov-08 0:31 
AnswerRe: application on system tray Pin
Pedram Behroozi26-Nov-08 0:37
Pedram Behroozi26-Nov-08 0:37 
QuestionPuzzled with Finalizers Pin
HosamAly26-Nov-08 0:20
HosamAly26-Nov-08 0:20 
AnswerRe: Puzzled with Finalizers Pin
Guffa26-Nov-08 1:25
Guffa26-Nov-08 1:25 
QuestionRe: Puzzled with Finalizers Pin
HosamAly26-Nov-08 2:19
HosamAly26-Nov-08 2:19 
AnswerRe: Puzzled with Finalizers Pin
Simon P Stevens26-Nov-08 3:00
Simon P Stevens26-Nov-08 3:00 
C# uses non-deterministic finalisation. The dispose pattern is c#'s way of simulating a deterministic destructor.

Implement the dispose pattern, put your release code inside the if(isDisposing) block. Then make sure you call .Dispose in the correct order. (Or make one object call dispose on the object it contains).

http://msdn.microsoft.com/en-us/library/system.idisposable.dispose.aspx[^]

http://msdn.microsoft.com/en-us/library/b1yfkh5e.aspx[^]

Simon

QuestionRe: Puzzled with Finalizers Pin
HosamAly26-Nov-08 3:21
HosamAly26-Nov-08 3:21 
GeneralRe: Puzzled with Finalizers Pin
Thomas Weller26-Nov-08 3:46
Thomas Weller26-Nov-08 3:46 
QuestionRemoting in .net Pin
krinaljariwala25-Nov-08 23:52
krinaljariwala25-Nov-08 23:52 
AnswerRe: Remoting in .net Pin
Thomas Weller26-Nov-08 0:16
Thomas Weller26-Nov-08 0:16 
GeneralRe: Remoting in .net Pin
Shyam Bharath26-Nov-08 0:28
Shyam Bharath26-Nov-08 0:28 
GeneralRe: Remoting in .net Pin
Thomas Weller26-Nov-08 0:32
Thomas Weller26-Nov-08 0:32 
GeneralRe: Remoting in .net Pin
Shyam Bharath26-Nov-08 0:37
Shyam Bharath26-Nov-08 0:37 
JokeRe: Remoting in .net Pin
Pedram Behroozi26-Nov-08 0:34
Pedram Behroozi26-Nov-08 0:34 
GeneralRe: Remoting in .net Pin
Alan Balkany26-Nov-08 4:03
Alan Balkany26-Nov-08 4:03 
GeneralRe: Remoting in .net Pin
Thomas Weller26-Nov-08 4:26
Thomas Weller26-Nov-08 4:26 
AnswerRe: Remoting in .net Pin
Shyam Bharath26-Nov-08 0:26
Shyam Bharath26-Nov-08 0:26 
JokeRe: Remoting in .net Pin
Thomas Weller26-Nov-08 0:30
Thomas Weller26-Nov-08 0:30 
GeneralRe: Remoting in .net Pin
Shyam Bharath26-Nov-08 0:35
Shyam Bharath26-Nov-08 0:35 
JokeRe: Remoting in .net Pin
Thomas Weller26-Nov-08 0:49
Thomas Weller26-Nov-08 0:49 
GeneralRe: Remoting in .net Pin
Shyam Bharath26-Nov-08 0:54
Shyam Bharath26-Nov-08 0:54 
QuestionPointer in C# Pin
Hamed Musavi25-Nov-08 22:26
Hamed Musavi25-Nov-08 22:26 
AnswerRe: Pointer in C# Pin
Thomas Weller25-Nov-08 22:41
Thomas Weller25-Nov-08 22:41 

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.