Getting error while creating new MWNumericArray in C#
显示 更早的评论
Hi,
Code:
MatLabWrapper.cs
private MWArray Lambda = null;
public MatLabWrapper()
{
Lambda = CreateMatLabDoubleArray(new[] { .97 });
}
public MWArray CreateMatLabDoubleArray(params double[] prices)
{
return new MWNumericArray(prices.Length, 1, prices);
}
TradeManager.cs
MatLabWrapper matLabWrapper = new MatLabWrapper();
This fails only when we call ONETICK query to get data, if we don't call ONETICK this works fine.
Problem: Everything works fine for first time but when it's called again then it hangs and stop responding. Kindly advice what could be the issue and how to fix it.
Thanks
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 .NET Methods in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!