Pseudo Legacy Mode?

Created at 12 Mar 2023, 00:16
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!
OP

opusensemble

Joined 29.07.2021

Pseudo Legacy Mode?
12 Mar 2023, 00:16


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? 


@opusensemble
Replies

Spotware
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


@Spotware