I got a new computer some time ago and wanted to start making programs using the fmodex library.
[code:1peyh6vd]Fresult = FMOD.Factory.System_Create(ref Fsystem);[/code:1peyh6vd]
Each time I execute this the program crashes and gives me this error message: "FMOD error: ERR_FILE_BAD-Error loading file."
This happens with all of my applications and even the examples that came with the API.
The fun thing is: All these programs worked for me when using my old computer with "Windows XP x86" but they don’t work on my new computer with "Windows 7 x64".
Does anybody know whats wrong there?
- likeaguest asked 4 years ago
If you get a file error at the system_create level – is it possible the fmod dll is missing? Not sure about x64 C# but I would assume it was ok with the 32bit version of fmod, try making it use the 64bit version instead.
There is this
public const string dll = "fmodex64";
public const string dll = "fmodex";
Is your WIN64 preprocessor symbol defined?
Well it looks like this :/
So how can I get a x64 version of the fmod dll? Should I just rename the "fmodex.dll"?
Rebuilding the C# wrapper didn’t helped either…
EDIT: Okay I just tried to use the x64 build of fmodex, still get this stupid error :/
Just because your OS is 64 bit doesnt mean your apps are automatically 64bit, they are going to be 32bit by default. The #if WIN64 proves that for me thanks, so your app is 32bit and is looking for the standard fmodex.dll. You can forget about the 64bit version of FMOD for now.
Not that I can help so far with this particular issue, it was just good to make sure that wasnt the issue.
It sounds like your dll is missing or bad. Have you tried reinstalling fmod and seeing if your dll is different or not. We’ll look into it here and see if this has come up before. Its the weekend so we’ll check for you on monday.
Please login first to submit.