Variable variables.
Hugh
Posts: 362
I think I must have missed something and/or inadvertantly broken some rule.
I have been pulling my hair out for weeks with some ccde that just doesn't quite work. Noticing that one of the counters in the code wasn't incrementing (whatever I did to it) I moved it from the bottom of the VAR block to the top. Bingo! Everything is hunky-dory again.
F8 showed 254 longs used for variables. Is there a limit, a preference order or any other 'rule' about variables? If there is a limit to memory that can be allocated to variables, why disn't the Prop Tool warn me that I had stepped over a line?
Another lesson learned!
Thanks
Hugh
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hugh - the thinking woman's Geoffrey Pyke.
Post Edited (Hugh) : 12/19/2009 9:07:46 PM GMT
I have been pulling my hair out for weeks with some ccde that just doesn't quite work. Noticing that one of the counters in the code wasn't incrementing (whatever I did to it) I moved it from the bottom of the VAR block to the top. Bingo! Everything is hunky-dory again.
F8 showed 254 longs used for variables. Is there a limit, a preference order or any other 'rule' about variables? If there is a limit to memory that can be allocated to variables, why disn't the Prop Tool warn me that I had stepped over a line?
Another lesson learned!
Thanks
Hugh
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hugh - the thinking woman's Geoffrey Pyke.
Post Edited (Hugh) : 12/19/2009 9:07:46 PM GMT
Comments
From your description, I would guess that there was (and still is) a bug in your program. I would recommend posting your entire program here so we can have a look at it.
-Phil
I've never had a problem with my variables not being variable. Unless I'm trying to access them via some wonky pointer scheme that ends up changing the wrong thing in memory.
Be aware that Spin puts all the LONGs first in memory then the WORDs then the BYTEs so if you are relying on things being in some order in memory it may not bee what you think.
So we need to see a bit of your code, quite possibly all, to see what is up.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
attach your COMPLETE code to a posting following the way shown in the attached picture
best regards
Stefan
I shall go out into the snow and beat myself with birch twigs until I am sufficiently contrite that I am able to visit this forum again. 'Thank you' and 'sorry' in equal measures to you all.
Hugh
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hugh - the thinking woman's Geoffrey Pyke.
throughout the year be friendly to yourself and patient with yourself
Today be very friendly to yourself and very patient with yourself: it's christmas time !
best wishes
Stefan