On Feb 6, 2012, at 5:32 AM, Arnaud Nicolet wrote:
> Le 6 févr. 2012 à 12:59 Soir, Christian Schmitz a écrit:
>
>> Can't you simply ask them to call DoEvents in synchronously mode?
>
> Well, I could add that myself (they are not encrypted classes). On the other
> hand, I'm now trying to make my own SpriteSurface, because the ones I
> downloaded don't fit my needs well, so I'll consider putting DoEvents in mine.
>
> Anyway, I doubt DoEvents in synchronous mode will be faster than (no
> DoEvents) in async mode, but perhaps I'm not expecting right.
Actually, simply adding "App.DoEvents(15)" in the code at loop points will
provide an amazing improvement. I used to do all of my Shell work in threads,
but I've now found that:
theShell.Mode = 2
theShell.Execute theCommand
Do
App.DoEvents(15)
Loop Until Not theShell.IsRunning
I then use the theShell.DataAvailable event to parse any output so that a
semblance of event driven operation remains.
As I've said before - it works for me :-)...
Tim
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info