Access Violation when fast streaming

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
RodneyRichardson
Advanced User
Advanced User


Joined: 23 Jul 2008
Posts: 10

PostPosted: Wed Oct 29, 2008 5:30 pm    Post subject: Access Violation when fast streaming Reply with quote

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.
Back to top
ziko
Site Admin
Site Admin


Joined: 01 Dec 2006
Posts: 711
Location: St Neots

PostPosted: Mon Nov 03, 2008 10:26 am    Post subject: Reply with quote

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
Back to top
RodneyRichardson
Advanced User
Advanced User


Joined: 23 Jul 2008
Posts: 10

PostPosted: Mon Nov 03, 2008 10:33 am    Post subject: Reply with quote

I am using a Picoscope 3424, and the version of ps3000.dll is 3.6.3.6.
Back to top
RodneyRichardson
Advanced User
Advanced User


Joined: 23 Jul 2008
Posts: 10

PostPosted: Mon Nov 03, 2008 10:51 am    Post subject: Reply with quote

If it makes any difference, I'm using C# in Visual Studio 2005.
Back to top
ziko
Site Admin
Site Admin


Joined: 01 Dec 2006
Posts: 711
Location: St Neots

PostPosted: Mon Dec 08, 2008 2:06 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group