Hello,
I'm aware of the ways MS has recommended updating the gui from a
thread.
eg.
BeginInvoke(StartedExaminingFile, new object[] { file });
But, I really don't like this solution. The fact that you're passing an
array of objects means if the function signature changes, the invoke
would fail terribly.
With all the code-generation that goes on with .net (ie. datasets etc),
couldn't MS make a wrapper for this call? It just seems
uncharacteristic of .net to not strongly type the parameters,
considering the introduction of things like generics (and other
mechanisms for strongly typing).
|