Access violation

Post your C and C++ discussions here
Post Reply
yannick
Newbie
Posts: 0
Joined: Mon Aug 26, 2019 11:56 am

Access violation

Post by yannick » Tue Aug 27, 2019 2:16 pm

Hi,

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.

Any idea of what happens ?

please let me know if any info needed. Thank you,

Best regards.

Yannick.

Martyn
Site Admin
Site Admin
Posts: 3714
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Access violation

Post by Martyn » Mon Oct 14, 2019 7:49 am

Sorry for the late response, is this still an issue for you ? If so please email your code to support@picotech.com and the team can take a look.
Martyn
Technical Support Manager

Post Reply