12-06-2006 03:27 PM
12-06-2006 03:28 PM
12-06-2006 03:30 PM
12-06-2006 03:31 PM
12-06-2006 03:35 PM
12-06-2006 03:36 PM - edited 12-06-2006 03:36 PM
Like so:
Yes, there is a race condition in there that I did not address. However, you don't even need that reset table anymore, this will work without it.
Message Edited by Marc A on 12-06-2006 04:37 PM
12-06-2006 03:38 PM - edited 12-06-2006 03:38 PM
Message Edited by jabu on 12-06-2006 03:41 PM
12-06-2006 03:42 PM
12-06-2006 03:44 PM
12-06-2006 03:48 PM
No one is bashing you. I'm trying to help you. I just wanted you to understand why that is a race condition and can give you inconsistent results. In this case, theoretically the while loop could finish first and set the table to the values 1 to 100. Then it could be reset to a blank table. This is unlikely, but it is quite possible.
Did you get it to work?