Forum Discussion

Dewayne_Pinion's avatar
Dewayne_Pinion
Contributor
10 years ago
Solved

Object browser not refreshing, form is never found while waiting

All, I have a script I am trying to create that is checking different parts of the software to see if things are loaded or not. In this case, I am checking for the main form within our application, ...
  • Ryan_Moran's avatar
    10 years ago

    Does this produce different results for you?

    while (!Aliases.WaitAliasChild("frmMainVsd", 0).Exists)
    {
    /*
      switched to use WaitAliasChild
      we want the .Exists check to timeout instantly then 
      refresh the sys object
      previously specifying -1 would wait the entire time specified by 
      the Auto-wait timeout project setting
    */
    Sys.Refresh();
    }