Discussion

1
Replies
15
Views
Close popover
Richard Bien (RichardB3397)
Nationwide Building Society
Technical Analyst Developer
Nationwide Building Society
GB
RichardB3397 Member since 2017 5 posts
Nationwide Building Society
Posted: July 22, 2020
Last activity: July 22, 2020

ThreadStatException

Automation of application using C# script results in error when attempting to clear clipboard using the following code line

My.Computer.Clipboard.Clear()

The same code is not erroring for other .net or C# applications

Attempted to resolve by including <STAThread> line before calling funtion

Pega Robotic Desktop Automation 19.1 Financial Services Robotics System Architect