B4X:
lstIncident = DBUtils.ExecuteMemoryTable(SQL1, "Select * from tblIncident Order by ASA",Null,0)
.
.
.
Dim tmap As Map
Dim cntr As Int
tmap.Initialize
For cntr = 0 To lstIncident.Size-1
tmap = lstIncident.Get(cntr)
If tmap.Size>0 Then
tt = tmap.Get(0)
If tt = ASA Then
fc = tmap.Get(1)
' cntr = lstIncident.Size-1
End If
End If
Next
When run in debug, but without any breakpoints this code errors at tt = tmap.Get(0) If I step thru the code by putting a break point just before this, it works fine.
Here is the actual logged error.
B4X:
Error occurred on line: 192 (Main)
Out of bounds. Index=382918032 Length=2
Stack Trace: (
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 0
GafferProLighting -[B4IArray getObjectFast:] + 238
GafferProLighting -[B4IArray Get:] + 76
GafferProLighting -[b4i_main _calculatelights] + 6066
GafferProLighting -[b4i_main _gmap_click:] + 6324
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 68
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 300
GafferProLighting +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1788
GafferProLighting -[B4IShell runMethod:] + 496
GafferProLighting -[B4IShell raiseEventImpl:method:args::] + 1768
GafferProLighting -[B4IShellBI raiseEvent:event:params:] + 1332
GafferProLighting +[B4IObjectWrapper raiseEvent:::] + 220
GafferProLighting -[B4IMapDelegate mapView:didTapAtCoordinate:] + 164
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 68
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 300
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 50
GafferProLighting -[GMSDelegateForward forwardInvocation:] + 98
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 354
CoreFoundation _CF_forwarding_prep_0 + 24
GafferProLighting -[GMSMapView vectorMapView:didTapCoordinate:tapRadius:] + 130
GafferProLighting -[GMSVectorMapView didTapAt:] + 732
GafferProLighting -[GMSGestureHandlerView handleSingleTapGesture:] + 90
UIKit <redacted> + 294
UIKit by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 668
UIKit by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 46
UIKit by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 216
UIKit by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 2926
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 20
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 278
CoreFoundation by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 914
CoreFoundation CFRunLoopRunSpecific + 476
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1440
GafferProLighting main + 108
libdyld.dylib by TermCoach"> redacted[IMG]http://cdncache-a.akamaihd.net/items/it/img/arrow-10x10.png[/IMG]> + 2
)