National Instruments 320685D-01 ユーザーズマニュアル

ページ / 211
Chapter 1
LabWindows/CVI Compiler
LabWindows/CVI Programmer Reference Manual
1-10
©
 National Instruments Corporation
Dereference of a pointer to an n-byte type where less than n bytes exist in the object
Dereference of unaligned pointer (UNIX only)
Pointer Comparison (Non-Fatal) 
LabWindows/CVI generates pointer comparison errors for erroneous pointer comparison 
expressions. The following user protection errors involve pointer comparison:
Comparison involving uninitialized pointer
Comparison involving null pointer
Comparison involving invalid pointer
Comparison of pointers to different objects
Pointer comparison involving address of non-array object
Comparison of pointers to freed memory
Pointer Subtraction (Non-Fatal) 
LabWindows/CVI generates pointer subtraction errors for erroneous pointer subtraction 
expressions. The following user protection errors involve pointer subtraction:
Subtraction involving uninitialized pointer
Subtraction involving null pointer
Subtraction involving invalid pointer
Subtraction of pointers to different objects
Pointer subtraction involving address of non-array object
Subtraction of pointers to freed memory
Pointer Casting (Non-Fatal) 
LabWindows/CVI generates a pointer casting error when you cast a pointer expression to type 
(
AnyType *
) and not enough space exists for an object of type 
AnyType
 at the location the 
pointer expression specifies. This occurs only when casting a dynamically allocated object for 
the first time, such as with the code 
(double *) malloc(1)
. In this example, 
LabWindows/CVI reports the following error: 
Not enough space for casting 
expression to 'pointer to double'
.
00ProRef.book : 06chap01.fm  Page 10  Monday, March 9, 1998  3:23 PM