I got an error dialog in Windows that I wanted to share. I hit CTRL-C on it, and got a bing sound effect (probably mean to indicate an error copying the dialog, for some reason.) I tried anyway to paste it as text, and the system acted as if the clipboard was empty. On a whim, I tried pasting it into the most recent version of Paint.NET (4.0.16.) I was expecting it to not be an image either, and for nothing bad to come of the effort. I was instead rewarded with this traceback:
System.OutOfMemoryException: Insufficient memory to continue the execution of the program. ---> System.AggregateException: One or more errors occurred. ---> System.OutOfMemoryException: Out of memory.
at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at PaintDotNet.ClipboardUtil.FileDropClipboardRetriever.TryGetMaskedSurface(IWin32Window window, IPdnDataObject clipData) in D:\src\pdn\src\PaintDotNet\ClipboardUtil.cs:line 437
at PaintDotNet.ClipboardUtil.GetClipboardImageImpl(IWin32Window currentWindow, IPdnDataObject clipData) in D:\src\pdn\src\PaintDotNet\ClipboardUtil.cs:line 126
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at PaintDotNet.ClipboardUtil.GetClipboardImageImpl(IWin32Window currentWindow, IPdnDataObject clipData) in D:\src\pdn\src\PaintDotNet\ClipboardUtil.cs:line 176
at PaintDotNet.ClipboardUtil.TryGetClipboardImage(IWin32Window currentWindow, IPdnDataObject clipData) in D:\src\pdn\src\PaintDotNet\ClipboardUtil.cs:line 99
at PaintDotNet.Actions.PasteInToNewImageAction.PerformAction(AppWorkspace appWorkspace) in D:\src\pdn\src\PaintDotNet\Actions\PasteInToNewImageAction.cs:line 46
I can assure you my machine is NOT out of memory. It has 64G of RAM which TaskManager reports as 30% consumed. It's probably some missing code in the handler for the paste to note that I what I am attempting to paste is not an actual image.