I was wrong about where the program seems to stop.
It is at the line Print #hfile "S" .
http://www.nabble.com/file/p23375691/FMain.class FMain.class
frenchpark43 wrote:
>
> When I execute the code below , it works fine for the first "Single"
> button push. But on the second push
> I get an e
I am using Gambas 2.11 on Ubuntu 9.04. My PC is connected via a serial port
to a microcontoller-based
circuit which sends 16 characters every time it receives an "S character.
The code seems to stop at the READ statement.
I have tried to insert debug messages but for some reason the Console
disap
> When I execute the code below , it works fine for the first "Single" button
> push. But on the second push
> I get an error message " System error. Illegal seek". Any ideas ?
>
> PUBLIC SUB Single_Click()
> DIM i AS Integer
> DIM dump AS Byte
> DIM data AS Byte
> ' DIM data AS String
> PRI
Firstly, a Line # of where the error occurred would help, but i'm guessing
its where it tries to READ.
I'm no expert unfortunately, but a quick 'guess' response would be that
when using READ with streams, the position is incremented by 1, so when you
try to read again, you are not reading from the
When I execute the code below , it works fine for the first "Single" button
push. But on the second push
I get an error message " System error. Illegal seek". Any ideas ?
PUBLIC SUB Single_Click()
DIM i AS Integer
DIM dump AS Byte
DIM data AS Byte
' DIM data AS String
PRINT "Test"
PRINT