grendizerufo / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Wrong assert in debug mode for String #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just use the debug version and dont set any file/external compressor
names via the option objects. 

What is the expected output? What do you see instead?
The various "struct OutputOptions::Private" and "struct
CompressionOptions::Private" should not assert if they call the destructor.

Please use labels and text to provide additional information.
"StrLib.h"
....
/// Dtor.
~String()
{
  nvDebugCheck(data != NULL);
  release();
}
....

"nvDebugCheck(data != NULL);" is invalid if its possible to create a
"valid" NULL nv::String object. Which happens if u use custom output/input
handlers and dont set custom compressors as well.

Original issue reported on code.google.com by andyieg....@googlemail.com on 2 Jul 2009 at 2:46

GoogleCodeExporter commented 9 years ago
This issue was closed by r948.

Original comment by cast...@gmail.com on 3 Jul 2009 at 12:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks for the bug report!

Original comment by cast...@gmail.com on 3 Jul 2009 at 12:09