dingmaotu / mql-zmq

ZMQ binding for the MQL language (both 32bit MT4 and 64bit MT5)
Apache License 2.0
544 stars 298 forks source link

Assertion failed: Bad address (..\..\..\..\src\tcp.cpp:213) #13

Closed rweegenaar closed 6 years ago

rweegenaar commented 6 years ago

Hi dingmaotu, Thanks a bunch for the binding. I'm trying to get it running on Linux (Elementary OS) and I'm using the python template of Darwinex. I manage to get price info into python, however when I try to buy an instrument MT4 and wine (2.22) crash and close. When I look in the PlayOnLinux debugger it gives the error:

Assertion failed: Bad address (........\src\tcp.cpp:213)

I have the feeling it has to do with libzmq.dll, not sure though.

Any thoughts?

dingmaotu commented 6 years ago

Hi, assertion failure is in ZMQ, which seems to be a problem of your wine runtime. Since MT4 is 32bit, make sure you are using 32bit WINE and 32bit DLL. The DLL is compiled on Windows with VC++ 2015. Could you try another WINE version?

dingmaotu commented 6 years ago

Also try to connect with numeric address (instead of localhost, use 127.0.0.1).

rweegenaar commented 6 years ago

I've tried your suggestions. Unfortunately it didn't help, so I'll try my luck by posting in the ZMQ Git. Thanks anyway!