Pasting image/png into Lazarus application throws exception lazarus / 39-Graphics ---------------------------------------------------------------------- hakelm · 2018-09-19 20:47 I am trying to paste images into a tpicture with pic.LoadFromClipboardFormat(Clipboard.FindPictureFormatID); jpegs seem to work ok, but I have trouble with mimetype image/png, with ID 119. An exception, 'External: SIGSEGV', is thrown in fpimagebitmap line 61: Result := 'image/' + DefaultFileExt; This should really not be possible since the value of DefaultFileExt is 'png' at this point. Can someone please help me or give me an explanation. I am using Lazarus 1.9.0 running under Ubuntu 16.04 H ---------------------------------------------------------------------- Jurassic Pork · 2018-09-20 02:07 hello, try to use the example project Image Clipboard from here. It uses another way to paste a picture from the clipboard. In attachment a screenshot of this project :  copy an image from gimp and paste the image with the paste button of the project . Ubuntu 16.04   Lazarus 1.8.2 The number displayed at the bottom of the form is the PictureFormatId. From what do you copy your picture ? Friendly, J.P ---------------------------------------------------------------------- hakelm · 2018-10-10 12:57 Thank you. I am sorry for the long delay of my answer. This due to the fact that I observed that my code works on one but not on the other of two nearly identical machines running Ubuntu 16.04 and I haven't had time to sort that out yet. I will be back when I know better. H