Access Violation when fast streaming

Post general discussions on using our drivers to write your own software here
Post Reply
RodneyRichardson
Active User
Active User
Posts: 12
Joined: Wed Jul 23, 2008 5:24 pm

Access Violation when fast streaming

Post by RodneyRichardson »

Hi,

I have code that, in certain error circumstances, will call ps3000_stop from within the callback used in ps3000_get_streaming_last_values when in fast streaming mode.

I then get an access violation being raised from ps3000_get_streaming_last_values.

I've now changed my code to set a flag, and call stop from outside the callback, but is this a bug in the driver? Or an intentional design?

I know the documentation says "Your callback function should do nothing more than copy the data to another buffer within your application", which is why I've changed my code to to call ps3000_stop.

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Hi,

The driver should not be causing assertions to happen. However, there should not be any call back into the driver from within the callback function, what product are you using so I can place a bug report.

Kind regards
Ziko

Technical Specialist

RodneyRichardson
Active User
Active User
Posts: 12
Joined: Wed Jul 23, 2008 5:24 pm

Post by RodneyRichardson »

I am using a Picoscope 3424, and the version of ps3000.dll is 3.6.3.6.

RodneyRichardson
Active User
Active User
Posts: 12
Joined: Wed Jul 23, 2008 5:24 pm

Post by RodneyRichardson »

If it makes any difference, I'm using C# in Visual Studio 2005.

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Hi, one of our software engineers has had time to look at your query in more detail. Here is what he had to say

"The reason that the assertion occurs is that calling ps3000_stop will stop the
device streaming and also delete the overview buffers. It is not a valid
function to call especially as the overview buffers are currently in use."

Hope this helps.
Ziko

Technical Specialist

Post Reply