J
James Arnold
I am getting the following error message in my WinForms project:
---
An unhandled exception of type 'System.AccessViolationException'
occurred in System.Windows.Forms.dll
Additional information: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
---
I have narrowed the problem down to a TreeView - if the user is
currently editing the label of a TreeNode (using node.BeginEdit) and I
then add a new node to the TreeView, the exception gets thrown.
However - I cannot seem to programatically end the editing of the
TreeNode first (assuming that will stop the error). Can anyone direct
me to a solution please?
Thanks!
---
An unhandled exception of type 'System.AccessViolationException'
occurred in System.Windows.Forms.dll
Additional information: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
---
I have narrowed the problem down to a TreeView - if the user is
currently editing the label of a TreeNode (using node.BeginEdit) and I
then add a new node to the TreeView, the exception gets thrown.
However - I cannot seem to programatically end the editing of the
TreeNode first (assuming that will stop the error). Can anyone direct
me to a solution please?
Thanks!