MT4 v.226 crashes while running a few EA's

 

Hi

I've got a strange problem with my MT4. I was running single instance of terminal.exe with 20 EAs working (of two kinds) - everything was running smoothly without any crashes. I added another 3 EAs (still the same version of the one previously utilized) and since then I started to experience crashes each day. Despite the fact that both terminals seem to excess neither RAM nor proccessor capability of the VPS, I decided to install another instance of MT4 and move some of the EAs over there. The problem still occurs (on that "new" terminal). Below I enclose an error message - can somebody elaborate on this and help me to point out the reason for crashes?

I would be grateful for any quick help.

Best regards

Tomasz

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

There has been a critical error
Time : 2010.05.31 10:56
Program : Client Terminal
Version : 4.00 (build: 226, 24 Mar 2009)
OS : Windows 2003 Server 5.2 Service Pack 2 (Build 3790)
Processors : 4 x X86 (level 6)
Memory : 1228800/1037408 kb
Exception : C0000005
Address : 0051E004
Access Type : read
Access Addr : 78CF4E38

Registers : EAX=78CF4E38 CS=0023 EIP=0051E004 EFLGS=00010206
: EBX=00000000 SS=002b ESP=002CC538 EBP=002CC554
: ECX=050A0020 DS=002b ESI=78CF4E38 FS=0053
: EDX=73C54E18 ES=002b EDI=04FF9A08 GS=002b

Stack Trace : 00549AAC FFFFFFFE 00000000 00000000
: 00000000 00000000 00000000 00000000
: 00000000 00000000 00000000 00000000
: 00000000 00000000 00000000 00000000

Modules :
1 : 00400000 004BB000 c:\program files (x86)\alpari uk_mt4_2\terminal.exe
2 : 00980000 0009B000 c:\windows\syswow64\advapi32.dll
3 : 04220000 0008B000 c:\windows\syswow64\oleaut32.dll
4 : 042B0000 00052000 c:\windows\syswow64\shlwapi.dll
5 : 04750000 00017000 c:\windows\system32\odbcint.dll
6 : 053A0000 002C5000 c:\windows\system32\xpsp2res.dll
7 : 48890000 0003D000 c:\windows\system32\odbc32.dll
8 : 5F270000 0005A000 c:\windows\system32\hnetcfg.dll
9 : 71AE0000 00008000 c:\windows\system32\wshtcpip.dll
10 : 71BB0000 00009000 c:\windows\system32\wsock32.dll
11 : 71BF0000 00008000 c:\windows\system32\ws2help.dll
12 : 71C00000 00017000 c:\windows\system32\ws2_32.dll
13 : 73EB0000 00121000 c:\windows\system32\mfc42.dll
14 : 76190000 00012000 c:\windows\syswow64\msasn1.dll
15 : 761B0000 00093000 c:\windows\syswow64\crypt32.dll
16 : 76280000 00005000 c:\windows\system32\msimg32.dll
17 : 762B0000 00049000 c:\windows\syswow64\comdlg32.dll
18 : 76AA0000 0002D000 c:\windows\system32\winmm.dll
19 : 77210000 000AB000 c:\windows\syswow64\wininet.dll
20 : 77670000 00139000 c:\windows\syswow64\ole32.dll
21 : 77BA0000 0005A000 c:\windows\syswow64\msvcrt.dll
22 : 7C8D0000 007FE000 c:\windows\syswow64\shell32.dll
23 : 7D4C0000 00130000 c:\windows\syswow64\kernel32.dll
24 : 7D600000 000F0000 c:\windows\system32\ntdll.dll
25 : 7D800000 00090000 c:\windows\syswow64\gdi32.dll
26 : 7D8D0000 00050000 c:\windows\syswow64\secur32.dll
27 : 7D930000 000D0000 c:\windows\syswow64\user32.dll
28 : 7DA20000 000E0000 c:\windows\syswow64\rpcrt4.dll
29 : 7DB30000 00080000 c:\windows\system32\mswsock.dll
30 : 7DBD0000 00103000 c:\windows\winsxs\wow64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.3790.3959_x-ww_5fa17f4e\comctl32.dll
31 : 7DF50000 00070000 c:\windows\system32\uxtheme.dll

