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

C#

 
QuestionC# Word automation Pin
g_dev23-Sep-08 18:27
g_dev23-Sep-08 18:27 
QuestionRe: Invoke/Thread Pin
myNameIsRon23-Sep-08 17:52
myNameIsRon23-Sep-08 17:52 
AnswerRe: Invoke/Thread Pin
N a v a n e e t h23-Sep-08 17:56
N a v a n e e t h23-Sep-08 17:56 
GeneralRe: Invoke/Thread Pin
myNameIsRon23-Sep-08 19:24
myNameIsRon23-Sep-08 19:24 
AnswerRe: Invoke/Thread Pin
Mohammad Dayyan23-Sep-08 18:51
Mohammad Dayyan23-Sep-08 18:51 
GeneralRe: Invoke/Thread Pin
myNameIsRon23-Sep-08 19:30
myNameIsRon23-Sep-08 19:30 
GeneralRe: Invoke/Thread Pin
Mohammad Dayyan24-Sep-08 3:45
Mohammad Dayyan24-Sep-08 3:45 
AnswerRe: Invoke/Thread Pin
Mark Churchill23-Sep-08 22:59
Mark Churchill23-Sep-08 22:59 
Control.Invoke puts a serialised delegate onto the windows message loop.

How much work are you doing in your SerialPortEvent method? If you are doing enough work to block the UI up then you are probably blocking the serial library as well.

Consider taking data in the DataRecieved event, placing it on a queue, and perhaps Monitor.Pulse a background thread and returning out the event handler immediately to return control to the serial port code. Then your background thread can consume the data events that are on the queue, and process them. Then when you want to make UI changes, you either use Form.Invoke, or .BeginInvoke to make the required changes.


GeneralRe: Invoke/Thread Pin
myNameIsRon24-Sep-08 4:30
myNameIsRon24-Sep-08 4:30 
GeneralRe: Invoke/Thread Pin
Mark Churchill24-Sep-08 18:56
Mark Churchill24-Sep-08 18:56 
GeneralRe: Invoke/Thread Pin
myNameIsRon24-Sep-08 19:47
myNameIsRon24-Sep-08 19:47 
QuestionOut of memory error Pin
Xmen Real 23-Sep-08 17:14
professional Xmen Real 23-Sep-08 17:14 
AnswerRe: Out of memory error Pin
N a v a n e e t h23-Sep-08 17:26
N a v a n e e t h23-Sep-08 17:26 
GeneralRe: Out of memory error Pin
Xmen Real 23-Sep-08 17:36
professional Xmen Real 23-Sep-08 17:36 
GeneralRe: Out of memory error Pin
N a v a n e e t h23-Sep-08 17:53
N a v a n e e t h23-Sep-08 17:53 
GeneralRe: Out of memory error Pin
Xmen Real 23-Sep-08 18:12
professional Xmen Real 23-Sep-08 18:12 
GeneralRe: Out of memory error Pin
N a v a n e e t h23-Sep-08 18:14
N a v a n e e t h23-Sep-08 18:14 
GeneralRe: Out of memory error Pin
Xmen Real 23-Sep-08 19:40
professional Xmen Real 23-Sep-08 19:40 
GeneralRe: Out of memory error Pin
leppie23-Sep-08 21:31
leppie23-Sep-08 21:31 
QuestionNeed to clarify Pin
Member 409922223-Sep-08 15:32
Member 409922223-Sep-08 15:32 
AnswerRe: Need to clarify Pin
Mark Salsbery23-Sep-08 16:11
Mark Salsbery23-Sep-08 16:11 
GeneralRe: Need to clarify Pin
Member 409922223-Sep-08 16:58
Member 409922223-Sep-08 16:58 
GeneralRe: Need to clarify Pin
Mark Salsbery23-Sep-08 18:43
Mark Salsbery23-Sep-08 18:43 
AnswerRe: Need to clarify Pin
N a v a n e e t h23-Sep-08 17:30
N a v a n e e t h23-Sep-08 17:30 
AnswerRe: Need to clarify Pin
Steve Echols23-Sep-08 17:42
Steve Echols23-Sep-08 17:42 

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.