Ron: I believe Uncompress has the same bug that was fixed in hb_compress a few months ago, where the string it returns is using hb_retclenAdopt() instead of : hb_retclenAdoptRaw( cDest, ulDstlen );
which leaves the HB_ITEM malformed. Though that bug only revealed itself in failed macro expansion, so I don't know if it would explain a gpf or not.... -- Brian Hays Abacus Data Systems, Inc. > -----Original Message----- > From: l...@xharbour.com.br [mailto:l...@xharbour.com.br] > Sent: Wednesday, October 28, 2009 6:35 AM > To: xharbour-developers@lists.sourceforge.net > Subject: [xHarbour-developers] gpf on hb_uncompress > > Dear friends > the follow code gpf > just replace the imagem.jpg with any other image file name > > cImg := MemoRead("imagem.jpg") > nBytes := len(cImg) > cZip := HB_Compress(cImg) > cConteudo := HB_Uncompress( nBytes, cZip ) > > Regards > Luiz > > > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.423 / Virus Database: 270.14.32/2459 - Release Date: > 10/27/09 15:50:00 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers