[Gambas-user] Errotr message " Illegal seek"
frenchpark43
tinker43 at ...626...
Mon May 4 21:34:10 CEST 2009
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
disappears when I run the program.
Bugzilla from gambas at ...1... wrote:
>
>> 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 #hfile "S" ' Send S to start sweep
>> FOR i = 0 TO points - 1
>> READ #hfile, data, points
>> buffer[i] = data
>> NEXT
>> draw_chart(buffer, points)
>> END
>
> You must tell which version of Gambas you use, and where you get the error
> exactly. The better would be sending your project, and a way to reproduce
> the
> error!
>
> Regards,
>
> --
> Benoît
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
--
View this message in context: http://www.nabble.com/Errotr-message-%22-Illegal-seek%22-tp23359909p23375064.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list