zip SPAN

zip SPAN

Postby Maverich » Tue Nov 01, 2005 6:53 pm

In preceding posts, Antonio said I should use the hbzip.lib found in xharbour.org to Zip files.
Ok, I've used it, but calling the function
HB_ZIPFILEBYPKSPAN
causes a FiveWin GPF.
I've tried that function in Xharbour console, it plays well. It seems an incompatibility with FWH.

Here's the code:
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

FUNCTION main()

  hb_setdiskzip( { | nDisk | Alert( "Please insert disk no " + Str( nDisk, 3 ) ) } )

  IF HB_ZIPFILEBYPKSPAN( "a:\TEST.ZIP", "TEST.PRG" )
    Alert( "File was successfully created" )
  ENDIF

  RETURN NIL


Any suggestion?
thanks
Riccardo
User avatar
Maverich
 
Posts: 31
Joined: Sun Oct 09, 2005 8:29 pm
Location: Prato, Italia

Re: zip SPAN

Postby Enrico Maria Giordano » Wed Nov 02, 2005 1:03 pm

I confirm the problem. Found no solution so far.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Nov 02, 2005 5:13 pm

You must check if hbzip.lib contains any compiled PRG and if so, compile it with Harbour.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Wed Nov 02, 2005 7:09 pm

Why with Harbour? I used xHarbour for my tests.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: zip SPAN

Postby Richard Chidiak » Wed Nov 02, 2005 9:11 pm

Maverich wrote:In preceding posts, Antonio said I should use the hbzip.lib found in xharbour.org to Zip files.
Ok, I've used it, but calling the function
HB_ZIPFILEBYPKSPAN
causes a FiveWin GPF.
I've tried that function in Xharbour console, it plays well. It seems an incompatibility with FWH.

Here's the code:
Code: Select all  Expand view  RUN
#include "FiveWin.ch"

FUNCTION main()

  hb_setdiskzip( { | nDisk | Alert( "Please insert disk no " + Str( nDisk, 3 ) ) } )

  IF HB_ZIPFILEBYPKSPAN( "a:\TEST.ZIP", "TEST.PRG" )
    Alert( "File was successfully created" )
  ENDIF

  RETURN NIL


Any suggestion?
thanks


Ricardo

Can you try with the complete set of parameters ? Something like the following ? lzipwithpath := .t.

lZipDone:= HB_ZIPFILEBYPKSPAN( cZip , aFiles , 9, { |cFile,npos| QOUT( cFile ) }, ;
.T.,, lZipWithPath, .F. )


Can't test it here, i have no floppy drive. as far as i can recall it was working OK

Richard
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Maverich » Thu Nov 03, 2005 4:15 pm

richard,

I simply used the code that comes with the xharbour documentation. ANY example that uses hb..SPAN causes a GPF.
If you consider that a ZIP file is often used for backup on removable drives (ZIP, flash disks, ecc.), it's a great problem.

I don't understand what Antonio said-look for prg inside the lib-how can i recompile the prgs if I don't have any source?

regards
Riccardo
User avatar
Maverich
 
Posts: 31
Joined: Sun Oct 09, 2005 8:29 pm
Location: Prato, Italia

Postby Antonio Linares » Thu Nov 03, 2005 8:49 pm

Riccardo,

I missunderstood you, I though you were using Harbour, instead of xharbour.

Please create a MAP file and search for the GPF address into the MAP file.

Don't you get a FWH MsgAlert() with the calls stack list ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Thu Nov 03, 2005 11:18 pm

Found! Simply replace Alert() with MsgInfo() and then it will work perfectly!

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

ok!

Postby Maverich » Tue Nov 08, 2005 7:30 am

ok, it plays.
But if there isn't a disk in the floppy, how to exit the function? I haven't found a valid solution.

regards
Riccardo
User avatar
Maverich
 
Posts: 31
Joined: Sun Oct 09, 2005 8:29 pm
Location: Prato, Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 43 guests