PDA

View Full Version : Bundles & Win 7 64Bit not working



Michael Clease
03-05-2012, 14:19
Bundles created on Windows 7 Enterprise 64 bit seem to fail with the following errors:

first message box " Not a valid thinBasic bundle file! "

Second message box " Error 4 Invalid Header "

I thought it might be my script so I created a new file using the UI " Dialog with button " template and that failed as well.

Regards

Mike C.

ErosOlmi
03-05-2012, 14:58
Hi Mike,

I will test this night when home.
It should be related with obfuscation and cryptography functions.

Eros

Petr Schreiber
03-05-2012, 15:07
Hi Michael,

which TB version you are running? I tried in 1.9.0.0 beta (http://www.thinbasic.biz/projects/thinbasic/thinBasic_1.9.0.0.zip) and bundle was successfully created on Win 7 64bit Home Premium, and could be executed without issue.


Petr

Michael Clease
03-05-2012, 15:13
I was using 1.8.9 but I am getting 1.9 as I type, it could be a win 7 permissions issue I told the bundle to extract to %TEMP% as I always do.

I will so some testing....

Michael Clease
03-05-2012, 16:45
After the update to version 1.9.0 Beta it now appears to be working but I need to push it around some more just to make sure.

Mike C.

Billbo
18-11-2012, 18:50
Mike C,

I don't know what you did to get yours
to bundle. I downloaded 1.9.1.0 Beta
yesterday, and installed it on my
HP Win7 64-bit laptop. When I tried
to bundle sample programs, it came up
with the same errors as you indicate.

BTW, I am new to thinBasic. Pardon,
but I have been using QB64, because
I can normally adapt my older BASIC
programs to it, plus, it runs on my Vista
and Win7 laptops. I like it, but a 'PRINT
"Hello World"' program would end up
around 1MB. Hoping thinBasic will make
smaller exe files. Also, I have not tried
it on my Vista. I use it for internet; the
HP Win7 I use for everything else.

I'm getting to longwinded for a newcomer,
so your help will be most appreciated.

Thanks,

Bill

Petr Schreiber
18-11-2012, 21:06
Hi,

I did manage to create bundles with 1.9.1.0 and Windows 7 64bit without issues just now.
The only thing is that during bundle process this latest beta shows MessageBox with text "1", but that does not affect final EXE in any way.

The EXE sizes for thinBASIC will probably never be very small due to bundling nature, but typical proggies are under 1MB, usually 300-600kB for me, depending on how many modules do I use.


Petr

Billbo
19-11-2012, 01:20
Petr,

Thanks for the speedy reply. I have been away
all afternoon and I have not tried it again. But,
I'am going to install in on the Vista be going
back to my off-line Win7 laptop.

yes, I noticed the '1' also. Strange, huh??

Wouldn''t it be something to have a BASIC
that would compile a program to 20-30KB
like you see as if some of them should be
20-30MB? There is one site I download from
that most of their progs are under100KB.

Thanks,

Bill

Billbo
19-11-2012, 06:44
Petr,

I did not get around to installing thinBasic
on my Vista, but it seems to be running
okay on my Win7 now.

It seems that if you install it on Win7 you
have to restart your computer. I bundled
three(3) of the sample programs with no
problem.

But, I sure have a lot to learn about this
BASIC, though. I could not even ger:

PRINT "Hellow World"

to work. The help indicates that 'PRINT' can
be an alias. Not even console_write, console_print,
na-da. Oh well, I'll keep trying, plus, look
at the sample programs.

Bill

Michael Clease
19-11-2012, 11:24
Hello Bill,

Try this



Uses "Console"


Print "Hello World"


WaitKey


Without the waitkey it will close the console window.

Mike C.

Billbo
19-11-2012, 15:29
Mike C,

I sure do thank you. Save me a lot
of time.

I did a compile size check on "Hellow
World."

thinBasic 312,074
QB64 1,233,920

It's not 10KB, but there's almost a
1 MB difference.

Well, again, Thanks,

Bill

ErosOlmi
20-11-2012, 08:19
Hi all,

thinBasic 1.9.x is a beta version I'm still heavily working on.
By mistake I left a message box I used to debug some issues, sorry.

I confirm there are some issues in bundling executables with this version. I'm trying to understand the reasons. Hope to fix soon.

Michael Hartlef
17-09-2013, 20:23
Ok, I have an older script from 2010 that still runs fine in the current beta. But a bundled version will show this error when I start the exe:

8540

The line of code here is


TBGL_M15INITMODELBUFFERS NumberofFiles, 2000

Petr Schreiber
18-09-2013, 09:33
Hi Mike,

could you please add:


msgbox 0, NumberofFiles


before that line to test whether the variable is really positive number? I have no issues creating bundles on Win7 64bit and Win8 64bit as of now.


Petr

Michael Hartlef
18-09-2013, 10:38
Hi Petr,

will try that tonight. You actually might be right. I bundled the exe in a different directory. Might be that it is a value of zero and with the script running, a different value. Will check it.

Michael Clease
18-09-2013, 11:12
I had an issue with sub directories and bundles in that I was sure older versions supported sub folders but now it doesn't.

I move all my graphics into a gfx folder and that folder is no longer rebuilt.

perhaps you are having similar problems.