Laurent95 Active Member Licensed User Longtime User Sep 5, 2015 #1 Hello, I test and debug a class that i compile in a library. With the joined example in zip file, i get an error but only in the 'debug legacy' mode : "java.lang.NullPointerException: Attempt to read from field 'java.lang.String anywheresoftware.b4a.debug.Debug$SubFrame.moduleName' on a null object reference" In 'debug rapid' or 'release' mode, i have not error !!!!!! I'm on B4A v 5.20, i join parts of unfiltered logs in 2 mode also. If someone have an idea ? Maybe Erel can help on this. Thanks for help. Important : There are libraries who are needed for that works right. Take a look at the screenshot, and of course you must put my library in the additional libraries folder. EDIT : Seems similar of this : https://www.b4x.com/android/forum/threads/what-is-anywheresoftware-b4a-ba-sharedprocessba.57992/ I use also DBUtils in the library, but why only in debug legacy ? Laurent. Attachments WWOLibSample.zip WWOLibSample.zip 40.2 KB · Views: 406 logs.txt logs.txt 4.1 KB · Views: 560 Libraries.png 10.5 KB · Views: 611 Last edited: Sep 5, 2015
Hello, I test and debug a class that i compile in a library. With the joined example in zip file, i get an error but only in the 'debug legacy' mode : "java.lang.NullPointerException: Attempt to read from field 'java.lang.String anywheresoftware.b4a.debug.Debug$SubFrame.moduleName' on a null object reference" In 'debug rapid' or 'release' mode, i have not error !!!!!! I'm on B4A v 5.20, i join parts of unfiltered logs in 2 mode also. If someone have an idea ? Maybe Erel can help on this. Thanks for help. Important : There are libraries who are needed for that works right. Take a look at the screenshot, and of course you must put my library in the additional libraries folder. EDIT : Seems similar of this : https://www.b4x.com/android/forum/threads/what-is-anywheresoftware-b4a-ba-sharedprocessba.57992/ I use also DBUtils in the library, but why only in debug legacy ? Laurent.
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2015 #2 I haven't investigated it. However the legacy debugger is considered a legacy feature. If it works in rapid debug mode and release mode than it is fine. Upvote 0
I haven't investigated it. However the legacy debugger is considered a legacy feature. If it works in rapid debug mode and release mode than it is fine.
Laurent95 Active Member Licensed User Longtime User Sep 6, 2015 #3 Erel said: I haven't investigated it. However the legacy debugger is considered a legacy feature. If it works in rapid debug mode and release mode than it is fine. Click to expand... Hi Erel, Indeed that works in these 2 modes, but that's really weird. No worries, i must precise it to the users when i'll share the library, unless that is fixed already. 2 Precisions : - I forget to say that i test the error with B4A version 5.02 also, in the both case with and without the Library original code, it's the same. - I have not the error in any mode when i do the same code in the Main Activity of the Library, maybe a clue ? For now i continue my debug on the library Regards. Last edited: Sep 6, 2015 Upvote 0
Erel said: I haven't investigated it. However the legacy debugger is considered a legacy feature. If it works in rapid debug mode and release mode than it is fine. Click to expand... Hi Erel, Indeed that works in these 2 modes, but that's really weird. No worries, i must precise it to the users when i'll share the library, unless that is fixed already. 2 Precisions : - I forget to say that i test the error with B4A version 5.02 also, in the both case with and without the Library original code, it's the same. - I have not the error in any mode when i do the same code in the Main Activity of the Library, maybe a clue ? For now i continue my debug on the library Regards.