Hi all;
I try to make a plugin to count from 0 to 10000 in a infinite loop.
it works in a console application…
but makes vvvv crash…
would you have any advice ? (I know that regulars nodes would do the job, but really want to learn :-)
namespace counter_vvvv
{
[PluginInfo(Name = "counter_counter", Category = "premier_pas", AutoEvaluate = true)]
public class Class1 : IPluginEvaluate
{
[Output("COUNTER_COUNTER")]
ISpread<int> FPOutCounter;
public void Evaluate(int SpreadMax)
{
FPOutCounter.SliceCount = 1;
for (int i = 0; i < 10000; i++)
{
FPOutCounter[0] = i;
if (i >9999)
{ i = 0; }
}
}
}
}