Textures in Debug and Release Versions under VC++ 6.0

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

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
", 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
", x);
}
y = 10;

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

Mikael

thanl you mikael_aronsson for this tip,
unfortunatly it wasn’t the reason. I removed all TRACES with // but the problem still exists.