Test and Measurement Forum

Access Violation when fast streaming

Post general discussions on using our drivers to write your own software here

Access Violation when fast streaming

Postby RodneyRichardson » Wed Oct 29, 2008 5:30 pm

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.
RodneyRichardson
Active User
Active User
 
Posts: 12
Joined: Wed Jul 23, 2008 5:24 pm

Postby ziko » Mon Nov 03, 2008 10:26 am

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Postby RodneyRichardson » Mon Nov 03, 2008 10:33 am

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

Postby RodneyRichardson » Mon Nov 03, 2008 10:51 am

If it makes any difference, I'm using C# in Visual Studio 2005.
RodneyRichardson
Active User
Active User
 
Posts: 12
Joined: Wed Jul 23, 2008 5:24 pm

Postby ziko » Mon Dec 08, 2008 2:06 pm

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 2 guests