Android Question [SOLVED] B4XPages / Compiling error / b4xmainpage_subs_0._process_globals();

christianjeannot

Member
Licensed User
Hello community,

I port an App from B4J/B4i to B4A. I am using B4xPages.

When I compile my App I go the following error

B4X:
B4A Version: 11.00
Parsing code.    (0.08s)
    Java Version: 11
Building folders structure.    (0.61s)
Running custom action.    (0.04s)
Compiling code.    (0.53s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.09s)
Linking resources    (0.50s)
Compiling debugger engine code.    Error
B4A line: 21
End Sub
shell\src\b4a\example\main_subs_0.java:164: error: method _process_globals in class b4xmainpage_subs_0 cannot be applied to given types;
b4xmainpage_subs_0._process_globals();
                  ^
  required: RemoteObject
  found: no arguments
  reason: actual and formal argument lists differ in length
1 error

The part in b4xmainpage is empty. Also in Main.

B4X:
Sub Process_Globals
        
End Sub

I searched the forum and found something about Android and activity. But in some posts I found the information that activity is properly handled via B4XPages.

What do I miss?

Best regards

--Christian
 

christianjeannot

Member
Licensed User
@agraham
Thank you for your feedback.

Is the Sub Process_Globals only in Main for all (B4A, B4i, B4J)?

I am not sure if I had made this by myself. This App is my first project with B4X and I am still learning.

I have checked my code archive. Even the oldest code (from October 2020) where I started with B4XPages in this project has the Sub Process_Globals in B4XMainPage.
I have checked my first little projects to get firm with B4XPages (September 2020). Here I do not have it. So the chance is pretty high that I have made this somehow by myself
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…