This is the generated ImageGadget.
Code: Select all
Image_0 = ImageGadget(#PB_Any, 460, 140, 50, 100, 0, #PB_Image_Border)
Code: Select all
CreateImage(Image_0,20,100)
; Debug("Image ID = "+ImageID(Image_0))
StartDrawing(ImageOutput(Image_0))
Box(0,0,20,100,$FF4D20)
StopDrawing()
ImageGadget(Image_0, 460, 140, 20, 100, ImageID(Image_0))
[ERROR] #Gadget object number is very high (over 10000), are You sure of that ?
The debug shows a number of 755126886
Then - [ERROR] Invalid memory access. (read error at address 12)
This occurs at:
Code: Select all
Event = WaitWindowEvent()
If I generate the ImageGadget manually in the procedures file it appears to work OK.
Thanks