I have two forms.
-- On form1, I have a three Timages, two with picture, and the third with no picture. Name: image1, image2, image3)
In code I can do this:
form1.image3.picture := form1.image1.picture;
And image3 will appear, looking like image1.
-- On form2, I have three different Timages (Names: sunny, cloudy, rainy).
I want to one of the images from form2 onto form1. I tried to do the same thing as above:
form1.image3.picture := form2.sunny.picture;
The code compiles, but when I try to run it, I get an error message:
"Project project1.exe raised exception class 'External: SIGSEGV'.
How can I access/copy an image from one form to another?
System:
Windows7x64, running Lazarus 0.9.30 2011-03-08 FPC 2.4.2 SVN 29749 i386-win32-win32/win64