conversion somewhere. I try to suffix my variables with the appropriate marker and also set "DEFINT A-Z". Most things should be INTs.. I might have a string to int thing going on somewhere that QB is okay with but QB64 isn't.
The ClearKbBuffer might also be a problem. I don't know if QB64 allows the POKE and PEEK command. I use those to reset the kb input buffer. If you don't, calling INP(96) will eventually overflow and cause the PC speaker to beep like crazy. INKEY$ will also do the same and is much slower. This is the fastest way I've been able to figure to do it so far.
Code in question is:
DEF SEG = &H40
POKE &H1C, PEEK(&H1A)
I found it on a tutorial many many years ago. :)