0
0

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)
{
bStop=false;
ProgressBar1->Position=0;
if(!FileExists(FName)) return;
lCurrentFile->Caption=FName;
FMOD_RESULT Result;
bFMODOK=false;
unsigned int Length,Position;
if((Result=FMOD_System_Create(&System))==FMOD_OK)

……

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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.