Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: Otions to store settings of application Pin
Johnny J.6-Jun-10 22:31
professionalJohnny J.6-Jun-10 22:31 
AnswerRe: Otions to store settings of application Pin
PIEBALDconsult7-Jun-10 2:40
mvePIEBALDconsult7-Jun-10 2:40 
Questionflickers with draw plots from serial port ? Pin
Honeyboy_206-Jun-10 16:40
Honeyboy_206-Jun-10 16:40 
AnswerRe: flickers with draw plots from serial port ? Pin
Luc Pattyn6-Jun-10 16:57
sitebuilderLuc Pattyn6-Jun-10 16:57 
GeneralRe: flickers with draw plots from serial port ? Pin
Honeyboy_206-Jun-10 17:09
Honeyboy_206-Jun-10 17:09 
GeneralRe: flickers with draw plots from serial port ? Pin
Luc Pattyn6-Jun-10 17:19
sitebuilderLuc Pattyn6-Jun-10 17:19 
GeneralRe: flickers with draw plots from serial port ? Pin
Honeyboy_208-Jun-10 5:24
Honeyboy_208-Jun-10 5:24 
GeneralRe: flickers with draw plots from serial port ? Pin
Ravi Bhavnani6-Jun-10 17:30
professionalRavi Bhavnani6-Jun-10 17:30 
Honeyboy_20 wrote:
if it valid i catch it and store message in arraylist and then read from arraylist to draw plots.

This leads me to believe that your data read and drawing logic may be too closely coupled. Ideally they should be completely separate, executing in different threads.

When valid data is received, the data reader should fire an event (subscribed to by the UI) that causes the UI to simply invalidate its canvas, which in turn causes it to grab a copy of the data which it uses for purposes of rendering. You'll need to synchronize access in the grab operation.

Hope this helps.

/ravi
My new year resolution: 2048 x 1536
Home | Articles | My .NET bits | Freeware

ravib(at)ravib(dot)com

GeneralRe: flickers with draw plots from serial port ? Pin
Honeyboy_207-Jun-10 5:19
Honeyboy_207-Jun-10 5:19 
GeneralRe: flickers with draw plots from serial port ? Pin
Luc Pattyn8-Jun-10 6:28
sitebuilderLuc Pattyn8-Jun-10 6:28 
GeneralRe: flickers with draw plots from serial port ? Pin
Honeyboy_2010-Jun-10 2:15
Honeyboy_2010-Jun-10 2:15 
GeneralRe: flickers with draw plots from serial port ? Pin
Luc Pattyn10-Jun-10 2:31
sitebuilderLuc Pattyn10-Jun-10 2:31 
GeneralRe: flickers with draw plots from serial port ? Pin
Ahmed R El Bohoty14-Jun-10 17:43
Ahmed R El Bohoty14-Jun-10 17:43 
QuestionC# programm merging pdf files Pin
nstk6-Jun-10 6:39
nstk6-Jun-10 6:39 
AnswerRe: C# programm merging pdf files Pin
Richard MacCutchan6-Jun-10 6:51
mveRichard MacCutchan6-Jun-10 6:51 
AnswerRe: C# programm merging pdf files Pin
dan!sh 6-Jun-10 7:18
professional dan!sh 6-Jun-10 7:18 
AnswerRe: C# programm merging pdf files Pin
Johnny J.6-Jun-10 23:37
professionalJohnny J.6-Jun-10 23:37 
QuestionGetting cookies from IE process. [modified] Pin
Evgeni575-Jun-10 20:19
Evgeni575-Jun-10 20:19 
QuestionGet object count Pin
ruknil5-Jun-10 9:39
ruknil5-Jun-10 9:39 
QuestionRendering a page break in WinForms RichTextBox Pin
The Man from U.N.C.L.E.5-Jun-10 9:06
The Man from U.N.C.L.E.5-Jun-10 9:06 
AnswerRe: Rendering a page break in WinForms RichTextBox Pin
Luc Pattyn5-Jun-10 10:24
sitebuilderLuc Pattyn5-Jun-10 10:24 
GeneralRe: Rendering a page break in WinForms RichTextBox Pin
The Man from U.N.C.L.E.5-Jun-10 11:10
The Man from U.N.C.L.E.5-Jun-10 11:10 
GeneralRe: Rendering a page break in WinForms RichTextBox Pin
Luc Pattyn5-Jun-10 11:36
sitebuilderLuc Pattyn5-Jun-10 11:36 
QuestionProblem with Listview,help! Pin
imbiz5-Jun-10 7:31
imbiz5-Jun-10 7:31 
AnswerRe: Problem with Listview,help! Pin
Henry Minute5-Jun-10 8:05
Henry Minute5-Jun-10 8: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.