Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET, Reflection and private members Pin
Alex Korchemniy12-Sep-04 20:38
Alex Korchemniy12-Sep-04 20:38 
GeneralRe: .NET, Reflection and private members Pin
J. Diamond13-Sep-04 6:49
J. Diamond13-Sep-04 6:49 
GeneralRe: .NET, Reflection and private members Pin
Alex Korchemniy13-Sep-04 6:55
Alex Korchemniy13-Sep-04 6:55 
GeneralRe: .NET, Reflection and private members Pin
J. Diamond13-Sep-04 7:11
J. Diamond13-Sep-04 7:11 
GeneralRe: .NET, Reflection and private members Pin
sreejith ss nair12-Sep-04 20:44
sreejith ss nair12-Sep-04 20:44 
QuestionWorking with BrowseFolderDialog flawed? Pin
LongRange.Shooter12-Sep-04 15:39
LongRange.Shooter12-Sep-04 15:39 
AnswerRe: Working with BrowseFolderDialog flawed? Pin
Stefan Troschuetz13-Sep-04 0:25
Stefan Troschuetz13-Sep-04 0:25 
Generali see why C# SHOULD have required to catch exceptions now Pin
vista2712-Sep-04 12:00
vista2712-Sep-04 12:00 
so i guess there's two camps; the java people who required all exceptions to be caught, or result in a compile error, and the C# people who decided it won't be enforced, and let you ignore exceptions all you want. i personally was divided and thought with the proper documentation, catching exceptions when you wanted is rather convenient than to have to write try-catch blocks EVERYWHERE necessary. well, i've only been programming C# a few months now, and it seems these uncaught exceptions are creeping up everywhere. i have noticed two things that has been happening, one bad and the other REALLY bad, but not sure what causes one to happen instead of the other. in the bad case, an uncaught exception percolates all the way to the top and you see it while running the app. that info can be used to solve the problem relatively easily. however, in the really bad case, which i just had happend to me, was when an exception was thrown and was uncaught but silently went unnoticed! on my mainform control, i was calling a listview.item.remove and sending in accidentally a null value. this was not in a try catch block and the exception seems to just vanish since i never saw anything happen at runtime; a silent and sometimes very hard to find bug, wouldn't you say?

i am a little confused. don't ALL exceptions uncaught eventually travel all the way up the call stack and out to the user? i know many hard to find bugs will happen if someone just puts a try-catch block around somerthing and does nothing useful with the exception, then it will have that silently disappearing effect. but in my case, how come an uncaught exception isn't thrown out to the user with some message box, like they usually do? i tried catcuhign it and rethrowing it, and still nothing happened.
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Colin Angus Mackay12-Sep-04 13:52
Colin Angus Mackay12-Sep-04 13:52 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Alex Korchemniy12-Sep-04 20:29
Alex Korchemniy12-Sep-04 20:29 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Colin Angus Mackay12-Sep-04 22:20
Colin Angus Mackay12-Sep-04 22:20 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
User 12301612-Sep-04 22:38
User 12301612-Sep-04 22:38 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Christian Graus12-Sep-04 13:52
protectorChristian Graus12-Sep-04 13:52 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Nicholas Cardi12-Sep-04 13:57
Nicholas Cardi12-Sep-04 13:57 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Salil Khedkar13-Sep-04 1:26
Salil Khedkar13-Sep-04 1:26 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
Salil Khedkar13-Sep-04 1:29
Salil Khedkar13-Sep-04 1:29 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
bjoernen13-Sep-04 2:58
bjoernen13-Sep-04 2:58 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
elguaro12-Oct-04 14:36
elguaro12-Oct-04 14:36 
GeneralRe: i see why C# SHOULD have required to catch exceptions now Pin
bjoernen12-Oct-04 20:08
bjoernen12-Oct-04 20:08 
Generalkeypreview problem ( listview and buttons) Pin
BrownJacket12-Sep-04 10:19
BrownJacket12-Sep-04 10:19 
GeneralListView Problem Pin
Tomas Brennan12-Sep-04 8:50
Tomas Brennan12-Sep-04 8:50 
GeneralRe: ListView Problem Pin
VanesaAFESRG12-Sep-04 17:05
VanesaAFESRG12-Sep-04 17:05 
GeneralRe: ListView Problem Pin
Tomas Brennan13-Sep-04 2:07
Tomas Brennan13-Sep-04 2:07 
GeneralRe: ListView Problem Pin
VanesaAFESRG13-Sep-04 14:42
VanesaAFESRG13-Sep-04 14:42 
GeneralRe: ListView Problem Pin
Tomas Brennan17-Sep-04 5:56
Tomas Brennan17-Sep-04 5:56 

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.