
Hi,
from time to time we get a NullReferenceException from a closed editor in the semantic parser thread. I think the problem is that after disposing the editor, the document is null, which is not handled correctly when the semantic parse data is updated.
We already tried to remove pending requests from the parser thread, but I doesn't work if the parser is already running.
Here is the callstack:
Update:
I think the problem is the order in which the editor disposes its resources. The semantic parse changed event probably arrives between step 1 and step 2. During that timespan, a call of StartUniversalTimer() leads to the exception. The event handler already checks if the object is disposed, but the flag is set in step 3 when the base class is disposed. It would be better to check for the private flag 'disposing'.
[Modified 11 years ago]
Best regards, Tobias Lingemann.