ImageGadget error with form designer
Posted: Tue Mar 25, 2014 12:38 am
I am trying to use an ImageGadget created on a form in the form designer.
This is the generated ImageGadget.
I added this to one of the procedures in the procedures file
When I run the program I get an error :
[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:
Does anyone have any ideas as to where I may be going wrong or what is causing this?
If I generate the ImageGadget manually in the procedures file it appears to work OK.
Thanks
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