Click here to Skip to main content
15,921,212 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exception Handling Question Pin
Giorgi Dalakishvili11-Oct-08 6:21
mentorGiorgi Dalakishvili11-Oct-08 6:21 
GeneralRe: Exception Handling Question Pin
Rafone11-Oct-08 8:35
Rafone11-Oct-08 8:35 
GeneralRe: Exception Handling Question Pin
Kevin McFarlane12-Oct-08 4:16
Kevin McFarlane12-Oct-08 4:16 
AnswerRe: Exception Handling Question Pin
Colin Angus Mackay11-Oct-08 6:22
Colin Angus Mackay11-Oct-08 6:22 
GeneralRe: Exception Handling Question Pin
Rafone11-Oct-08 8:44
Rafone11-Oct-08 8:44 
AnswerRe: Exception Handling Question Pin
Paul Conrad11-Oct-08 6:33
professionalPaul Conrad11-Oct-08 6:33 
AnswerRe: Exception Handling Question Pin
Rafone11-Oct-08 8:07
Rafone11-Oct-08 8:07 
AnswerRe: Exception Handling Question Pin
Pete O'Hanlon12-Oct-08 9:52
mvePete O'Hanlon12-Oct-08 9:52 
When you declare tbl, you aren't actually assigning anything to it. So, it probably looks something like this
DataTable tbl;
Then you are assigning items to it in the try block. What you actually need to do is set it up like this
DataTable tbl = null;
or better still, assign it in the try block and return it there. If there's an error then the return is superfluous, and it won't be hit.

Deja View - the feeling that you've seen this post before.

My blog | My articles | MoXAML PowerToys



QuestionMemory Management Pin
Mogaambo11-Oct-08 5:58
Mogaambo11-Oct-08 5:58 
AnswerRe: Memory Management Pin
S. Senthil Kumar11-Oct-08 6:10
S. Senthil Kumar11-Oct-08 6:10 
QuestionUnsafe code Pin
dan!sh 11-Oct-08 5:56
professional dan!sh 11-Oct-08 5:56 
AnswerRe: Unsafe code Pin
Colin Angus Mackay11-Oct-08 6:08
Colin Angus Mackay11-Oct-08 6:08 
GeneralRe: Unsafe code Pin
dan!sh 11-Oct-08 6:12
professional dan!sh 11-Oct-08 6:12 
GeneralRe: Unsafe code Pin
Mark Churchill12-Oct-08 0:46
Mark Churchill12-Oct-08 0:46 
AnswerRe: Unsafe code Pin
S. Senthil Kumar11-Oct-08 6:18
S. Senthil Kumar11-Oct-08 6:18 
GeneralRe: Unsafe code Pin
dan!sh 11-Oct-08 6:21
professional dan!sh 11-Oct-08 6:21 
Questionout of memory exception Pin
Mogaambo11-Oct-08 5:50
Mogaambo11-Oct-08 5:50 
AnswerRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 6:11
Colin Angus Mackay11-Oct-08 6:11 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 10:13
Mogaambo11-Oct-08 10:13 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 12:01
Colin Angus Mackay11-Oct-08 12:01 
GeneralRe: out of memory exception Pin
Abi Bellamkonda12-Oct-08 14:34
Abi Bellamkonda12-Oct-08 14:34 
AnswerRe: out of memory exception Pin
#realJSOP11-Oct-08 7:14
professional#realJSOP11-Oct-08 7:14 
GeneralRe: out of memory exception Pin
Paul Conrad11-Oct-08 10:47
professionalPaul Conrad11-Oct-08 10:47 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 10:54
Mogaambo11-Oct-08 10:54 
GeneralRe: out of memory exception Pin
Paul Conrad11-Oct-08 11:02
professionalPaul Conrad11-Oct-08 11:02 

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.