|
Post by xxgeek on Oct 11, 2021 14:29:10 GMT
I got an error stating "key missing" a few times while testing, and can't find it in the help files. I fixed the problem, but can't remember now what it was. This was JB code run in JB IDE, not Liberty, so it wasn't a missing License key. (or shouldn't be)
Anyone know that error and what it means?
[edit] BTW- This error killed the JB IDE opened when the crash occurred, not just the app. Only the JB IDE that was running the app, not any of the other JB IDE's that were open.
If it happens again, I'll post the error log, but since my errors are numerous I am constantly clearing the error log to keep the file small and less scrolling for me and my mouse wheel. Still haven't bought a new mouse.....
|
|
|
Post by Rod on Oct 13, 2021 8:00:02 GMT
A rarely seen error. Sometimes associated with API calls but also possible with native code. It has in the past been caused by calling a command without supplying all of the expected arguments.
In fact tsh73 gave a demo in a response on error handling. This fails with key is missing because the error handler is not set. Step through in the debugger.
on error goto [err] print 1 print 1/0 'supposed to be handled by err handler [nxt1] if BeenHere>1 then end on error goto 0 print 2 print 1/0 'supposed to error (Div by Zero) and stop 'instead errs "key is missing" end
[err] PRINT "ERROR" BeenHere=BeenHere+1 goto [nxt1]
|
|
|
Post by xxgeek on Oct 14, 2021 14:57:41 GMT
AHH!, ok I remember now, I think.
I did fix an error where I forgot to add the path to a fileExists(path$, file$) request. I find it strange with all the errors I generate that I hadn't seen it previously, and the word "key" led me to think it might be a licensing issue, but at the same time there are so many variables in my code with at least a partial name "key" and one with the name key$
That clears that up, thanks Rod.
|
|