Date: Tue, 22 Jul 97 17:56:19 GMT From: "Adrian Martin" Encoding: 31 Text Message-Id: <9706228696.AA869621839@upn.co.uk> To: Waldron AT lr DOT net, djgpp AT delorie DOT com Subject: Re: Allocation of memory. Precedence: bulk struct PCXHeader { char manufacturer; char version; char encoding; char bpp; int xStart, yStart; <<* int xEnd, yEnd; <<* int xRes, yRes; <<* char egaPal[48]; char reserved; char numPlanes; int bpl; int pType; char padding[58]; }; Try changing these( marked <<* above ) to shorts. i.e. short xStart , yStart: The PCX format was invented when ints were only 16bits not 32 as in DJGPP. Adrian