My problem isn't with the information in the article. I have a C# dll working just fine.
I have simply found some problems with how MT5 interacts with it that I have had to work around. I suspect these problems are MT5 issues and not C# issues so I thought I would see if anyone else has had them, can confirm etc.
Could you write to Servicedesk?
Get in touch with developers using Service Desk!
- www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I suspect this is a threading issue of some sort.
When using an Unmanaged C# Exported assembly and in that C# we access a static variable, over a few calls to OnTick I get an invalid pointer exception in Indicators.mqh line 302.
In C#:
In an MQL Expert:
The only way I have found around this is to avoid static variable use in the external assembly and instead use a file.