[Gambas-user] hProcess is NULL
Ian Haywood
ihaywood at ...1979...
Mon Dec 27 13:38:12 CET 2010
On Mon, Dec 27, 2010 at 10:00 PM, Demosthenes Koptsis
<demosthenesk at ...626...> wrote:
> hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun"
> WHILE (hProcess1.Running)
> WAIT 10
> WEND
This does work but is slow, potentially pointless wait of nine seconds
at the end.
Instead you could split this function into two:
hProcess1 = SHELL sCommand FOR INPUT AS "AntiVirRun
End
Private Sub Continue_The_Function()
.. . . . whatever you where doing
Then use AntiVirRun_Kill event to call the continue function when the
process ends.
Ian
More information about the User
mailing list