GetText() Intermittently Throwing NullReferenceException


I have an intermittent problem that I've been unable to resolve by looking at the source.

I'm calling the WaitForText() method and getting a NullReferenceException thrown by the GetText() method in the TnXMLScreen class. The only thing that looks like it could be the problem is the variable "mScreenBuffer".

I call WaitForText() about 50-200 times per program execution. It's failing roughly one in six runs. I suspect it's some sort of thread or resource locking issue.