krisn / lws2mql

Websocket client library for MetaTrader Platform. Supports MQL4 and MQL5.
MIT License
113 stars 76 forks source link

Cannot load lws2mql.dll #3

Open johna1203 opened 5 years ago

johna1203 commented 5 years ago

I tried to use the dll you created but it did not work. I'm using MT4 on win64, does it support?

image

Thanks,

krisn commented 5 years ago

Haven't worked out the 64 bit support yet. Needs recompiling etc.

johna1203 commented 5 years ago

Thanks for the answer.

I figured I need to compile for 64 bit, but I'm having a hard time compiling libwebsocket, it's not working. Could you add 64bit dlls to the repository? or pass me some reference to compile libwebsocket? what is your environment to compiling the dlls? Are you using minGW?

Thanks

johna1203 commented 5 years ago

I created a 64bit dll just to test and I received this error!

pasted_image_1_31_31_h__23_35

so, I think the reason I can not load lws2mql.dll is another problem. but I still do not know why I can not read lws2mql.dll...

johna1203 commented 5 years ago

the reason I was not able to load the dll was the configuration of "Data Execution Prevention".

I disabled with these steps.

  1. Open a Command Prompt using Run as Administrator or disable UAC.
  2. Execute the following command: bcdedit.exe /set nx AlwaysOff
  3. Restart the Windows system.

now I'm getting another error when I run the EA with the sample code. (Access violation read to 0x68736188 ) image

It's a hard day today! :/

brenoperucchi commented 3 years ago

Hi @johna1203 Did you get a solution for this problem in this project or with another project?