Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
AnswerRe: Learning Datasets... Pin
Luc Pattyn15-Aug-10 15:54
sitebuilderLuc Pattyn15-Aug-10 15:54 
GeneralRe: Learning Datasets... Pin
Keith Barrow15-Aug-10 12:20
professionalKeith Barrow15-Aug-10 12:20 
GeneralRe: Learning Datasets... Pin
Mycroft Holmes15-Aug-10 14:34
professionalMycroft Holmes15-Aug-10 14:34 
GeneralRe: Learning Datasets... Pin
PIEBALDconsult15-Aug-10 16:58
mvePIEBALDconsult15-Aug-10 16:58 
QuestionTargetInvocationException? Pin
Megidolaon15-Aug-10 8:13
Megidolaon15-Aug-10 8:13 
AnswerRe: TargetInvocationException? Pin
OriginalGriff15-Aug-10 8:26
mveOriginalGriff15-Aug-10 8:26 
GeneralRe: TargetInvocationException? Pin
Megidolaon16-Aug-10 3:29
Megidolaon16-Aug-10 3:29 
GeneralRe: TargetInvocationException? Pin
Alan N16-Aug-10 6:14
Alan N16-Aug-10 6:14 
Megidolaon wrote:
In DoWork I'm running a loop and part of it is the ReportProgress method, yet the first time the event is actually raised happens between randomly the 350th and 400th time of the loop.


That is perfectly feasible as the ReportProgress method raises the ProgressChanged event asynchronously. Presumably by the time the UI thread gets around to processing the first event the BackgroundWorker has called ReportProgress 350-400 times and quite a backlog has built up. If each ProgressChangedEventArgs references the same ArrayList then you will always see the most recent values and not those that were in force at the time the event was raised.

As a guess your code should not raise the event more frequently than once every 1000 loop iterations. Even that will probably be far too frequent and you should aim for no more than 2 per second if a display element is being updated.

Alan.
GeneralRe: TargetInvocationException? [modified] Pin
Megidolaon16-Aug-10 15:40
Megidolaon16-Aug-10 15:40 
AnswerRe: TargetInvocationException? Pin
PIEBALDconsult15-Aug-10 8:28
mvePIEBALDconsult15-Aug-10 8:28 
AnswerRe: TargetInvocationException? Pin
Luc Pattyn15-Aug-10 8:41
sitebuilderLuc Pattyn15-Aug-10 8:41 
Question[Solved] UdpClient callback question [modified] Pin
AtomTech15-Aug-10 4:59
AtomTech15-Aug-10 4:59 
AnswerRe: UdpClient callback question Pin
Gary R. Wheeler15-Aug-10 5:22
Gary R. Wheeler15-Aug-10 5:22 
AnswerRe: [Solved] UdpClient callback question Pin
Luc Pattyn15-Aug-10 7:08
sitebuilderLuc Pattyn15-Aug-10 7:08 
GeneralRe: [Solved] UdpClient callback question Pin
Dan Mos15-Aug-10 7:19
Dan Mos15-Aug-10 7:19 
GeneralRe: [Solved] UdpClient callback question Pin
Luc Pattyn15-Aug-10 7:40
sitebuilderLuc Pattyn15-Aug-10 7:40 
QuestionProcess and memory Pin
keloth8715-Aug-10 4:12
keloth8715-Aug-10 4:12 
AnswerRe: Process and memory Pin
Gary R. Wheeler15-Aug-10 5:29
Gary R. Wheeler15-Aug-10 5:29 
AnswerRe: Process and memory Pin
Luc Pattyn15-Aug-10 7:16
sitebuilderLuc Pattyn15-Aug-10 7:16 
QuestionReading data from HTTP Pin
Wamuti15-Aug-10 3:48
Wamuti15-Aug-10 3:48 
AnswerRe: Reading data from HTTP Pin
Nicholas Butler15-Aug-10 4:14
sitebuilderNicholas Butler15-Aug-10 4:14 
AnswerRe: Reading data from HTTP Pin
Not Active15-Aug-10 4:15
mentorNot Active15-Aug-10 4:15 
QuestionHow to customise the behaviour of a control when it is selected Pin
Dave Midgley15-Aug-10 2:54
Dave Midgley15-Aug-10 2:54 
QuestionLinq - Join Pin
treuveni15-Aug-10 2:50
treuveni15-Aug-10 2:50 
AnswerRe: Linq - Join Pin
Dan Mos15-Aug-10 3:30
Dan Mos15-Aug-10 3:30 

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.