Matt Taylor wrote:thanks for your response. However, I can't check it because I am just using that class provided by the third party api.
If the MethodA() that you are referring to, is part of a third party API, then my suggestion is to check the documentation for the third party API. I agree with Junilu, that this is likely a
thread issue, and this API is being used in a thread unsafe manner.
You need to figure out how you are using this API incorrectly, and well... use it correctly.
Henry