Author |
Topic: 4500 lines of JustBASIC code, only 2 errors (Read 2218 times) |
|
CirothUngol
New Member
member is offline

Odie, Odie, cha cha cha.

Gender: 
Posts: 44
|
 |
Re: 4500 lines of JustBASIC code, only 2 errors
« Reply #11 on: Apr 10th, 2012, 2:42pm » |
|
Hiya! I've just hit a snag while adding some code to my program. It runs fine in JustBASIC but won't run under LBB. Before I try to isolate an example and post some code to illustrate, what is "Internal error 20"? LBB hits this error and then unceremoniously exits.
Is there a maximum size limit of the code to convert (mine is over 4500 lines)? Is there a maximum distance between a function and the code that calls it (4096 lines, perhaps)? Edit1 - I think I've narrowed it down to a new function I wrote using BYREF... again, I'll see if I can isolate it and post some sample code.
Edit2 - I was unable to replicate the error in a small amount of code, but it definately has something to do with the BYREF in the Function. It only errors when called from a specific Subroutine, but works just fine when called from everywhere else (Subroutines and Root). LBB will also compile and run if I remove the BYREF from the Function.
I've circumvented the issue by writing the Function into the calling Subroutine as a GoSub. If you're interested in seeing the offending code, I could zip it up and post it somewhere.
Thanks for any help, and for the Killer App.
|
| « Last Edit: Apr 11th, 2012, 01:41am by CirothUngol » |
Logged
|
LB Booster + LB Workshop + LB Builder = My Programs on Google Drive
|
|
|
tsh73
Guest
|
 |
Re: 4500 lines of JustBASIC code, only 2 errors
« Reply #12 on: May 2nd, 2012, 06:06am » |
|
Richard said: Quote:Personally I don't consider either Liberty BASIC or Just BASIC to be serious contenders, because they are far too limited: there are so many things that it's either impossible to do or can only be done using a helper DLL (and that's not an option in JB). |
|
Well, there is such thing as "good enough". That's why I routinely use JB, even having bought LB.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: 4500 lines of JustBASIC code, only 2 errors
« Reply #13 on: May 2nd, 2012, 08:13am » |
|
on Apr 10th, 2012, 2:42pm, CirothUngol wrote:| what is "Internal error 20"? |
|
'Internal error 20' is "Number too big", i.e. a value won't fit in a 32-bit integer. I would certainly be interested in seeing the code which causes it.
Richard.
|
|
Logged
|
|
|
|
|