B4J Question Sub initialize signature does not match

Robert Valentino

Well-Known Member
Licensed User
Longtime User
When I compile in release mode everything is fine.

But in debug mode I get this error - no idea how to determine what is wrong

Sub initialize signature does not match:
Waiting for debugger to connect...
Program started.
An error occurred:
(Line: 0) 0
java.lang.Exception: Sub initialize signature does not match expected signature.
public static anywheresoftware.b4a.pc.RemoteObject b4j.example.b4xmainpage_subs_0._initialize(anywheresoftware.b4a.pc.RemoteObject,anywheresoftware.b4a.pc.RemoteObject) throws java.lang.Exception
class anywheresoftware.b4a.pc.RemoteObject,
 

GMan

Well-Known Member
Licensed User
Longtime User
Whats about the header of your App ?

B4X:
#CustomBuildAction ?
#Macro ?
#AddAdditionalJar ?
#CommandLineArgs
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I guess the B4XMainPage.bas is corrupted.

I delete the line: Public Sub Initialize
Type it again.

Commented the '#CustomBuildAction:
Re-reference jRandomAccessFile

Then it success to run in Debug.
 

Attachments

  • Poker.zip
    320 KB · Views: 27
Upvote 0
Top