Access Violation write to ...

 
18:21:07 Access violation write to 0x00C510DB in 'E:\MT4\MQL4\Scripts\SR.ex4'

When I run either a script or EA this error is generated. either on the vps or local machine.

I have installed on drive E away from C:


Authenticated users has full control on drive E and subfolders!

I am on build 625.

Please how do I get rid of this error?
 

Seems your are not alone.

Do you have the source code ?

 
samoye:


Please how do I get rid of this error?

my guess is it's an import DLL causing the problem
 
qjol:

my guess is it's an import DLL causing the problem


The function identified by the breakpoint calls a custom indicator from inside OrderSelect() which I suspect MQL does not like. I had to reorder my logic and the problem has disappeared. Thanks

Reason: