PDA

View Full Version : thinBasic 1.7.0.0: 2008.11.06 refreshed version



ErosOlmi
07-11-2008, 00:09
thinBasic version 1.7.0.0: 2008.11.06 refreshed version.
_________________________________________________
Online help: http://www.thinbasic.org/public/applications/thinbasic/onlyforyoureyes/HTML/
Features implemented in version 1.7.0.0: http://www.thinbasic.org/public/applications/thinbasic/onlyforyoureyes/HTML/version_1_7_0_0.htm
_________________________________________________

Hi all.

I've refreshed thinBasic 1.7.0.0 with a new version.
Memory allocated by dynamic strings and variant elements inside UDT is now handled by thinBasic at any UDT nested level
Roberto seems having fixed many thinAir problems. Let us know.

New features in thinBundle:

an isolation flag will let you create bundled executables that will explode in in temp random subdirectory.
Attention: isolation will work (for the moment) only if execution path has no relative indications like .\ (current path) or like .\..\
So try to indicate something like %TEMP% in execution path if you set Isolation flag. This problem will be addressed in next release
it is now possible to indicate environment variables in thinBundle directories.


_________________________________________________

For those of you that already received a message from me with the download link, JUST USE THE SAME LINK and substitute in the URL /20081102/ with /20081106/
If someone else would like to test new thinBasic before final release, just drop me a personal message here in forum and I will send you the URL where to download it.


Ciao.
Eros

ADDED:
2008.11.08: download file updated to fix new bundling Isolation flag

Petr Schreiber
07-11-2008, 09:02
Hi Eros and Roberto,

very nice release.
ThinAir is working fine.


Petr

ErosOlmi
07-11-2008, 10:24
Thanks Petr.
Roberto is really doing a great job and we will have a great IDE.

I forgot to say that also VARPTR and STRPTR functions are now able to handle correctly (I hope) dynamic strings inside UDT.
See following dummy example:


uses "console"

TYPE t_NL
Name AS STRING
Location AS STRING
END TYPE

TYPE t_ID
ID1 AS t_NL
ID2 AS t_NL
END TYPE

DIM Test AS t_ID
DIM Test_Array(10) AS t_ID

Test.ID1.Name = "BOB"
Test.ID1.Location = "Florida"
Test.ID2.Name = "Sue"
Test.ID2.Location = "Denver"

printl "Test.ID2.Location is : " & Test.ID2.Location
printl "VARPTR(Test) is : " & varptr(Test)
printl "VARPTR(Test.ID2.Location) is : " & varptr(Test.ID2.Location)
printl "STRPTR(Test.ID2.Location) is : " & strptr(Test.ID2.Location)

dim s as string at varptr(Test.ID2.Location)
printl "Using DIM s AS STRING AT VARPTR(Test.ID2.Location) gives: " & s
printl "PEEKing Test.ID2.Location gives: " & peek$(strptr(Test.ID2.Location), len(s))

printl "-------------------------------------------------"

Test_Array(10).ID1.Name = "BOB"
Test_Array(10).ID1.Location = "Florida"
Test_Array(10).ID2.Name = "Sue"
Test_Array(10).ID2.Location = "Denver"

printl "Test_Array(10).ID2.Location is : " & Test_Array(10).ID2.Location
setat(s, varptr(Test_Array(10).ID1.Location))
printl "Using SETAT(s, VARPTR(Test_Array(10).ID1.Location)) gives: " & s
printl "PEEKing Test_Array(10).ID1.Location gives: " & peek$(strptr(Test_Array(10).ID1.Location), len(s))

printl "-[Press a key]-----------------------------------"
waitkey

RobertoBianchi
07-11-2008, 11:02
Eros,


Attention: isolation will work (for the moment) only if execution path has no relative indications like .\ (current path) or like .\..\


this was my yesterday last-minute update, problem is already solved just refresh again if needed.

Ciao,
Roberto

Petr Schreiber
07-11-2008, 17:43
Hi Eros,

that is great. I will check once my burned PC will be back.

Roberto, that was quick fix :)


Petr

ErosOlmi
07-11-2008, 19:44
I'm repackaging all and post new update in few hours.

ErosOlmi
08-11-2008, 08:37
I've update this thinBasic preview download file.
Roberto has fixed new bundling Isolation flag when used with relative directory.

If you need to take advantage of this new flag, please download thinBasic preview version 20081106 again from the same directory.

Ciao
Eros