GorzenDev Posted July 14, 2017 Share Posted July 14, 2017 i get a Debug Assertion Failure when closing my app in C++ debugging shows the error occurs at the destructor of my class on this line: delete logTextArea; //same result //logTextArea->Release(); logTextArea is a Widget::TextArea() the debugger tells me the Expression: list iterator not incrementable. does Widget::TextArea have a bug in his destructor ? or is this error on my part somehow? i do not use any type of list in my code myself at the moment.. ------------------------------------- Solved i figured out that when releasing/deleting a Widget::TextArea you need to clear the kids list first, even when its just a blank TextArea who is not a parent of any other widget. the code below gives no assertion failure logTextArea->kids.clear(); logTextArea->Release(); 1 Quote Link to comment Share on other sites More sharing options...
Roland Posted July 14, 2017 Share Posted July 14, 2017 Try with logTextArea->Release() instead Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
GorzenDev Posted July 14, 2017 Author Share Posted July 14, 2017 Just now, Roland said: Try with logTextArea->Release() instead tried that but yields same result. tried not deleting/releasing at all yields same result but on the parent Panel of the widget. Quote Link to comment Share on other sites More sharing options...
Roland Posted July 14, 2017 Share Posted July 14, 2017 Okay. Then I don't know. Haven't tested the new GUI my self yet. Quote Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
GorzenDev Posted July 16, 2017 Author Share Posted July 16, 2017 this is solved. edited first post. 1 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.
Note: Your post will require moderator approval before it will be visible.