Click here to Skip to main content
15,927,694 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exception handling Pin
preetpal25-Nov-08 18:45
preetpal25-Nov-08 18:45 
GeneralRe: Exception handling Pin
Christian Graus25-Nov-08 18:52
protectorChristian Graus25-Nov-08 18:52 
GeneralRe: Exception handling Pin
Guffa25-Nov-08 18:53
Guffa25-Nov-08 18:53 
GeneralRe: Exception handling Pin
Thomas Weller25-Nov-08 19:27
Thomas Weller25-Nov-08 19:27 
AnswerRe: Exception handling Pin
Paul Conrad25-Nov-08 18:27
professionalPaul Conrad25-Nov-08 18:27 
AnswerRe: Exception handling Pin
Thomas Weller25-Nov-08 18:38
Thomas Weller25-Nov-08 18:38 
GeneralRe: Exception handling : code Pin
preetpal25-Nov-08 18:59
preetpal25-Nov-08 18:59 
GeneralRe: Exception handling : code Pin
Thomas Weller25-Nov-08 19:17
Thomas Weller25-Nov-08 19:17 
I'm afraid I don't really get your problem. You are trying to dereference sth. that is null, so you get an exception. This is absolutely correct. I'd be very afraid if I'd see sth. other than that. As I said: Check for null at the appropriate places! Don't try to save typings in the first place.

Remember:
Programming is not about writing the shortest possible code, but about writing code as correct, robust, and readable as possible.


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.


GeneralRe: Exception handling : code Pin
Christian Graus25-Nov-08 19:54
protectorChristian Graus25-Nov-08 19:54 
GeneralRe: Exception handling : code Pin
HosamAly25-Nov-08 20:10
HosamAly25-Nov-08 20:10 
QuestionFacebook Question Pin
Dav Zen25-Nov-08 14:43
Dav Zen25-Nov-08 14:43 
AnswerRe: Facebook Question Pin
Christian Graus25-Nov-08 14:45
protectorChristian Graus25-Nov-08 14:45 
GeneralRe: Facebook Question Pin
Paul Conrad25-Nov-08 18:29
professionalPaul Conrad25-Nov-08 18:29 
GeneralRe: Facebook Question Pin
Christian Graus25-Nov-08 18:52
protectorChristian Graus25-Nov-08 18:52 
GeneralRe: Facebook Question Pin
Paul Conrad25-Nov-08 18:59
professionalPaul Conrad25-Nov-08 18:59 
Questionreader is closed how can i solve this Pin
cutedrew25-Nov-08 14:13
cutedrew25-Nov-08 14:13 
AnswerRe: reader is closed how can i solve this Pin
Christian Graus25-Nov-08 14:47
protectorChristian Graus25-Nov-08 14:47 
GeneralRe: reader is closed how can i solve this Pin
Paul Conrad25-Nov-08 18:30
professionalPaul Conrad25-Nov-08 18:30 
GeneralRe: reader is closed how can i solve this Pin
Christian Graus25-Nov-08 18:53
protectorChristian Graus25-Nov-08 18:53 
GeneralRe: reader is closed how can i solve this Pin
Paul Conrad25-Nov-08 18:56
professionalPaul Conrad25-Nov-08 18:56 
AnswerRe: reader is closed how can i solve this Pin
Guffa25-Nov-08 15:06
Guffa25-Nov-08 15:06 
AnswerRe: reader is closed how can i solve this Pin
Giorgi Dalakishvili25-Nov-08 19:31
mentorGiorgi Dalakishvili25-Nov-08 19:31 
QuestionNullReferenceException with delegate function. Pin
Teuz25-Nov-08 12:54
Teuz25-Nov-08 12:54 
AnswerRe: NullReferenceException with delegate function. Pin
Christian Graus25-Nov-08 14:01
protectorChristian Graus25-Nov-08 14:01 
GeneralRe: NullReferenceException with delegate function. Pin
Teuz25-Nov-08 14:24
Teuz25-Nov-08 14: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.