|
-
April 15th, 2011, 09:50 AM
#1
[RESOLVED] How to manipulate global vars
Hello, Im having an issue with my globals. In particular a Bool value.
I have created a public class,
public class Globals
{
public bool dataToSend;
}
in one thread data is loaded into an array and this variable is changed to true.
in another thread there is a constant loop that checks to see if this variable is set to true then sends it down the serial port. Although, after I change the variable in my first thread the value does not change for the second thread. Why would this be?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|