Hi there, I have an application which throws an Access Violation when executing the FMOD_System_Create() function. It says Access Violation in module ‘FMODEX.DLL’ read of address 000000a4.
This compiled and ran under bcb 2007 on Win XP. But fails on bcb 2009 and Vista.
Code as follows:
void TForm1::ConvertFile(AnsiString FName, AnsiString Output)
unsigned int Length,Position;
Last line of code above is where the exception is thrown.
Using Codegear C++ Builder 2009 on Vista 32Bit.
Any help would be appreciated.
PS: The executable works on Vista if compiled on the XP machine.
- dtewksbury asked 9 years ago
The fact that you’re using BCB makes it hard to comment on because its a little used compiler compared to MSVC.
maybe you should try the fmod examples first, they are known to work so you could probably see where you went wrong by comparing the code with yours.
OK Thanks, I will give that a go. It is just strange because it works perfectly in c++ builder on an XP machine.
Actually come to think of it I might change the compiler settings because there is a string width change in the new compiler.
OK, I fixed it
I feel a bit silly though. I copied all of the required files from one development machine to the other (libraries, headers etc), but I hadn’t actually installed FMOD Ex.
Installing it solved the problem. Everything compiled and runs as expected, without the access violation.
I can only assume by the lack of responses that I have asked a stupid question.
I will search further, but can’t seem to find any reference to this issue. I can only assume that it is somehow getting the wrong entry point address into the DLL for that function, but I don’t really know.
Please login first to submit.