[Solved] Application Crashes when editing CustomTreeCtrl nodes

I actually solved this by catching the event for pressing the Escape key, and restoring the original value saved in the init of the edit control. The spaces in the end of labels were stripped and changes not applied if the edit result was equal to original.