Exception on starting cBot

Created at 17 Dec 2022, 12:34
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
EP

eprofservices

Joined 23.01.2017

Exception on starting cBot
17 Dec 2022, 12:34


The new version of cTrader/Automate causes exception when cBot is starting having a code in OnStart method that launches and attaches a debugger to the process:

 

protected override void OnStart()
{
        base.OnStart();
        var debugger = System.Diagnostics.Debugger.Launch(); // <- causes an exception 
        if (debugger is false) 
        {
            Print("ERROR in OnStart: debugger launch failed");
        }
}

 


@eprofservices
Replies

PanagiotisChar
18 Dec 2022, 22:05

Hi there,

It's not an exception, it's the debugger being launched and it breaks the execution.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar