Technical Notes Database
TN4061C.txt TD - NULL POINTER ASSIGNMENT.
Category :Pascal
Platform :All
Product :TD 1.x 2.0
Description:
Q. How do I find a null pointer assignment in my Turbo C program?
A. Open a watch on
(char * ) 0,s
(char *) 4,s
This is the location of the Borland message. It is also the
area that will be overwritten if there is a null pointer
assignment. The user will be able to watch the Borland
message while stepping through the code. When the null
pointer assignment occurs the message in the watch window
will changes. The same thing can be done by opening a dump
viewer and doing a CTRL-G (GOTO) to 0000.
Reference:
7/2/98 10:45:35 AM
Last Modified: 01-SEP-99