[Gambas-user] hProcess is NULL

Demosthenes Koptsis demosthenesk at ...626...
Mon Dec 27 16:12:22 CET 2010


Thank you guys for the help.

On Mon, 2010-12-27 at 23:38 +1100, Ian Haywood wrote:
> 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
> 
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and, 
> should the need arise, upgrade to a full multi-node Oracle RAC database 
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Regards,
Demosthenes Koptsis.





More information about the User mailing list