PDA

View Full Version : Textures in Debug and Release Versions under VC++ 6.0



Solobase
12-13-2002, 02:08 AM
I use 25 Texturemaps, the Maps are BMP-Files.
If i compile the release version everthing is OK but if i compile the debug only the last loaded texture is visible, all other textures are overwritten with the last BMP-File.

Does somebody know the reason for this?

thanks
Solobase

mikael_aronsson
12-15-2002, 12:19 AM
Yes, you have made a mistake somewhere...

The most common is that you have put an ASSERT or TRACE macro (if you are using MFC) in the wrong place, for example:

if( x > 0)
TRACE( "X=%d\n", x);
y = 10;

This code will behave very different in release and debug mode, you would have to change it to:

if( x > 0)
{
TRACE( "X=%d\n", x);
}
y = 10;

Take a look for this kind of stuff, it might be causing the problem.

Mikael

Solobase
12-16-2002, 12:19 AM
thanl you mikael_aronsson for this tip,
unfortunatly it wasn't the reason. I removed all TRACES with // but the problem still exists.