Access violation read to...

Alain Verleyen  
GreenKobra:
I am trying to connect to mysql from an expert advisor using the libmysql.dll library but I get a strange error 'Access violation read to 0x000003B0'.Can anyone tell me how to solve the problem?

How are you doing it ?

It's not a strange error, it means you are not calling the library functions correctly.

Steven Gikonyo Gathecha  
Alain Verleyen:

How are you doing it ?

It's not a strange error, it means you are not calling the library functions correctly.

Hi, I am running an EA on 3 different computers on 3 different networks, but only one of the computers is returning this error, accompanied by '2006', is this normal? and what could be the issue?

PS. sorry to interrupt, the issue is similar.

Alain Verleyen  
SteveG_101:

Hi, I am running an EA on 3 different computers on 3 different networks, but only one of the computers is returning this error, accompanied by '2006', is this normal? and what could be the issue?

PS. sorry to interrupt, the issue is similar.

I already answered in a generic way. The libmysql.dll you are using is probably a different version on the computer where you got the error.

If you don't answer my previous question it's impossible to help more.

Steven Gikonyo Gathecha  
Alain Verleyen:

How are you doing it ?

It's not a strange error, it means you are not calling the library functions correctly.

I'm calling the libmysql.dll like this
#import "libmysql.dll"
Reason: