[epiar-devel-tickets] [Epiar] #96: MSVC builds crash as soon as a window closes
EpiarNET Trac
trac at epiar.net
Tue Oct 5 23:32:40 PDT 2010
#96: MSVC builds crash as soon as a window closes
---------------------------+------------------------------------------------
Reporter: knowknowledge | Owner:
Type: defect | Status: new
Priority: critical | Milestone: 0.5.0
Component: UI | Version:
Keywords: |
---------------------------+------------------------------------------------
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:
delete (*i);
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.
--
Ticket URL: <http://epiar.net/trac/ticket/96>
Epiar <http://www.epiar.net/>
Epiar (ep-ee-are) is an open source computer game, in which the player navigates space from planet to planet, saving money to buy ship upgrades and new ships. The player can also join mercenary missions, attack other ships to steal their money and technology, and explore the universe. The game combines the action/arcade elements of aircraft dogfighting with the strategy of war games and the openness of role playing games to create this entertaining experience.
More information about the epiar-devel-tickets
mailing list