Ticket #96 (closed defect: fixed)
MSVC builds crash as soon as a window closes
|Reported by:||knowknowledge||Owned by:|
This issue has only been seen on MSVC builds of Epiar, but it may be a hidden issue on other compilers.
Most of the game will run fine until a window is closed, the heap becomes corrupt and Epiar crashes.
We proved that this wasn't an issue with the game logic by turning on autoload and removing the pause during the introduction screen.
We were able to prevent Epiar from crashing by commenting out the line:
from the UIContainer::DelChild?( Widget *widget ) function.
We made all of the Widgets use virtual destructors, and cleaned them up by adding X=NULL to all pointers that should never get deleted.