Which picture type did you load into the picture?apparently a BMP.
But why does the error message mention a PNG?Which picture type did you load into the picture?apparently a BMP.
Which picture type did you load into the picture?
The only difference i see between your sucessful Test and your real project (at least what i see):
You explicitely Create/Free the TPicture in your sucessful Test.
i would check this here: "('create' and 'free' are separate):"
Widget is basically a "Control"
and the Error-Message apparently checks if a widget/Control is NULL (as in non-existant)
But why does the error message mention a PNG?Which picture type did you load into the picture?apparently a BMP.
png is the name of the project and png.pas is the name of the main module.is then (png:10977) the line-number in your pas-file?
i just looked at the source of TClipBoard.Assign
...
hmm....maybe there is something fishy about the Format you pass in Picture1
Can you check the MimeType of your Picture?
Quotepng is the name of the project and png.pas is the name of the main module.is then (png:10977) the line-number in your pas-file?
Something along the lines ofQuoteCan you check the MimeType of your Picture?
I'm not sure how to do this. I attached a screenshot of the properties of my BMP demo file shown by filemanager Nautilus. Did you mean that?
Something along the lines of
Picture1.Graphic.MimeType
do a Writeln with it or assign it to a Label-Caption
But why does the error message mention a PNG?Which picture type did you load into the picture?apparently a BMP.
png is the name of the project and png.pas is the name of the main module.
because main file png.pas has only 28 linesThis seems to indicate that you are not writing a standard LCL GUI application. In this case you probably did not have the unit InterfaceBase (or Interfaces?) in the uses clause and thus did not initialize the widgetset-based access to the clipboard.