I have a problem with a multithreading program. In that program, I use some subroutines and functions all over the place (like converting a string to an integer, displaying a real number in an edit box...)
Sometimes I get access violations, I think because that the function or subroutine foo is being called by two different threads at the same time.
Does anybody had the same problem or has a hint, what I could do? Could it be that, because the argument is a reference, that in a second call of foo the reference of the first foo is altered?
Thanks in advance,