Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPEN COM flow handling parameters are fragile #99

Open
flukiluke opened this issue Jan 7, 2021 · 0 comments
Open

OPEN COM flow handling parameters are fragile #99

flukiluke opened this issue Jan 7, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@flukiluke
Copy link
Contributor

flukiluke commented Jan 7, 2021

Reported by GTC at https://www.qb64.org/forum/index.php?topic=3459

Opening the COM port with OPEN "COM" + Port$ + ":4800,N,8,1" FOR RANDOM AS #1 causes any attempts after the first open and CLOSE to fail with error 64.

Changing the command to OPEN "COM" + Port$ + ":9600,N,8,1,CS0,DS0" FOR BINARY AS #fh behaves correctly.

The use of BINARY or RANDOM makes no difference, only the presence or absence of the extra flags.

Windows 7, 64 bit.

@flukiluke flukiluke added the bug Something isn't working label Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant