[Gambas-user] 'Null object' when loading image from a .jpg file

Matti math.eber at ...221...
Fri Jan 20 19:44:16 CET 2012


You can't do
	Dim picture As Picture
	picture = Picture.Load(Dialog.Path)
	image = picture.Image
as picture and image are reserved keywords.

use "mypicture" and "myimage" instead, and it works.


Am 20.01.2012 19:03, schrieb John Rose:
> This project might be more help to this issue as it's much smaller than my
> original one. When it crashes (in ButtonImportImage_Click()) on the
> Picture.Load command (I've also tried Image.Load with thsame result), a
> message box pops up wth 'Null object' displayed but not showing line number
> or anything else. I've tried pointing the File Dialog at various .jpg
> files, with the same result.




More information about the User mailing list