03-07-2005, 05:37 PM
is there a limit on how many arguements i can send from a call sub?
Is there a limit on....
|
03-07-2005, 05:37 PM
is there a limit on how many arguements i can send from a call sub?
03-07-2005, 06:13 PM
Nothing is specified here: http://qbasicnews.com/qboho/qckadvr.subr.shtml
So I guess that the real limit is the available memory during compiling and/or the maximum line size which happens to be 255 characters.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio underBASIC, homegrown musicians [img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
03-07-2005, 07:50 PM
has something to do with stack space as well, no?
03-07-2005, 08:21 PM
maybe thats why im getting out of stack error...
03-07-2005, 08:24 PM
proably =pP
just make sure that you dont call too many subs within subs, return as often as possible
03-07-2005, 09:36 PM
Quote:maybe thats why im getting out of stack error...No, its quite improbable that you'll get out of stack space error due to excessive 'arguments' in a sub routine. Exactly how many arguments do you pass?
03-08-2005, 03:04 AM
From here , the maximum number of arguments is 60...
http://qbasicnews.com/qboho/qckadvr@l8209.shtml
Antoni
03-08-2005, 04:47 AM
im no where near 60 arguements. ill show u guys the code
03-08-2005, 04:53 AM
here is my coding:
http://home.ripway.com/2005-1/246021/Game.bas here are the sequencial files that are needed to run the game. the game is not complete and there are alot of bugs. change the constants if it says path not found. image: http://home.ripway.com/2005-1/246021/pic.zip one problem is the out of stack error the other is i dunno why the walking animation does not occur. it should move its legs and arms.
03-08-2005, 06:05 PM
As stated, you problem has nothing to do with number of parameters. But for your info, I think this is one more than the max.
It gets an error, but if you omit the ,d6 it works fine. Mac Code: DEFINT A-Z |
« Next Oldest | Next Newest »
|