Hi
I am using a for-loop in a 'cin' to fill an array with numbers. I
activate the 'cin' with a "latch when released" button. The first
thing that happens is that the array wont fill with the correct
numbert. The button must be pressed 3 times before the correct
numbers is in the array. Wye?
When I close the vi, the array has been changed so I'm asked if I want
to save. If I answer "yes" I get the error:
Insane object at in : {dsitem}
(0x400):FrontPanelDataController (DCO)
So I dont save, close the vi, open and run it, and then activate the
'cin' again (without reloading or purging the lsb-file) I get the the
error:
The instruction at "" references memory at "".
The memory c
ould not be "read".
When I do the above operation, the errors allways occur. Both of them
shut down the application.
The vi is only an array-indicator, two buttons for starting and
stopping, and a cin-node. Everything is in a while-loop with a 100ms
delay.
The c-kode:
CIN MgErr CINRun(TD1Hdl Array) {
int32 i;
(**Array).dimSize = 100;
for (i = 0; i < 100; i++)
(**Array).Element[i] = i*10;
return noErr;
}
Running Windows 2000pro, Visual C++ 6.0, LabView 6.02
It seems like the application wont free the memory after use. Any
ideas for solving?
Thanks,
Torgrim Aas