Click here to Skip to main content
16,005,149 members
Home / Discussions / C#
   

C#

 
Generalhttps server Pin
ppp00112-Oct-04 16:00
ppp00112-Oct-04 16:00 
GeneralRe: https server Pin
Matt Philmon12-Oct-04 18:12
Matt Philmon12-Oct-04 18:12 
GeneralPopulating DataGrid with thread Pin
GA-BOYZ12-Oct-04 14:52
GA-BOYZ12-Oct-04 14:52 
GeneralRe: Populating DataGrid with thread Pin
Vasudevan Deepak Kumar12-Oct-04 23:59
Vasudevan Deepak Kumar12-Oct-04 23:59 
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 
Thanks for that Christian. Heavy reading for me, but interesting.

"the potential cost of someone deciding they don't need to check the error code somewhere is much higher"

That's my problem with c#'s unchecked exceptions. You can also forget to catch exceptions (or just be lazy and not do it), just like you could forget to check for error codes. I understood the argument that exceptions are only expensive when you, well, throw them, but I just don't see how unchecked exceptions help in not ignoring errors.

From the article: "It’s relatively easy to forget to check for a returned error code. It’s much harder to inadvertently swallow an exception without handling it".

I don't understand that statement. It might be hard to "inadvertently swallow an exception" but it's way too easy to ignore it (specially when you don't even know what exceptions a method could throw!). And that's just as bad as not checking for error codes ...

I want to present a case in favor of exceptions to my employer but this unchecked exceptions are giving me headaches. As you can guess by now I have a Java background ...

Cheers






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 
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 

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.