B4J Question Debug Typing

stevel05

Expert
Licensed User
Longtime User
Hi Erel,

Here is another example of a Type error that runs under debug and not under release, I am about to look at handling the UnmodifiableListSet via JavaObject or a library if needed.

My question is does debug mode have more Type conversions than release mode? I am just wondering why they work under debug.
 

Attachments

  • NPB.zip
    13.4 KB · Views: 307

Erel

B4X founder
Staff member
Licensed User
Longtime User
Your code is wrong. A Set is not a List.

The debugger is currently based on B4A rapid debugger. The rapid debugger works a bit differently. It runs most of the methods with reflection. In some cases "wrong" code can work properly.

I've added an Id property to Node. You will be able to implement this with Pane.GetAllViewsRecursive and Node.Id.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
In some cases "wrong" code can work properly.
yes that's the problem I'm finding, developing under Debug and everything is working then switch to release and get errors.
 
Upvote 0
Top