Hugh
07-16-2009, 12:17 AM
Hi,
I have a couple of cogs monitoring switch positions and storing the position of the switches as global variables.
A main subroutine then accesses these values to take actions, etc.,
As I have built-up the main subroutine I have reached a point where the switches appear to be rapidly toggling on/off as the application progresses.
I've tried changing the stack-space allocated to the cogs monitoring the switches, but with no lock. Could the size of the main routine have reached the point where it has 'spilled over' into one of the switch-monitoring cogs, or could it be 'something else'?
Its got me scratching my head anyway.
Thanks
Hugh
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hugh - the thinking woman's Geoffrey Pyke.
I have a couple of cogs monitoring switch positions and storing the position of the switches as global variables.
A main subroutine then accesses these values to take actions, etc.,
As I have built-up the main subroutine I have reached a point where the switches appear to be rapidly toggling on/off as the application progresses.
I've tried changing the stack-space allocated to the cogs monitoring the switches, but with no lock. Could the size of the main routine have reached the point where it has 'spilled over' into one of the switch-monitoring cogs, or could it be 'something else'?
Its got me scratching my head anyway.
Thanks
Hugh
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hugh - the thinking woman's Geoffrey Pyke.