Search found 3 matches

by vat_cpp
Wed Apr 29, 2020 12:50 pm
Forum: wxWidgets Development (Russian)
Topic: wxXmlNode и delete
Replies: 1
Views: 282

wxXmlNode и delete

Рассматривается однопоточное приложение / this case is about single-thread app В описании класса есть замечание: Once a wxXmlNode has been added to a wxXmlDocument it becomes owned by the document and this has two implications. Firstly, the wxXmlDocument takes responsibility for deleting the node so...
by vat_cpp
Sat Nov 16, 2019 12:57 pm
Forum: wxWidgets Development (Russian)
Topic: Странное поведение wxWindow::Destroy()
Replies: 5
Views: 1492

Re: Странное поведение wxWindow::Destroy()

doublemax wrote:
Fri Nov 15, 2019 5:09 pm
First of all: You can not delete any window from a secondary thread. (Just in case you were doing that).
No, my app is single-thread.
doublemax wrote:
Fri Nov 15, 2019 5:09 pm
In that case use wxAppConsole::ScheduleForDestruction()
Thanks for advice, i'll try.
by vat_cpp
Fri Nov 15, 2019 4:47 pm
Forum: wxWidgets Development (Russian)
Topic: Странное поведение wxWindow::Destroy()
Replies: 5
Views: 1492

Странное поведение wxWindow::Destroy()

wxw 3.0.4, Visual Studio 2008, MSW В документации сказано- не удалать объекты wxWindow (и производные) с помощью стандартного delete, а пользоваться Destroy(), иначе рушится Event Loop и т.д. В моем проекте часто нужно удалять десятки объектов wxWindow и создавать новые. Сначала пользовался delete п...