
I noticed a strange behaviour this week when testing a scrip that performs a number of dpGetPeriod() commands to do some calculations. On certain DPE's the script will stop on the dpGetPeriod() command as if it was waiting for the data to be retrieved from the Oracle database but the problem is that it never moves on.
At first I thought that maybe there is no data for the period in question so I've used a dpGet ":_start..original" command beforehand but it hasn't helped. The strangest thing is that I can see the manager executing the script starting to consume RAM uncontrollably when it does this
Any thoughts before I send this to support? below is a code snippet that kind of explains what I am trying to do... the function works fine for 3800 identical DPE's and will only fail on 1 or 2.
We are using 3.10 SP2
Code: Select all
int iRet;
time tArchiveStart;
string sDp,
time tStartTime,
time tEndTime,
dyn_float dfValues,
dyn_time dtTimeStamps
iRet = dpGet(sDp + ":_start.._original", tArchiveStart);
if(tStartTime > tArchiveStart)
{
iRet = dpGetPeriod(tStartTime,
tEndTime,
0,
sDp,
dfValues,
dtTimeStamps);
}