Marcel writes: > Dilwyn Jones wrote: >> INPUT #channel,t$ should fetch a string from a file. Indeed it does <> > Anyway, I can fix it by ensuring that only interpreted Basic tries to > enlarge the buffer, returning the error for compiled programs. > > By the way, I did also analyze how Minerva will behave. It will simply > kill your compiled job! So while SMSQ/E can be changed to return > "buffer overflow", you'll need to use a command other than INPUT for > it to work on other platforms. > >> Works fine interpreted, you would expect it to cause a 'buffer >> overflow' error message when QLiberator compiled due to exceeding the >> input buffer length (which could be error trapped) but on my system >> the compiled program locks up with no error message. Sometimes with >> (not so) pretty screen pattern corruption.
I believe QLib implements its own version of INPUT, PRINT and a few other internal commands, so fixing them in SMSQE may not solve the problem. Fabrizio might be better off implementing iob.flin and iob.fmul in S*basic. With timeouts and error returns they are much more versatile. Per _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
