Android Question edge to edge and debug

andredamen

Active Member
Licensed User
Longtime User
My program works perfect in release mode. In debug mode it crashes on line 162.


ime.Initialize("ime")
root = xui.CreatePanel("")
Dim Content As Rect = ime.GetContentRect
Activity.AddView(root, Content.Left, Content.Top, Content.Width, Content.Height)
ime.UpdatePercentageReference(root.Width, root.Height)
root.LoadLayout("mainpage") ' this is line 162

this is the errormessage:

Error occurred on line: 162 (Main)
java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (ImageView).
Did you forget to call Activity.LoadLayout?
 

andredamen

Active Member
Licensed User
Longtime User
Indeed, it doesn't happen with every app for me either. I'm looking into it, but I haven't yet discovered why the debugger throws this error for one app but not for another.
 
Upvote 0
Top