[Gambas-user] wait and stack overflow

Benoit Minisini gambas at ...1...
Sat Oct 28 11:18:26 CEST 2006


On Saturday 28 October 2006 11:06, olinux wrote:
> I have a possible start of answer...
> here is the complete code:
>
> public sub launchrst(......)
> for i= 0 to fildir.count-1
> 	prc=exec ["gtar", "-xvf","fichier source","-C", repdest,fichierextract[i]]
> for read as "rest"
>
> 	while prc.state = 1
> 		wait
> 	wend
> next
> endsub
>
> public sub rest_Read()
> dim sline as string
>
> line input #last, sline
> .....
> ....
>
> print sline <================here is the start of answer
>
> end
>
>
> if i put a print in the read subroutine, all work fine
> if i don't put a print here, stack overflow is generated about 1200 read
> events
>
> this work with print to the console or print to a file opened.
>
> an idee ??????
>
> regards
> Olivier Coquet
>

Send your full source code please.

Regards,

-- 
Benoit Minisini





More information about the User mailing list