Forum

Script crashes MT4: Application Hang/ cross thread deadlock

#include <SymbolsLib.mqh> static int mPeriod[ 8 ]={ PERIOD_M1 , PERIOD_M5 , PERIOD_M15 , PERIOD_M30 , PERIOD_H1 , PERIOD_H4 , PERIOD_D1 , PERIOD_W1 , PERIOD_MN1 }; int nPeriods= 8 ; string DataSource; int tProcessed; int start() { DataSource = AccountServer (); string symbols[ 5000 ]; int nSymbols =

Passing strings to/from DLL

Hi there, i'm trying to pass strings from an external DLL to MT4, with no luck. Every time the EA calls the method, MT4 just crashes. Could someone please point me to a piece of source that exchanges strings with external DLLs or enlighten me by other means? Here's my non-working code: c++