Hello,
I'm building a DLL written in MSVC++ (through Visual Studio Express 2010) and have a problem when the EA is uninitialized.
On DLL unload, MetaTrader terminal loose instantly the connection to broker and I have to stop/start the application to get it work again. Even the login on same account won't work.
Does anybody had had this kind of problem and found a solution or a workaround ?
Here is the DllMain code I'm using, thanks for your help :
If found the DllMain is not in cause, after commenting out exported functions one by one it may be the (improper) use of strcmp in one function (even if it's not used within the EA) which cause disconnect when DLL unloads.
Very strange ... but workarounded with use of string.compare method.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'm building a DLL written in MSVC++ (through Visual Studio Express 2010) and have a problem when the EA is uninitialized.
On DLL unload, MetaTrader terminal loose instantly the connection to broker and I have to stop/start the application to get it work again. Even the login on same account won't work.
Does anybody had had this kind of problem and found a solution or a workaround ?
Here is the DllMain code I'm using, thanks for your help :