Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
QuestionHow can i detect if a path is valid. Pin
Saksida Bojan14-Aug-09 3:46
Saksida Bojan14-Aug-09 3:46 
AnswerRe: How can i detect if a path is valid. Pin
picazo14-Aug-09 4:03
picazo14-Aug-09 4:03 
AnswerRe: How can i detect if a path is valid. Pin
Luc Pattyn14-Aug-09 4:08
sitebuilderLuc Pattyn14-Aug-09 4:08 
GeneralRe: How can i detect if a path is valid. Pin
Saksida Bojan14-Aug-09 5:05
Saksida Bojan14-Aug-09 5:05 
QuestionC# and JavaScript. [modified] Pin
Evgeni5714-Aug-09 3:34
Evgeni5714-Aug-09 3:34 
AnswerRe: C# and JavaScript. Pin
Evgeni5717-Aug-09 1:41
Evgeni5717-Aug-09 1:41 
QuestionLogging Pin
Saksida Bojan14-Aug-09 3:02
Saksida Bojan14-Aug-09 3:02 
AnswerRe: Logging Pin
0x3c014-Aug-09 3:20
0x3c014-Aug-09 3:20 
If you use Vista, then you can use its Application Recovery to recover from a crash. There's an article on CP for it here: Vista Application Crash Recovery in C#[^]

If you're going to save data, then I would make it as simple as possible. If you've got the Exception object, then the stack trace, exception type name and exception message would be a good start. You'd also want to get that for the InnerException, if it's not null. For the purposes of error logging, I'd just serialisation. It's still easily emailable, can be saved into XML format, and will have the data you need. And there's very little which can go wrong with it, so you're highly unlikely to get an exception, which would trigger the exception handler, which would raise an exception, which would trigger the exception handler ad infinitum.

Obviously if your application handles secure data, then you've got to save it in encrypted format. This can still use serialisation; you just need to save it to a CryptoStream instead of a FileStream

Between the idea
And the reality
Between the motion
And the act
Falls the Shadow

QuestionAccess OleDb on x64 Pin
V.14-Aug-09 2:43
professionalV.14-Aug-09 2:43 
AnswerRe: Access OleDb on x64 Pin
Hristo-Bojilov14-Aug-09 22:20
Hristo-Bojilov14-Aug-09 22:20 
GeneralRe: Access OleDb on x64 Pin
V.17-Aug-09 23:43
professionalV.17-Aug-09 23:43 
Questionlog4net doesn't log in myProcess.OutputDataReceived Pin
buchstaben14-Aug-09 1:53
buchstaben14-Aug-09 1:53 
QuestionSqlDataReader-Ouput Parameter And SqlConnection Pin
Nagaraj Muthuchamy14-Aug-09 1:12
professionalNagaraj Muthuchamy14-Aug-09 1:12 
AnswerRe: SqlDataReader-Ouput Parameter And SqlConnection Pin
Ashfield14-Aug-09 1:17
Ashfield14-Aug-09 1:17 
GeneralRe: SqlDataReader-Ouput Parameter And SqlConnection Pin
Nagaraj Muthuchamy14-Aug-09 1:25
professionalNagaraj Muthuchamy14-Aug-09 1:25 
GeneralRe: SqlDataReader-Ouput Parameter And SqlConnection Pin
Coding C#14-Aug-09 1:29
Coding C#14-Aug-09 1:29 
GeneralRe: SqlDataReader-Ouput Parameter And SqlConnection Pin
Ashfield14-Aug-09 2:57
Ashfield14-Aug-09 2:57 
GeneralRe: SqlDataReader-Ouput Parameter And SqlConnection Pin
Pete O'Hanlon14-Aug-09 3:01
mvePete O'Hanlon14-Aug-09 3:01 
GeneralRe: SqlDataReader-Ouput Parameter And SqlConnection Pin
Ashfield14-Aug-09 5:05
Ashfield14-Aug-09 5:05 
QuestionDisabling a button on one form from another. Pin
False Chicken14-Aug-09 0:28
False Chicken14-Aug-09 0:28 
AnswerRe: Disabling a button on one form from another. Pin
DaveyM6914-Aug-09 0:53
professionalDaveyM6914-Aug-09 0:53 
AnswerRe: Disabling a button on one form from another. Pin
DaveyM6914-Aug-09 1:00
professionalDaveyM6914-Aug-09 1:00 
GeneralRe: Disabling a button on one form from another. Pin
False Chicken14-Aug-09 1:06
False Chicken14-Aug-09 1:06 
AnswerRe: Disabling a button on one form from another. Pin
Hristo-Bojilov14-Aug-09 1:08
Hristo-Bojilov14-Aug-09 1:08 
GeneralRe: Disabling a button on one form from another. Pin
False Chicken14-Aug-09 1:15
False Chicken14-Aug-09 1:15 

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.