Closed oleg-akatsuki closed 10 years ago
LWF doesn't support the way to delete LWF instance. You can release objects in other way.
Ok, it's a common issue now. We updated LWF to avoid the crash. Please try to use LWFNode::requestRemoveFromParent API.
lwf->AddEventHandler("done", [=](LWF::Movie *movie, LWF::Button *){
this->requestRemoveFromParent();
});
LWFNode will crush if try to do removeFromParentAndCleanup(true) from event handler body, so it is very difficult to release objects dynamically in action game.
Example