AggregateException: One or more errors occurred.

Created at 21 Dec 2017, 11:55
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!
GU

gunning.ernie

Joined 18.12.2017

AggregateException: One or more errors occurred.
21 Dec 2017, 11:55


Hi Guys,

I'm new to cBots. I have a problem while debugging. In attached picture you can see that I reach the green line 146 and that is were everything stops with no error. I have a break point in "trade.CheckOpenPostion" method (not shown). the trade object was a workaround try to see if my issue was ralted to me using a interface (it was openlogic.CheckOpenPostion) but still the break point in CheckOpenPostion is not being hit. After hitting continue button (debugg mode) with VS 2 to3 times I get "AggregateException: One or more errors occurred." in cAlgo, see belwo picture. I have a feeling the issue is related to me executing the code in parallel?? 

HELP!

 


@gunning.ernie
Replies

PanagiotisCharalampous
21 Dec 2017, 12:04

Hi gunning.ernie,

Indeed the message is related with the parallel loop. Have a look at this article, it might be helpful.

Best Regards,

Panagiotis


@PanagiotisCharalampous