Pseudo Legacy Mode?


opusensemble since: 29 Jul 2021;

  12 Mar 2023, 00:23
Pseudo Legacy Mode?

Since the migration to .NET 6.0, the Legacy mode .NET 4. x is available but doesn't seem to be a true Legacy mode because previously perfectly running code, now when run in Legacy mode displays the following warning message:  

"Illegal call out of MainThread is detected. Use BeginInvokeOnMainThread". 

Can Spotware correct that in a future release?  

I have another issue with a hot that gets symbol's information and history data, which was working perfectly before the migration to .NET 6.0 and now doesn't run in Legacy mode either, issuing the error:

  • CBot instance [HLDIFF, EURUSD, h1] crashed with error "Crashed in MarketData.GetBarsAsync callback with NullReferenceException: Object reference not set to an instance of an object"

So the bottom line is most of the previous code I had before this update is now having warning messages or not working in Legacy Mode.

Could this be reviewed more carefully by Spotware to ensure true compatibility? 

Spotware's avatar

Spotware since: 23 Sep 2013;

  13 Mar 2023, 08:33

Dear trader,

Can you please post this in the correct section of the forum and provide us with the source code of the cBot and the exact steps we need to follow to reproduce this problem?

Best regards,

cTrader Team

TRADERS FIRSTâ„¢ Vote for your favorite features: