Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
GeneralRe: Populating DataGrid with thread Pin
GA-BOYZ13-Oct-04 5:08
GA-BOYZ13-Oct-04 5:08 
QuestionThrow Exception - how expensive is it really? Pin
elguaro12-Oct-04 14:51
elguaro12-Oct-04 14:51 
AnswerRe: Throw Exception - how expensive is it really? Pin
Christian Graus12-Oct-04 15:36
protectorChristian Graus12-Oct-04 15:36 
GeneralRe: Throw Exception - how expensive is it really? Pin
elguaro12-Oct-04 17:11
elguaro12-Oct-04 17:11 
GeneralRe: Throw Exception - how expensive is it really? Pin
Stefan Troschuetz12-Oct-04 20:48
Stefan Troschuetz12-Oct-04 20:48 
GeneralRe: Throw Exception - how expensive is it really? Pin
Christian Graus13-Oct-04 9:01
protectorChristian Graus13-Oct-04 9:01 
GeneralRe: Throw Exception - how expensive is it really? Pin
elguaro13-Oct-04 13:27
elguaro13-Oct-04 13:27 
GeneralRe: Throw Exception - how expensive is it really? Pin
Christian Graus14-Oct-04 9:14
protectorChristian Graus14-Oct-04 9:14 
elguaro wrote:
If I call a method and I never get an exception while developing I could forget to catch exceptions. You go whislting to prod and bang! Another unhappy user.

Well, that's what we like to call 'the real world' Smile | :) Any problem that doesn't come up in your obviously extensive testing/unit tests is going to be esoteric at best, and it's still better that you find out about it. There's nothing harder to diagnose than an error that only occurs on a client machine. With an exception, you'll actually know where the error is, instead of trying to diagnose ripple effects.

elguaro wrote:
Again, you might only find one particular exception in prod.

You do testing, right ? Most of the time, if you think about what you're asking a function to do, and/or read the docs, you should have a fair idea what exceptions are likely to be thrown.



Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: Throw Exception - how expensive is it really? Pin
elguaro14-Oct-04 16:55
elguaro14-Oct-04 16:55 
GeneralRe: Throw Exception - how expensive is it really? Pin
Christian Graus17-Oct-04 9:51
protectorChristian Graus17-Oct-04 9:51 
GeneralRe: Throw Exception - how expensive is it really? Pin
elguaro17-Oct-04 14:00
elguaro17-Oct-04 14:00 
GeneralRe: Throw Exception - how expensive is it really? Pin
Nemanja Trifunovic17-Oct-04 14:54
Nemanja Trifunovic17-Oct-04 14:54 
GeneralMedia Player SDK Pin
Christian Graus12-Oct-04 14:47
protectorChristian Graus12-Oct-04 14:47 
GeneralNot an answer, but an alternative. Pin
Matt Philmon12-Oct-04 18:02
Matt Philmon12-Oct-04 18:02 
GeneralRe: Media Player SDK Pin
Dave Kreskowiak12-Oct-04 18:11
mveDave Kreskowiak12-Oct-04 18:11 
GeneralRe: Media Player SDK Pin
Christian Graus13-Oct-04 9:05
protectorChristian Graus13-Oct-04 9:05 
GeneralDatagrid and Datatable and sorting, Winform Pin
Matt Philmon12-Oct-04 11:53
Matt Philmon12-Oct-04 11:53 
QuestionHow to specify HOSTNAME in sql connection string Pin
Darryl Borden12-Oct-04 10:11
Darryl Borden12-Oct-04 10:11 
GeneralRe: How to specify HOSTNAME in sql connection string Pin
Heath Stewart12-Oct-04 10:59
protectorHeath Stewart12-Oct-04 10:59 
QuestionCan anyone tell me whether this is right or wrong..? Pin
Kiran Satish12-Oct-04 10:04
Kiran Satish12-Oct-04 10:04 
AnswerRe: Can anyone tell me whether this is right or wrong..? Pin
Christian Graus12-Oct-04 10:46
protectorChristian Graus12-Oct-04 10:46 
GeneralRe: Can anyone tell me whether this is right or wrong..? Pin
Kiran Satish12-Oct-04 13:34
Kiran Satish12-Oct-04 13:34 
GeneralRe: Can anyone tell me whether this is right or wrong..? Pin
Kiran Satish13-Oct-04 19:33
Kiran Satish13-Oct-04 19:33 
GeneralWord documents to PDF in C## Pin
house12-Oct-04 9:53
house12-Oct-04 9:53 
GeneralRe: Word documents to PDF in C## Pin
Christian Graus12-Oct-04 10:47
protectorChristian Graus12-Oct-04 10:47 

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.