[Openal] Problem between debug and release build
timo at futuremark.com
timo at futuremark.com
Sat Jun 25 14:13:05 PDT 2005
It is common, and the reason is virtually always in your own code. Maybe
you have a buffer overflow somewhere.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_common_problems_switching_from_debug_to_release_build.asp
Try to add this in the beginning of your code:
# include <crtdbg.h>
# define new DEBUG_NEW
_CrtSetDbgFlag(
_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG)
| _CRTDBG_CHECK_ALWAYS_DF
| _CRTDBG_DELAY_FREE_MEM_DF
| _CRTDBG_LEAK_CHECK_DF
);
/*_CrtSetBreakAlloc(0); */
You may want to comment out the check always line. Run your code with the
above lines in debug mode and see if you get any assert failures. If you
do, comment out stuff from your code so that you no longer get those
failures. And if you get memory leak errors when you exit your program,
get the last (lowest) memory block id, and place it inside break alloc
call and enable the call. That way you get a break when the problematic
block is being allocated the next time your run your program.
Good luck hunting memory trashing bugs, they are nasty sometimes.
On Sat, 25 Jun 2005, Peter Mares wrote:
> Hi there,
>
> I have a problem when trying to play multiple sources sequentially in
> the release build of my project (the debug build works fine).
> The application is comprised of many top level windows, and the OpenAL
> subsystem is currently initialised within a core engine dll.
>
> The behaviour is strange. As mentioned before, in debug mode all the
> sounds play correctly in sequence, while in the release build, a sound
> will play once and never again. Has anyone experienced this before?
>
> I am using VC.net 2003 and am compiling native code.
>
> Thank you,
> Peter
>
--
timo
More information about the Openal
mailing list