Download MetaTrader 5

(bug) Unmanaged C# Export causing MT5 crash

To add comments, please log in or register
Deposit to your account via WebMoney
Travis Silvers
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();
int OnInit()

 According to the documentation that shouldn't happen.

(Running 64-bit terminal and external dll.) 

To add comments, please log in or register