DLL freezing or locking up

 

I have a DLL that exchanges data between 2 instances of MT4. It works for about 5 mins, then the DLL locks up; i think. All I know is the data is "frozen" in the MT4 terminals.

I'm attaching the experts (1 for each terminal) the cpp and def files. The DLL is compiled in VS2010. all running on Win 7 32 bit (including the MT4 platforms).

Any help would be appreciated.

Files:
eurusd.zip  150 kb
 

Correction. Data gets passed on first call, then it dies.

 
nondisclosure:
All I know is the data is "frozen" in the MT4 terminals.
Of course they are. Nothing changes (Ask, Bid) unless you return from start() or call RefreshRates() after sleeping.