Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Login Pin
Paul Conrad14-Sep-07 19:07
professionalPaul Conrad14-Sep-07 19:07 
GeneralRe: Login Pin
Colin Angus Mackay12-Sep-07 23:31
Colin Angus Mackay12-Sep-07 23:31 
AnswerRe: Login Pin
Pete O'Hanlon12-Sep-07 23:21
mvePete O'Hanlon12-Sep-07 23:21 
AnswerRe: Login Pin
Paul Conrad14-Sep-07 19:08
professionalPaul Conrad14-Sep-07 19:08 
QuestionLive Video Transmission Pin
DeepOceans12-Sep-07 22:17
DeepOceans12-Sep-07 22:17 
QuestionChanging the screen resolution Pin
pokabot12-Sep-07 22:08
pokabot12-Sep-07 22:08 
AnswerRe: Changing the screen resolution Pin
Giorgi Dalakishvili12-Sep-07 22:37
mentorGiorgi Dalakishvili12-Sep-07 22:37 
QuestionInserting Multiple Rows in a dataset to Database Pin
meeram39512-Sep-07 21:51
meeram39512-Sep-07 21:51 
AnswerRe: Inserting Multiple Rows in a dataset to Database Pin
Giorgi Dalakishvili12-Sep-07 22:35
mentorGiorgi Dalakishvili12-Sep-07 22:35 
GeneralRe: Inserting Multiple Rows in a dataset to Database Pin
meeram39513-Sep-07 1:23
meeram39513-Sep-07 1:23 
QuestionCom port and process Pin
Rahul.RK12-Sep-07 21:29
Rahul.RK12-Sep-07 21:29 
AnswerRe: Com port and process Pin
Pete O'Hanlon12-Sep-07 22:17
mvePete O'Hanlon12-Sep-07 22:17 
GeneralRe: Com port and process Pin
Rahul.RK12-Sep-07 22:22
Rahul.RK12-Sep-07 22:22 
QuestionHow to process calls to a Control on a separate thread? Pin
ctoma200512-Sep-07 21:18
ctoma200512-Sep-07 21:18 
AnswerRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg12-Sep-07 22:22
Mark Swaanenburg12-Sep-07 22:22 
Hi,

If you want to update a control from another thread than the owning thread for that control use Invoke or BeginInvoke to have the owning thread execute the update of the control.

On a side note, to me it sounds like you have a much bigger problem than this. You mention that the message queue of the UI thread gets filled and doesn't respond to other messages anymore. That sounds like you're just processing you're whole engine in a tight loop causing the CPU load to go to 100%. I don't think it would matter much which thread is handling the messages since the controls need to be updated somehow.
It could also be that you're UI thread is just waiting for something else causing it to freeze (and not respond to any messages).

Hope that helps,
Mark

Hybrid DSP: Digital processing and storage solutions.
Hybrid GeoTools: Advanced GIS editing tools.

GeneralRe: How to process calls to a Control on a separate thread? Pin
ctoma200512-Sep-07 22:32
ctoma200512-Sep-07 22:32 
GeneralRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg12-Sep-07 22:43
Mark Swaanenburg12-Sep-07 22:43 
GeneralRe: How to process calls to a Control on a separate thread? Pin
ctoma200513-Sep-07 3:06
ctoma200513-Sep-07 3:06 
GeneralRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg13-Sep-07 4:09
Mark Swaanenburg13-Sep-07 4:09 
GeneralRe: How to process calls to a Control on a separate thread? Pin
Luc Pattyn13-Sep-07 1:10
sitebuilderLuc Pattyn13-Sep-07 1:10 
QuestionDatabase retrieving problem Pin
Nishad8512-Sep-07 20:59
Nishad8512-Sep-07 20:59 
AnswerRe: Database retrieving problem Pin
Paul Conrad14-Sep-07 19:05
professionalPaul Conrad14-Sep-07 19:05 
Questioninstance of object in a class Pin
bluetx12-Sep-07 20:58
bluetx12-Sep-07 20:58 
AnswerRe: instance of object in a class Pin
pmarfleet12-Sep-07 21:45
pmarfleet12-Sep-07 21:45 
AnswerRe: instance of object in a class Pin
Parwej Ahamad12-Sep-07 21:52
professionalParwej Ahamad12-Sep-07 21:52 

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.