Page 2 of 4

Posted: Wed Jun 07, 2006 4:53 pm
by webbmeister
Appologies Gnozal, I was using the BETA version on PB4 - I have downloaded the latest at that works a treat.

Posted: Thu Jun 08, 2006 2:42 am
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?

Posted: Thu Jun 08, 2006 9:09 am
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

Posted: Thu Jun 08, 2006 5:56 pm
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?

Posted: Fri Jun 09, 2006 8:25 am
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.

Posted: Fri Jun 09, 2006 2:27 pm
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?

Posted: Fri Jun 09, 2006 2:42 pm
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

Posted: Fri Jun 09, 2006 2:52 pm
by webbmeister
Just Tried It Again & Get A broken EXE. Can I send you the EXE to try?

Posted: Fri Jun 09, 2006 2:54 pm
by gnozal
webbmeister wrote:Just Tried It Again & Get A broken EXE. Can I send you the EXE to try?
Sure, but zipped please.

Posted: Fri Jun 09, 2006 3:14 pm
by webbmeister
Just Sent It.

Posted: Fri Jun 09, 2006 3:23 pm
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

Posted: Fri Jun 09, 2006 3:30 pm
by webbmeister
Wonder if this is the problem.

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

Filesize = 85,382 bytes
FileCRC = a13c509b

Posted: Fri Jun 09, 2006 3:34 pm
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.

Posted: Fri Jun 09, 2006 4:29 pm
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?

Posted: Sat Jun 10, 2006 7:37 am
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