Topic: Fixing Library Server Error -1 in MT4

During testing how FSB Pro trades with MT4, I received MT4-FST Library Server Error -1 reported from the expert adviser.

I was trying to connect expert with ID 110.

http://s7.postimg.org/4nqf78whj/screenshot_33.jpg

Since such error was reported several times from our users, I investigated the reason further.
I made a small tool that shows existing connections:

http://s7.postimg.org/mf21lpbw7/screenshot_34.jpg

After pressing Scan button, it shows the existing connections.

I closed FSB Pro and MT4 and tried again:

http://s7.postimg.org/wdn086lbr/screenshot_35.jpg

We see that there are remaining connections after closing the programs. This is not normal.

I tried to remove the left connections, but without success.
I opened Task Manager and noticed two copies of MT4 running in background !!!!

http://s7.postimg.org/7a5xo6np3/screenshot_36.jpg

I closed these copies of MT4 manually and left over named pipes was cleaned.
Now I connected successfully.

What is the lesson?
Again the problem come from MT.  When there is problem with connections, turn off FSB / FST and MT4 and clean manually remaining processes by using the Task Manager.

Re: Fixing Library Server Error -1 in MT4

Here is the tool:

http://s7.postimg.org/pfiw28n7b/screenshot_37.jpg

Download link: MT4_Connections.exe

If you see unwanted connections, you have to close their holder. If both MT4 and FSB Pro/ FST are closed,  use Task Manager (Ctrl + Shift + Esc) and close the processes by right click on them - End task.

(Requires .NET 4.0)