PBZIP doesn't work as a dll

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

PBZIP doesn't work as a dll

Post by halo »

I am using PB v3.90, since my username/password stopped working, and the staff hasn't answered my email yet.

PBZIP always gives me a BAD_FILE error when I try to open a zip file from a dll, even with the full file path.

Anyone have experience with this?
Max.
Enthusiast
Enthusiast
Posts: 225
Joined: Fri Apr 25, 2003 8:39 pm

Post by Max. »

Did you try the "Lost Password" option here: http://www.purebasic.com/securedownload/Login.php

The account name is the old email address you used to order Purebasic, if I remember right, no matter if you changed that later.
Athlon64 3800+ · 1 GB RAM · Radeon X800 XL · Win XP Prof/SP1+IE6.0/Firefox · PB 3.94/4.0
Intel Centrino 1.4 MHz · 1.5 GB RAM · Radeon 9000 Mobility · Win XP Prof/SP2+IE6.0/Firefox · PB 3.94/4.0
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

I have a copy of the original email, so it isn't an issue of a lost username or password. It just doesn't work.

I tried calling the dll as a Blitz userlib, calling it from a PureBasic dll, and using CallDLL (blitz). It keeps failing to open packages, when I use other PureBasic dlls in the same program. Could this be because it was compiled with the PBZIP library, and the other dlls were not? I have noticed strange interference when using multiple pb dlls in one program.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

Interesting:

If another PureBasic DLL is called that contains global variable, the zip dll fails.

If other PureBasic DLL's are called, but they contain no global variables, the zip DLL works.

So it stands to reason that Blitz doesn't really release the DLL's properly. Should globals be declared in some kind of "InitDLL" function? How can you "undeclare" a global?

I think what I have to do is write a dll for blitz to call, which will in turn properly open and close other libraries.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

Oh god, you won't believe this:

If 3 libraries are opened and closed before the zip dll, everything is fine.

If 4 or more libraries are opened and closed before the zip dll, it doesn't work.

Has nothing to do with globals.
Post Reply