(sysFindObject not always finding "the Object"
Posted: Fri Aug 22, 2008 8:44 pm
I have a simple search for a single object in a system inside a <OnGlobalSystemCreated>, using a station with the attribute "xyz" and using (sysFindObject nil "T:xyz") 4 out of 5 times it finds the object. The object IS being placed 5 out of 5 times. Every time I test I check and it's really there.
What is the reason why sysFindObject would not be able to find an object that is in the system? What can be done about it? I fixed the search by stacking the (sysFindObject code to insure that the object was found EVERY time, but that seems a little bit brutal to me.
Is it vital that an object be used in sysFindObject such as (sysFindObject gSource "T:xyz")?
Nil seems to work fine, and I don't have an object to attach the search to- but there is this little bug with not getting back what is being searched for occasionally.
What is the reason why sysFindObject would not be able to find an object that is in the system? What can be done about it? I fixed the search by stacking the (sysFindObject code to insure that the object was found EVERY time, but that seems a little bit brutal to me.
Is it vital that an object be used in sysFindObject such as (sysFindObject gSource "T:xyz")?
Nil seems to work fine, and I don't have an object to attach the search to- but there is this little bug with not getting back what is being searched for occasionally.