Socket problems with MT3 API
|
|||
|
Hi all,
I am writing an automatic trading system on a website using Microsoft Visual Studio, C#, ASP.NET, MT3APIDotNet.DLL and mtapi.DLL. With an InterbankFX demo account, it works fine when using my local host (on PC). Sometimes, I saw a problem "Invalid Socket Handle" when trying to run this application. It happens sometimes when I did not cleanup sockets (using WSACleanup function) and not disposing API objects, at the end or during debugging this application. The solution for this moment is that I needed to restart my PC, to get all sockets cleaned up, okay. But, it is not the best solution for when I moved this application to a commercial server. So, there are still some sockets left hanging, when testing this application there, I still get an exception "Invalid Socket Handle". I cannot ask the provider to restart the whole server to get sockets cleaned up?? So I need to find out how I can get sockets cleaned up. Can anyone help me to get this resolved? Any experience with sockets? Thanks for advance, Jeff |
![]() |
|
|||
|
Quote:
Code:
Jeff |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MT3 API for VB.net and C# | scorpion | Tools / Utilities | 55 | 09-02-2006 06:02 PM |
| Correct the BackTest on MT3 (MetaTrader) the robber platforms | ssa | MetaTrader and ZeroCode | 5 | 08-19-2005 09:22 PM |
| mt4 api | sccz97 | MetaTrader and ZeroCode | 24 | 07-30-2005 12:05 PM |
All times are GMT. The time now is 10:48 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now










Linear Mode

