Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Feedback while main thread is busy {modified} Pin
N a v a n e e t h25-Nov-09 21:53
N a v a n e e t h25-Nov-09 21:53 
AnswerRe: User Feedback while main thread is busy Pin
DaveyM6925-Nov-09 11:03
professionalDaveyM6925-Nov-09 11:03 
AnswerRe: User Feedback while main thread is busy Pin
Shameel25-Nov-09 19:54
professionalShameel25-Nov-09 19:54 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn26-Nov-09 0:31
sitebuilderLuc Pattyn26-Nov-09 0:31 
GeneralRe: User Feedback while main thread is busy Pin
Shameel26-Nov-09 4:55
professionalShameel26-Nov-09 4:55 
GeneralRe: User Feedback while main thread is busy Pin
Natza Mitzi26-Nov-09 8:13
Natza Mitzi26-Nov-09 8:13 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn26-Nov-09 8:24
sitebuilderLuc Pattyn26-Nov-09 8:24 
AnswerRe: User Feedback while main thread is busy Pin
User 260419327-Nov-09 7:08
User 260419327-Nov-09 7:08 
Hi!

I understand now, that I was a bit naive about my question.
After a bit of thought, I guess using the BackgroundWorker is indeed the best solution.

In future, I will definitely give more thought to the general division of GUI and program from the start,
not only in the sense of separating the code (what I already did in not using GUI elements to store data etc.) but also in the sense of separating code execution to avoid such deadlocks. Although that means having some kind of state-machine in the GUI to handle the asynchronous working (in most simple cases just 2 states, busy and idle).

A shame that C#/Visual Studion/Runtime lib do not clearly enforce such a separation.
Or is there a framework to enforce(!), not just enable, this ?

Thanks for the discussion, Rolf

modified 2-Aug-18 21:02pm.

Questionquestion related to homework Pin
netJP12L25-Nov-09 9:45
netJP12L25-Nov-09 9:45 
AnswerRe: question related to homework Pin
PIEBALDconsult25-Nov-09 12:13
mvePIEBALDconsult25-Nov-09 12:13 
Question[Message Deleted] Pin
Slavenko8225-Nov-09 8:21
Slavenko8225-Nov-09 8:21 
AnswerRe: Query in DataSet/DataGridView Pin
I Believe In GOD25-Nov-09 9:06
I Believe In GOD25-Nov-09 9:06 
QuestionComparing Two PictureBox Pin
gamer112725-Nov-09 7:50
gamer112725-Nov-09 7:50 
AnswerRe: Comparing Two PictureBox Pin
Shameel25-Nov-09 8:07
professionalShameel25-Nov-09 8:07 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:15
gamer112725-Nov-09 8:15 
AnswerRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 8:14
mveOriginalGriff25-Nov-09 8:14 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:50
gamer112725-Nov-09 8:50 
GeneralRe: Comparing Two PictureBox Pin
harold aptroot25-Nov-09 9:01
harold aptroot25-Nov-09 9:01 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 10:39
mveOriginalGriff25-Nov-09 10:39 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 18:29
gamer112725-Nov-09 18:29 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 21:58
mveOriginalGriff25-Nov-09 21:58 
AnswerRe: Comparing Two PictureBox Pin
I Believe In GOD25-Nov-09 9:07
I Believe In GOD25-Nov-09 9:07 
QuestionToo many generics in code. Pin
CaptainSeeSharp25-Nov-09 7:48
CaptainSeeSharp25-Nov-09 7:48 
AnswerRe: Too many generics in code. Pin
Paulo Zemek25-Nov-09 7:57
Paulo Zemek25-Nov-09 7:57 
GeneralRe: Too many generics in code. [modified] Pin
CaptainSeeSharp25-Nov-09 8:18
CaptainSeeSharp25-Nov-09 8:18 

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.