The fix is relatively simple for your particular problem: Remove any references to RBScript from your application. RBScript/XojoScript is currently not 64 bit compatible.
I have a function that test a ping. If i remove the line “Catch e as RbScriptException” the app compiles well, but my function does not work. how do i replace that line?
dim sh as new Shell
Try
if TargetWin32 then
sh.Execute ("ping -n 2 " + direccion_ip) '192.168.1.1")
end if
if TargetLinux or TargetMacOS then
sh.Execute ("ping -c 2 " + direccion_ip) '192.168.1.1")
end if
Catch e as RbScriptException --> RBscript reference
msgbox("ERROR")
end try
'app.SleepCurrentThread(2000)
if sh.ErrorCode = 0 then
'ping ok
Return True
else
'ping error
Return False
end if
[quote=264869:@nicolscanessa]great… it works! thanks a lot
I have a function that test a ping. If i remove the line “Catch e as RbScriptException” the app compiles well, but my function does not work. how do i replace that line?
[/quote]
Remove that catch as it doesn’t do anything anyway