Click here to Skip to main content
15,892,575 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 8:03
sitebuilderLuc Pattyn15-Feb-08 8:03 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 8:24
mveDave Kreskowiak15-Feb-08 8:24 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 10:18
sitebuilderLuc Pattyn15-Feb-08 10:18 
GeneralRe: Disable Try/Catch Pin
Dave Kreskowiak15-Feb-08 10:42
mveDave Kreskowiak15-Feb-08 10:42 
GeneralRe: Disable Try/Catch Pin
Luc Pattyn15-Feb-08 11:01
sitebuilderLuc Pattyn15-Feb-08 11:01 
GeneralRe: Disable Try/Catch Pin
Paul Conrad15-Feb-08 12:43
professionalPaul Conrad15-Feb-08 12:43 
GeneralException information detail Pin
cstrader23215-Feb-08 5:27
cstrader23215-Feb-08 5:27 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 6:05
sitebuilderLuc Pattyn15-Feb-08 6:05 
Hi,

an Exception holds a lot of information:
- the Message (a one-line string)
- extra information (such as the file path on a file I/O error)
- the Stack TraceBack containing a list of methods, with line numbers when available
- and the same for any inner exception.

To get it all you need to use ToString(). Just looking at Message won't help much.

To locate the problem line, use a debug build and look at the very first line number
that appears in the stack traceback.

BTW: you can teach Visual to always show line numbers in the editor, see Tools/Options/
TextEditor/...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 6:22
cstrader23215-Feb-08 6:22 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 6:32
cstrader23215-Feb-08 6:32 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:30
sitebuilderLuc Pattyn15-Feb-08 7:30 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:22
sitebuilderLuc Pattyn15-Feb-08 7:22 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 7:45
cstrader23215-Feb-08 7:45 
GeneralRe: Exception information detail Pin
Luc Pattyn15-Feb-08 7:49
sitebuilderLuc Pattyn15-Feb-08 7:49 
GeneralRe: Exception information detail Pin
cstrader23215-Feb-08 10:15
cstrader23215-Feb-08 10:15 
GeneralRe: Exception information detail Pin
supercat918-Feb-08 6:16
supercat918-Feb-08 6:16 
GeneralRe: Exception information detail Pin
Luc Pattyn18-Feb-08 9:06
sitebuilderLuc Pattyn18-Feb-08 9:06 
GeneralNET 1.1 SMTP problem : "The transport failed to connect to the server." [modified] Pin
Stortman15-Feb-08 4:07
Stortman15-Feb-08 4:07 
GeneralRe: NET 1.1 SMTP problem : "The transport failed to connect to the server." Pin
Dave Kreskowiak15-Feb-08 4:30
mveDave Kreskowiak15-Feb-08 4:30 
GeneralRe: NET 1.1 SMTP problem : "The transport failed to connect to the server." Pin
Stortman15-Feb-08 5:32
Stortman15-Feb-08 5:32 
GeneralRe: NET 1.1 SMTP problem : "The transport failed to connect to the server." Pin
Dave Kreskowiak15-Feb-08 5:49
mveDave Kreskowiak15-Feb-08 5:49 
GeneralRe: NET 1.1 SMTP problem : "The transport failed to connect to the server." Pin
Stortman15-Feb-08 11:06
Stortman15-Feb-08 11:06 
GeneralRe: NET 1.1 SMTP problem : "The transport failed to connect to the server." Pin
Stortman15-Feb-08 13:58
Stortman15-Feb-08 13:58 
GeneralOpening VS2005 Project in VS2008 Pin
plural15-Feb-08 3:11
plural15-Feb-08 3:11 
GeneralRe: Opening VS2005 Project in VS2008 Pin
Dave Kreskowiak15-Feb-08 4:26
mveDave Kreskowiak15-Feb-08 4:26 

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.