Download MetaTrader 5
To add comments, please log in or register
Do you know that MQL5 is an object-oriented language?
Travis Silvers
162
Travis Silvers 2011.08.01 22:35 

I have been working with Unmanaged C# Exported code and MT5 and it appears that an unhandled exception crashes the entire terminal.

In C#

[DllExport("Bug1UnhandledErrorCrashesMetaTrader", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
static void Bug1UnhandledErrorCrashesMetaTrader()
{
    throw new NotImplementedException();
}

 In an Expert:

#import "MetaTraderBugExamples.dll"
   void Bug1UnhandledErrorCrashesMetaTrader();
#import
int OnInit()
  {
   Bug1UnhandledErrorCrashesMetaTrader();
  }

 According to the documentation that shouldn't happen.

(Running 64-bit terminal and external dll.) 

/
To add comments, please log in or register