Clowd.Clipboard icon indicating copy to clipboard operation
Clowd.Clipboard copied to clipboard

System.NullReferenceException

Open Seekeer opened this issue 1 year ago • 4 comments

Got code

            if(!string.IsNullOrEmpty(imagePath))
            {
                var bitmap = new Bitmap(imagePath);

                Clowd.Clipboard.ClipboardAvalonia.SetImage(bitmap);

                builder.KeyDown(Keys.Control).SendKeys("v").KeyUp(Keys.Control).Build().Perform();
            }

            Clowd.Clipboard.ClipboardAvalonia.SetText(text);
            builder.KeyDown(Keys.Control).SendKeys("v").KeyUp(Keys.Control).Build().Perform();

It is working at first. But on second or N-th call I got System.NullReferenceException when trying to access Clowd.Clipboard.ClipboardAvalonia

Seekeer avatar May 04 '23 20:05 Seekeer