First use of Winforms' Clipboard methods results in an ExternalException
Was debugging a Winforms app bug where the following code would fail but only if it is the first time of using any
When used for the first time since the app launch, it throws the following exception:
Interestingly enough, if you just add a random
Could someone help me to figure out what might be causing it? Thanks in advance!
Clipboard method.When used for the first time since the app launch, it throws the following exception:
System.Runtime.InteropServices.ExternalException (0x800401D0): Requested Clipboard operation did not succeedInterestingly enough, if you just add a random
Clipboard method BEFORE the SetDataObject call, everything works fine without any errorsCould someone help me to figure out what might be causing it? Thanks in advance!