I'm building up a complete game engine so, basically, it integrate a sound system. The problem is that a line make me crash in my code. The strange thig is that my app crash ONLY when I compile using Release mode, in Debug Mode it run just fine.
I'm using MSVC 16.XX (I don't know exact version, but it is the latest at the time I am asking this question)
(language used is c++)
void PSound::GetDevice()
{
const ALchar* DeviceList = alcGetString(NULL, ALC_DEVICE_SPECIFIER); //This Line make app crash
if(DeviceList) {
while(strlen(DeviceList) > 0) {
Devices.push_back(DeviceList);
DeviceList += strlen(DeviceList) + 1;
}
}
}