delorie.com/archives/browse.cgi | search |
From: | Jack Klein <jackklein AT spamcop DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Pointers (Differencing) |
Message-ID: | <s16rptoebd00nusmnlk16k363i2s0sl3i6@4ax.com> |
References: | <20010909211315 DOT 28225 DOT 00000857 AT mb-bg DOT aol DOT com> |
X-Newsreader: | Forte Agent 1.8/32.548 |
MIME-Version: | 1.0 |
Lines: | 30 |
Date: | Tue, 11 Sep 2001 04:50:42 GMT |
NNTP-Posting-Host: | 12.84.12.194 |
X-Complaints-To: | abuse AT worldnet DOT att DOT net |
X-Trace: | bgtnsc06-news.ops.worldnet.att.net 1000183842 12.84.12.194 (Tue, 11 Sep 2001 04:50:42 GMT) |
NNTP-Posting-Date: | Tue, 11 Sep 2001 04:50:42 GMT |
Organization: | AT&T Worldnet |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On 10 Sep 2001 01:13:15 GMT, wcount12 AT aol DOT com (WCount12) wrote in comp.os.msdos.djgpp: > Im getting some garbage data when differencing two pointers > that point to the same array. What is confusing me is that > of the 57709 entries in the array, garbage data is in only 728 > records. The others are correct. If I step through and locate > one such error, I can see no reason why im getting garbage, > it should return something like 52, instead I get 566884. > > Id post the code but its a large program. > > Here is what im basically doing. > > answer = ptr1 - ptr2 > > where ptr1 & ptr2 are pointers to the > same array. The array is of the Long data type. > > Any suggestions appreciated > > Thanks > Paul Your explanation of your problem is not very clear. Post the smallest possible code snippet that illustrates your problem. -- Jack Klein Home: http://JK-Technology.Com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |