Click here to Skip to main content
15,905,915 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhavent been programming for a while Pin
eiel23-Jul-10 1:46
eiel23-Jul-10 1:46 
AnswerRe: havent been programming for a while Pin
DaveAuld23-Jul-10 2:12
professionalDaveAuld23-Jul-10 2:12 
GeneralRe: havent been programming for a while Pin
eiel23-Jul-10 5:46
eiel23-Jul-10 5:46 
GeneralRe: havent been programming for a while Pin
DaveAuld23-Jul-10 5:56
professionalDaveAuld23-Jul-10 5:56 
AnswerRe: havent been programming for a while Pin
Kevin McFarlane23-Jul-10 2:29
Kevin McFarlane23-Jul-10 2:29 
QuestionParallel Question Pin
programmervb.netc++22-Jul-10 9:09
programmervb.netc++22-Jul-10 9:09 
AnswerRe: Parallel Question Pin
Dave Kreskowiak22-Jul-10 10:43
mveDave Kreskowiak22-Jul-10 10:43 
QuestionHow to catch all unhandled exceptions ? Pin
xx77abs22-Jul-10 0:11
xx77abs22-Jul-10 0:11 
Hello ! I'm having a problem with catching all unhandled exceptions, without try ... catch block, so that if my program get's exception that I didn't count on, it could write it to file or send it to me over the net and close "nicely".
So far I've been using this:

' Add the event handler for handling UI thread exceptions to the event.
AddHandler Application.ThreadException, AddressOf ErrorReporting.ReportError

' Set the unhandled exception mode to force all Windows Forms errors to go through
' our handler.
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException)

' Add the event handler for handling non-UI thread exceptions to the event.
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf ErrorReporting.ReportError


and it was working perfectly ... Until few days ago Frown | :( Now it doesn't catch anything. Even when I'm running program from Visual Studio 2010, if unhandled exception occurs, my program just shuts off, and Visual Studio doesn't show me where exception occurred or what the exception was ...

Please help me somehow, because this is very frustrating, and it's making programming impossible ...

Thanks Smile | :)
AnswerRe: How to catch all unhandled exceptions ? Pin
xx77abs22-Jul-10 0:46
xx77abs22-Jul-10 0:46 
GeneralRe: How to catch all unhandled exceptions ? Pin
DaveAuld23-Jul-10 1:05
professionalDaveAuld23-Jul-10 1:05 
GeneralRe: How to catch all unhandled exceptions ? Pin
xx77abs24-Jul-10 5:20
xx77abs24-Jul-10 5:20 
AnswerRe: How to catch all unhandled exceptions ? Pin
Luc Pattyn24-Jul-10 7:07
sitebuilderLuc Pattyn24-Jul-10 7:07 
GeneralRe: How to catch all unhandled exceptions ? Pin
xx77abs24-Jul-10 7:11
xx77abs24-Jul-10 7:11 
GeneralRe: How to catch all unhandled exceptions ? Pin
Luc Pattyn24-Jul-10 7:18
sitebuilderLuc Pattyn24-Jul-10 7:18 
GeneralRe: How to catch all unhandled exceptions ? Pin
xx77abs24-Jul-10 7:21
xx77abs24-Jul-10 7:21 
QuestionSend Null/Nothing to POS printer Pin
εїзεїзεїз20-Jul-10 21:48
εїзεїзεїз20-Jul-10 21:48 
AnswerRe: Send Null/Nothing to POS printer Pin
Steven J Jowett20-Jul-10 22:05
Steven J Jowett20-Jul-10 22:05 
GeneralRe: Send Null/Nothing to POS printer Pin
εїзεїзεїз20-Jul-10 22:16
εїзεїзεїз20-Jul-10 22:16 
GeneralRe: Send Null/Nothing to POS printer Pin
riced20-Jul-10 23:59
riced20-Jul-10 23:59 
GeneralRe: Send Null/Nothing to POS printer Pin
Steven J Jowett21-Jul-10 0:54
Steven J Jowett21-Jul-10 0:54 
GeneralRe: Send Null/Nothing to POS printer Pin
ChandraRam21-Jul-10 2:25
ChandraRam21-Jul-10 2:25 
AnswerRe: Send Null/Nothing to POS printer Pin
Luc Pattyn21-Jul-10 0:37
sitebuilderLuc Pattyn21-Jul-10 0:37 
GeneralRe: Send Null/Nothing to POS printer Pin
DaveAuld21-Jul-10 1:43
professionalDaveAuld21-Jul-10 1:43 
AnswerRe: Send Null/Nothing to POS printer Pin
AnnieMacD21-Jul-10 2:52
AnnieMacD21-Jul-10 2:52 
AnswerRe: Send Null/Nothing to POS printer Pin
melvintcs9-Dec-11 0:02
melvintcs9-Dec-11 0: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.