Here's the situation,
I have a table with say 250,000+ records in it. I scan through these records and generate 35 guids per record for another table. Infrequently I get an error say something about an 'Unknow COM status'. I've installed SP5 and that didn't fix the problem.
The code I use to generate the guid is pretty straight forward and I probably use (no exagerating) 2 million times before I get to this part in my code, without problems.
Here's my function:
Can anyone shed any light on this??
I have a table with say 250,000+ records in it. I scan through these records and generate 35 guids per record for another table. Infrequently I get an error say something about an 'Unknow COM status'. I've installed SP5 and that didn't fix the problem.
The code I use to generate the guid is pretty straight forward and I probably use (no exagerating) 2 million times before I get to this part in my code, without problems.
Here's my function:
Code:
oGuid=CREATEOBJECT("scriptlet.typelib")
cGuid=SUBSTR(oGuid.Guid,2,34)
RETURN (SUBSTR(cGuid,1,8)+SUBSTR(cGuid,10,4)+SUBSTR(cGuid,15,4)+SUBSTR(cGuid,20,4)+SUBSTR(cGuid,25,8))
Can anyone shed any light on this??