Android Question return sub_A(sub_B_retVal(sub_C_retVal(someVal)))

a n g l o

Active Member
Licensed User
Longtime User
i wrote a project using device with android version 4.0.3 as a development & debug device.
release mode works with no problems on that device.

now, when i try debug/release on an android 5+ device - 3 subs are not behaving as expected.
in all 3, the problem is in lines with format as in the title pf this question.

if i break the line to step by step calls, each into variable - it works ok on the android 5+ device.

is this a known issue ? what's the explanation ?
how this format called in english (שרשור פונקציות) ?
 

a n g l o

Active Member
Licensed User
Longtime User
in 4.03 device no problem on debug, no problem on release.
in 5.X device, not working on debug, not working on release. NO ERRORS, just that the return vales is wrong. example :

lblItemName.Text=mdlServisFunctions.getFilenameFromPath(Starter.selSearchResults.Get(i))

when changed to :

Dim tmp as String
tmp=Starter.selSearchResults.Get(i)
lblItemName.Text=mdlServisFunctions.getFilenameFromPath(tmp)

that works ok on both devices.

i recall now that i can't debug the problem to check which part causes the problem, because every breakpoint/log/msgbox makes it works ok, that is,
you need a little pause to help it. i prefer to break the code to 3 lines (+1 variable) instead of using DoEvents.

I just like to understand why . Thank you.
 
Upvote 0

a n g l o

Active Member
Licensed User
Longtime User
NO - i don't have the 5.X device (where the problem occurred) anymore.
it belong to whom the app was written for, and after checking on the client device, i've returned it to her.
in my 3 devices there's no problem, so without that device i can't reproduce.
i thought maybe that's a known issue. apparently not....NP, thanks.
 
Upvote 0
Top