View Full Version : thinBundle, can't find zlib.dll
Michael Hartlef
08-05-2007, 22:11
Hi Roberto,
I tried several scripts to turn into an exe with thinbundle, but I allways get the error below.
What I am doing wrong?
Michael
ErosOlmi
08-05-2007, 22:22
Mike,
please check to have zLib.dll both in \thinBasic\ and \thinBasic\Lib\ directories.
If you have in both places, please try to remove your and replace with tha attached one.
Let me know.
Eros
Michael Hartlef
09-05-2007, 07:39
Thanks Eros,
I will try that.
RobertoBianchi
09-05-2007, 09:56
Hi Michael,
the Bundle needs ZLIB.DLL library because you choose to obfuscate main script and compress all files.
Clear these flags and try again, it should work.
Of course in order to use the Bundle you should have the ZLIB.DLL library.
The ZLIB.DLL loader try to load the module from the following paths:
LoadLibrary() API search paths
"\thinbasic\"
"\thinbasic\lib"
For the LoadLibrary() dynamic-Link library search order take a look to:
http://msdn2.microsoft.com/en-us/library/ms682586.aspx
Ciao,
Roberto
Michael Hartlef
10-05-2007, 21:53
Folks, the lib is located in the main thinbasic folder and in the lib folder. Size 59 KB, Date 20.07.2005, Time 12:48
Ok, I have thinbasic installed under c:\programme\thinbasic . As the default location for the installer is c:\thinbasic, I was wondering if it would work if I move tB to this location. And voila. It does.
So I consider this a bug and thinAIR or thinBundle.
ErosOlmi
11-05-2007, 07:19
Yes, it seems a problem.
Topic moved to "thinBundle bugs report"
Thanks Mike.
RobertoBianchi
11-05-2007, 08:45
Mike,
could you please check if ThinBasic root folder (under ThinAir's Compiler Options tab) is set to "c:\programme\thinbasic\"?
Thanks,
Roberto
ErosOlmi
11-05-2007, 10:15
Roberto,
if the config path can be the problem, I suggest to check the presence of thinBasic.exe in the configured directory every time thinAir is loaded. If not found that give a warning to use to check that parameter.
What do you think? It is important to keep updated that parameter.
Ciao
Eros
Michael Hartlef
11-05-2007, 10:18
Mike,
could you please check if ThinBasic root folder (under ThinAir's Compiler Options tab) is set to "c:\programme\thinbasic\"?
Thanks,
Roberto
I will check it when I'm back from work tonight.
RobertoBianchi
11-05-2007, 10:30
Ok, thanks Michael.
Eros,
yes of course ThinAIR is already able to discovery the interpreter path (and Michael will confirm this if he'll find the correctness of path) but the problem arises in the Bundle module, so I'll check it.
Ciao,
Roberto
RobertoBianchi
11-05-2007, 12:52
Bugs in thinairb.dll should be fixed now.
Also correct the wrong behaviour of Bundle and CharMap windows, that is these apps could be runned more than one time and they stay opened even if ThinAIR is close.
You'll find these fixes in the next update.
Regards,
Roberto
Michael Hartlef
11-05-2007, 17:25
Hi Roberto,
here is a screenshot of the path settings in thinAir.
ErosOlmi
11-05-2007, 17:27
Mike,
does latest update fix the bug?
Thanks
Eros
Michael Hartlef
11-05-2007, 17:31
Sadly, no. But the error is different now.
ErosOlmi
11-05-2007, 17:43
Thanks Mike.
Roberto is checking right now ...
RobertoBianchi
11-05-2007, 17:49
Ops .. sorry it seems I forgot to attach the library name.
Michael Hartlef
11-05-2007, 17:50
plus you have a space in there.
ErosOlmi
11-05-2007, 18:27
Mike,
I think you will have to survive till Monday with this problem.
Roberto will need some time to find the problem due to heavy work load today on other stuff.
As a work around to avoid error, please copy zLib.dll into ...thinBasic\thinAir\ directory. This will let OS loader to find lib in currect executable directory and letting you go on with bundling.
Hope it is ok for the moment. Sorry.
Ciao
Eros
Michael Hartlef
11-05-2007, 19:09
No problem. I was just testing right now and stumbled over it. With converting my FANTOM stuff to TB I give it a little workout I guess.
RobertoBianchi
11-05-2007, 22:06
Hi,
here is new thinairb.dll that should resolve the zlib.dll load bug!
Ciao,
Roberto
ErosOlmi
11-05-2007, 22:13
Ciao Roberto.
I've tested it is similar installation situation of Mike and problem seems gone.
For those that need it, DLL must be placed into thinBasic\thinAir\ directory replacing the file.
Next preview will have this fix.
Thanks
Eros
Michael Hartlef
12-05-2007, 10:12
Thanks, that worked perfect.