Posted 20 years ago
by Jake Pearson
-
Software Developer,
Alion Science and Technology
Hi,
I have an intermittent crash where a SyntaxEditor says it cannot be displayed because it has already been disposed. I put a breakpoint on its Dispose method, and it is never hit. It seems to happen when this control is set Visible=false for a while then back to Visible. By chance, is there anywhere in your code where the control could kill itself without being explicitly asked to? I have worked around the problem by not hiding the control and instead disabling it.
thanks,
Jake
I have an intermittent crash where a SyntaxEditor says it cannot be displayed because it has already been disposed. I put a breakpoint on its Dispose method, and it is never hit. It seems to happen when this control is set Visible=false for a while then back to Visible. By chance, is there anywhere in your code where the control could kill itself without being explicitly asked to? I have worked around the problem by not hiding the control and instead disabling it.
thanks,
Jake