Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread kevinfishburne
Kadaitcha Man wrote: > > Have you tried using a Long instead of an Integer? > > > > :) > Haha, that gave me a good laugh. When I discovered the "bug" was just me being a jackass I practically did the Snoopy dance I was so overjoyed. Simple problems are always the best once you finally figur

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread Kadaitcha Man
On 24 January 2010 16:08, kevinfishburne wrote: > Praise God, I was incorrect. I was foolishly using too small a datatype > (integer) when calculating the seek position. Now that I switched it to long > all is well. :) Have you tried using a Long instead of an Integer? :) ---

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread Kadaitcha Man
On 24 January 2010 16:02, kevinfishburne wrote: > Excellent, thanks. I seem to have found something horrifying while trying to > create the file using GAMBAS however; using the SEEK statement with an > argument greater than 2 GB raises a "Bad argument" error. While that doesn't > affect my abilit

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread kevinfishburne
kevinfishburne wrote: > > Excellent, thanks. I seem to have found something horrifying while trying > to create the file using GAMBAS however; using the SEEK statement with an > argument greater than 2 GB raises a "Bad argument" error. While that > doesn't affect my ability to create the file, i

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread kevinfishburne
Kadaitcha Man wrote: > > In a terminal, type: > > info coreutils 'dd' > > You only need create the file once, then copy it whenever you need to > during testing. If you really must create the file every time, let dd > do it by using Gambas' Exec command. > Excellent, thanks. I seem to have f

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread nando
Gentlemen, The Gambas program below does not write ZERO's in all locations. The part of the file that is before the seek will have garbage and if you found them to appear to be zero, you are just lucky - this time. perform this shell command: dd if=/dev/zero of=Elevation.tmp bs=65537 count=65537

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread Kadaitcha Man
On 24 January 2010 14:21, kevinfishburne wrote: In a terminal, type: info coreutils 'dd' You only need create the file once, then copy it whenever you need to during testing. If you really must create the file every time, let dd do it by using Gambas' Exec command. HTH ---

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread kevinfishburne
Benoît Minisini wrote: > > On Linux, If you seek and write past the real end of a file, then the file > is > automatically extended. > > So the simplest is writing where you want in the file only when you need. > Just > don't do that randomly, to prevent the disk from seeking too much. > > M

Re: [Gambas-user] 2625 build Can't load class 'Main' error

2010-01-23 Thread Zach Smith
Here you go. gambas3.txt.gz Description: GNU Zip compressed data -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference a

Re: [Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread Benoît Minisini
> I need to create an 8 gigabyte binary file with zero values throughout it. > Is there a faster way to do this than to create a big string of zeros and > write it to the file multiple times? What I'm doing right now works but > seems like a really ugly method: > > ' Zero-out the file. > Zero =

[Gambas-user] fastest way to "zero-out" a huge binary file

2010-01-23 Thread kevinfishburne
I need to create an 8 gigabyte binary file with zero values throughout it. Is there a faster way to do this than to create a big string of zeros and write it to the file multiple times? What I'm doing right now works but seems like a really ugly method: ' Zero-out the file. Zero = Chr$(0) & Chr$(

Re: [Gambas-user] 2625 build Can't load class 'Main' error

2010-01-23 Thread Benoît Minisini
> I get the same error and I did a ./reconf-all. > Arch > x64 & x86 > gambas 3, svn 2625 > Can I have the full output of ./reconf, ./configure, make and make install ? -- Benoît Minisini -- Throughout its 18-year histo

Re: [Gambas-user] 2625 build Can't load class 'Main' error

2010-01-23 Thread Zach Smith
I get the same error and I did a ./reconf-all. Arch x64 & x86 gambas 3, svn 2625 <>-- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities

Re: [Gambas-user] GTK - Form Events - Strange behaviours

2010-01-23 Thread Matteo Pasotti
Matteo Pasotti ha scritto: > Benoît Minisini ha scritto: >> I suggest a Gambas upgrade. If you are an Ubuntu user, and want >> Gambas binary packages for that, I suggest some lobbying against >> Ubuntu for that! >> >> Regards, >> >> > Other Ubuntu users have already reported the request of a 2

Re: [Gambas-user] GTK - Form Events - Strange behaviours

2010-01-23 Thread Matteo Pasotti
Benoît Minisini ha scritto: > I suggest a Gambas upgrade. If you are an Ubuntu user, and want Gambas binary > packages for that, I suggest some lobbying against Ubuntu for that! > > Regards, > > Other Ubuntu users have already reported the request of a 2.19 package to launchpad. https://bugs.

Re: [Gambas-user] svn 2624 and 2625

2010-01-23 Thread Werner
On 23/01/10 19:22, Benoît Minisini wrote: >> It seems to build allright but when I try to run Gambas... >> >> we...@bandit:/usr/local/bin> gambas3 >> gbx3: no project file in /usr/local/bin/gambas3. >> >> > I have just recompiled the latest trunk on my Ubuntu 9.10 64 bits (which is a > test m

Re: [Gambas-user] array size limitations relative to available RAM and swap space

2010-01-23 Thread Benoît Minisini
> Using GAMBAS 2.19 I tried creating an array: > > PUBLIC Elevation AS Short[65536, 65536] > > With no data assigned to any of the array's elements, reading > Elevation[0,0] shows a value of 24. I'm thinking it should be zero. > Reading > Elevation[4095,0] crashes the program. I tried reading E

Re: [Gambas-user] svn 2624 and 2625

2010-01-23 Thread Benoît Minisini
> It seems to build allright but when I try to run Gambas... > > we...@bandit:/usr/local/bin> gambas3 > gbx3: no project file in /usr/local/bin/gambas3. > I have just recompiled the latest trunk on my Ubuntu 9.10 64 bits (which is a test machine), and everything is fine. Did you do a "./reconf"

Re: [Gambas-user] 2625 build Can't load class 'Main' error

2010-01-23 Thread Benoît Minisini
> Cannot load class 'Main': Unable to load class file > Desktop.Path_Read.352 > > Any ideas? > > I've downgraded each version until I reached which works ok. > > Any help appreciated. > > richard > I have just recompiled the latest trunk on my Ubuntu 9.10 64 bits (which is a test machine), a

Re: [Gambas-user] GTK - Form Events - Strange behaviours

2010-01-23 Thread Benoît Minisini
> Hi everybody, > I can't understand some behaviours, as reported in the subject. > > I'm using Gambas 2.13 from Ubuntu 9.10 64bit. > The project uses only gtk. > > I've created a Form, FTest, that contains five components: three labels, > one picture and a timer. > > This is my (trivial) code: