I've been trying to set value on the pcan usb device using the UDS_SetValue dll api. I'm unable to set the values. I get an exception which is as below.
Please could someone here help me resolve this problem.Exception 0xc0000005 0x0 0x1 0x7ffa616767fc
PC=0x7ffa616767fc
syscall.Syscall6(0x7ffa61702920, 0x4, 0x51, 0xe2, 0x1, 0x4, 0x0, 0x0, 0x0, 0x0, ...)
C:/Go/src/runtime/syscall_windows.go:185 +0xfc
syscall.(*Proc).Call(0xc0000544a0, 0xc000058120, 0x4, 0x4, 0x0, 0x0, 0xc000054480, 0x4c26c0)
C:/Go/src/syscall/dll_windows.go:152 +0x39d
PCAN-UDS.UDS.SetValue(0xc000054460, 0x51, 0x1004801e2, 0x4, 0x21, 0xc00007ff38, 0x481baa)
C:/Users/PCAN-UDS/uds.go:57 +0xcc
main.pcanUds()
C:/Users/main.go:61 +0x78
main.main()
C:/Users/main.go:73 +0xb8
rax 0x1
rbx 0x3084580
rcx 0x7ffa616767f6
rdi 0x1
rsi 0x51
rbp 0x85ecd0
rsp 0x85eca0
r8 0xe2
r9 0x4
r10 0x1
r11 0x1
r12 0x7ffa6169fea0
r13 0x0
r14 0x9
r15 0x100
rip 0x7ffa616767fc
rflags 0x10206
cs 0x33
fs 0x53
gs 0x2b
Also when using PUDS_PARAM_MAPPING_ADD and passing TPUDSMsg struct as value I get invalid parameters.