Android Question okHTTP B4A 5.5 error : Cannot cast type

Handy S Sutanto

New Member
Licensed User
Longtime User
hi guys...
please help me to solve the problem when using debug mode
i have an error message while recompile my source
if i using release mode, the application can run without any problem
please some one help me, because urgent situation

B4A version: 5.50
Parsing code. (0.04s)
Compiling code. Error
Error compiling program.
Error description: Cannot cast type: {Type=String,Rank=0, RemoteObject=True} to: {Type=String,Rank=1, RemoteObject=True}
Occurred on line: 82
Job.Download2(Run_Query, Array As String ("find",t_find.Text))
Word: run_query

the codes :

ProgressDialogShow("Query..." & CRLF & "Find = " & t_find.Text)
DataListView.Clear
Dim Job As HttpJob
Dim Run_Query As String
Run_Query="http://" & Server_Data & "/list.php"
Job.Initialize(DFIND, Me)
Job.Download2(Run_Query, Array As String ("find",t_find.Text))

the best regards
 

DonManfred

Expert
Licensed User
Longtime User
1. Use code tags when posting code
2. Strip down your project to an small example and upload the project instead of some unuseful code snippets. No one can use these codes to try to get the error you got.

PS:
please some one help me, because urgent situation
NOT our problem! :D
 
Upvote 0

Handy S Sutanto

New Member
Licensed User
Longtime User
hi Don
Thanks for your advice
After review my source code, i know my mistake
My application works fine now...compile with debug or release mode
Thank you for b4x, great team !

The best regards
 
Upvote 0
Top