What can cause "FMOD error! (13) Error loading file." when loading a codec plugin?

I’ve created several succesful codec plugins, but when I’ve succesfully compiled this 3rd party library using my standard code for an FMOD codec plugin I get:
"FMOD error! (13) Error loading file. (FMOD_ERR_FILE_BAD) when loading the .dll.

If I remove some code I can load it, so it seems there are some specific (c++/asm mingw compiled) code that causes it.

So, what may cause this problem?


What version of the FMOD integration are you using?

Could you call Debug_Initialize with the logging flag set to FMOD_DEBUG_LEVEL_LOG. Please note that you will have to use the fmodstudioL lib and dll. Could you please share the Logs here?