I'm trying to use DataSocket from console application and later from Windows Service.
I've got connection problem.
I'm using VB.NET.
Here how i call:
_____________________________________________________
Imports System.Windows.Forms
Module Module1
Public WithEvents ds As New CWDSLib.CWDataSocketClass
Sub Main()
ds.ConnectTo("dstp://localhost/test", CWDSLib.CWDSAccessModes.cwdsWriteAutoUpdate)
For i As Integer = 0 To 20
ds.Data.Value = i
Console.WriteLine("{0}", i)
Next
End Sub
Private Sub ds_OnStatusUpdated(ByVal Status As Integer, ByVal [Error] As Integer, ByVal Message As String) Handles ds.OnStatusUpdated
Console.WriteLine(
"{0}", Message)
End Sub
End Module
___________________________________________________
So, i see only:
Connecting: Parsing URL.
Connecting: Parsing URL.
but, not Active:Connected.
If i add form and show it, i see:
Active:Connected
And reader got data, that i pass.
Please tell me is it behavior by design or what?