Hello wewe,

At first glance it looks like your memory error may have something to
do with your for loop that it initializing elt[i] =3D 0.  When you
define that struct, you set elt as a single element array.  In the for
loop, you are trying to access 500 elements of that array.  You are
indexing out of that array and probably setting all the memory after
it to 0.

Hope this helps.  If not, let me know, and I=92d be happy to look
further into it.

Have a nice day!

Robert M
Applications Engineer
National Instruments

Reply via email to