Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
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 
QuestionDataGridView SelectionBackColor and Transparency Problem Pin
mertkan6512-Sep-07 20:55
mertkan6512-Sep-07 20:55 
QuestionUse managed DLL in unmanaged and managed environment Pin
mpavas12-Sep-07 20:08
mpavas12-Sep-07 20:08 
AnswerRe: Use managed DLL in unmanaged and managed environment Pin
Parwej Ahamad12-Sep-07 20:29
professionalParwej Ahamad12-Sep-07 20:29 
GeneralRe: Use managed DLL in unmanaged and managed environment Pin
mpavas12-Sep-07 21:01
mpavas12-Sep-07 21:01 
QuestionWindows Services Pin
Elizma12-Sep-07 19:50
Elizma12-Sep-07 19:50 
AnswerRe: Windows Services Pin
Parwej Ahamad12-Sep-07 20:36
professionalParwej Ahamad12-Sep-07 20:36 
QuestionDatagridview Pin
iet200012-Sep-07 19:37
iet200012-Sep-07 19:37 

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.