Recent

Author Topic: FreePascalArchivePackage  (Read 8487 times)

eden159

  • New Member
  • *
  • Posts: 15
    • http://www.suncreation.org
FreePascalArchivePackage
« on: January 06, 2007, 10:32:15 am »
Hi,

I downloaded the package FreePascalArchivePackage, but when I tried to use it it gives an error. I found that the problem is because one of it's units is called "types" and there Lazarus has an unit that's also called "types" so when I try to compile the program the compiler uses Lazarus' "type", not the one from the package. I fixed that by changing the name of the unit (and going through all the files that include it).

There was another problem: in the file abfcifdi.pas there were assignments @FDICreateProc := GetProcAddress(CabDllHandle, 'FDICreate'); which gave me an error. I put {$mode delphi} for compatability in the begining of the file.

Now everything compiles and works fine.

You can download the fixed version from: http://suncreation.org/ocr/fparchive.zip

P.S. Can you administrators please check this fixed version and if it's ok upload it to sourceforge so that no one would download a broken package and then wonder why it's not working.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: FreePascalArchivePackage
« Reply #1 on: January 11, 2007, 10:43:57 am »
I am interested in uploading it. Did you raise the version (or build) number, to make a clear distinction between this and the previous version?

eden159

  • New Member
  • *
  • Posts: 15
    • http://www.suncreation.org
Re: RE: FreePascalArchivePackage
« Reply #2 on: January 12, 2007, 12:30:00 pm »
Quote from: "Vincent"
I am interested in uploading it. Did you raise the version (or build) number, to make a clear distinction between this and the previous version?


I had forgoten to raise the number but I did it 5 min ago and uploaded the zip file again (download the arhive from the link from the first post).

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Re: RE: FreePascalArchivePackage
« Reply #3 on: January 12, 2007, 12:43:47 pm »
Thanks. I will upload it later today or tomorrow.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Re: RE: FreePascalArchivePackage
« Reply #4 on: January 12, 2007, 08:14:38 pm »
I have uploaded the file. Can you change the wiki, please? Especially the changelog.

eden159

  • New Member
  • *
  • Posts: 15
    • http://www.suncreation.org
Re: RE: Re: RE: FreePascalArchivePackage
« Reply #5 on: January 13, 2007, 10:05:46 am »
Quote from: "Vincent"
I have uploaded the file. Can you change the wiki, please? Especially the changelog.


Done.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Re: RE: Re: RE: FreePascalArchivePackage
« Reply #6 on: January 13, 2007, 07:20:38 pm »
Thanks. :-)

tom.tom

  • New Member
  • *
  • Posts: 38
Re: FreePascalArchivePackage
« Reply #7 on: January 20, 2015, 04:28:25 pm »
Hi, not sure, who's taking care of this, but there is a memory leak in fpArchve v. 3.05:

Code: [Select]
function DoExtractStored(Archive : TAbZipArchive; Item : TAbZipItem; OutStream : TStream; TheCRC : LongInt) : LongInt;
line 1190 - DecryptStream does not seem to be destroyed in all cases.

to test this try to unzip the password protected zip file

tom.tom

  • New Member
  • *
  • Posts: 38
Re: FreePascalArchivePackage
« Reply #8 on: January 20, 2015, 07:46:20 pm »
...and I also fixed few things to make this package compile under OSX

So I would like to pass it to somebody who takes care of this code to update the repo.