Place an ImageView in Visual Designer, load an image (using the Files tab), then assign the image to the ImageView using the Image File property dropdown. If you then remove the image from the Files tab, then select the ImageView, the Image File property will be blank - however when you run the app in release mode it will crash because it's still trying to load that image into the ImageView. This behavior doesn't happen in debug mode.
To stop the crash, you have to reload the image using the Files tab, assign the image to the ImageView, then unassign it by selecting the blank entry in the Image File dropdown. Then you can delete the image file using the Files tab.
It seems to me that although the ImageView is recognising that the image file has been deleted (because it shows no image assigned in the Image File property), it's not saving this state - so when the app runs in release mode it's trying to load the previously assigned image file (which now doesn't exist).
- Colin.
To stop the crash, you have to reload the image using the Files tab, assign the image to the ImageView, then unassign it by selecting the blank entry in the Image File dropdown. Then you can delete the image file using the Files tab.
It seems to me that although the ImageView is recognising that the image file has been deleted (because it shows no image assigned in the Image File property), it's not saving this state - so when the app runs in release mode it's trying to load the previously assigned image file (which now doesn't exist).
- Colin.