[Gambas-user] process.id
Matthias Laur
matthias-laur at ...978...
Mon Jun 6 21:23:17 CEST 2005
Hi Benoit,
that don't work :-(
The File has not more than a picture of the first moment. Something must be
wront. The output of the tv-card is mpeg. Could that be the problem?
Regards,
Matthias
Open the destination file before running the process, and in the Process_Read
event, get the output of the process and write it to the file:
SUB Process_Read()
DIM sBuffer AS String
DIM iLen AS Integer
iLen = Lof(LAST)
READ #LAST, sBuffer, iLen
WRITE #hFile, sBuffer, iLen
END
When the process is terminated, close the destination file.
SUB Process_Kill()
CLOSE #hFile
END
Regards,
--
Benoit Minisini
More information about the User
mailing list