Le 6 févr. 2012 à 18:28 Soir, Tim Jones a écrit:

> 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 :-)...

Yes, I now feel more comfortable with using DoEvents, but for my problem, even 
with DoEvents the driver can't return data fast enough for my use. I'm going to 
think to use an helper just for that.
Thanks
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to