Click here to Skip to main content
15,886,045 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
led mike15-Nov-07 9:50
led mike15-Nov-07 9:50 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
Green Fuze15-Nov-07 10:29
Green Fuze15-Nov-07 10:29 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
led mike15-Nov-07 11:21
led mike15-Nov-07 11:21 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
Expert Coming15-Nov-07 11:28
Expert Coming15-Nov-07 11:28 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
Green Fuze15-Nov-07 11:35
Green Fuze15-Nov-07 11:35 
GeneralRe: WebClient - weird "The operation has timed out" exception. Pin
manach30-Sep-14 7:06
manach30-Sep-14 7:06 
QuestionC# - EventsHelper.FireAsync (async event handling in general) Pin
slikrik15-Nov-07 7:35
slikrik15-Nov-07 7:35 
AnswerRe: C# - EventsHelper.FireAsync (async event handling in general) Pin
Judah Gabriel Himango15-Nov-07 9:28
sponsorJudah Gabriel Himango15-Nov-07 9:28 
Well, I can only guess what EventsHelper is, but if I were to use my psychic debugging skills, I'd guess we're talking about something that calls delegates/events asynchronously.

To answer your question, my guess would be that EventsHelper.FireAsync may use a single background thread, whereas having the handlers each have their own has many threads. Just a wild guess though.

Here's what I recommend. When the data feed comes in, don't fire your event. Instead, have a queue, and every time data comes in, queue up a function that raises the event or actually updates the data, whatever you need it to do.

Combine that with Application.Idle event handler. This handler should check the queue for any queued up stuff, and if so, execute it. That way, you'll never flood your UI thread with the incoming data, the DataGridView will remain responsive, and you'll get your data in the correct order.


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: The Lord Is So Good
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


QuestionFile & FileInfo Pin
half-life15-Nov-07 6:07
half-life15-Nov-07 6:07 
AnswerRe: File & FileInfo Pin
Albu Marius15-Nov-07 6:14
Albu Marius15-Nov-07 6:14 
GeneralRe: File & FileInfo Pin
half-life15-Nov-07 6:40
half-life15-Nov-07 6:40 
QuestionVisual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 6:04
Khoramdin15-Nov-07 6:04 
AnswerRe: Visual Studio 2005 Standard Edition Pin
led mike15-Nov-07 6:07
led mike15-Nov-07 6:07 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Albu Marius15-Nov-07 6:10
Albu Marius15-Nov-07 6:10 
AnswerRe: Visual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 6:48
Khoramdin15-Nov-07 6:48 
GeneralRe: Visual Studio 2005 Standard Edition Pin
led mike15-Nov-07 7:09
led mike15-Nov-07 7:09 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 10:10
Khoramdin15-Nov-07 10:10 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Dave Kreskowiak15-Nov-07 7:28
mveDave Kreskowiak15-Nov-07 7:28 
GeneralRe: Visual Studio 2005 Standard Edition Pin
Khoramdin15-Nov-07 10:11
Khoramdin15-Nov-07 10:11 
Questionhow to connect hardware device Pin
cs.it.tech15-Nov-07 5:10
cs.it.tech15-Nov-07 5:10 
AnswerRe: how to connect hardware device Pin
Dave Kreskowiak15-Nov-07 7:30
mveDave Kreskowiak15-Nov-07 7:30 
GeneralRe: how to connect hardware device Pin
cs.it.tech15-Nov-07 8:39
cs.it.tech15-Nov-07 8:39 
GeneralRe: how to connect hardware device Pin
Dan Neely15-Nov-07 8:57
Dan Neely15-Nov-07 8:57 
GeneralRe: how to connect hardware device Pin
Dave Kreskowiak15-Nov-07 10:51
mveDave Kreskowiak15-Nov-07 10:51 
Questionmsmq stackoverflow exception Pin
poqeqw15-Nov-07 5:05
poqeqw15-Nov-07 5:05 

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.