Page 1 of 1

Bug Report: Crash on exit compiled debug exe

Posted: 05 Jan 2007, 02:58
by EVIL386
Warzone2100 Version
Warzone 2100 SVN Revision 592 Compiled on MSVC 2005

Operating System
Windows XP 32Bit

Hardware Information
Intel Core 2 Duo 6600
1GB DDR2 566MHZ Dual Channel RAM
XFX GeForce 7900GS 256MB

Warzone2100 Configuration
--fullscreen --viewport 1280x1024
Debug Compiled

Bug Description
When exiting game, clicking the final credits image causes an unhandled exception.
"An unhandled win32 exception occured in Warzone-dbg.exe[3620]"

Although i added this:
if(bMultiPlayer)
{
if(game.type == SKIRMISH)
{
if(isHumanPlayer(player))
{
return TRUE;
}
}
}
else
{
return TRUE;
}
to BOOL checkPower(UDWORD player, UDWORD quantity, BOOL playAudio)  and BOOL usePower(UDWORD player, UDWORD quantity)
in power.c

also when i did the inital build i had 1998 warnings

Re: Bug Report: Crash on exit compiled debug exe

Posted: 05 Jan 2007, 15:26
by Giel
EVIL386 wrote: When exiting game, clicking the final credits image causes an unhandled exception.
"An unhandled win32 exception occured in Warzone-dbg.exe[3620]"

Although i added this:to BOOL checkPower(UDWORD player, UDWORD quantity, BOOL playAudio)  and BOOL usePower(UDWORD player, UDWORD quantity)
in power.c
I found this to be very strange since warzone is currently entirely based on C which has no concept of exceptions. Did you use additional compiler parameters (i.e. while using a C++ compiler)? Also do you get the same error when compiling without the code modifications you added?
EVIL386 wrote: also when i did the inital build i had 1998 warnings
Yes, the current codebase really is that awfully full of warning generating code. That is being worked on (though slowly).

Re: Bug Report: Crash on exit compiled debug exe

Posted: 05 Jan 2007, 16:01
by EVIL386
when i get back from work, I will re-compile with the original power.c
I haven't specified any additional parameters, im using the default ones / the ones set in the win32 project (Don't know if it had any).
The only thing i've modified in the project file itself is the additional paths.
Giel wrote: I found this to be very strange since warzone is currently entirely based on C which has no concept of exceptions.
I think this is just another one of Windows generic ways of saying the program crashed and burned lol :D

I also checked out the latest version into another directory and set it up.
I get about 16 errors realted to mem.c and won't compile.