CRC32Fingerprint Question

Just starting out? Need help? Post your questions and find answers here.
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Appologies Gnozal, I was using the BETA version on PB4 - I have downloaded the latest at that works a treat.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Gnozal: I get an unresolved external symbol 'PB_StringBasePosition" when threadsafe is enabled. Any ideas on how I can make it work okay with threadsafe?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Gnozal: I get an unresolved external symbol 'PB_StringBasePosition" when threadsafe is enabled. Any ideas on how I can make it work okay with threadsafe?
AFAIK, Tailbite does not support ThreadSafe : http://www.purebasic.fr/english/viewtop ... 2&start=15
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Gnozal

Just noticed something with the ZIP routine. It can't add files of zero length. ie a text document with no content - is there any way around this?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

webbmeister wrote:Gnozal

Just noticed something with the ZIP routine. It can't add files of zero length. ie a text document with no content - is there any way around this?
It works, but PureZIP_Archive_Compress() reports an error.

Code: Select all

If PureZIP_Archive_Create("c:\purebasic400\program\TEST.ZIP", #APPEND_STATUS_CREATE)
  Debug PureZIP_Archive_Compress("C:\ZeroFile.txt", #True)
  PureZIP_Archive_Close()
EndIf
The zero length file is added even if PureZIP_Archive_Compress() reports an error.

This is should be fixed in the new version : please download again.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Just found something quite worrying.
Zipped Up A file using the "Quick & dirty Mini Console ZIP" from a command line.

FileCRC before zipping = d6ee5db7
FileCRC after unzipping= 9e2c8955

This was an EXE file & after extraction it was broken!

Before....
Filename = Angry Ip Scanner.exe
Filesize = 108K

After...
Filesize = 104k !!!!

Any Ideas?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

webbmeister wrote:Just found something quite worrying.
Zipped Up A file using the "Quick & dirty Mini Console ZIP" from a command line.
Just tested with jaPBe.exe

Copy jaPBe.exe to jaPBe!.exe

Code: Select all

C:\PureBasic400\jaPBe>copy jaPBe.exe jaPBe!.exe
        1 fichier(s) copié(s).
Pack jaPBe!.exe

Code: Select all

C:\PureBasic400\jaPBe>minizip test.zip japbe!.exe
Packing ...
1 files packed in archive test.zip

C:\PureBasic400\jaPBe>
Extract jaPBe!.exe

Code: Select all

C:\PureBasic400\jaPBe>miniunzip test.zip japbe!.exe
Unpacking ...
1 files extracted from archive test.zip

C:\PureBasic400\jaPBe>
Compared jaPBe.exe and jaPBe!.exe

Code: Select all

C:\PureBasic400\jaPBe>fc /b jaPBe.exe jaPBe!.exe
Comparaison des fichiers jaPBe.exe et JAPBE!.EXE
FC : Aucune différence trouvée
No problem
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Just Tried It Again & Get A broken EXE. Can I send you the EXE to try?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

webbmeister wrote:Just Tried It Again & Get A broken EXE. Can I send you the EXE to try?
Sure, but zipped please.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Just Sent It.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

webbmeister wrote:Just Sent It.
Got it.
No problem either (MiniZIP/MiniUnzip).

Using PB 4.00 final / jaPBe
Compiled files from \Examples\PureZIP
With latest PureZIP (85426 bytes CRC32 : 861D3809)
OS : WinNT4sp6
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Wonder if this is the problem.

C:\Program Files\PureBasic4\PureLibraries\UserLibraries\PureZIP

Filesize = 85,382 bytes
FileCRC = a13c509b
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

webbmeister wrote:Wonder if this is the problem.

C:\Program Files\PureBasic4\PureLibraries\UserLibraries\PureZIP

Filesize = 85,382 bytes
FileCRC = a13c509b
Like I said in a previous post, I have updated the library (and compiled with the latest Tailbite available).
gnozal wrote:This is should be fixed in the new version : please download again.
Please download the latest version and try again. Thanks.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
webbmeister
User
User
Posts: 62
Joined: Thu Mar 16, 2006 5:20 pm
Location: Sheffield, UK

Post by webbmeister »

Still having the same result - even with the latest version. Tried compiling at Plain text and UTF-8. No Difference. Compiled as console exe (debugger enabled)


FileCRC before zipping = d6ee5db7

FileCRC after unzipping and inside the archive = 9e2c8955

result=corrupt file on extraction.

I have done a fresh install of Purebasic into a new path

C:\Program Files\PureBasic4.1\

Let your installer run into an empty directory (C:\Program Files\PureBasic4)
then copied the contents into

C:\Program Files\PureBasic4.1\

CRC of purbasic exe = 340aa5b3
CRC of purezip = 861d3809

This is a strange one!

PS What do you make the CRC of the exe that I sent to you?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

webbmeister wrote:PS What do you make the CRC of the exe that I sent to you?
Here it is :
; Generated by WIN-SFV32 v1.0
; (Compatible: Total Commander 6.54a)
Angry IP Scanner.exe D6EE5DB7
Angry IP Scanner.exe.original D6EE5DB7
Angry IP Scanner.exe = used for ZIP/UNZIP
Angry IP Scanner.exe.original = original

I am compiling to Console without debugger
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply