[mdlug] C Pointer Problem [Solved]

A. Zimmer andrew.zimmer at comcast.net
Sun Apr 12 13:29:40 EDT 2015


On Sat, 11 Apr 2015 03:44:40 -0400
"A. Zimmer" <andrew.zimmer at comcast.net> wrote:


> 
> Anyway, I've decided to abandon the conversion project.  I would have
> to spend way too much time reverse engineering the code to get a better
> understanding of what is actually happening before I could even begin
> to refactor.
>

Well, I spoke too soon.

Just now I've finished refactoring the code and the program is
now 64-bit clean.  It runs without problem on my pure 64-bit system.

Thanks, Greg, for your input.  It got me to thinking about the
initial storage of the pointer values in the imageType structure.
In the original code they were stored in an array of 32-bit integers.
I thought if I simply changed the type to an array of 64-bit integers
the code might work -- and it did!  (Changing one other value from 32-bit
to 64-bit was also necessary.)

In case any are interested, the original source for the peiHalfTone
package can be found here:

ftp://ftp2.picturel.com/pub/xo/web/halftone/pei-1.254.tar.gz

Thanks again for the input.  I was truly stuck and the response
provided much needed insight.



More information about the mdlug mailing list