Bug Report: Crash on exit compiled debug exe

Our old place to report Bugs, it's not used anymore. To report bugs, please read this topic.
Locked
User avatar
EVIL386
Trained
Trained
Posts: 80
Joined: 05 Jan 2007, 02:11

Bug Report: Crash on exit compiled debug exe

Post 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
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Bug Report: Crash on exit compiled debug exe

Post 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).
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
EVIL386
Trained
Trained
Posts: 80
Joined: 05 Jan 2007, 02:11

Re: Bug Report: Crash on exit compiled debug exe

Post 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.
Locked