Hi All
I have developed an app that we are trying to get to work in a development environment on a machine of a programmer working about 70kms away from me. He is helping to port to Android.
So we setup his B4J environment exactly as mine , same additional libs ect. I sent him the zip backup file. The only difference is he is working on a celeron with 8gb Ram and i am working on a i7 with 32Gb RAM.
If I compile the program and send it to him , it works perfectly. If he opens the program source with B4J and runs it then it works up to a certain stage, then crashes. Here is the crash report.
and as I mentioned this works perfectly on my Dev Machine and a compiled version of the program on his machine
Here is the Code where the error occurs
I was more concerned about this message in the error report
This is the code that could be causing this error
and this is the code for the Sub that is called from above
If you have any ideas, please let me know
Thank you
Peter
I have developed an app that we are trying to get to work in a development environment on a machine of a programmer working about 70kms away from me. He is helping to port to Android.
So we setup his B4J environment exactly as mine , same additional libs ect. I sent him the zip backup file. The only difference is he is working on a celeron with 8gb Ram and i am working on a i7 with 32Gb RAM.
If I compile the program and send it to him , it works perfectly. If he opens the program source with B4J and runs it then it works up to a certain stage, then crashes. Here is the crash report.
Message Arrived2 Dave447775566/Start++ Dave447775566
Global Game Name Dave447775566
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by anywheresoftware.b4a.objects.B4XCanvas (file:/C:/Program%20Files%20(x86)/Anywhere%20Software/B4J/Libraries/jXUI.jar) to field javafx.scene.canvas.GraphicsContext.path
WARNING: Please consider reporting this to the maintainers of anywheresoftware.b4a.objects.B4XCanvas
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Topic Server/Advert
Payload 1
QOS 2
Retained false
1
18573467
Error occurred on line: 94 (PLAYGAME)
java.sql.SQLException: ResultSet closed
at org.sqlite.RS.checkOpen(RS.java:63)
at org.sqlite.RS.findColumn(RS.java:108)
at org.sqlite.RS.getString(RS.java:317)
at anywheresoftware.b4j.objects.SQL$ResultSetWrapper.GetString(SQL.java:552)
at b4j.quiz.playgame._getquestion(playgame.java:196)
at b4j.quiz.playgame._start(playgame.java:96)
and as I mentioned this works perfectly on my Dev Machine and a compiled version of the program on his machine
Here is the Code where the error occurs
B4X:
Dim sz As ResultSet
sz = sql1.ExecQuery2("SELECT game_id, position,Question, Answer1, Answer2, Answer3, Answer4, Correct FROM Questions WHERE game_id = ? And position = ?", Array As String(JOINGAME.GLOGame_ID,Q_Number))
Log(sz.GetString("Question"))
I was more concerned about this message in the error report
WARNING: Please consider reporting this to the maintainers of anywheresoftware.b4a.objects.B4XCanvas
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
This is the code that could be causing this error
B4X:
Case "Server/Adverts"
PLAYGAME.DownloadImage(PayLoadStr.Trim)
PLAYGAME.Adstart =DateTime.Now
PLAYGAME.adString=PayLoadStr.Trim
and this is the code for the Sub that is called from above
B4X:
Sub DownloadImage(Link As String)
Dim job As HttpJob
job.Initialize("", Me) 'note that the name parameter is no longer needed.
job.Download(Link)
Wait For (job) JobDone(job As HttpJob)
If job.Success Then
ImageView1.SetImage (job.GetBitmap) 'replace with iv.Bitmap = job.GetBitmap in B4A / B4i
Try
result.ImageView2.SetImage(job.GetBitmap)
Catch
Log("No result yet")
End Try
End If
job.Release
End Sub
If you have any ideas, please let me know
Thank you
Peter
Last edited: