Originally posted by: alex.filipovik
In my model I have:
range myRange = 1..10;
float myArr
myRange = ...;
In my code I have:
public class MyDataHandler : CustomOplDataSource
{
public MyDataSource(OplFactory oplFactory) : base(oplFactory)
{
}
public override void CustomRead()
{
DataHandler.StartElement("myArr");
DataHanlder.StartIndexedArray();
DataHandler.SetItemIntIndex(1);
DataHandler.SetIntItem(1);
...
DataHandler.EndIndexedArray();
DataHandler.EndElement();
}
}
An exception "no refcounter: calling on bad env" is thrown on DataHandler.StartElement("myArr") call.
Please tell me what's wrong with my code?
Thank you,
Alex
#DecisionOptimization#OPLusingCPOptimizer