P pixsys Member Licensed User Longtime User Jun 16, 2016 #1 Hello, just upgraded from 3.5 to 5.8. For some reason, i can't run the debugger anymore. I can install and run Release versions just fine, without any errors, but the debugger installs the app, goes into "waiting for ide..." and then leaves the foreground after a few seconds, out putting this log: Code: Copy :null,0 java.lang.RuntimeException: Object should first be initialized (Activity). Did you forget to call Activity.LoadLayout? I just updated, so no starter service(or the newest additions) yet... Code: Copy Sub Globals Dim TabHost1 As TabHost ... Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("guihost") TabHost1.AddTab("1", "splash") TabHost1.AddTab("2", "Layout1") TabHost1.AddTab("3", "Layout2") TabHost1.AddTab("4", "Layout3") ..... Thanks
Hello, just upgraded from 3.5 to 5.8. For some reason, i can't run the debugger anymore. I can install and run Release versions just fine, without any errors, but the debugger installs the app, goes into "waiting for ide..." and then leaves the foreground after a few seconds, out putting this log: Code: Copy :null,0 java.lang.RuntimeException: Object should first be initialized (Activity). Did you forget to call Activity.LoadLayout? I just updated, so no starter service(or the newest additions) yet... Code: Copy Sub Globals Dim TabHost1 As TabHost ... Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("guihost") TabHost1.AddTab("1", "splash") TabHost1.AddTab("2", "Layout1") TabHost1.AddTab("3", "Layout2") TabHost1.AddTab("4", "Layout3") ..... Thanks
DonManfred Expert Licensed User Longtime User Jun 16, 2016 #2 pixsys said: For some reason, i can't run the debugger anymore. I can install and run Release versions just fine, without any errors, but the debugger installs the app, goes into "waiting for ide..." and then leaves the foreground after a few seconds, out putting this log Click to expand... when your last installation of your app is made during releasemode the app does not need the debugger. If you compile it using debugger (it is per default the rapid debugger) you cant start you app manually. You can switch to the legacy debugger which is found in the Menu.
pixsys said: For some reason, i can't run the debugger anymore. I can install and run Release versions just fine, without any errors, but the debugger installs the app, goes into "waiting for ide..." and then leaves the foreground after a few seconds, out putting this log Click to expand... when your last installation of your app is made during releasemode the app does not need the debugger. If you compile it using debugger (it is per default the rapid debugger) you cant start you app manually. You can switch to the legacy debugger which is found in the Menu.
DonManfred Expert Licensed User Longtime User Jun 16, 2016 #3 Ohh, i forgot... Did you updated your .net Framework to 4.5.1+???
P pixsys Member Licensed User Longtime User Jun 16, 2016 #4 Thanks alot for the replies, the legacy debugger is indeed still working (didnt see it in the spinner so i thought it got removed entirely from the last builds) For the .net i just checked and think i'm still on 4.0.3 .. i'll update asap and see if it solves my issue with the rapid debugger
Thanks alot for the replies, the legacy debugger is indeed still working (didnt see it in the spinner so i thought it got removed entirely from the last builds) For the .net i just checked and think i'm still on 4.0.3 .. i'll update asap and see if it solves my issue with the rapid debugger
DonManfred Expert Licensed User Longtime User Jun 16, 2016 #5 check this too. https://www.b4x.com/android/forum/threads/b4a-v5-00-has-been-released.54653/
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2016 #6 Can you upload the project or send it to me ([email protected])?
P pixsys Member Licensed User Longtime User Jun 17, 2016 #7 Thanks for all the replies, i found the problem, had a Code: Copy Dim MarginVisible As Int = Activity.Width buried somewhere in Process_Globals Which i suppose is wrong because the debugger might not know the width of the layout at that point of execution, hence the "Did you forget to call Activity.LoadLayout?" message. Not sure why only rapid debugger was affected thou, while release and legacy worked without problems. Last edited: Jun 17, 2016
Thanks for all the replies, i found the problem, had a Code: Copy Dim MarginVisible As Int = Activity.Width buried somewhere in Process_Globals Which i suppose is wrong because the debugger might not know the width of the layout at that point of execution, hence the "Did you forget to call Activity.LoadLayout?" message. Not sure why only rapid debugger was affected thou, while release and legacy worked without problems.