jerrygordon
Programmer
I'm in the process of tracking down a very odd runtime error. I have a client that has been using a custom software package (built in Paradox 9) for eight years without a hitch. Recently, they've been experiencing difficulties (problem and code below)
The runtime software works when loaded, when the machine is restarted, and when it is cold booted. If they leave the machine on for days, the software works. But, if they shut the machine down on one day and restart it on a subsequent day, they get the following error message:
An error was triggered in the 'copy to array' method on an object of T cursor time.
The error corresponds to a small bit of code that opens a table for program setting information and copies it to an array, but I can't imagine what could be interfering.
Here's the code in question:
var
netArray Array [2] Anytype
tc Tcursor
endVar
self.visible = NOT(self.visible)
if status="0%" then
setMouseShapeFromFile("globe.ani")
status="3%"
play("copy.sdl")
tc.open("Variablenet.db")
tc.copyToArray(netArray)
netError = netArray[2]
if netError = 1 then close() else
status="10%"
play("convert2.sdl")
status="50%"
play("process.sdl")
status="95%"
sleep(1000)
status="100%"
sleep(1000)
close()
endIF
endIF
Reloading the software fixes the problem (until they turn the computer off overnight). If you have any thoughts or experience with this type of error, I would greatly appreciate a second opinion.
Also, on the chance that I'm missing the forest for the trees, please point out the obvious error.
Thanks in advance.