I develop a C application on Visual Studio 2010 for the picoscope 3405D. i use the ps3000aApi.h file of the picoSDK.
But when i debug my application, i have a access violation error on the first call of a function library.
I can't open the picoscope.
The Call Stack :
00000000()
> OSCI_Server.exe!osci_initialization(char * appName=0x00c868e8, void * * tid=0x00c86910) Line 835 + 0xf bytes C
OSCI_Server.exe!app_callInitializationFunction(char * appName=0x00c868e8, void * * tid=0x00c86910) Line 311 + 0xd bytes C
OSCI_Server.exe!main(int argc=0x00000003, char * * argv=0x005a1cc0) Line 646 + 0x2a bytes C
OSCI_Server.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C
OSCI_Server.exe!mainCRTStartup() Line 371 C
kernel32.dll!BaseThreadInitThunk() + 0x12 bytes
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
ntdll.dll!RtlInitializeExceptionChain() + 0x63 bytes
ntdll.dll!RtlInitializeExceptionChain() + 0x36 bytes
Output :
'OSCI_Server.exe': Loaded 'C:\Users\zxmulsoge346\Documents\DEV SW OSCILLO\OSCI_Server_v3\OSCI_server_v1\Debug\OSCI_Server.exe', Symbols loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Exports loaded.
'OSCI_Server.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
First-chance exception at 0x00000000 in OSCI_Server.exe: 0xC0000005: Access violation.
Unhandled exception at 0x00000000 in OSCI_Server.exe: 0xC0000005: Access violation.
I have the access violation on the ps3000aOpenUnit call.