Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effort to stabilize Windows related window control issues #1115

Open
mikahanninen opened this issue Oct 16, 2023 · 0 comments
Open

Effort to stabilize Windows related window control issues #1115

mikahanninen opened this issue Oct 16, 2023 · 0 comments

Comments

@mikahanninen
Copy link
Member

Probable cause
Some of the errors are due to timing issues when the underlying Windows COM object is still in the process of getting access to the specific part of the Windows application and the library is trying to access the object before access is ready for use.

Possible fix
Implement a retry mechanism for parts of the libraries when the COM object is likely to cause an exception.

An example error message:
error: (1400, 'SetForegroundWindow', 'Invalid window handle.')

Affected libraries:

  • RPA.*.Applications libraries
  • RPA.Windows library
  • RPA.JavaAccessBridge library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant