Will it crash my process
here is a short question,
it was taken from a real life bug that occurs at one of my customers.
will the following code crash the process?
it is a non thread safe code that should throw an IndexOutOfRangeException.
but it wouldn’t crash the process,
but what about the following code?
despite the fact that the last addition is seem totally safe,
it will occasion crash the process.
so why does it happens?
the parallel code part was putting the list itself in a corrupted state,
which mean that further access will result in an exception.
the problem is that further access may be locate in a different code file, ant this will make this bug a very illusive one.