1
Support Questions / Re: Advanced HMI Subscribe is not working
« on: August 07, 2014, 11:18:57 AM »
Hé, this is some good code, I have replaced it and I do not have the error anymore. There is only problem left: The eventhandler is only triggered once. Besides it is triggered again when a new subscription is added.
Here is the code where I think it not going good:
If SubscriptionThread Is Nothing Then
SubscriptionThread = New System.ComponentModel.BackgroundWorker
AddHandler SubscriptionThread.DoWork, AddressOf SubscriptionUpdate
SubscriptionThread.RunWorkerAsync()
End If
SubscriptionThread is not nothing here, so the handler is not added.
Thanks in advance!
Here is the code where I think it not going good:
If SubscriptionThread Is Nothing Then
SubscriptionThread = New System.ComponentModel.BackgroundWorker
AddHandler SubscriptionThread.DoWork, AddressOf SubscriptionUpdate
SubscriptionThread.RunWorkerAsync()
End If
SubscriptionThread is not nothing here, so the handler is not added.
Thanks in advance!