Hello there! Haven't had the chance to work under B4A 2.00 seriously and I've just started a project from scratch.
I am having weird behavior at the very beginning.
Take the following sub as example:
What is bizarre is - I don't get the "end" in LogCat. If I comment the "result = " row, the sub is continued(I get the "end" in LogCat) but the program hangs in a similar way in another Sub.
How is it possible? No error is triggered but they program work flow.
Basically, this is called immediately after inserting in the database, I have a messagebox after it but even it doesn't show up. Very strange! So far, at least there has been an error telling me where to look.
Any ideas?
What I've been thinking, is it possible that a hidden try-catch block(hidden because it is auto-generated by the compiler) catches an event and the remaining code is skipped?
I am asking because the other Sub was hanging similarly until I made it in its own try catch block.
I am having weird behavior at the very beginning.
Take the following sub as example:
B4X:
Sub GetSomeData(whereMap As Map, OrderMap As Map, Limit As Int) As List
Dim result As List ': result.Initialize
zCommon.LogT("GetSomeData() start", "")
result = zDBUtilsPenko.ExecuteMemoryFromMaps(zSQLL.SQL1, "data", zCommon.genBlankMap, _
whereMap, OrderMap, Limit)
zCommon.LogT("GetSomeData() end", "") ' this entry goes to the Log only if the above row is commented!?????? No error or exception messages.
Return result
End Sub
What is bizarre is - I don't get the "end" in LogCat. If I comment the "result = " row, the sub is continued(I get the "end" in LogCat) but the program hangs in a similar way in another Sub.
How is it possible? No error is triggered but they program work flow.
Basically, this is called immediately after inserting in the database, I have a messagebox after it but even it doesn't show up. Very strange! So far, at least there has been an error telling me where to look.
Any ideas?
What I've been thinking, is it possible that a hidden try-catch block(hidden because it is auto-generated by the compiler) catches an event and the remaining code is skipped?
I am asking because the other Sub was hanging similarly until I made it in its own try catch block.
B4X:
Dim result As List : result.Initialize
result = GetSomeData(whereMap, orderMap, 1)
zCommon.LogT("GetLastData() result = " & result, "")
Dim m As Map
Try
m = result.Get(0) ' before the Try catch, the Sub was dying here and nothing after it was ever executed.
Catch
End Try