Download MetaTrader 5

dll - ea - hashmap - crash mt4

To add comments, please log in or register
syngabor
16
syngabor  

Hello!

I wrote a EA with dll ( c++ ) 
I used unordered_map collection in dll and it works fine when i used windows console app
but when i used dll in MT4 with EA then MT4 crash :-/

I would like to use hashmap collection in mql4.
I tried hash.mqh but it did not work well therefore i used unordered_map in dll.

Unfortunately, I have no idea what could be wrong

Can you help me?
Sorry, my English is not good. :(

syngabor 

Alain Verleyen
Moderator
35111
Alain Verleyen  
Fix your code.
syngabor
16
syngabor  
Alain Verleyen:
Fix your code.
Ok, I am not receiving an error message, just mt4 crash.
The log files (e.g.: MQL/Logs/..) have nothing
Where to earn the error message or stack trace?
whroeder1
17084
whroeder1  
syngabor: Where to earn the error message or stack trace?
The DLL crashed the terminal. The terminal died. The dead can't speak. There isn't a error message or a stack trace. Fix your broken code.
syngabor
16
syngabor  
whroeder1:
The DLL crashed the terminal. The terminal died. The dead can't speak. There isn't a error message or a stack trace. Fix your broken code.
I mean, but when i used dll with c++ windows console app then it works is fine. :(
Any ideas on how I can HashMap use in MQL4?
I try hash.mqh but It does not work well
sokramm
54
sokramm  
syngabor:
I mean, but when i used dll with c++ windows console app then it works is fine. :(
Any ideas on how I can HashMap use in MQL4?
I try hash.mqh but It does not work well

Using DLLs is over complicating things. Stay within MQL and you will have better luck.

https://www.mql5.com/en/code/11117

Regards

HashMap implementation
HashMap implementation
  • votes: 15
  • 2014.02.11
  • ydrol
  • www.mql5.com
An implementation of a HashMap in MQL4
To add comments, please log in or register