Forum Discussion
NK00010010
10 years agoOccasional Contributor
Code example:
PropArray = ["Name", "Visible"]
PropValue = ["VCLObject(\"TB\")", true]
while(!aqObject.IsSupported(obj, "FindAllChildren")){}
object = obj.FindAllChildren(PropArray, PropValue, 5, true); //freeze is here
Childs count is from 10 to 100.
This is not VM related issue - I've got freezes also at my desktop 8Gb RAM CoreI5
mes6073
10 years agoContributor
Seems like possibly the search criteria is too generic and needs to be more discriminating:
// example of additional properties - if applicable maybe add .NET properties
PropArray = ["Name", "WndClass", "Enabled", "Visible"]
// ** update 'ClassName' with applicable value
PropValue = ["VCLObject(\"TB\")", "ClassName", true, true]
- NK0001001010 years agoOccasional Contributor
Thank you, mes6073, but my search criteria is uniq; anyway there is no difference how much properties of object I specify for search - 2.. or 6.. result is the same...
- Marsha_R10 years ago
Champion Level 3
Can you post a screenshot of the properties for the object that you think the search should find?