akadjoker / darkbasicpro

Automatically exported from code.google.com/p/darkbasicpro
0 stars 0 forks source link

Run-Time Check Failure #2 when running a DarkGDK game with these compiled libraries #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check out the latest source code.
2. Open "Dark SDK.sln", and build all.
3. In Visual Studio, update the include and library directories from the 
release DarkGDK to the new ones.
4. Rebuild an already working DarkDGK game. (there will be linker warnings 
about missing "vc60.pdb" files, this only affects the ability to debug the 
strmbasd.lib used by the animation project.
5. Run the game from within visual studio.

What is the expected output? What do you see instead?
Several run-time interruptions will occur, one at a time:
Run-Time Check Failure #2 - Stack around the variable '[variable name]' was 
corrupted.

These errors are associated with CImageC.cpp and ConvX.cpp, and their 
relationship to xtree (a source file that's part of Visual Studio). There may 
be other .cpp files that produce this error, but CImageC.cpp and ConvX.cpp are 
the two that I've discovered so far.

What version of the product are you using? On what operating system?
Visual Studio 2008, w/ DirectX SDK June 2010 (on top of August 2007), on 
Windows XP Pro.

Please provide any additional information below.
I selected 'Continue' for the hundreds of times this run-time check failure 
occurred, and my game worked, although at 80% the frame-rate the latest release 
version of DarkDGK produces.

I tried temporarily disabling runtime checks by inserting the following line 
near the top of CImageC.cpp:

#pragma runtime_checks( "", off )

But then I got a debug assertion error from xtree, and it would not continue to 
run.

Original issue reported on code.google.com by pcowe...@yahoo.com on 1 Dec 2013 at 12:12

GoogleCodeExporter commented 9 years ago
I tracked down the revision that created this problem. It's r55. r101 works 
just fine if I replace the 4 files changed by r55 with their r54 versions. 
There don't seem to be any conflicts with the rest of r101.

As a side-note to this issue, another 2 issues are raised - there is a major 
performance drop (frame-rate decrease), and a music volume difference (I 
suspect the dbSetMusicVolume() command becomes broken) between r54 and r101.

Original comment by pcowe...@yahoo.com on 1 Dec 2013 at 4:27

GoogleCodeExporter commented 9 years ago
This was caused by r55, which was removed in r102.

Original comment by pcowe...@yahoo.com on 30 Dec 2013 at 2:47