From: Bill Currie Newsgroups: comp.os.msdos.djgpp Subject: Re: zlib and djgpp 2.01 Date: Mon, 01 Dec 1997 08:48:34 +1300 Organization: Telecommunication Systems Support Centre Lines: 19 Message-ID: <3481C312.61EC@tssc.co.nz> References: <19971128 DOT 165705 DOT 9494 DOT 0 DOT tdvanhorn AT juno DOT com> NNTP-Posting-Host: node106.tssc.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Troy D Van Horn wrote: > > I just tried today to compile zlib 1.04 with djgpp, and when I > try to run the example programs, EXAMPLE.EXE, and MINIGZIP.EXE, my > computer just locks up. I used the default makefile for djgpp > (MAKEFILE.DJ2), and them modified it slightly (changed optimizations to > -O2 -fomit-frame-pointer), and the result is the same. I haven't had time > yet to try to write my own program using the library yet, I have yet to > figure out the limited documentation. > Does anybody have any idea why the examples don't work? Are you sure they've locked up and aren't expecting input from stdin? Try typing and see what happens. I didn't have any problems with zlib 1.04, but I don't remember if I tried the examples, I just used minigzip to find out how to use the lib. Bill -- Leave others their otherness things" This problem occurs inside a class which has several data members which are contained by pointer (some are pointers, some are arrays, some are arrays of pointers). Within the constructor of the class, many of these are instantiated using new commands, the remainder are initialised as NULL. Others are instantiated within one of the class's member functions (which is not called during the construction process). The problem is that one time (not necessarily the first, but certainly the last) when this member function is called the data member is constructed correctly, however during this process, one of the other data members becomes "corrupted."