{"action":"created","issue":{"url":"https://api.github.com/repos/OpenTrading/OTMql4Zmq/issues/1","labels_url":"https://api.github.com/repos/OpenTrading/OTMql4Zmq/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/OpenTrading/OTMql4Zmq/issues/1/comments","events_url":"https://api.github.com/repos/OpenTrading/OTMql4Zmq/issues/1/events","html_url":"https://github.com/OpenTrading/OTMql4Zmq/issues/1","id":65975531,"number":1,"title":"Garbled Message published from OTMql4Zmg","user":{"login":"OpenTrading","id":7159864,"avatar_url":"https://avatars.githubusercontent.com/u/7159864?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenTrading","html_url":"https://github.com/OpenTrading","followers_url":"https://api.github.com/users/OpenTrading/followers","following_url":"https://api.github.com/users/OpenTrading/following{/other_user}","gists_url":"https://api.github.com/users/OpenTrading/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenTrading/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenTrading/subscriptions","organizations_url":"https://api.github.com/users/OpenTrading/orgs","repos_url":"https://api.github.com/users/OpenTrading/repos","events_url":"https://api.github.com/users/OpenTrading/events{/privacy}","received_events_url":"https://api.github.com/users/OpenTrading/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-02T17:41:05Z","updated_at":"2015-06-22T20:24:30Z","closed_at":null,"body":"The first 16 bytes of a message published from OTMql4Zmg are sometimes (not always)\r\ngarbled, including nulls. The rest of the message is fine. The workaround it to pad the\r\nmessage with 16 bytes.\r\n\r\nI checked with wireshark and it is garbled in the transmission.\r\n\r\nI checked in Mt4 and it is going to the dll OK - StringToCharArray is not the culprit.\r\n\r\nPity I can't run metatrader under a debugger..."},"comment":{"url":"https://api.github.com/repos/OpenTrading/OTMql4Zmq/issues/comments/114252486","html_url":"https://github.com/OpenTrading/OTMql4Zmq/issues/1#issuecomment-114252486","issue_url":"https://api.github.com/repos/OpenTrading/OTMql4Zmq/issues/1","id":114252486,"user":{"login":"OpenTrading","id":7159864,"avatar_url":"https://avatars.githubusercontent.com/u/7159864?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenTrading","html_url":"https://github.com/OpenTrading","followers_url":"https://api.github.com/users/OpenTrading/followers","following_url":"https://api.github.com/users/OpenTrading/following{/other_user}","gists_url":"https://api.github.com/users/OpenTrading/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenTrading/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenTrading/subscriptions","organizations_url":"https://api.github.com/users/OpenTrading/orgs","repos_url":"https://api.github.com/users/OpenTrading/repos","events_url":"https://api.github.com/users/OpenTrading/events{/privacy}","received_events_url":"https://api.github.com/users/OpenTrading/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T20:24:30Z","updated_at":"2015-06-22T20:24:30Z","body":"I recompiled the mql4zmq.dll against the libzmq-v100-mt-4_0_4.dll from http://miru.hk/archive/ZeroMQ-4.0.4~miru1.0-x86.exe with MSVC 2010 and put them into src/mql4zmq/pre-compiled.\r\n\r\nMake sure you find the old dlls and renamed them to something like .old, then\r\ncopy  mql4zmq.dll into you Metatrader MQL4/Libraries/OTMql4 directory and\r\n libzmq.dll into your windows system32 or equivalent directory.\r\n\r\nSending from Mt4 works fine now, but receiving by Mt4 doesn't yet: nothing is received.\r\nBut wireshark says that the message is sent by bin/OTZmqPublish.py and\r\nthat there is an ACK back, so we are making progress.\r\n\r\nTest it out and post back your results here."}}