Re: A89: Dialog Code


[Prev][Next][Index][Thread]

Re: A89: Dialog Code




> This is a multi-part message in MIME format.

Would you please stop sending HTML-formated emails to the list?  The ticalc
list policy covers this, it causes formatting errors in the digest.  Only
send messages to the list in plain text format.

>  int *nPDIndex;
>  *nPDIndex =3D 1;
>  *(nPDIndex + 1) =3D 1;

This is a major problem right here.  nPDIndex is merely defined as a pointer
to a single int, not an array of them.  The compiler hasn't reserved
(nPDIndex + 1), and it is not safe to write to.

Replace the line "int *nPDIndex;" with "int nPDIndex[2]" and you should
avoid some crashes/instability.  I see nothing else wrong with your code.

    -Scott




Follow-Ups: References: