LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resize array of cluster with array inside (in DLL)?

Colleagues, I need your help...

 

I would like to resize array of cluster in external DLL. My array looks like that:

 

Pict1.png

 

Now I would like to resize it to 10 elements, and then resize arrays. In LabVIEW terms I would like to do something like that:

 

Pict3.png 

So, now my attempt to do the same but inside of DLL:

 

Pict2.png

 

It works so far, but when the code shown above called cyclically many times, then LabVIEW crashed.

I guess, the problem in DSNewHandle which called for creating new array handle_ or may be with incorrect usage DSSetHandleSize. Somewhere memory leak exists, and I unable to found it.

 

How to do it properly? Any idea?

 

Thank you in advance,

 

Andrey.

 

0 Kudos
Message 1 of 2
(2,700 Views)

Just checked this at home and it seems to be the code above is correct and working properly. The problem is somewhere else (on my work PC).

 

Please ignore this topic.

 

Andrey.

 

0 Kudos
Message 2 of 2
(2,681 Views)