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

C#

 
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 
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 
Your only chance is to use the Dispose pattern and propagate it down your object graph(s), and additionally use try/catch logic in the appropriate places. Finalizers for sure will lead you nowhere since - as stated above - they are indeterministic in order.

The logic may become complicated depending on what you are doing - but there has to be one.

HosamAly wrote:
Another issue is when the application is rudely unloaded;

If that means 'crash' or 'cancelling the app via task manager' there's exactly nothing you can do. (Anyway, this is exceptional and not part of a programs normal behaviour, so you're not really to blame for things that happen in this case.)


Regards
Thomas

www.thomas-weller.de

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software.


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 
GeneralRe: Pointer in C# Pin
Hamed Musavi25-Nov-08 23:06
Hamed Musavi25-Nov-08 23:06 
GeneralRe: Pointer in C# Pin
Thomas Weller25-Nov-08 23:24
Thomas Weller25-Nov-08 23:24 

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.