kingsmartbear
15 years agoContributor
How do I know if an object was destroyed for some reason?
Hi All:
I got a problem with Object.Find method when I was searching an object within object hierarchy in TC 8.5.
When I used object browser to inspect what was problem for this situation I found the object I was using for find method was destroyed and it still
there with a lot of error messages for most attributes.
How do I know the object is destroyed before I use it?
Sample code in below and screenshot in attached file:
If isobject(object) then
Set returnObject= Object.find(propertyArray, valueArray, depthvalue)
Else
Log.Message "object problem."
End if
Thanks,
Allan
I got a problem with Object.Find method when I was searching an object within object hierarchy in TC 8.5.
When I used object browser to inspect what was problem for this situation I found the object I was using for find method was destroyed and it still
there with a lot of error messages for most attributes.
How do I know the object is destroyed before I use it?
Sample code in below and screenshot in attached file:
If isobject(object) then
Set returnObject= Object.find(propertyArray, valueArray, depthvalue)
Else
Log.Message "object problem."
End if
Thanks,
Allan