April 3rd, 2009, 09:24 AM
Thanks to everyone, I really enjoyed this discussion and I fully agree that failure to protect shared variables is normally bad form, sloppy and / or lazy. That can lead to "dangerous" situations...
April 1st, 2009, 07:33 AM
Codeplug, thanks for the post.
For the value of x, I think I can put it to rest. Without synchro, the value can be anything at any given time.
Just one last question, could you...
March 31st, 2009, 04:14 AM
Ok, thanks again for the posts. I get the feeling that I'm going wrong somewhere and if anybody has the patience to go back to basics to find out where, please let me know.
I start with x=x+1...
March 30th, 2009, 03:31 AM
Thank you for your replies.
I have a good understanding of the system objects available to protect the counter variable above. This example comes from a larger system. Adding one line of code,...
March 27th, 2009, 04:10 AM
Hello everyone, I'm new here and would like your thoughts on the following 'code' snippet with two followup questions
static int x=0;