Symbol already defined
#6

Quote:
Originally Posted by 0rb
First you have to know that the compiler can't be perfect and will never show you the exact problem of your script. In your case the compiler give this warning because something went wrong probably when allocating the memory for your variables in that function.

By default, only (but that is more than enough) around 4000 cells can be allocated in a function. You function exceed this limit by almost 3 times. I bet if you change those [10][256] by for exemple [10][25], that warning will disappear.

As i said in your previous topic, if you need big variables that will use more than 4000 cells, place them at the top of your script. I personally place most of variables, big or not, at the top of my scripts.
I can't change it to [10][25] because I'll get the error Array sizes do not match (strtok minimum size = 256) I could change it to 128 perhaps but that's still to high right?

Quote:

I personally place most of variables, big or not, at the top of my scripts.

variables in functions, are created in the function and deleted at the end of the function, and global variables won't get deleted
so isn't that bad to place most variables at the top, since they're never erased from the memory?
Reply


Messages In This Thread
Symbol already defined - by ғαιιοцт - 15.10.2009, 15:53
Re: Symbol already defined - by dice7 - 15.10.2009, 17:23
Re: Symbol already defined - by yom - 15.10.2009, 17:29
Re: Symbol already defined - by ғαιιοцт - 15.10.2009, 17:38
Re: Symbol already defined - by yom - 15.10.2009, 18:03
Re: Symbol already defined - by ғαιιοцт - 15.10.2009, 18:19
Re: Symbol already defined - by dice7 - 15.10.2009, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)