Hy guys,
it happened this error but I can't find the reason. Please have a look at this piece of code ( paste here the essential):
So, GPS_LocationChanged call Move_Marker and the line Icon.Initialize has generated the exception.
Of course "iconcar.png" exist, the program runs normally all time long, but once has happened that exception. I'm interested to understand why, if there is an answer ...
Thanks
Marco
it happened this error but I can't find the reason. Please have a look at this piece of code ( paste here the essential):
B4X:
Sub Globals
Dim Icon As BitmapDrawable
End Sub
Sub GPS_LocationChanged (Location1 As Location)
Dim geopoint1 As GeoPoint
geopoint1.Initialize(Location1.Latitude,Location1.Longitude)
Move_Marker("Marker_gps",geopoint1,"iconcar.png")
End Sub
Sub Move_Marker(MarkerId As String, geopoint1 As GeoPoint, icn As String)
Icon.Initialize(LoadBitmap(File.DirAssets, icn))
etc
etc
etc
End Sub
So, GPS_LocationChanged call Move_Marker and the line Icon.Initialize has generated the exception.
Of course "iconcar.png" exist, the program runs normally all time long, but once has happened that exception. I'm interested to understand why, if there is an answer ...
Thanks
Marco