Menu

#1 InvokeRequired check needed in StartEdit

open
nobody
None
5
2007-07-22
2007-07-22
Anonymous
No

The lines in StartEdit():

SelectedNode = tnNodeToStartEditOn;

and

tnNodeToStartEditOn.BeginEdit();

need an InvokeRequired check and the invocation of a MethodInvoker delegate as required.

The illegal cross-thread access of the control can be triggered by single-clicking on a selectable node in the sample app, then single-clicking again on the same node to start a node edit operation.

tdrewes@gmail.com

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.