LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When a program included a CIN is executed,it always indicate that some memory can not be read or written,please why?

When a labview program included a CIN is executed,it indicates that some memory can not be read or written,then shuts down my program.My system is Windows 2000, please why?
0 Kudos
Message 1 of 3
(3,093 Views)
> When a program included a CIN is executed,it always indicate that some
> memory can not be read or written,please why?
>
> When a labview program included a CIN is executed,it indicates that
> some memory can not be read or written,then shuts down my program.My
> system is Windows 2000, please why?
>

Assuming that this happens predictably, place a breakpoint inside the
CIN code and step line to line. The CIN is dereferencing an invalid
pointer. A common causes is that a string or array passed into the CIN
isn't sized as expected. C code is sometimes written to take in a
buffer that is presized. The DLL or CIN node doesn't know anything
about this size, so you need to presize it using the initialize array or
using a constant.

Greg McKaskle
0 Kudos
Message 2 of 3
(3,093 Views)
Because protected mode operation.

Read wrong address or write wrong address.

This is used to occur handle processing or pointer processing.
Pascal string, Array Handle / C string pointer.

Please check handle size, create, init and dispose.

In Pointer -> Initialize the pointer and data size check.
0 Kudos
Message 3 of 3
(3,093 Views)