MarcoRome Expert Licensed User Longtime User May 14, 2022 #1 Hi All. I had already noticed in some project that some variables in starter return them as null if you try to debug while having the assigned value. Example: B4X: Starter.a1 = "xxxx" Starter.a2 = "yyyy" Sleep(2000) StartActivity(act_new2) In activity act_new2 i have this situation: if i run the code in "Use Legacy Debugger" work. In attachment example. Thank you Marco Attachments TestDebug.zip 10.1 KB · Views: 95
Hi All. I had already noticed in some project that some variables in starter return them as null if you try to debug while having the assigned value. Example: B4X: Starter.a1 = "xxxx" Starter.a2 = "yyyy" Sleep(2000) StartActivity(act_new2) In activity act_new2 i have this situation: if i run the code in "Use Legacy Debugger" work. In attachment example. Thank you Marco
klaus Expert Licensed User Longtime User May 14, 2022 #2 Your project works OK on my equipment. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 15, 2022 #3 It is not a bug. This is how services and other non-class modules are represented. The variable itself is actually null. The real bug here is to use 3 activities and the starter service. This is a complete waste of time. Switch to B4XPages. Upvote 0
It is not a bug. This is how services and other non-class modules are represented. The variable itself is actually null. The real bug here is to use 3 activities and the starter service. This is a complete waste of time. Switch to B4XPages.
MarcoRome Expert Licensed User Longtime User May 16, 2022 #4 klaus said: Your project works OK on my equipment. Click to expand... Hi Klaus. Thank you for your time and your answer. Unfortunately the problem is found on several PCs, which does not happen with previous versions. Upvote 0
klaus said: Your project works OK on my equipment. Click to expand... Hi Klaus. Thank you for your time and your answer. Unfortunately the problem is found on several PCs, which does not happen with previous versions.
MarcoRome Expert Licensed User Longtime User May 16, 2022 #5 Erel said: It is not a bug. This is how services and other non-class modules are represented. The variable itself is actually null. The real bug here is to use 3 activities and the starter service. This is a complete waste of time. Switch to B4XPages. Click to expand... Hi Erel. Yes, you are really right about the B4XPages. But it's an "old" project and we don't want to convert it anyway. Also what do you mean by "This is how services and other non-class modules are represented." Thank you for your answer. Upvote 0
Erel said: It is not a bug. This is how services and other non-class modules are represented. The variable itself is actually null. The real bug here is to use 3 activities and the starter service. This is a complete waste of time. Switch to B4XPages. Click to expand... Hi Erel. Yes, you are really right about the B4XPages. But it's an "old" project and we don't want to convert it anyway. Also what do you mean by "This is how services and other non-class modules are represented." Thank you for your answer.
Erel B4X founder Staff member Licensed User Longtime User May 16, 2022 #6 It is really an "implementation detail" that is exposed in the debugger. Upvote 0