Problems with KEPOPCDAAUTO.DLL
Hello, we are using W10 64 bit machines with a simple Access program to get data from Kepware OPC Server with KEPOPCDAAUTO.DLL. The source is:
Private Sub OPCStartup()
On Error GoTo ERROR_HANDLER
Dim i As Integer
If MyServer Is Nothing Then
Set MyServer = New OPCServer
MyServer.Connect "KEPware.KEPServerEx.V6", "\\SERVERNAME"
'Set the default group update rate
MyServer.OPCGroups.DefaultGroupUpdateRate = 1000
End If
If MyGroup Is Nothing Then
Set MyGroup = MyServer.OPCGroups.Add("AnyGroupName")
MyGroup.UpdateRate = 100 'mSec
MyGroup.IsActive = False
MyGroup.IsSubscribed = True
End If
For i = 1 To OPC_ITEMS
If MyItems(i) Is Nothing Then
MyGroup.IsActive = False
Set MyItems(i) = MyGroup.OPCItems.AddItem(ItemIDs(i), i)
ServerHandles(i) = MyGroup.OPCItems.Item(i).ServerHandle
MyGroup.IsActive = True
End If
Next
Exit Sub

on some identically installed PCs we receive some data, with other PCs MS Access crashes. any idea?

