B4J Question [Solved] xCustomListView - Debug, Release and... other

LucaMs

Expert
Licensed User
Longtime User
I was searching for a bug in my project: I get a Null Sender when I click a label of a xCustomListView item but only in Release mode , when...

trying a new simple project with just a xCustomListView, I saw:

"Add" method of a xCustomListView in my "real" project:


"Add" method of a xCustomListView in my test project:


Both projects have:
 

LucaMs

Expert
Licensed User
Longtime User
Solved the first part too.

Inside the click event, before "using" the sender (lblXXX = Sender), I create a new form (without showing it, just the declaration & initialization).
I don't know why but this "resets", sets the Sender to Null.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…