Login Page - Create Account

Support Board


Date/Time: Sat, 04 Jan 2025 07:51:42 +0000



Post From: SubgraphRef - CPU exception

[2016-05-20 00:32:30]
User754985 - Posts: 109
Why would the following piece of code generate a CPU exception?

........
SCSubgraphRef CurrentPosition   = sc.Subgraph[8]
.............
sc.Autoloop=1;
...............
................
int Result=0;

Result=sc.BuyOrder(NewOrder);

if (Result>0)
{
CurrentPosition[sc.Index]+=Result;
.....
....
}

And if CurrentPosition is defined as a Persistent Variable - all works fine..