View Full Version : [Beta] thinBasic Beta 1.9.2.0
ErosOlmi
30-01-2013, 08:08
thinBasic Beta 1.9.2.0
Download from: http://www.thinbasic.biz/projects/thinbasic/thinBasic_1.9.2.0.zip
This is a real Beta in the sense there is a lot of new features all (more or less) to be finished and fully documented.
So, please use this version only for testing and not for real production scripts.
Have a look and please report any impression/problem/likes always remembering it is a beta!!!!!
This is an emergency update over thinBasic Beta 1.9.1.0 (http://www.thinbasic.com/community/showthread.php?11909-thinBasic-Beta-1-9-1-0)
There was a weird bug (thanks Petr for your hunting) in passing parameters to functions/subs causing unpredictable wrong behaves (I missed to clean a temporary structure used to buffer parameters before creating function/sub local variables)
Known bugs:
among many other (I hope not so many) I know there is a bug in this version when creating bundled exe. Some process can sometimes fail due to incorrect TOC inside Exe. I'm working on solving this problem asap.
Ciao.
Eros
Michael Clease
30-01-2013, 15:20
I tried this new release on my important script and it seems to lock up at a certain stage during execution for some reason but I wont have time to investigate until tonight so I am hoping that I can find MY bug, I will let you know when I know ;)
Mike C.
ErosOlmi
30-01-2013, 18:17
Thanks Michael,
I will wait for your info
largo_winch
30-01-2013, 22:11
in new update I'm missing the "toolbar" on thinair ! (I am working still under win xp2), bye largo
ErosOlmi
30-01-2013, 23:21
Hi largo_winch,
yes, I'm able to replicate the problem under WinXP OS
Under Windows 7 and 8 it is working fine.
I'm checking ...
ErosOlmi
30-01-2013, 23:55
I think I've found the problem and fixed.
Problem is related to different behave of REBAR control under different OS versions.
Sorry but I have to ask you to download thinBasic again.
Please download thinBasic 1.9.2.0 using the same link present in first post of this thread.
Michael Clease
07-02-2013, 18:41
I am still working on my code and closing in on what's causing the problem, it looks like it could be related to Registry_GetAllKeys ??
more to follow.....
ErosOlmi
07-02-2013, 22:33
Hi Michael,
I'm checking but I think you are right: seems the internal loop that search for all sub-keys never ends.
Eros
ErosOlmi
07-02-2013, 23:03
Michael,
can you please check is attached registry module solve the problem?
Place thinBasic_Registry.dll into \thinBasic\Lib\ directory
Waiting for your response
Michael Clease
08-02-2013, 11:43
No infinite loop but it also doesn't return a string which it did in the past.
I do a test to see if the path exists and that is confirming it does exist.
Michael Clease
08-02-2013, 12:16
I thought it better to show a stand alone version which should work on all windows versions ??
Uses "Registry"
Local Status1 As DWord
Local Status2 As DWord
Local sPath1 As String
Local sPath2 As String
Local sMsg As String
Local sMsg1 As String
Local sMsg2 As String
sPath1 = "Software\microsoft\madeupname"
sPath2 = "Software\microsoft\Windows"
Status1 = Registry_PathExists("HKEYCU", sPath1)
Status2 = Registry_PathExists("HKEYCU", sPath2)
sMsg1 = Registry_GetAllKeys("HKEYCU", sPath1,",")
sMsg2 = Registry_GetAllKeys("HKEYCU", sPath2,",")
sMsg += "Status1 = "+Status1+$CRLF
sMsg += "Status2 = "+Status2+$CRLF(2)
sMsg += "sMsg1 Length = "+Len(sMsg1)+$CRLF
sMsg += "sMsg2 Length = "+Len(sMsg2)+$CRLF
MsgBox 0, sMsg
Stop
Petr Schreiber
08-02-2013, 13:29
I attach result on my PC with 1.9.2.0 + thinBASIC_Registry patch.
Petr
ErosOlmi
09-02-2013, 11:27
Ok, I've just recompiled thinBasic_Registry.dll using PB9.x instead of PB10.x without making any change.
Attached the new version. Please place thinBasic_Registry.dll into \thinBasic\Lib\ directory replacing your current one.
Can you please see if this makes any difference?
Petr Schreiber
09-02-2013, 11:46
The result is different with this version, and I think it works correct in my opinion - with one little detail:
sPath2 = "Software\microsoft\Windows"
...
sMsg2 = Registry_GetAllKeys("HKEYCU", sPath2,",")
stores the value "CurrentVersion,DWM,Shell,TabletPC,Windows Error Reporting," in sMsg2. I think the last comma should not be there, because using PARSECOUNT I would think there were 6 keys, but in reality the path contains 5 keys.
Petr
ErosOlmi
09-02-2013, 12:18
Thanks Petr for testing.
So ... if now it seesm to work, there must be something in PB10.x compiler I need to investigate why is changing behave of Registry scanning.
Attached a new version that should fix separator problem.
Petr Schreiber
09-02-2013, 13:50
Thanks,
this version works okay for me.
Petr
Michael Clease
09-02-2013, 16:29
All looks good for me but until I can test it at work I wont be sure, some good has come from it though my script which has a "Start Date 18-03-2009" is a random mess and I have started cleaning it up and improving the way it actually works. I use the program every time I am on site with a custom, it is for creating a backup of the software driving the X-ray systems I work on.
thanks Eros for fixing it and Petr for testing
The issue with the comma was something I had seen and lived with for a very long time... don't know why I didn't report it??
Mike C.