1
Open Discussion / Re: App freeze AHMI V3.99x +Keyence SDK+SQLCE
« on: April 05, 2023, 10:31:44 AM »Try thisCode: [Select]Imports Keyence.AutoID.SDK
...
Dim m_reader As ReaderAccessor = New ReaderAccessor("192.168.111.104")
...
m_reader.Connect(AddressOf ReceivedDataAction)
...
Private Sub ReceivedDataAction(data As Byte())
'Define received data actions here.Defined actions work asynchronously.
'"ReceivedDataWrite" works when reading data was received.
BeginInvoke(New delegateUserControl(AddressOf ReceivedDataWrite), System.Text.Encoding.ASCII.GetString(data))
End Sub
...
m_reader.Dispose()
Make sure to install the run time C++ library SR SDK.
Referencing two Keyence.AutoID.SDK.dll & Communication.dll
I rewrote the whole program to use the methods used in your reply. It has not crashed yet. It is been almost over a week now.
Thanks to everyone who replied. I really appreciate this.
Thank you Archie for making AHMI.