CRC32Fingerprint Question
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
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
https://reportcomplete.com <- School end of term reports system
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
AFAIK, Tailbite does not support ThreadSafe : http://www.purebasic.fr/english/viewtop ... 2&start=15Gnozal: I get an unresolved external symbol 'PB_StringBasePosition" when threadsafe is enabled. Any ideas on how I can make it work okay with threadsafe?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
It works, but PureZIP_Archive_Compress() reports an error.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?
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
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).
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
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?
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?
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Just tested with jaPBe.exewebbmeister wrote:Just found something quite worrying.
Zipped Up A file using the "Quick & dirty Mini Console ZIP" from a command line.
Copy jaPBe.exe to jaPBe!.exe
Code: Select all
C:\PureBasic400\jaPBe>copy jaPBe.exe jaPBe!.exe
1 fichier(s) copié(s).
Code: Select all
C:\PureBasic400\jaPBe>minizip test.zip japbe!.exe
Packing ...
1 files packed in archive test.zip
C:\PureBasic400\jaPBe>
Code: Select all
C:\PureBasic400\jaPBe>miniunzip test.zip japbe!.exe
Unpacking ...
1 files extracted from archive test.zip
C:\PureBasic400\jaPBe>
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
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Sure, but zipped please.webbmeister wrote:Just Tried It Again & Get A broken EXE. Can I send you the EXE to try?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Got it.webbmeister wrote:Just Sent 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).
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Like I said in a previous post, I have updated the library (and compiled with the latest Tailbite available).webbmeister wrote:Wonder if this is the problem.
C:\Program Files\PureBasic4\PureLibraries\UserLibraries\PureZIP
Filesize = 85,382 bytes
FileCRC = a13c509b
Please download the latest version and try again. Thanks.gnozal wrote: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).
-
- User
- Posts: 62
- Joined: Thu Mar 16, 2006 5:20 pm
- Location: Sheffield, UK
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?
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?
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Here it is :webbmeister wrote:PS What do you make the CRC of the exe that I sent to you?
Angry IP Scanner.exe = used for ZIP/UNZIP; 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.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).