View Single Post
Old 11 October 2019, 17:12   #208
Nightshft
Registered User
 
Nightshft's Avatar
 
Join Date: Mar 2018
Location: Austria
Posts: 617
I have a problem with ReadFile and Inkey$ when the Debugger is running. It normally works fine, but with active debugger it says "No currently used object!"

Code:
if readFile(0,"filename")
  fileInput 0
  y=asc(inkey$)  <- error
  or
  bla=cvq(inkey$(4))  <- same
  closeFile 0
Seems like inkey$ sees no active fileInput although its defined one line before. Only when the debugger is running. Am I missing something, or is there a workaround?
(Blitzbasic 2.42. Without debugger this never happens. With debugger always.)
Nightshft is offline  
 
Page generated in 0.07075 seconds with 11 queries