XK8ER
asked on
converted code function
hello there,
I have converted this function from c# into vb.net but for some reason I get an error on the "new Thread"
saying "Error 1 Syntax error."
how can I get it right?
I have converted this function from c# into vb.net but for some reason I get an error on the "new Thread"
saying "Error 1 Syntax error."
how can I get it right?
public void Decode(DecodeDelegate callback, byte[] img, int timeout)
{
DecodePayload payload = new DecodePayload();
payload.Callback = callback;
payload.Image = img;
payload.Timeout = timeout;
new Thread(DecodeWithCallback).Start(payload);
}
into Public Sub Decode(callback As DecodeDelegate, img As Byte(), timeout As Integer)
Dim payload As New DecodePayload()
payload.Callback = callback
payload.Image = img
payload.Timeout = timeout
New Thread(AddressOf DecodeWithCallback).Start(payload)
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.