It could be possible that the Map type is not thread safe and therefore, in the attempt that reading from a map while also accessing / modifying it (in this case setting it) could throw an access violation exception. Not a definitive answer but rather food for thought.