Call stack :

 

tomfid:

I've got a strange problem with my MT4. I was running single instance of terminal.exe with 20 EAs working (of two kinds) - everything was running smoothly without any crashes. I added another 3 EAs (still the same version of the one previously utilized) and since then I started to experience crashes each day. Despite the fact that both terminals seem to excess neither RAM nor proccessor capability of the VPS, I decided to install another instance of MT4 and move some of the EAs over there. The problem still occurs (on that "new" terminal). Below I enclose an error message - can somebody elaborate on this and help me to point out the reason for crashes?

These EA's use DLL's? If so, that should be the focus of your investigation.
 
gordon:
These EA's use DLL's? If so, that should be the focus of your investigation.

No, there're no DLL's. Do you think that decreasing the "max bars in chart" and "max bars in history" would solve the problem in such circumstances?
 
tomfid:

No, there're no DLL's. Do you think that decreasing the "max bars in chart" and "max bars in history" would solve the problem in such circumstances?

Do u get any memory errors? Do u get any errors at all in the journal/expert logs?

Just how much memory is the Terminal using just before crashing? (use Task Manager...)

 

The point is that there are no memory errors and if I watch Task Manager MT4 consumes little memory (that is both terminals use from 25 to 50 MB of RAM - just up to 5% of available memory)...

 
tomfid:

The point is that there are no memory errors and if I watch Task Manager MT4 consumes little memory (that is both terminals use from 25 to 50 MB of RAM - just up to 5% of available memory)...

I'd have a look at the discussion in https://www.mql5.com/en/forum/126386, in case your problem is related to that.
 

Gordon and jjc - thank you for your responses. I've studied the tread you linked, jjc, and there are some suggestions that may help in dealing with the problem. I am going to recompile my EA's during the weekend. Until now I've reinstalled the second instance of MT4 and decreased the "max bars in history" and "max bars on chart", which has resulted in lack of crashes for 2 days. I will watch what will happen after these measurements taken.

 

same problem, see other post with solution from broker:


https://forum.mql4.com/32582

 

I've been having the same problem and have been trouble shooting it for a while now with only little success.

But I think I might know what it is: I started doing 'full, automated and complete installations' as opposed to only installing one and then just 'cloning it' by copying it all to a new folder and opening up another account with it.

Likely we will have to fully 'uninstall' all of them with the *.exe for this. Then do numerous thorough registry cleaning: I have 3 different programs for this and 2 of them work in safety mode as well. I have used these for years and they have NEVER messed up my computer. They have always made it run better. Then with 'RegEdit' go into the registry and scan for EVERY instance of 'MetatQuotes" and delete all instances of keys that you find this way. Then re-install into a completely new, empty folder called something other than what the original folder was . Probably a very good idea to make a backup copy of the entire registry first.

Note I have not done this yet myself. I did uninstall all of them and used the utilities to clean the registry very well. But I didn't search for and delete all instances of "MetaQuotes" and then made the same mistake of 'installing' all on this again. I'm still getting crashes with build 225, Though less often. But then I don't have a dozen instance of MT4 install that I did before that overloads it badly and it still ran fine most of that time except for the occasional freeze up because I had overloaded it so heavily. It ran whit no problems for close to a year when I just copied and cleaned them.

 
How about internet security softwares such norton or kaspersky or others? i use kaspersky, i not sure if that caused it. now i have new clean installed mt4 and still running has been 2 days (without EA) hope there will be no crash this time :(
 

I had a similar problem before when trying to run EA on Windows xp that was compiled on windows Vista.

I noticed you are running windows 2003 try it on other opearting system like xp or vista.

Reason: