Re: A89: Dialog Code


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

Re: A89: Dialog Code




First off, I'm sorry for not sending the message in plain text, I'm just
used to send HTML to people, I'll try to remember to change it the next
time.  Secondly, that did fix my problem, thank you.

----- Original Message -----
From: "Scott Noveck" <noveck@pluto.njcc.com>
To: <assembly-89@lists.ticalc.org>
Sent: Friday, June 23, 2000 5:33 PM
Subject: 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
>
>




References: