array out of range

 

Hello


I have an EA which sends ticks in real time to a publishing socket server.


This has run fine for ~6 months, but suddenly I am getting 'array ot of range 'ZeroMQ.mq4' (194,16). Please see referenced section of code below:


/* 02-08-2019 10:41 CEST - HEARTBEAT */
   if(compArray[0] == "HEARTBEAT")
      InformPullClient(pSocket, "{'_action': 'heartbeat', '_response': 'loud and clear!'}");

Does anyone have any idea why this is?

 
willmbanfield: Does anyone have any idea why this is?
  1. Because compArray[] has no size.
  2. Do you really expect an answer? We can't see your broken code — we can only guess. There are no mind readers here and our crystal balls are cracked.
Reason: