PDA

View Full Version : Stack damaged, check DLL function call in 'MyExpert.mq4 "



CharlesRon
01-09-2016,
I am trying to call a function from dll written in C# named
bool CyboLoadBuffer(double &buffer1[], int size, double &buffer2[], double &buffer3[], string symbol, double a, double b, double c, double d, double e, double f, double g );
from my expert it shows error Stack damaged, check DLL function call in 'MyExpert.mq4 "
what I noticed is when I remove the parameter double &buffer3[] from function in mq4 and dll, it works fine :)
but I try adding one more parameter double &buffer3[], it shows error :(
does any one encounter the same issue ?
please help !

ClaytonOa
01-10-2016,
Long time ago this, but just had the same thing - the cause in my case was that the data type of one of the parameters was not was what was expected by the DLL function.
My DLL function was expecting an int parameter in epoch time format, and I thought since the MQL4 datetime type was also 4 bytes, I could pass it in directly, but apparently not.

CurtisSa
01-10-2016,
hello,
datetime in MQL is 8 bytes long :)

Darleneoa
01-11-2016,
thanks for the videos ... they are really helpful

admin
01-13-2016,
SO much information.

How can i ever manage all this by my self!

Either way i am learning a lot about these bots.

I wonder if you can apply this bot to BTC/USD or similar?