Menu

#38 VB6 example code crashes on simple file errors

open
nobody
5
2015-06-17
2011-12-21
Anonymous
No

If I compile the zip32z64.dll and run the VBz64 sample code as is, everything works.

However, if I adjust the VB form to intentionally cause a file system error, like writing the file to a bad drive (like change the line "zZipArchiveName = ""MyFirst.zip""" to "zZipArchiveName = ""q:\MyFirst.zip""" where q:\ is a non existant drive), VB completely exits.

Note... If I single step through the VB code, I can see the ZDLLPrnt() callback function getting called with a message of "zip I/O error: No such file or directory", and then a "zip error: Could not create output file (q:/MyFirst.zip)" but when the ZDLLPrnt() callback function exits, VB exits and I'm staring at a blank desktop.

It appears that this problem started with zip30f. I'm attempting to compare zip30e to zip30f to see if I can determine the problem. Unfortunately, this was a really big release and there are a lot of changes. (The VB code doesn't appear to have changed materially.)

Note that zip30f, zip30g, zip30h, zip30i and the "latest" zip30 packages all exhibit the same problem.

Thanks for any help!

jdvenice

Discussion

  • Ed Gordon

    Ed Gordon - 2011-12-22

    Did you try the latest Zip 3.1 beta? There were dll updates in Zip 3.1c. Also, what OS are you using?

     
  • Nobody/Anonymous

    Ah! Yes! Great! The latest Zip 3.1 beta does fix the issue.

    I'm using Windows XP with the latest service pack in a VM.

    Sorry about that. I was focused on using the latest official release. (Was worried that the "unreleased betas" after the 3.0 release were too experimental and added features that I didn't need for my current project...)

    Thanks!

     
  • Mojjevelov

    Mojjevelov - 2015-06-17

    Sorry, I wanted to ask ED GORDON:
    Do you know a new e-mail of mlevoi@modemss.brisnet.org.au ?
    He programmed VBZIP and VBUNZIP in your project (Visual Basic language).
    I can't find him everywhere, but VERY need!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.