Forum Discussion

AndrewCast's avatar
AndrewCast
Contributor
7 years ago

Unable to add the image. Cannot save an empty image

I've been using this code below to compare regions before and after an action:   Regions.AddPicture(Sys.Desktop.ActiveWindow(), "preCommand") #Does some stuff postCommand = Sys.Desktop.ActiveWi...
  • Marsha_R's avatar
    7 years ago

    Are you saying that you can't run it at all now?  Or can you still start the test over and it will fail after some number of loops?

     

    If it won't run at all, I would reboot the machine this is running on and before you start TestComplete and your app under test, make sure there are as few other apps running as possible.

     

    If it will run a little, put a break point at the top of the loop and run it in debug.  Slowing it down this way may help you see what's going off.