OpenTrading/OTMql4Zmq

mql4zmq.dll/uZmqReceive Access Violation

Opened this issue · 4 comments

oafx commented

Not quite sure why it works or what i exactly did but increasing the iRequestPtr size from 1 to 32 (line 80 ZmqSendReceive.mq4) seems to fix the access violation and therefore to enable receiving messages via zmq_recv.

If anybody knows why this is working or has an explaination for me i'd love to know what i'm doing here, hehe.

I've built the mql4zmq.dll against together with the latest version of zmq+libsodium with the trivial changes needed to make it run with zmq>2.

cheers

"Not quite sure why it works" is a concept I understand with regards to the Windows compiling.
I'm tied up for the next couple of weeks, and then can spend some time on this.
But in the mean time, I need much more detailed information about the compile process to help.
Exactly which version of which compiler did you compile exactly which version of zmq with exactly which version of libsodium, and exactly how much of the MqlZmq have you tried out with the results when you say it runs. The details help me reproduce and test the compile.

The best thing to do is download a fresh copy from this project and put it in one directory,
and if you have a Unixish diff program, run a diff -c -C 5 -r of the two directories (clean of binaries), and attach the diff file to a message here.

Thabks for helping...

Can you post diffs of the "trivial changes needed to make it run with zmq>2."
or make us a pull request? I have some time to work on this this week and would
like to get it up to the current version of zeromq.

Can you post diffs of the "trivial changes needed to make it run with zmq>2."
or make us a pull request? I have some time to work on this this week and would
like to get it up to the current version of zeromq.

oafx commented

Hi, sorry for replying this late, i am quite busy recently. I'll try to post what you've requested as soon as i get home today.