Click here to Skip to main content
15,913,937 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cannot read DataSet Pin
Vasudevan Deepak Kumar22-Nov-07 18:52
Vasudevan Deepak Kumar22-Nov-07 18:52 
GeneralRe: Cannot read DataSet Pin
MAW3022-Nov-07 19:50
MAW3022-Nov-07 19:50 
AnswerRe: Cannot read DataSet Pin
Pankaj - Joshi22-Nov-07 19:24
Pankaj - Joshi22-Nov-07 19:24 
GeneralRe: Cannot read DataSet Pin
MAW3022-Nov-07 19:31
MAW3022-Nov-07 19:31 
GeneralRe: Cannot read DataSet Pin
Pankaj - Joshi22-Nov-07 19:55
Pankaj - Joshi22-Nov-07 19:55 
GeneralRe: Cannot read DataSet [modified] Pin
MAW3022-Nov-07 20:06
MAW3022-Nov-07 20:06 
QuestionCatching an Exception Pin
Jeffrey Walton22-Nov-07 14:30
Jeffrey Walton22-Nov-07 14:30 
AnswerRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 14:30
Jeffrey Walton22-Nov-07 14:30 
GeneralRe: Catching an Exception [modified] Pin
Luc Pattyn22-Nov-07 15:13
sitebuilderLuc Pattyn22-Nov-07 15:13 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 15:46
Jeffrey Walton22-Nov-07 15:46 
GeneralRe: Catching an Exception Pin
Luc Pattyn22-Nov-07 22:42
sitebuilderLuc Pattyn22-Nov-07 22:42 
AnswerRe: Catching an Exception Pin
Luc Pattyn22-Nov-07 14:52
sitebuilderLuc Pattyn22-Nov-07 14:52 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 15:12
Jeffrey Walton22-Nov-07 15:12 
AnswerRe: Catching an Exception Pin
Michael Sync22-Nov-07 15:19
Michael Sync22-Nov-07 15:19 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 16:01
Jeffrey Walton22-Nov-07 16:01 
Hi Michael,

Michael Sync wrote:

int Eaten = 0;
try
{
  throw new EncodingException("this is encoding exception");
}
  catch (EncodingException ex)
  ...
}
Are you staing that the exception can only be caught in the function that generates it? I have read explicitly otherwise. The CLR is suppose to walk the stack looking for a handler. According to Richter:
Another advantage of exceptions is that they do not have to be caught or detected in the place they occur; any code in the thread's call stack can handle a thrown exception.


Jeff
[1] CLR via C#, p. 421, ISBN 9-7807-3562-1633.
GeneralRe: Catching an Exception Pin
Michael Sync22-Nov-07 16:19
Michael Sync22-Nov-07 16:19 
AnswerRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 16:05
Jeffrey Walton22-Nov-07 16:05 
GeneralRe: Catching an Exception Pin
Michael Sync22-Nov-07 16:28
Michael Sync22-Nov-07 16:28 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 16:55
Jeffrey Walton22-Nov-07 16:55 
GeneralRe: Catching an Exception Pin
Michael Sync22-Nov-07 19:10
Michael Sync22-Nov-07 19:10 
GeneralRe: Catching an Exception Pin
Jeffrey Walton22-Nov-07 21:33
Jeffrey Walton22-Nov-07 21:33 
GeneralRe: Catching an Exception Pin
Michael Sync22-Nov-07 22:10
Michael Sync22-Nov-07 22:10 
AnswerRe: Catching an Exception Pin
Jeffrey Walton24-Nov-07 13:09
Jeffrey Walton24-Nov-07 13:09 
GeneralRe: Catching an Exception Pin
Luc Pattyn23-Nov-07 2:27
sitebuilderLuc Pattyn23-Nov-07 2:27 
AnswerRe: Catching an Exception Pin
Michael Sync22-Nov-07 16:23
Michael Sync22-Nov-07 16:23 

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.