The edit is too big for using my previous post.
Sorry for writing the topic but I have been fighting with this for several hours, then decided to start this thread. "Unfortunately", I found the problem 5 minutes after writing here. Erel, maybe you should take a look at the compiler because such errors may happen.
Explanation:
call to the function
result = zDBUtilsPenko.ExecuteMemoryFromMaps(zSQLL.SQL1, "data", zCommon.genBlankMap, _
whereMap, OrderMap, Limit)
' here we call the genBlankMap() Sub to generate a new initialized map as argument.
definition
Sub ExecuteMemoryFromMaps(SQL1 As SQL, Table As String, FieldsList As List, _ ' if we take a look here, we see the argument is "List"
WhereMap As Map, OrderMap As Map, Limit As Int) As List
Sub genBlankMap() As Map
Dim mm As Map : mm.Initialize
Return mm
End Sub
So, I was passing a "Map" to the third parameter which should have been a "List".
I took the time to write so long in order to notify about the problem. Neither the B4A environment stopped the compilation process, nor the execution on my phone reported any issues, it just stopped the execution of my program making my debugging much harder.
My thread may be ignored at all! A unattended Try-Catch block at the very beginning of the logic flow tricked me and lost my time.
Just one last question - is it normal that my objects which are Class include all other modules as variables?
E.g,
Dim data as tData ' tData is just a class encapsulating my Data type. - several private vars and several public subs which return the values.
But along with my "fields", I also get(in the Log) Main=null, activity1=null, contact=null, etc... - > all my activity, code modules. Is this normal?