Click here to Skip to main content
15,908,909 members
Home / Discussions / C#
   

C#

 
GeneralRe: Locating objects that throw the NullReferenceException in Deployed Applications Pin
Brett Blatchley9-Dec-07 17:58
Brett Blatchley9-Dec-07 17:58 
Thanks Christian, all good advice.

#1: Hmmm, I tend to keep my method size down to no more than a page already, but a method may involve many objects.

#2,#3: I'm already doing. I've got exceptions with centralized reporting bracketing most of my methods.

#4: Yeah, I may need to do this with specific assertion tests to go with the bracketing exception handler (which can't pinpoint the problem object). I've been layering my parameter validation, but apparently that's not sufficient.

It's disappointing that the CLR can't leverage the metadata at it's disposal to answer this silly, but crucial question.
GeneralRe: Locating objects that throw the NullReferenceException in Deployed Applications Pin
mav.northwind10-Dec-07 2:22
mav.northwind10-Dec-07 2:22 
QuestionReusing a method that takes class as argument Pin
karthikde19809-Dec-07 11:27
karthikde19809-Dec-07 11:27 
GeneralRe: Reusing a method that takes class as argument Pin
Christian Graus9-Dec-07 13:16
protectorChristian Graus9-Dec-07 13:16 
GeneralRe: Reusing a method that takes class as argument Pin
Anthony Mushrow9-Dec-07 15:46
professionalAnthony Mushrow9-Dec-07 15:46 
GeneralRe: Reusing a method that takes class as argument Pin
Christian Graus9-Dec-07 16:23
protectorChristian Graus9-Dec-07 16:23 
Generalsize of a structure Pin
daavena9-Dec-07 8:22
daavena9-Dec-07 8:22 
GeneralRe: size of a structure Pin
Paul Conrad9-Dec-07 12:41
professionalPaul Conrad9-Dec-07 12:41 
GeneralRe: size of a structure Pin
Colin Angus Mackay9-Dec-07 14:36
Colin Angus Mackay9-Dec-07 14:36 
QuestionWPF hardware acceleration Pin
Bartosz Bien9-Dec-07 7:26
Bartosz Bien9-Dec-07 7:26 
GeneralRe: WPF hardware acceleration Pin
Christian Graus9-Dec-07 9:32
protectorChristian Graus9-Dec-07 9:32 
GeneralRe: WPF hardware acceleration Pin
CKnig9-Dec-07 18:37
CKnig9-Dec-07 18:37 
GeneralRe: WPF hardware acceleration Pin
Paul Conrad9-Dec-07 12:43
professionalPaul Conrad9-Dec-07 12:43 
QuestionPortable .Net?! Pin
Rojan Gh.9-Dec-07 3:26
professionalRojan Gh.9-Dec-07 3:26 
AnswerRe: Portable .Net?! Pin
Ri Qen-Sin9-Dec-07 3:59
Ri Qen-Sin9-Dec-07 3:59 
QuestionRe: Portable .Net?! Pin
Rojan Gh.9-Dec-07 4:21
professionalRojan Gh.9-Dec-07 4:21 
GeneralRe: Portable .Net?! Pin
mav.northwind9-Dec-07 4:30
mav.northwind9-Dec-07 4:30 
GeneralRe: Portable .Net?! Pin
Ri Qen-Sin9-Dec-07 4:57
Ri Qen-Sin9-Dec-07 4:57 
GeneralRe: Portable .Net?! Pin
mav.northwind9-Dec-07 5:36
mav.northwind9-Dec-07 5:36 
AnswerRe: Portable .Net?! Pin
Giorgi Dalakishvili9-Dec-07 4:36
mentorGiorgi Dalakishvili9-Dec-07 4:36 
GeneralRe: Portable .Net?! Pin
Christian Graus9-Dec-07 9:35
protectorChristian Graus9-Dec-07 9:35 
GeneralFormat textBox Pin
mehrdadc489-Dec-07 3:17
mehrdadc489-Dec-07 3:17 
GeneralRe: Format textBox Pin
Giorgi Dalakishvili9-Dec-07 3:26
mentorGiorgi Dalakishvili9-Dec-07 3:26 
GeneralRe: Format textBox Pin
Ri Qen-Sin9-Dec-07 4:06
Ri Qen-Sin9-Dec-07 4:06 
GeneralRe: Format textBox Pin
Paul Conrad9-Dec-07 5:27
professionalPaul Conrad9-Dec-07 5:27 

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.