CallbackOnCollectedDelegate

Post your .Net discussions here
Post Reply
d.marcato
Newbie
Posts: 0
Joined: Mon Apr 08, 2024 3:55 pm

CallbackOnCollectedDelegate

Post by d.marcato »

We tried setting up a picoscope 2207 with the .net SDK.
We repeatedly call the RunBlock Method but occasionally get a very annoying error message that we are not sure how to solve.
We get a CallbackOnCollectedDelegate error that crashes our application and we are not able to solve it.
We made our oscilloscope class static and have a loop outside the class repeatedly call RunBlock after setting up the system and working with a triggered data set.
Can anybody help and tell us what we need to do differently?
Thank you!
Bild (1).png

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

Re: CallbackOnCollectedDelegate

Post by Martyn »

As you discussed here topic41781.html you need to use PinnedArrays
Martyn
Technical Support Manager

d.marcato
Newbie
Posts: 0
Joined: Mon Apr 08, 2024 3:55 pm

Re: CallbackOnCollectedDelegate

Post by d.marcato »

I was trying to post the answer here as well but it wouldn't let me because I would have posted "too much". The forum software is really unfriendly for new users.

In short: the pinned arrays indeed seem to be the solution.

d.marcato
Newbie
Posts: 0
Joined: Mon Apr 08, 2024 3:55 pm

Re: CallbackOnCollectedDelegate

Post by d.marcato »

Error message came back even after using Pinned Arrays - Any idea @Martyn?

Post Reply