I have try to make a windows service which use Eviews to make calculation.
My code works very well, but if I launch many client at the same time (using this windows service), I have this message:
‘EViews is not licensed to allow more than one instance to run as a windows service. Please contact QMS to obtain authorization’
My question, is : is-there a particular license to run more than one instance in a windows service ? (I’m a bit confused, I thought that it was impossible, but the message seems to say ‘it’s possible with certain license’ ('Please contact QMS to obtain authorization'))
My version of EViews 7.1 (with patch of 11 novembre 2010)
Here my code:
Code: Select all
float[] data = {1, 2, 3, 4, 5};
object[,] eviewsResult = null;
EViews.Manager mgr = null;
EViews.Application app = null;
mgr = new EViews.Manager();
app = mgr.GetApplication(EViews.CreateType.ExistingOrNew);
app.Hide();
app.Run("create u " + data.Length);
app.PutSeries("x", data);
app.Run("series y=@mean(x)");
eviewsResult = (object[,])app.Get(outputSerieName);
app.Run("exit");
app = null;
mgr = null;
GC.Collect();