Bug? MediaView onerror signature

rbirago

Active Member
Licensed User
Longtime User
Hi,
I use MediaView and I've added MediaView_onerror event (automatically added with no arguments).
It happens that there is something wrong in a MediaView.init and when B4J try to trigger the event it gives me:
B4X:
public static anywheresoftware.b4a.pc.RemoteObject it.siced.shovid.videoclass_subs_0._mv_onerror(anywheresoftware.b4a.pc.RemoteObject) throws java.lang.Exception

The event sub is this:
B4X:
Sub mv_onerror
    dummy = "errore load MediaView"
End Sub
Is there perhaps something wrong in the library?....very strange!
thank you
Roberto
 

rbirago

Active Member
Licensed User
Longtime User
Ouch... copying the log I forgot to post the first line:
B4X:
java.lang.Exception: Sub mv_onerror signature does not match expected signature.
 

rbirago

Active Member
Licensed User
Longtime User
I confirm! if you create the onerror event of MediaView the system proposes a no-arguments sub, but this is wrong. If you append a generic (objErr as object) to the sub the signature is compatible (really the argument is a string with the message error).
bye
Roberto
 
Top