Basic4Android exception "Object reference not set to an instance of an object"

Penko

Active Member
Licensed User
Longtime User
Hello!

Basic4Android threw an exception a minute ago. I am not sure why it happened but here are the last steps I performed:

- add a layout file called "layTests_def".
- add the new Activity "Tests".
- the exception was reported. It is the popular .NET one "An error occurred. Object reference not set to an instance of an object".

object.jpg


What could have caused this? And should I expect a bug in this activity module from now on?

Edit: Removed the module and added it again. This time there was no exception. However, this should be investigated.
 
Last edited:

johnaaronrose

Active Member
Licensed User
Longtime User
Below are extracts from code now giving this compile error:
Type GPSLocation(Latitude As Double, _
Longitude As Double, _
Altitude As Double, _
Distance As Double, _
DistTot As Double, _
Time As Long, _
Speed As Float, _
Bearing As Float, _
Marker As Boolean)
Dim loc As GPSLocation
loc.Bearing = 0
loc.Marker = True

At first, the error was given on the loc.Marker=True statement. Now it's happening on the loc.Bearing statement. I have attached the project zip file.
 

Attachments

  • MapGPS.zip
    36.2 KB · Views: 299
Top