ScriptBasic
May 22, 2012, 02:14:27 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The ScriptBasic User, Developer and extension module guides are available at the WIKI.
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ScriptBasic Hash Extension Module Fix  (Read 519 times)
support
Administrator
*****
Posts: 409


« on: April 10, 2011, 11:20:44 AM »

Armando fixed an age old issue with the hash extension module (memory error) and I tested it on both 32 and 64 bit Ubuntu.

Armando's test program
Code:
import hash.bas

h = hash::New()

for i=1 to 10
hash::SetValue h,"q"&i,i
next i

hash::Start h
while hash::Exists(h)
 print hash::ThisKey(h)," ", hash::ThisValue(h)
 print
 hash::Next h
wend

hash::Release h

jrs@Laptop:~/SB/test$ scriba hash.air
q1 1
q2 2
q3 3
q4 4
q5 5
q6 6
q7 7
q8 8
q9 9
q10 10
jrs@Laptop:~/SB/test$

* hash-src.tar.gz (3.84 KB - downloaded 44 times.)
* hash.so-32.tar.gz (2.91 KB - downloaded 45 times.)
* hash.so-64.tar.gz (3.63 KB - downloaded 43 times.)
« Last Edit: April 10, 2011, 11:26:57 AM by support » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!