#79186 - 2002-09-21 05:17 PM
Re: KiXtart v4.12 Beta 1 update
|
kholm
Korg Regular
   
Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
|
I have found noting serious
All my script run with no modification, so i'm tempted to release a beta into production.
The only issues i have found until now is that the Set command dosn't work on Win95, but since it hasn't worked in previous versions, this shouldn't prevent an upgrade.
Another small one is that if you use MessageBox() from a DOS console the messagebox dosn't get focus the focus stays on the DOS console. This last one i have only seen when running KiX32/WKiX32 from WinXP
-Erik
|
|
Top
|
|
|
|
#79188 - 2002-09-22 06:10 PM
Re: KiXtart v4.12 Beta 1 update
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Okay, I have to revers my statement, I did find something, might be a memory leak.
The code posted below was run on a Pentium-III 1000 with 512MB RAM under Windows 2000 Server. It fails around the number combination 8,2,0,0 with an 'out-of-memory' error. Beforehand, memory consumption (as displayed in the Task Manager) is increasing constantly.
Additionally, in case of divisions by 0 , no 'division-by-zero' error is created but the division results in a mathematically incorrect '0'.
code:
BREAK ON cls
$rc = redirectoutput(@SCRIPTDIR+'\game24full.txt')
DIM $rc, $out, $result, $i1, $i2, $i3, $i4, $shellcommand, $ticks
$rc=SETOPTION('Explicit','ON') $rc=SETOPTION('NoVarsInString','ON') $rc=SRND(@MSECS)
? 'Game24 KiXtart Golf running under KiXtart v'@KIX ? 'Computer = Pentium III '+@MHZ+' and '+MEMORYSIZE()+' RAM' ? ''
$ticks=@TICKS
for $i1=0 to 9 for $i2=0 to 9 for $i3=0 to 9 for $i4=0 to 9 ? 'Numbers = '+$i1+', '+$i2+', '+$i3+', '+$i4 $out=Game24($i1,$i2,$i3,$i4) if $out ? 'Result = '+$out else ? 'No solution found' endif ? '' next next next next
? '' ? 'Time = '+(@TICKS-$ticks)+' ticks' ; end of the kiXtart Golf validation script
;! Function game24($,$b,$c,$d) $game24=f(""+$+$b+$c+$d,"") EndFunction Function f($,$b) Dim $e,$x,$y,$z,$a If($) For $x=1 to Len($) $e=f(Left($,$x-1)+SubStr($,$x+1),$b+SubStr($,$x,1)) If $e $f=$e EndIf Next Else $e=Split("+ - * /") For Each $x In $e For Each $y In $e For Each $z In $e $=Left($b,1)+".0"+$x+"("+SubStr($b,2,1)+".0"+$y+"("+SubStr($b,3,1)+".0"+$z+Right($b,1)+"))" $z=Execute("$$a="+$) If "24"=$a $f=$ EndIf Next Next Next EndIf EndFunction ;! ;!
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
#79191 - 2002-09-23 11:36 PM
Re: KiXtart v4.12 Beta 1 update
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
I have been out of it for a while..
Were we able to get the Access, SQL DB query stuff resolved with the new version?
Thanks!
Kent
|
|
Top
|
|
|
|
#79197 - 2002-09-24 07:25 PM
Re: KiXtart v4.12 Beta 1 update
|
krabourn
Hey THIS is FUN
   
Registered: 2000-12-11
Posts: 244
Loc: San Antonio, Texas, USA
|
OK, Here are my results. All of my tests lasted 60 seconds.
EXECUTE Execute kept climbing the whole time. Start: 172,532 K Finish: 191,420 K Difference: 18,888 K
code:
Break on $x=0 do $=execute("$$x=kbhit()") until $x
CALL Call kept climbing the whole time. Start: 172,368 K Finish: 179,836 K Difference: 7,468 K
code:
Break On $x=0 do call ".\test-code.kix" until $x
TEST-CODE.KIX
code:
$x=kbhit()
RUN Run held steady. Start: 172,532 K Finish: 178,552 K Difference: 6,020 K
code:
Break on $x=0 do Run('%Comspec% /C Dir .\ > Nul') until $x
SHELL Shell held steady. Start: 172,564 K Finish: 173,340 K Difference: 766 K
code:
Break on $x=0 do Shell('%Comspec% /C Dir .\ > Nul') until $x
WMI WMI held steady. Start: 185,336 K Finish: 186,636 K Difference: 1,300 K
code:
Break on $x=0 do $Locator = CreateObject ('WbemScripting.SWbemLocator') $WMIConnect = $Locator.ConnectServer('.', 'root\CIMV2', $AdminName, '"' + $AdminPassword + '"') $WMIConnectError = @error IF $WMIConnectError = 0 $WMIConnect.Security_.ImpersonationLevel = 3 ENDIF $Locator = '' $WMIConnect = '' $WMIConnectError = '' until $x
Hope this helps.
_________________________
Kelly
|
|
Top
|
|
|
|
#79198 - 2002-09-24 07:33 PM
Re: KiXtart v4.12 Beta 1 update
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Interesting leak using CALL. Good work documenting. I think we will have some fix requests for Ruud when he gets back.
|
|
Top
|
|
|
|
#79200 - 2002-09-24 07:39 PM
Re: KiXtart v4.12 Beta 1 update
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Call & Execute both leak in 4.02 also.
|
|
Top
|
|
|
|
#79202 - 2002-09-24 07:42 PM
Re: KiXtart v4.12 Beta 1 update
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
|
|
Top
|
|
|
|
#79203 - 2002-09-24 08:26 PM
Re: KiXtart v4.12 Beta 1 update
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
just don't break COM again
|
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|