Wake the MT from external DLL

 

Hello,

I'm working on MT 4 with external DLL and whenever I want to call the expert (for example in order to close order) I'm calling to the expert throw PostMessage.

Normally this works fine, but sometimes when i'm trying to do PostMessage the agent is not responding, probably because the window is busy \ the EA is in the middle of the start function.

Is there other solution in order to send message to the EA throw external DLL?

Thanks,

Roy

Reason: