Click here to Skip to main content
16,006,341 members
Home / Discussions / C#
   

C#

 
AnswerRe: Timer and Paint Pin
Guffa29-Mar-06 8:12
Guffa29-Mar-06 8:12 
GeneralRe: Timer and Paint Pin
CoolASL29-Mar-06 17:48
CoolASL29-Mar-06 17:48 
AnswerRe: Timer and Paint Pin
Guffa29-Mar-06 21:09
Guffa29-Mar-06 21:09 
QuestionMouseEnter Problem in C# Pin
Phoen2529-Mar-06 7:26
Phoen2529-Mar-06 7:26 
QuestionHelp! Asynchronous Executions Pin
swanmynova29-Mar-06 6:28
swanmynova29-Mar-06 6:28 
AnswerRe: Help! Asynchronous Executions Pin
Judah Gabriel Himango29-Mar-06 11:19
sponsorJudah Gabriel Himango29-Mar-06 11:19 
GeneralRe: Help! Asynchronous Executions Pin
swanmynova30-Mar-06 5:18
swanmynova30-Mar-06 5:18 
GeneralRe: Help! Asynchronous Executions Pin
Judah Gabriel Himango30-Mar-06 6:30
sponsorJudah Gabriel Himango30-Mar-06 6:30 
When you're executing asynchronous code, EndInvoke will re-throw any unhandled errors that occurred somewhere in your asynchronous code blocks (the code that gets executed on background threads). This is by design.

What I would do is put some try/catch around the code that gets executed on a background thread. Log it somehow by outputting to the console, a file, anything that lets you track it down when it happens. Then when it happens, make sure you log the stack trace, the error message, and any other error information that will help you solve it. Also, in your asynchronous code, validate all the data you're dealing with. If you're using an object that is shared among the other threads, make no assumptions about it! Check if such resources are null or in an invalid state before using them.
GeneralRe: Help! Asynchronous Executions Pin
swanmynova30-Mar-06 7:54
swanmynova30-Mar-06 7:54 
QuestionFLOPS Pin
Mridang Agarwalla29-Mar-06 5:58
Mridang Agarwalla29-Mar-06 5:58 
QuestionFlags problem Pin
Mridang Agarwalla29-Mar-06 5:53
Mridang Agarwalla29-Mar-06 5:53 
GeneralRe: Flags problem Pin
Guffa29-Mar-06 6:52
Guffa29-Mar-06 6:52 
AnswerRe: Flags problem Pin
Ravi Bhavnani29-Mar-06 7:39
professionalRavi Bhavnani29-Mar-06 7:39 
GeneralRe: Flags problem Pin
Mridang Agarwalla29-Mar-06 15:17
Mridang Agarwalla29-Mar-06 15:17 
GeneralRe: Flags problem Pin
Ravi Bhavnani29-Mar-06 16:12
professionalRavi Bhavnani29-Mar-06 16:12 
AnswerRe: Flags problem Pin
darkelv29-Mar-06 16:10
darkelv29-Mar-06 16:10 
Questioncanny edge detection Pin
preci29-Mar-06 5:41
preci29-Mar-06 5:41 
AnswerRe: canny edge detection Pin
Ravi Bhavnani29-Mar-06 8:16
professionalRavi Bhavnani29-Mar-06 8:16 
GeneralRe: canny edge detection Pin
preci29-Mar-06 21:08
preci29-Mar-06 21:08 
GeneralRe: canny edge detection Pin
Ravi Bhavnani30-Mar-06 2:10
professionalRavi Bhavnani30-Mar-06 2:10 
GeneralRe: Thank you Ravi Pin
preci30-Mar-06 3:30
preci30-Mar-06 3:30 
QuestionGet computer name Pin
superdragon29-Mar-06 5:20
superdragon29-Mar-06 5:20 
AnswerRe: Get computer name Pin
superdragon29-Mar-06 5:50
superdragon29-Mar-06 5:50 
Questionchecking whether checkedlistbox .items[i] is selected? Pin
superdragon29-Mar-06 4:52
superdragon29-Mar-06 4:52 
AnswerRe: checking whether checkedlistbox .items[i] is selected? Pin
superdragon29-Mar-06 5:30
superdragon29-Mar-06 5:30 

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.