From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: realloc causing fault Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <1b8u2t0pa9s1vbrqen9jscp7ffd805m8me@4ax.com> References: <90j6oj$fjt$1 AT news5 DOT svr DOT pol DOT co DOT uk> <7458-Tue05Dec2000234242+0200-eliz AT is DOT elta DOT co DOT il> <000b01c05f60$3ce4ca60$f504883e AT gtdf> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 X-Trace: /K+neRmxwJEBdJgW6oWvP6ztomszQTC1pBJnvinDbmUN68/5TsXFs/gJUFrZlY59kJzYUmM67kj7!XfwBtvNjr3RMO9x1sJcnGJE7naOl2rZmKWPUxU9c7Td8GZkbQiB93ffg1dVqWfaJZ/FVXBEE6L1Z!Dt2q3A== X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 07 Dec 2000 05:34:47 GMT Distribution: world Date: Thu, 07 Dec 2000 05:34:47 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 6 Dec 2000 08:40:48 -0000, "Greg Holdridge" wrote: >And besides, I need to allocate in array format because strings >are accessed by code. Otherwise access would be very slow, if for >example I used the binary tree structure I use for compression. If you need compression in a DJGPP program, there's always zlib. http://www.info-zip.org/pub/infozip/zlib/ >How else could this be achieved without pre-allocation the stringtable >space (I suppose if I put the numstrings in the compressed file header? >LZW produces the same number of strings both ways I guess) LZW compression is encumbered under United States Patent 4,558,302 and foreign counterparts, assigned to Unisys Corporation. Use of LZW compression is strongly deprecated for this reason. http://burnallgifs.org/ --