Search found 6 matches

by AttilaV
Wed Dec 14, 2022 2:31 am
Forum: General Software Discussions
Topic: Memory leak ?
Replies: 9
Views: 2995

Re: Memory leak ?

I found what the issue was. I set the maxPostTriggerSamples value in the ps5000aRunStreaming() function too high (GigaBytes). I wanted to collect a few billion samples streamed, and I set the maxPostTriggerSamples to that insanely high number. For some reason, I thought that the maxPostTriggerSample...
by AttilaV
Mon Dec 12, 2022 10:01 pm
Forum: General Software Discussions
Topic: Memory leak ?
Replies: 9
Views: 2995

Re: Memory leak ?

Hi Martyn, >>ps5000aGetStreamingLatestValues(unit->handle, callBackStreaming, &driverBuffer); >You shouldn't pass &driverBuffer into the call back, this parameter is used for passing >a parameter to the callback function to write values to, it is not related to the actual data. >In most cases this c...
by AttilaV
Mon Dec 05, 2022 11:02 am
Forum: General Software Discussions
Topic: Memory leak ?
Replies: 9
Views: 2995

Re: Memory leak ?

*bump* ?
by AttilaV
Fri Oct 28, 2022 4:39 pm
Forum: General Software Discussions
Topic: Memory leak ?
Replies: 9
Views: 2995

Re: Memory leak ?

Ok, after setting up the channels, ranges, etc, this is the code that loops. Now, the data is indeed present in the buffer and I can use it, but for some reason the memory footprint is just growing... I suspect the driver still stores the data and does not release it? If I try calling the GetValues(...
by AttilaV
Fri Oct 28, 2022 2:38 pm
Forum: General Software Discussions
Topic: Memory leak ?
Replies: 9
Views: 2995

Re: Memory leak ?

Thanks, are you using the GetStreamingLatestValues() or the GetValuesAsync() approach?
by AttilaV
Fri Oct 28, 2022 3:42 am
Forum: General Software Discussions
Topic: Memory leak ?
Replies: 9
Views: 2995

Memory leak ?

I am coding on Windows11 MSVS, using the PicoSDK_64_10.7.22.241. See below more info on scope/driver/etc. I am in streaming mode, doing what's suggested; - ps5000aSetSimpleTrigger(no trigger) - ps5000aSetDataBuffer() - ps5000aRunStreaming() - looping around ps5000aGetStreamingLatestValues() All is w...