Profile Picture

Chart is repainting too long

Posted By Ereona 12 Years Ago
Author
Message
Ereona
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 43, Visits: 1
Hello.
I have NChartControl and access to it from different threads. I noticed that if I access to chart control from any worker thread during it's repainting in main thread the repainting is too long (over one minute) whereas repainting without other thread's intervention lasts less than one second. By the way the application hangs in this minute. And I get a message from MS Visual Studio "ContextSwitchDeadlock Was Detected". If I break all processes I see that the main thread is in NChartControl.OnPaint() method and the worker thread is waiting for NChartControl.Document.Lock(). Why the other thread delays repainting? How to avoid it?




Similar Topics


Reading This Topic