Thank you for your help.
'Code module
#Region Project Attributes
#ApplicationLabel: B4i Example
#Version: 1.0.0
'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
#iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
#iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
#Target: iPhone, iPad
#MinVersion: 7
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Private s As Socket
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
NavControl.ShowPage(Page1)
End Sub
Private Sub Page1_Resize(Width As Int, Height As Int)
s.Initialize("test")
s.Connect("192.168.0.81", 2020, 10000)
End Sub
Sub test_connected(sucessful As Boolean)
If icGetBytesAvailable Then
Msgbox("have incoming data", "test")
End If
End Sub
Sub icGetBytesAvailable As Boolean
Dim no As NativeObject = s.InputStream
Dim b As Boolean = no.GetField("hasBytesAvailable").AsBoolean
Return b
End Sub
Private Sub Application_Background
End Sub
The log:
Application_Start
Application_Active
Error occurred on line: 49 (Main)
*** -hasBytesAvailable only defined for abstract class. Define -[B4IFastSocket hasBytesAvailable]!
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
Foundation NSRequestConcreteImplementation + 174
Foundation <redacted> + 32
Foundation <redacted> + 64
Foundation <redacted> + 224
B4i Example -[B4INativeObject GetField:] + 124
B4i Example -[b4i_main _icgetbytesavailable] + 990
B4i Example -[b4i_main _test_connected:] + 708
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
B4i Example +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786
B4i Example -[B4IShell runMethod:] + 574
B4i Example -[B4IShell raiseEventImpl:method:args::] + 2212
B4i Example -[B4IShellBI raiseEvent:event

arams:] + 1442
B4i Example __50-[B4I raiseEventFromDifferentThread:event

arams:]_block_invoke + 74
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1532
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1590
CoreFoundation CFRunLoopRunSpecific + 516
CoreFoundation CFRunLoopRunInMode + 108
GraphicsServices GSEventRunModal + 160
UIKit UIApplicationMain + 144
B4i Example main + 108
libdyld.dylib <redacted> + 2
)