Ricks Film Restoration
Member
In the 12 years that I have been using B4A I have never experience this strange error before: I have dimensioned a bitmap in the Globals with "Dim Bitmap1 as bitmap".
Everything in my app works fine apart from with three specific sub routines that use this bitmap object, during which B4A suddenly reports that the bitmap has become Null. The app then crashes with the famous "...null reference object" java error. As a work around I had to add this routine in the effected Sub:
I have no explanation. What causes this?
Everything in my app works fine apart from with three specific sub routines that use this bitmap object, during which B4A suddenly reports that the bitmap has become Null. The app then crashes with the famous "...null reference object" java error. As a work around I had to add this routine in the effected Sub:
B4X:
If Bitmap1 = Null then
Dim Bitmap1 as bitmap
end if