Vector Posted July 15, 2021 Share Posted July 15, 2021 Всем привет. Есть дерево TUniTreeViev (KTree). Выделенный узел TUniTreeNode (Tn) Удаляю узел TUniTreeNode: KTree->Items->Delete(Tn); Выбрасывается исключение: First chance exception at $774C9962. Exception class EAccessViolation with message 'Access violation at address 00000000 in module '****.exe'. Read of address 00000000'. Process ***.exe (4164). Соответственно, крах программы. Развёртывание - Standalone server. При этом успеваю заметить, что узел удаляется. И что за чудеса ? Что можно сделать ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 15, 2021 Share Posted July 15, 2021 Здравствуйте, Сборка, издание UniGUI? Quote Link to comment Share on other sites More sharing options...
Vector Posted July 15, 2021 Author Share Posted July 15, 2021 Версия триальная, 1.90.0.1530 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 15, 2021 Share Posted July 15, 2021 Как воспроизвести? Есть примерный код (код на Delphi)!? Quote Link to comment Share on other sites More sharing options...
Vector Posted July 15, 2021 Author Share Posted July 15, 2021 Вообщем, вопрос решился так: KTree->Selected=Tn->Parent; т.е. ошибка возникает когда удаляется выделенный узел. Если перед удалением выделение передать родителю, всё в норме. Интересно. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.