From john.aaron.rose at ...626... Tue Jan 1 10:43:25 2013
From: john.aaron.rose at ...626... (John Rose)
Date: Tue, 01 Jan 2013 09:43:25 +0000
Subject: [Gambas-user] File type possible bug
Message-ID: <50E2AFBD.7020109@...626...>
I'm not sure if this is a bug. I have a .txt file. I specify
Dialog.Filter = ["*.txt", "Text file only"]. I type the filename without
.txt at the end in response to Dialog.SaveFile(). I use a Shell command
to create a copy of this file (rather than File.Save). The filename of
the new file does not contain .txt at the end, whereas I expected that
it would. I've attached a small Test project illustrating this result.
--
Regards,
John
01902 331266
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/x-gzip
Size: 31357 bytes
Desc: not available
URL:
From gambas at ...1... Tue Jan 1 13:00:28 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Tue, 01 Jan 2013 13:00:28 +0100
Subject: [Gambas-user] 11111011101
Message-ID: <50E2CFDC.6090303@...1...>
Happy new year for every Gambas user using the gregorian calendar, and
its relatives!
Let's hope 2013 will be better than what many predict :-)
--
Beno?t Minisini
From gambas at ...1... Tue Jan 1 13:01:23 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Tue, 01 Jan 2013 13:01:23 +0100
Subject: [Gambas-user] IDE (and runtime) segfault
In-Reply-To: <1356784817.16466.16.camel@...2688...>
References: <1356784817.16466.16.camel@...2688...>
Message-ID: <50E2D013.8000908@...1...>
Le 29/12/2012 13:40, Bruce a ?crit :
> Hi Beno?t,
>
> This isn't really a bug per se, so I haven't reported it as such.
>
> If a child class implements a property that uses a _get(pname as string)
> in its' parent class and the child's property name is the same name as
> the referenced name in the parent then a simple typo can cause an IDE
> and runtime segfault.
>
> If you can understand that, then you are doing better than me, who is
> trying to write it. :-)
>
> Attached is a demo of what I am trying to say.
>
> As written, it runs correctly and prints the value "42".
>
> But if I mistype line 15 in Child.class as:
>
> Return Me.Something * 2
>
> (i.e. a dot instead of a bang) then we get a segfault.
>
> I appreciate that this is obscure and that I can't explain it better
> than this.
>
> your thoughts would be appreciated
> Bruce
>
It should be fixed in revision #5481. You should get the expected "Stack
overflow" error instead of a segfault.
Regards,
--
Beno?t Minisini
From gambas at ...1... Tue Jan 1 13:07:17 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Tue, 01 Jan 2013 13:07:17 +0100
Subject: [Gambas-user] Problems with application menu (diff QT/gtk)
In-Reply-To: <1356620041.2305.10.camel@...40...>
References: <1356620041.2305.10.camel@...40...>
Message-ID: <50E2D175.1050406@...1...>
Le 27/12/2012 15:54, Karl Reinl a ?crit :
> Salut
>
> on Menu there is for a bug and a big difference between QT and gtk.
> - With both the icon is not shown.
Because the icon you specified is (indirectly) stored in gb.form. And
you have unchecked the component.
> - gtk don't show the Checkbox
I see it, but I use gtk-oxygen theme on KDE.
>
> Run the attached project and/or see screens.
>
> Other, you can set Checked without Toggle on, and it shows a checkbox
>
I fixed the menubar layout in revision #5481 by the way.
Regards,
--
Beno?t Minisini
From linuxos at ...1896... Tue Jan 1 13:22:41 2013
From: linuxos at ...1896... (Olivier Cruilles)
Date: Tue, 1 Jan 2013 13:22:41 +0100
Subject: [Gambas-user] 11111011101
In-Reply-To: <50E2CFDC.6090303@...1...>
References: <50E2CFDC.6090303@...1...>
Message-ID:
Happy new year Benoit and all people.
Very great work on Gambas in 2012.
Cordialement,
Olivier Cruilles
Mail: linuxos at ...1896...
Le 1 janv. 2013 ? 13:00, Beno?t Minisini a ?crit :
> Happy new year
From gambas at ...2524... Tue Jan 1 14:33:35 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 01 Jan 2013 13:33:35 +0000
Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval
error and abort in IDE
In-Reply-To: <11-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
References: <11-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
<0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
Message-ID: <12-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
Comment #12 on issue 257 by mig... at ...626...: Database password retrieval
error and abort in IDE
http://code.google.com/p/gambas/issues/detail?id=257
Same issue.
Once a connection has been created, when running the app it cannot connect
to mysql server.
Here is my system info:
[System]
OperatingSystem=Linux
Kernel=3.2.0-35-generic
Architecture=x86_64
Memory=3965768 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.04.1 LTS"
Desktop=Gnome
[Gambas 3]
Version=3.3.4
Path=/usr/local/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.8.1
GTK+=libgtk-x11-2.0.so.0.2400.10
From gambas at ...2524... Tue Jan 1 14:36:15 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 01 Jan 2013 13:36:15 +0000
Subject: [Gambas-user] Issue 257 in gambas: Database password retrieval
error and abort in IDE
In-Reply-To: <12-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
References: <12-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
<0-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
Message-ID: <13-6813199134517018827-17207463185108027121-gambas=googlecode.com@...2524...>
Comment #13 on issue 257 by mig... at ...626...: Database password retrieval
error and abort in IDE
http://code.google.com/p/gambas/issues/detail?id=257
More info about the error. This is the error message:
gb.db: warning: unable to retrieve connection password:
mydatabase/Connection1: Unknown symbol 'Passwords' in class 'Desktop'
From jussi.lahtinen at ...626... Tue Jan 1 15:02:08 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Tue, 1 Jan 2013 16:02:08 +0200
Subject: [Gambas-user] Crash with DrawingArea
Message-ID:
Tested with latest revision of Gambas 3 on Xubuntu 12.04 64bit.
1. Click on Button1.
2. Close the form.
3. Crash.
Jussi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DrawingAreaBug-0.0.1.tar.gz
Type: application/x-gzip
Size: 4724 bytes
Desc: not available
URL:
From gambas at ...1... Tue Jan 1 15:41:14 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Tue, 01 Jan 2013 15:41:14 +0100
Subject: [Gambas-user] Crash with DrawingArea
In-Reply-To:
References:
Message-ID: <50E2F58A.3020103@...1...>
Le 01/01/2013 15:02, Jussi Lahtinen a ?crit :
> Tested with latest revision of Gambas 3 on Xubuntu 12.04 64bit.
>
> 1. Click on Button1.
> 2. Close the form.
> 3. Crash.
>
> Jussi
>
Fixed in revision #5483. Don't forget to call Paint.End() if you call
Paint.Begin()! :-)
--
Beno?t Minisini
From gambas.fr at ...626... Tue Jan 1 16:14:58 2013
From: gambas.fr at ...626... (Fabien Bodard)
Date: Tue, 1 Jan 2013 16:14:58 +0100
Subject: [Gambas-user] Happy New Year
Message-ID:
I wish an happy new year to all the Gambas Users. And i wish us, more and
more users for 2013.
My wish for Gambas in 2013 is ... to have more fun and pleasure with it
again :-).
--
Fabien Bodard
From gambas.fr at ...626... Tue Jan 1 16:17:26 2013
From: gambas.fr at ...626... (Fabien Bodard)
Date: Tue, 1 Jan 2013 16:17:26 +0100
Subject: [Gambas-user] 11111011101
In-Reply-To:
References: <50E2CFDC.6090303@...1...>
Message-ID:
Happy new year Benoit... 2013 will be what it will be ... don't worry about
the future ... it's only the future.
2013/1/1 Olivier Cruilles
> Happy new year Benoit and all people.
>
> Very great work on Gambas in 2012.
>
> Cordialement,
>
> Olivier Cruilles
> Mail: linuxos at ...1896...
>
> Le 1 janv. 2013 ? 13:00, Beno?t Minisini a
> ?crit :
>
> > Happy new year
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Fabien Bodard
From jussi.lahtinen at ...626... Tue Jan 1 21:20:37 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Tue, 1 Jan 2013 22:20:37 +0200
Subject: [Gambas-user] Crash with DrawingArea
In-Reply-To: <50E2F58A.3020103@...1...>
References:
<50E2F58A.3020103@...1...>
Message-ID:
Thanks!
Jussi
On Tue, Jan 1, 2013 at 4:41 PM, Beno?t Minisini <
gambas at ...1...> wrote:
> Le 01/01/2013 15:02, Jussi Lahtinen a ?crit :
> > Tested with latest revision of Gambas 3 on Xubuntu 12.04 64bit.
> >
> > 1. Click on Button1.
> > 2. Close the form.
> > 3. Crash.
> >
> > Jussi
> >
>
> Fixed in revision #5483. Don't forget to call Paint.End() if you call
> Paint.Begin()! :-)
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From gambas at ...2524... Tue Jan 1 22:57:13 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 01 Jan 2013 21:57:13 +0000
Subject: [Gambas-user] Issue 341 in gambas: Starting previous running
app: Bad event handler in FForm.Control_Draw()
In-Reply-To: <2-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
References: <2-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
<0-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
Message-ID: <3-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
Comment #3 on issue 341 by benoit.m... at ...626...: Starting previous running
app: Bad event handler in FForm.Control_Draw()
http://code.google.com/p/gambas/issues/detail?id=341
Is it fixed in the last revisions?
From taboege at ...626... Wed Jan 2 00:56:15 2013
From: taboege at ...626... (Tobias Boege)
Date: Wed, 2 Jan 2013 00:56:15 +0100
Subject: [Gambas-user] gbs3: Comment at last END hides startup method
Message-ID: <20130101235615.GB976@...2774...>
Hi,
I slightly remember this issue floating around here but I couldn't
(re)discover anything but an ancient thread[0] in which it's said that a
similar but not identic bug was fixed in rev#2578 which must be aeons
ago :-)
However, I tested the attached script with the latest gbs3 and it gives
error only with the particular 'evil comment' which has the unique property
to follow the last END statement in the source file. The error is:
ERROR: #24: No startup method
If you remove the comment (it suffices put it on the next line), everything
works.
[0] http://gambas.8142.n7.nabble.com/Gambas-scripter-td21635.html
-------------- next part --------------
#!/usr/bin/env gbs3
Public Sub Main()
T()
End ' I'm harmless!
Public Sub T()
Print 2^2
End ' I'm evil!
' Harmless comment
From gambas at ...2524... Wed Jan 2 05:08:56 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Wed, 02 Jan 2013 04:08:56 +0000
Subject: [Gambas-user] Issue 341 in gambas: Starting previous running
app: Bad event handler in FForm.Control_Draw()
In-Reply-To: <3-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
References: <3-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
<0-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
Message-ID: <4-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
Comment #4 on issue 341 by marcobra... at ...626...: Starting previous running
app: Bad event handler in FForm.Control_Draw()
http://code.google.com/p/gambas/issues/detail?id=341
tested on rev. 5486 on Ubuntu 12.10 32 bits... is ok
BTW was already fixed in previous svn builds...
've forgot to send positive feedback here...
From gambas at ...2524... Wed Jan 2 11:27:33 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Wed, 02 Jan 2013 10:27:33 +0000
Subject: [Gambas-user] Issue 341 in gambas: Starting previous running
app: Bad event handler in FForm.Control_Draw()
In-Reply-To: <4-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
References: <4-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
<0-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
Message-ID: <5-6813199134517018827-11509039431267074812-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #5 on issue 341 by benoit.m... at ...626...: Starting previous running
app: Bad event handler in FForm.Control_Draw()
http://code.google.com/p/gambas/issues/detail?id=341
(No comment was entered for this change.)
From gambas at ...2524... Thu Jan 3 21:49:01 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 03 Jan 2013 20:49:01 +0000
Subject: [Gambas-user] Issue 372 in gambas: CppCheck test results
Message-ID: <0-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version-TRUNK Type-Review Priority-High OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 372 by kim.di... at ...626...: CppCheck test results
http://code.google.com/p/gambas/issues/detail?id=372
Filename LineNumber CppCheckId Severity Message
gb.dbus/src/dbus_print_message.c 148 memleakOnRealloc error Common realloc
mistake: "bytes" nulled but not freed upon failure
gb.gsl/src/c_matrix.c 638 uninitvar error Uninitialized variable: m
gb.gsl/src/main.c 37 syntaxError error Invalid number of character ({) when
these macros are defined: '__cplusplus'.
gb.gsl/src/main.c 95 syntaxError error Invalid number of character ({) when
these macros are defined: '_cpluscplus'.
gb.gtk/src/gmessage.cpp 265 uninitvar error Uninitialized variable: filter
gb.net.smtp/src/main.c 52 syntaxError error Invalid number of character ({)
when these macros are defined: '_cpluscplus'.
gb.net.smtp/src/main.c 31 syntaxError error Invalid number of character ({)
when these macros are defined: '__cplusplus'.
gb.net/src/main.c 74 syntaxError error Invalid number of character ({) when
these macros are defined: '_cpluscplus'.
gb.net/src/main.c 39 syntaxError error Invalid number of character ({) when
these macros are defined: '__cplusplus'.
gb.net.curl/src/main.c 39 syntaxError error Invalid number of character ({)
when these macros are defined: '__cplusplus'.
gb.net.curl/src/main.c 75 syntaxError error Invalid number of character ({)
when these macros are defined: '_cpluscplus'.
gb.xml/src/element.h 54 syntaxError error Invalid number of character ({)
when these macros are defined: 'HELEMENT_H'.
gb.v4l/src/main.c 56 syntaxError error Invalid number of character ({) when
these macros are defined: '_cpluscplus'.
gb.v4l/src/main.c 32 syntaxError error Invalid number of character ({) when
these macros are defined: '__cplusplus'.
main/lib/compress/main.c 124 syntaxError error Invalid number of character
({) when these macros are defined: '_cpluscplus'.
main/lib/compress/main.c 39 syntaxError error Invalid number of character
({) when these macros are defined: '__cplusplus'.
From and.bertini at ...626... Thu Jan 3 22:05:14 2013
From: and.bertini at ...626... (Andrea Bertini)
Date: Thu, 3 Jan 2013 22:05:14 +0100
Subject: [Gambas-user] Happy new year 2013
Message-ID:
I hope for everybody and especially for gambas users and programmers the
best on year 2013. Hi Benoit.
Andrea Bertini (Rome)
From gambas at ...2524... Thu Jan 3 23:00:03 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 03 Jan 2013 22:00:03 +0000
Subject: [Gambas-user] Issue 372 in gambas: CppCheck test results
In-Reply-To: <0-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Comment #1 on issue 372 by benoit.m... at ...626...: CppCheck test results
http://code.google.com/p/gambas/issues/detail?id=372
Not very readable, but thanks!
Apparently:
- Error in 'gb.gsl/src/c_matrix.c' is a false positive.
- Error in 'gb.gtk/src/gmessage.cpp' too, and there is no occurrence of
the 'filter' variable on this line.
- Error in 'gb.xml/src/element.h' is a shameless hack of Adrien.
Others are typo in useless code that I will remove.
From gambas at ...2524... Thu Jan 3 23:07:30 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 03 Jan 2013 22:07:30 +0000
Subject: [Gambas-user] Issue 372 in gambas: CppCheck test results
In-Reply-To: <1-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
<0-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-6205887203490166762-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #2 on issue 372 by benoit.m... at ...626...: CppCheck test results
http://code.google.com/p/gambas/issues/detail?id=372
All errors should be fixed in revision #5489, except maybe the second one.
From gambas at ...2524... Fri Jan 4 07:55:10 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Fri, 04 Jan 2013 06:55:10 +0000
Subject: [Gambas-user] Issue 373 in gambas: Drag And Drop Data from CAJA and
Nautilus
Message-ID: <0-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 373 by bjda... at ...626...: Drag And Drop Data from CAJA and
Nautilus
http://code.google.com/p/gambas/issues/detail?id=373
1) Describe the problem.
I've recently ported over to MATE on Linux Mint 14.
The only issue I have come across is that I wrote a few applications in
gambas 2 & 3 that use the "drop and drag" feature of nautilus - in that I
can drag a file from nautilus into my gambas program and it will give me
the URL to the file to then process. Caja doesn't seem to support this, but
instead only gives me the X & Y of where the mouse is on the drop target
and not the file location.
Has anyone played with this sort of thing before with Caja? It works fine
in Nautilus.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: 3.3.3
Operating system: Linux
Distribution: Mint (Ubuntu Nadia)
Architecture: x86_64 & ARM
GUI component:QT4
Desktop used: MATE
5) Explain clearly how to reproduce the bug or the crash.
Make any form object able to receive a drop target.. ie image
PUBLIC SUB PictureBox1_Drop()
'recieve drop and get file path
drop_picture_path = urlencode(Drag.Data)
'PRINT drop_picture_path
picture_filename = findfilename(drop_picture_path)
'PRINT picture_filename
The problem is under nautilus it works just fine, but Caja reports the
mouse X & Y co-ordinates in the drag.DATA instead of the URL.
From Karl.Reinl at ...2345... Sat Jan 5 17:47:58 2013
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sat, 05 Jan 2013 17:47:58 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
Message-ID: <1357404478.2365.24.camel@...40...>
Salut Beno?t,
after update to r5490 I found this (Bildschirmfoto-r5490.png), or better
I did not re-find that (Bildschirmfoto-r5485.png or
Bildschirmfoto-r5xxx.png).
3 generations of Hsplit.
Attached your the test-project.
--
Amicalement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-r5490.png
Type: image/png
Size: 8097 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TEST-0.0.4.tar.gz
Type: application/x-compressed-tar
Size: 8165 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-r5xxx.png
Type: image/png
Size: 12835 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-r5485.png
Type: image/png
Size: 12399 bytes
Desc: not available
URL:
From gambas at ...1... Sat Jan 5 19:31:49 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 05 Jan 2013 19:31:49 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357404478.2365.24.camel@...40...>
References: <1357404478.2365.24.camel@...40...>
Message-ID: <50E87195.4000700@...1...>
Le 05/01/2013 17:47, Charlie Reinl a ?crit :
> Salut Beno?t,
>
> after update to r5490 I found this (Bildschirmfoto-r5490.png), or better
> I did not re-find that (Bildschirmfoto-r5485.png or
> Bildschirmfoto-r5xxx.png).
>
> 3 generations of Hsplit.
>
> Attached your the test-project.
>
The problem comes form the contents of your 'app.cfg' file. Can you send
it me?
By the way, you can store Integer[] directly in a configuration file,
you don't have to convert it to a string array.
Moreover, the splitter configuration can be saved directly by doing:
Settings.Write()
and retrieved with:
Settings.Read()
Regards,
--
Beno?t Minisini
From Karl.Reinl at ...2345... Sat Jan 5 20:48:21 2013
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sat, 05 Jan 2013 20:48:21 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <50E87195.4000700@...1...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
Message-ID: <1357415301.2365.38.camel@...40...>
Am Samstag, den 05.01.2013, 19:31 +0100 schrieb Beno?t Minisini:
> Le 05/01/2013 17:47, Charlie Reinl a ?crit :
> > Salut Beno?t,
> >
> > after update to r5490 I found this (Bildschirmfoto-r5490.png), or better
> > I did not re-find that (Bildschirmfoto-r5485.png or
> > Bildschirmfoto-r5xxx.png).
> >
> > 3 generations of Hsplit.
> >
> > Attached your the test-project.
> >
>
> The problem comes form the contents of your 'app.cfg' file. Can you send
> it me?
>
> By the way, you can store Integer[] directly in a configuration file,
> you don't have to convert it to a string array.
>
> Moreover, the splitter configuration can be saved directly by doing:
>
> Settings.Write()
>
> and retrieved with:
>
> Settings.Read()
>
> Regards,
>
Thanks for your hints!
Yes the third width is 0.
However before, you could catch it at the left side and draw it larger.
That do not work any more.
--
Amicalement
Charlie
From gambas at ...1... Sat Jan 5 21:15:36 2013
From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=)
Date: Sat, 05 Jan 2013 21:15:36 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357415301.2365.38.camel@...40...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
Message-ID: <50E889E8.4000604@...1...>
Le 05/01/2013 20:48, Charlie Reinl a ?crit :
> Thanks for your hints!
> Yes the third width is 0.
> However before, you could catch it at the left side and draw it larger.
> That do not work any more.
>
Sorry I don't understand what you wrote. If the third width was zero,
why did you expct to see it?
--
Beno?t Minisini
From gambas at ...1... Sat Jan 5 21:15:43 2013
From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=)
Date: Sat, 05 Jan 2013 21:15:43 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357415301.2365.38.camel@...40...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
Message-ID: <50E889EF.9010605@...1...>
Le 05/01/2013 20:48, Charlie Reinl a ?crit :
> Thanks for your hints!
> Yes the third width is 0.
> However before, you could catch it at the left side and draw it larger.
> That do not work any more.
>
Sorry I don't understand what you wrote. If the third width was zero,
why did you expect to see it?
--
Beno?t Minisini
From gambas at ...1... Sat Jan 5 21:52:53 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 05 Jan 2013 21:52:53 +0100
Subject: [Gambas-user] gbs3: Comment at last END hides startup method
In-Reply-To: <20130101235615.GB976@...2774...>
References: <20130101235615.GB976@...2774...>
Message-ID: <50E892A5.2030706@...1...>
Le 02/01/2013 00:56, Tobias Boege a ?crit :
> Hi,
>
> I slightly remember this issue floating around here but I couldn't
> (re)discover anything but an ancient thread[0] in which it's said that a
> similar but not identic bug was fixed in rev#2578 which must be aeons
> ago :-)
>
> However, I tested the attached script with the latest gbs3 and it gives
> error only with the particular 'evil comment' which has the unique property
> to follow the last END statement in the source file. The error is:
>
> ERROR: #24: No startup method
>
> If you remove the comment (it suffices put it on the next line), everything
> works.
>
> [0] http://gambas.8142.n7.nabble.com/Gambas-scripter-td21635.html
>
It should be fixed in revision #5492.
Regards,
--
Beno?t Minisini
From Karl.Reinl at ...2345... Sat Jan 5 22:23:39 2013
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sat, 05 Jan 2013 22:23:39 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <50E889EF.9010605@...1...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
<50E889EF.9010605@...1...>
Message-ID: <1357421019.2365.87.camel@...40...>
Am Samstag, den 05.01.2013, 21:15 +0100 schrieb Beno?t Minisini:
> Le 05/01/2013 20:48, Charlie Reinl a ?crit :
> > Thanks for your hints!
> > Yes the third width is 0.
> > However before, you could catch it at the left side and draw it larger.
> > That do not work any more.
> >
>
> Sorry I don't understand what you wrote. If the third width was zero,
> why did you expect to see it?
>
First I didn't see it.
What I did :
after an problem on my project, where I tried to pull the
section larger, that did not work, so I set the 0
width to 50, and that did change nothing again.
So I started the test-project.
- on F_r5490 with HS = Hsplit
- I added the two forms F_r5490_LE and F_r5490_TB to HS
- I ran it at saw I had forgot F_r5490_PE, so I quit the project
- I added the F_r5490_PE form .
- when I restarted, F_r5490_PE was not to see, and I could not catch it
to pull it larger.
- so I copied the project to another box with r5xxx and all worked fine
- after an update to r5485 still everything works
Finally there are 2 problems :
1. on Settings.Read() a 2 part Hsplit-layout keeps the
size of the two first parts, when a third part was added, and
sets the new part to 0
2. you can't pull the 0 sized part larger, because you can't catch
it
--
Amicalement
Charlie
From taboege at ...626... Sat Jan 5 22:28:44 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 5 Jan 2013 22:28:44 +0100
Subject: [Gambas-user] gbs3: Comment at last END hides startup method
In-Reply-To: <50E892A5.2030706@...1...>
References: <20130101235615.GB976@...2774...>
<50E892A5.2030706@...1...>
Message-ID: <20130105212844.GF726@...2774...>
On Sat, 05 Jan 2013, Beno?t Minisini wrote:
> Le 02/01/2013 00:56, Tobias Boege a ?crit :
> > Hi,
> >
> > I slightly remember this issue floating around here but I couldn't
> > (re)discover anything but an ancient thread[0] in which it's said that a
> > similar but not identic bug was fixed in rev#2578 which must be aeons
> > ago :-)
> >
> > However, I tested the attached script with the latest gbs3 and it gives
> > error only with the particular 'evil comment' which has the unique property
> > to follow the last END statement in the source file. The error is:
> >
> > ERROR: #24: No startup method
> >
> > If you remove the comment (it suffices put it on the next line), everything
> > works.
> >
> > [0] http://gambas.8142.n7.nabble.com/Gambas-scripter-td21635.html
> >
>
> It should be fixed in revision #5492.
Confirmed.
Thanks,
Tobi
From vuott at ...325... Sat Jan 5 23:45:39 2013
From: vuott at ...325... (Ru Vuott)
Date: Sat, 5 Jan 2013 22:45:39 +0000 (GMT)
Subject: [Gambas-user] Acting on a file in the local folder of a Gambas
project
Message-ID: <1357425939.13475.YahooMailClassic@...3054...>
Hello,
I don't understand...
I have a file in local folder of my Gambas project, if my Gambas code is:
Copy "myFile" To User.Home &/ "myFile"
it's possible copy the file;
But if the code is:
Move "myFile" To User.Home &/ "myFile"
it isn't possible to move the file.
Infact an error returns: "Access forbidden".
But, with "Move" if that code is:
Move Application.Path &/ "myFile" to User.Home &/ "myFile"
it' s OK. No errors.
''''''
So if the code is:
Print Stat("myFile").Auth
the permissions are: r--------
but if the code is:
Print Stat(Application.Path &/ "myFile").Auth
the console shows these permissions: rw-rw-r--
''''''
And more.
File.Save("myFile", "this is my file")
it isn't possible to save the file: "Access forbidden".
BUT:
string = File.Load("myFile")
this is possible !!!
And:
File.Save(Application.Path &/ "myFile", "this is my file")
this is possible.
'''
I don't understand why those different results (IF the "path" of file is made plain and IF not).
Regards
vuott
From bbruen at ...2308... Sun Jan 6 00:07:55 2013
From: bbruen at ...2308... (Bruce)
Date: Sun, 06 Jan 2013 09:37:55 +1030
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357421019.2365.87.camel@...40...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
<50E889EF.9010605@...1...>
<1357421019.2365.87.camel@...40...>
Message-ID: <1357427275.3880.14.camel@...2688...>
On Sat, 2013-01-05 at 22:23 +0100, Charlie Reinl wrote:
> Am Samstag, den 05.01.2013, 21:15 +0100 schrieb Beno?t Minisini:
> > Le 05/01/2013 20:48, Charlie Reinl a ?crit :
> > > Thanks for your hints!
> > > Yes the third width is 0.
> > > However before, you could catch it at the left side and draw it larger.
> > > That do not work any more.
> > >
> >
> > Sorry I don't understand what you wrote. If the third width was zero,
> > why did you expect to see it?
> >
>
> First I didn't see it.
> What I did :
> after an problem on my project, where I tried to pull the
> section larger, that did not work, so I set the 0
> width to 50, and that did change nothing again.
> So I started the test-project.
> - on F_r5490 with HS = Hsplit
> - I added the two forms F_r5490_LE and F_r5490_TB to HS
> - I ran it at saw I had forgot F_r5490_PE, so I quit the project
> - I added the F_r5490_PE form .
> - when I restarted, F_r5490_PE was not to see, and I could not catch it
> to pull it larger.
> - so I copied the project to another box with r5xxx and all worked fine
> - after an update to r5485 still everything works
>
> Finally there are 2 problems :
> 1. on Settings.Read() a 2 part Hsplit-layout keeps the
> size of the two first parts, when a third part was added, and
> sets the new part to 0
> 2. you can't pull the 0 sized part larger, because you can't catch
> it
>
Beno?t,
I believe I have the same problem(s). I am running r5485.
My demo attached.
Some further info that hopefully helps.
I don't think "adding" a third part to the splitter causes it, as my
splitter always had three parts. What appears to me is that:
* There is some limit to the ratios in the MainSplitter.Layout that
Arrange (?) can resolve when Settings.Read(MainSpliter) is invoked. For
example, in my demo if the saved ratios are MainSplitter=[79,408,245]
when the program is restarted, the left hand part is invisible, and
* even though I _can_ catch the resizing point for the left hand part,
as soon as it is dragged right, the middle part is shrunk to zero width
and I am resizing the middle and right parts only.
* exiting the program after that, the settings that are saved, for
example, are MainSplitter=[0,409,323]
Hope this info helps resolve this.
regards
Bruce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: splitterconfig-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 5068 bytes
Desc: not available
URL:
From bbruen at ...2308... Sun Jan 6 00:25:18 2013
From: bbruen at ...2308... (Bruce)
Date: Sun, 06 Jan 2013 09:55:18 +1030
Subject: [Gambas-user] Acting on a file in the local folder of a Gambas
project
In-Reply-To: <1357425939.13475.YahooMailClassic@...3054...>
References: <1357425939.13475.YahooMailClassic@...3054...>
Message-ID: <1357428318.3880.23.camel@...2688...>
Hi Vuott,
The answer lies in understanding the difference between relative and
absolute paths in the gambas runtime. There is some help at
http://gambasdoc.org/help/cat/path?pt&v3
Some comments inline below
On Sat, 2013-01-05 at 22:45 +0000, Ru Vuott wrote:
> Hello,
>
>
> I don't understand...
>
> I have a file in local folder of my Gambas project, if my Gambas code is:
>
> Copy "myFile" To User.Home &/ "myFile"
>
> it's possible copy the file;
Here you are using a relative path to a file inside the executable, not
the file in your source directory. So, as per the pemissions revealed by
your Print Stat(..) below, you can Copy it somewhere else.
>
>
> But if the code is:
>
> Move "myFile" To User.Home &/ "myFile"
>
> it isn't possible to move the file.
> Infact an error returns: "Access forbidden".
Yes because the permissions for the file inside the executable are read
only and Move, i.e. Copy + Delete cannot be achieved.
>
> But, with "Move" if that code is:
>
> Move Application.Path &/ "myFile" to User.Home &/ "myFile"
>
> it' s OK. No errors.
Here you are using an absolute path, i.e. your source directory, and as
per the second Stat below you do have Write access to that real file.
>
> ''''''
>
> So if the code is:
>
> Print Stat("myFile").Auth
>
> the permissions are: r--------
>
> but if the code is:
>
> Print Stat(Application.Path &/ "myFile").Auth
>
> the console shows these permissions: rw-rw-r--
>
> ''''''
>
> And more.
>
> File.Save("myFile", "this is my file")
>
> it isn't possible to save the file: "Access forbidden".
Again, the relative path means that you are trying to access the file
that has been compressed inside the executable and no write access is
allowed.
>
>
> BUT:
>
> string = File.Load("myFile")
>
> this is possible !!!
As per the first example.
>
> And:
>
> File.Save(Application.Path &/ "myFile", "this is my file")
>
> this is possible.
Again, the absolute path means this is trying to save the real file
inside your source project.
>
> '''
>
> I don't understand why those different results (IF the "path" of file is made plain and IF not).
See the help page.
>
> Regards
> vuott
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
Hope that helps
regards
Bruce
From vuott at ...325... Sun Jan 6 01:28:40 2013
From: vuott at ...325... (Ru Vuott)
Date: Sun, 6 Jan 2013 00:28:40 +0000 (GMT)
Subject: [Gambas-user] Acting on a file in the local folder of a Gambas
project
In-Reply-To: <1357428318.3880.23.camel@...2688...>
Message-ID: <1357432120.34554.YahooMailClassic@...3065...>
Ah, Ok.
Thanks a lot, Bruce.
vuott
--- Dom 6/1/13, Bruce ha scritto:
> Da: Bruce
> Oggetto: Re: [Gambas-user] Acting on a file in the local folder of a Gambas project
> A: "mailing list for gambas users"
> Cc: gambas at ...1...
> Data: Domenica 6 gennaio 2013, 00:25
> Hi Vuott,
>
> The answer lies in understanding the difference between
> relative and
> absolute paths in the gambas runtime.? There is some
> help at
> http://gambasdoc.org/help/cat/path?pt&v3
>
>
> Some comments inline below
>
> On Sat, 2013-01-05 at 22:45 +0000, Ru Vuott wrote:
> > Hello,
> >
> >
> > I don't understand...
> >
> > I have a file in local folder of my Gambas project, if
> my Gambas code is:
> >
> >? ? Copy "myFile" To User.Home &/
> "myFile"
> >
> > it's possible copy the file;
> Here you are using a relative path to a file inside the
> executable, not
> the file in your source directory. So, as per the pemissions
> revealed by
> your Print Stat(..) below, you can Copy it somewhere else.
> >
> >
> > But if the code is:
> >
> >? ? Move "myFile" To User.Home &/
> "myFile"
> >
> > it isn't possible to move the file.
> > Infact an error returns: "Access forbidden".
> Yes because the permissions for the file inside the
> executable are read
> only and Move, i.e. Copy + Delete cannot be achieved.
>
> >
> > But, with "Move" if that code is:
> >
> >? ? Move Application.Path &/ "myFile" to
> User.Home &/ "myFile"
> >
> > it' s OK. No errors.
> Here you are using an absolute path, i.e. your source
> directory, and as
> per the second Stat below you do have Write access to that
> real file.
> >
> > ''''''
> >
> > So if the code is:
> >
> >? ? Print Stat("myFile").Auth
> >
> > the permissions are:? r--------
> >
> > but if the code is:
> >
> >? ? Print Stat(Application.Path &/
> "myFile").Auth
> >
> > the console shows these permissions: rw-rw-r--
> >
> > ''''''
> >
> > And more.
> >
> >? ? File.Save("myFile", "this is my file")
> >
> > it isn't possible to save the file: "Access
> forbidden".
> Again, the relative path means that you are trying to access
> the file
> that has been compressed inside the executable and no write
> access is
> allowed.
>
> >
> >
> > BUT:
> >
> >? ? string = File.Load("myFile")
> >
> > this is possible !!!
> As per the first example.
>
> >
> > And:
> >? ?
> >? ? File.Save(Application.Path &/
> "myFile", "this is my file")
> >
> > this is possible.
> Again, the absolute path means this is trying to save the
> real file
> inside your source project.
>
> >
> > '''
> >
> > I don't understand why those different results (IF the
> "path" of file is made plain and IF not).
> See the help page.
>
> >
> > Regards
> > vuott
> >
> >
> ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C#
> 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep
> your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials
> by Microsoft
> > MVPs and experts. SALE $99.99 this month only -- learn
> more at:
> > http://p.sf.net/sfu/learnmore_122912
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> Hope that helps
>
> regards
> Bruce
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012,
> HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your
> skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by
> Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more
> at:
> http://p.sf.net/sfu/learnmore_122912
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From taboege at ...626... Sun Jan 6 01:40:20 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 6 Jan 2013 01:40:20 +0100
Subject: [Gambas-user] Capricious Shell instruction
Message-ID: <20130106004020.GI726@...2774...>
Hi Benoit,
we came across some strange symptoms with the Shell instruction. Namely, the
amount of output is quite different depending on
a) whether a Process is created or the Shell ... To syntax is used;
b) how much commands are specified and how long each one executes;
c) where the output is sent to.
I prepared a test suite. The single case Hans originally pointed out can be
reproduced here: it is case "aca" in the demonstration project. It gives
only a small percentage of the total output of the "env" command. The
other ones I added are reliably reproducible on my system: Gambas rev#5492.
Though, the numbers of lines vary from time to time where not the full
output is shown.
There is one control window and the big text window on its right is one of
the two "output targets". The smaller text window below the main one is to
display descriptions of the test case and the symptoms observed over here.
I hope it is reproducible on other machines and that the project is readable
enough for you. Sorry if these errors are due to wrong assumptions I made
concerning the Shell instruction.
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell_caprice-0.0.1.tar.gz
Type: application/octet-stream
Size: 8722 bytes
Desc: not available
URL:
From gambas at ...1... Sun Jan 6 02:19:02 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 06 Jan 2013 02:19:02 +0100
Subject: [Gambas-user] Capricious Shell instruction
In-Reply-To: <20130106004020.GI726@...2774...>
References: <20130106004020.GI726@...2774...>
Message-ID: <50E8D106.9090202@...1...>
Le 06/01/2013 01:40, Tobias Boege a ?crit :
> Hi Benoit,
>
> we came across some strange symptoms with the Shell instruction. Namely, the
> amount of output is quite different depending on
>
> a) whether a Process is created or the Shell ... To syntax is used;
> b) how much commands are specified and how long each one executes;
> c) where the output is sent to.
>
> I prepared a test suite. The single case Hans originally pointed out can be
> reproduced here: it is case "aca" in the demonstration project. It gives
> only a small percentage of the total output of the "env" command. The
> other ones I added are reliably reproducible on my system: Gambas rev#5492.
> Though, the numbers of lines vary from time to time where not the full
> output is shown.
>
> There is one control window and the big text window on its right is one of
> the two "output targets". The smaller text window below the main one is to
> display descriptions of the test case and the symptoms observed over here.
>
> I hope it is reproducible on other machines and that the project is readable
> enough for you. Sorry if these errors are due to wrong assumptions I made
> concerning the Shell instruction.
>
> Regards,
> Tobi
>
Apparently this is a bug introduced in Line Input since it has been
optimized, that prevents the process output to be flushed when the
process has been killed
Replace 'Line Input' by 'Read', and Shell should work as expected in all
cases.
By the way, you should never use Line Input to read a process stream, as
Line Input blocks if it does not receive the end-of-line character.
Regards,
--
Beno?t Minisini
From taboege at ...626... Sun Jan 6 02:20:02 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 6 Jan 2013 02:20:02 +0100
Subject: [Gambas-user] Watching File and Pipe
Message-ID: <20130106012002.GK726@...2774...>
Hi Benoit,
here's the story: I originally wanted to redirect the Error instruction's
default stream to a pipe which I could then read from in the same
application. For some reason I got a "Bad file descriptor" (must be EBADF?)
error when using
Error "test"
after having redirected
Error To #File.In
I am used to stdin being open and writable but maybe things are different in
graphical applications - would be logical; I don't know...
However, it didn't work so I tried with a temporary file - I simply needed a
stream with one read and one write end.
The problem now is, when I try to watch a File or Pipe created using either
hFile = Open sPath For Input Output Create Watch
or
hPipe = Pipe sPath For Read Write Watch
that the File_Read() event is called without end and Pipe_Read() is never
called.
Moreover, the Pipe seems to raise the File_Read() event and not the
Pipe_Read() one and the file does not raise either event. The combination of
the creation flags does _not_ seem to be the reason. I got the same results
when using distinct read and write streams for both of them.
It's rather late already. I hope I'm not going bananas or oversee some
obvious mistakes here... (Well, using a single File for both operations may
actually be total nonsense. Please CMIIW.)
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file_and_pipe_watch-0.0.1.tar.gz
Type: application/octet-stream
Size: 6017 bytes
Desc: not available
URL:
From taboege at ...626... Sun Jan 6 02:28:44 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 6 Jan 2013 02:28:44 +0100
Subject: [Gambas-user] Capricious Shell instruction
In-Reply-To: <50E8D106.9090202@...1...>
References: <20130106004020.GI726@...2774...>
<50E8D106.9090202@...1...>
Message-ID: <20130106012844.GM726@...2774...>
On Sun, 06 Jan 2013, Beno?t Minisini wrote:
> Le 06/01/2013 01:40, Tobias Boege a ?crit :
> > Hi Benoit,
> >
> > we came across some strange symptoms with the Shell instruction. Namely, the
> > amount of output is quite different depending on
> >
> > a) whether a Process is created or the Shell ... To syntax is used;
> > b) how much commands are specified and how long each one executes;
> > c) where the output is sent to.
> >
> > I prepared a test suite. The single case Hans originally pointed out can be
> > reproduced here: it is case "aca" in the demonstration project. It gives
> > only a small percentage of the total output of the "env" command. The
> > other ones I added are reliably reproducible on my system: Gambas rev#5492.
> > Though, the numbers of lines vary from time to time where not the full
> > output is shown.
> >
> > There is one control window and the big text window on its right is one of
> > the two "output targets". The smaller text window below the main one is to
> > display descriptions of the test case and the symptoms observed over here.
> >
> > I hope it is reproducible on other machines and that the project is readable
> > enough for you. Sorry if these errors are due to wrong assumptions I made
> > concerning the Shell instruction.
> >
> > Regards,
> > Tobi
> >
>
> Apparently this is a bug introduced in Line Input since it has been
> optimized, that prevents the process output to be flushed when the
> process has been killed
>
> Replace 'Line Input' by 'Read', and Shell should work as expected in all
> cases.
>
> By the way, you should never use Line Input to read a process stream, as
> Line Input blocks if it does not receive the end-of-line character.
>
Oh, yes. Works perfectly now.
I supposedly never did something more overkill than this project :-)
Thanks,
Tobi
From gambas at ...1... Sun Jan 6 02:45:42 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 06 Jan 2013 02:45:42 +0100
Subject: [Gambas-user] Watching File and Pipe
In-Reply-To: <20130106012002.GK726@...2774...>
References: <20130106012002.GK726@...2774...>
Message-ID: <50E8D746.90409@...1...>
Le 06/01/2013 02:20, Tobias Boege a ?crit :
> Hi Benoit,
>
> here's the story: I originally wanted to redirect the Error
> instruction's default stream to a pipe which I could then read from
> in the same application. For some reason I got a "Bad file
> descriptor" (must be EBADF?) error when using
>
> Error "test"
>
> after having redirected
>
> Error To #File.In
File.In is associated with a file descriptor opened for reading, so this
is a non-sense.
The only thing you can do is Error To #File.Out.
>
> I am used to stdin being open and writable but maybe things are
> different in graphical applications - would be logical; I don't
> know...
Where did you read that? Did you notice the "in" in "stdin"?
>
> However, it didn't work so I tried with a temporary file - I simply
> needed a stream with one read and one write end.
>
> The problem now is, when I try to watch a File or Pipe created using
> either
>
> hFile = Open sPath For Input Output Create Watch
>
> or
>
> hPipe = Pipe sPath For Read Write Watch
>
> that the File_Read() event is called without end
Logical, as a normal file is always ready to be read.
> and Pipe_Read() is never called.
>
> Moreover, the Pipe seems to raise the File_Read() event and not the
> Pipe_Read() one and the file does not raise either event. The
> combination of the creation flags does _not_ seem to be the reason. I
> got the same results when using distinct read and write streams for
> both of them.
All streams use "File_" as event handler prefix, even pipes.
And the Read event will be raised when there is something to read on the
pipe.
Regards,
--
Beno?t Minisini
From bbruen at ...2308... Sun Jan 6 09:23:22 2013
From: bbruen at ...2308... (Bruce)
Date: Sun, 06 Jan 2013 18:53:22 +1030
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357421019.2365.87.camel@...40...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
<50E889EF.9010605@...1...>
<1357421019.2365.87.camel@...40...>
Message-ID: <1357460602.3880.41.camel@...2688...>
OK, I have been playing with this all day.
What is happening in _Split.Layout does not make sense.
I modified my original demo to add some debugs which is attached.
And here is the output(with #comments):
Run 0 : Before anything the config file is manually set to
MainSplitter=[5,5,5]
Run 1 : Hsplit layout not touched
=================================
FMain.Form_Open.13: ---- values as read using
Settings["FMain/MainSplitter"] ----
FMain.Form_Open.14: Directly read Layout numbers: 5 5
5
FMain.Form_Open.15: Direct Left part %age: 33.3333333333333
FMain.Form_Open.16: Direct Middle part %age: 33.3333333333333
FMain.Form_Open.17: Direct Right part %age: 33.3333333333333
FMain.Form_Open.21: ---- values AFTER the layout has been set (using
MainSplitter.Layout = iDirect ----
FMain.Form_Open.22: MainSplitter.Layout numbers: 2 2
2
FMain.Form_Open.23: MainSplitter.Layout Left part %age: 33.3333333333333
FMain.Form_Open.24: MainSplitter.Layout Middle part %age:
33.3333333333333
FMain.Form_Open.25: MainSplitter.Layout Right part %age:
33.3333333333333
FMain.Form_Close.34:
FMain.Form_Close.35: Actual Layout numbers: 284 284 284
FMain.Form_Close.36: Left part %age: 33.3333333333333
FMain.Form_Close.37: Middle part %age: 33.3333333333333
FMain.Form_Close.38: Right part %age: 33.3333333333333
FMain.Form_Close.42: ---- values read back in from the config file AFTER
the Settings.Write ----
FMain.Form_Close.43: Saved Layout numbers: 284 284 284
FMain.Form_Close.44: Left part %age: 33.3333333333333
FMain.Form_Close.45: Middle part %age: 33.3333333333333
FMain.Form_Close.46: Right part %age: 33.3333333333333
Run 2 : Left part shrunk just a little bit
==========================================
FMain.Form_Open.13: ---- values as read using
Settings["FMain/MainSplitter"] ----
FMain.Form_Open.14: Directly read Layout numbers: 284 284
284
FMain.Form_Open.15: Direct Left part %age: 33.3333333333333
FMain.Form_Open.16: Direct Middle part %age: 33.3333333333333
FMain.Form_Open.17: Direct Right part %age: 33.3333333333333
FMain.Form_Open.21: ---- values AFTER the layout has been set (using
MainSplitter.Layout = iDirect ----
FMain.Form_Open.22: MainSplitter.Layout numbers: 2 2
2
FMain.Form_Open.23: MainSplitter.Layout Left part %age: 33.3333333333333
FMain.Form_Open.24: MainSplitter.Layout Middle part %age:
33.3333333333333
FMain.Form_Open.25: MainSplitter.Layout Right part %age:
33.3333333333333
# Here we just move the left part a little bit to the left
FMain.Form_Close.34:
FMain.Form_Close.35: Actual Layout numbers: 252 314 284
FMain.Form_Close.36: Left part %age: 29.6470588235294
FMain.Form_Close.37: Middle part %age: 36.9411764705882
FMain.Form_Close.38: Right part %age: 33.4117647058824
FMain.Form_Close.42: ---- values read back in from the config file AFTER
the Settings.Write ----
FMain.Form_Close.43: Saved Layout numbers: 252 314 284
FMain.Form_Close.44: Left part %age: 29.6470588235294
FMain.Form_Close.45: Middle part %age: 36.9411764705882
FMain.Form_Close.46: Right part %age: 33.4117647058824
Run 3 : Left part shrunk almost to the point where the horizontal scroll
appears
================================================================================
FMain.Form_Open.13: ---- values as read using
Settings["FMain/MainSplitter"] ----
FMain.Form_Open.14: Directly read Layout numbers: 252 314
284
FMain.Form_Open.15: Direct Left part %age: 29.6470588235294
FMain.Form_Open.16: Direct Middle part %age: 36.9411764705882
FMain.Form_Open.17: Direct Right part %age: 33.4117647058824
FMain.Form_Open.21: ---- values AFTER the layout has been set (using
MainSplitter.Layout = iDirect ----
FMain.Form_Open.22: MainSplitter.Layout numbers: 2 2
2
FMain.Form_Open.23: MainSplitter.Layout Left part %age: 33.3333333333333
FMain.Form_Open.24: MainSplitter.Layout Middle part %age:
33.3333333333333
FMain.Form_Open.25: MainSplitter.Layout Right part %age:
33.3333333333333
# Note: The layout is actually some approximation of the ratios as held
in the config file
# This I do not understand. I would expect [30,37,33] which = 100 but
instead I get [2,2,2]
# User shrinks the left part to just wider than the point at which the
horizontal scroll
# bar appears in the left hand treeview
FMain.Form_Close.34:
FMain.Form_Close.35: Actual Layout numbers: 71 494 286
FMain.Form_Close.36: Left part %age: 8.34312573443008
FMain.Form_Close.37: Middle part %age: 58.0493537015276
FMain.Form_Close.38: Right part %age: 33.6075205640423
FMain.Form_Close.42: ---- values read back in from the config file AFTER
the Settings.Write ----
FMain.Form_Close.43: Saved Layout numbers: 71 494 286
FMain.Form_Close.44: Left part %age: 8.34312573443008
FMain.Form_Close.45: Middle part %age: 58.0493537015276
FMain.Form_Close.46: Right part %age: 33.6075205640423
Run 4: Check we can still grab the resizer
==========================================
FMain.Form_Open.13: ---- values as read using
Settings["FMain/MainSplitter"] ----
FMain.Form_Open.14: Directly read Layout numbers: 71 494
286
FMain.Form_Open.15: Direct Left part %age: 8.34312573443008
FMain.Form_Open.16: Direct Middle part %age: 58.0493537015276
FMain.Form_Open.17: Direct Right part %age: 33.6075205640423
FMain.Form_Open.21: ---- values AFTER the layout has been set (using
MainSplitter.Layout = iDirect ----
FMain.Form_Open.22: MainSplitter.Layout numbers: 0 4
2
FMain.Form_Open.23: MainSplitter.Layout Left part %age: 0
FMain.Form_Open.24: MainSplitter.Layout Middle part %age:
66.6666666666667
FMain.Form_Open.25: MainSplitter.Layout Right part %age:
33.3333333333333
# No, the left part has dissappeared and even though the numbers read
back in out of the config file
# are "correct as saved", when the layout is set it is reclculated to a
different set of ratios.
# Again these ratios are approximations of the ratios specified in the
config file
# Also, having now read the DoLayout code of the _Split class, I see
that the control in the left hand
# part is now hidden.
# I would have expected, from the _Split.DoLayout code [8,58,34] but why
[0,4,2]
# re _Split.DoLayout(Value)
# @ ~line 177 iTotal=sum of all values passed to DoLayout i.e. 71+494
+286 = 851
# @ ~line 187 W (for the lh part) = Value[I] * WMax / iTotal i.e.
71*panelwidth/851 = 71*567/851 = 47
# ( and the other 2 parts will be 494*567/851=329 and 286*567/851=190,
so WTotal=47+329+190=566
What is going on here?
???
Bruce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: splitterconfig-0.0.2.tar.gz
Type: application/x-compressed-tar
Size: 5482 bytes
Desc: not available
URL:
From taboege at ...626... Sun Jan 6 11:32:01 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 6 Jan 2013 11:32:01 +0100
Subject: [Gambas-user] Watching File and Pipe
In-Reply-To: <50E8D746.90409@...1...>
References: <20130106012002.GK726@...2774...>
<50E8D746.90409@...1...>
Message-ID: <20130106103201.GA581@...2774...>
On Sun, 06 Jan 2013, Beno?t Minisini wrote:
> Le 06/01/2013 02:20, Tobias Boege a ?crit :
> > Hi Benoit,
> >
> > here's the story: I originally wanted to redirect the Error
> > instruction's default stream to a pipe which I could then read from
> > in the same application. For some reason I got a "Bad file
> > descriptor" (must be EBADF?) error when using
> >
> > Error "test"
> >
> > after having redirected
> >
> > Error To #File.In
>
> File.In is associated with a file descriptor opened for reading, so this
> is a non-sense.
>
> The only thing you can do is Error To #File.Out.
>
> >
> > I am used to stdin being open and writable but maybe things are
> > different in graphical applications - would be logical; I don't
> > know...
>
> Where did you read that? Did you notice the "in" in "stdin"?
>
I kind of read that in the "kbd" source code. It holds at least for the
Linux console that you can freely write to fd 0 if this in turn is
connected to a tty. This does _not_ work, however, for FILE *stdin, quite
true.
> >
> > However, it didn't work so I tried with a temporary file - I simply
> > needed a stream with one read and one write end.
> >
> > The problem now is, when I try to watch a File or Pipe created using
> > either
> >
> > hFile = Open sPath For Input Output Create Watch
> >
> > or
> >
> > hPipe = Pipe sPath For Read Write Watch
> >
> > that the File_Read() event is called without end
>
> Logical, as a normal file is always ready to be read.
>
The doc says: "If at least one byte can be read". This statement is IMHO
ambiguous. I expected the Read() event to be raised when Lof(hFile) > 0.
Do you think this sentence needs clarification?
> > and Pipe_Read() is never called.
> >
> > Moreover, the Pipe seems to raise the File_Read() event and not the
> > Pipe_Read() one and the file does not raise either event. The
> > combination of the creation flags does _not_ seem to be the reason. I
> > got the same results when using distinct read and write streams for
> > both of them.
>
> All streams use "File_" as event handler prefix, even pipes.
>
I went and fixed the documentation for PIPE accordingly.
Regards,
Tobi
From gambas at ...2524... Sun Jan 6 14:12:17 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 06 Jan 2013 13:12:17 +0000
Subject: [Gambas-user] Issue 374 in gambas: Cannot compile trunks gb.media
on Ubuntu 11.04
Message-ID: <0-6813199134517018827-14303361277815552665-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 374 by r... at ...1740...: Cannot compile trunks gb.media on
Ubuntu 11.04
http://code.google.com/p/gambas/issues/detail?id=374
1) Describe the problem.
Cannot compile trunks gb.media on Ubuntu 11.04
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: 5489
Operating system: Linux
Distribution: Ubuntu
Architecture: x86_64
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome
5) Explain clearly how to reproduce the bug or the crash.
Install gb.media pre-requisites
$ sudo apt-get install libgstreamer-plugins-base0.10-dev
run ./reconf-all && ./configure -C
run make
Making all in gb.media
make[2]: Entering directory `/home/ron/install/gambas/trunk/gb.media'
make all-recursive
make[3]: Entering directory `/home/ron/install/gambas/trunk/gb.media'
Making all in src
make[4]: Entering directory `/home/ron/install/gambas/trunk/gb.media/src'
CC gb_media_la-main.lo
CC gb_media_la-c_media.lo
c_media.c: In function \u2018MediaControl_get\u2019:
c_media.c:539:17: error: \u2018G_VALUE_INIT\u2019 undeclared (first use in
this function)
c_media.c:539:17: note: each undeclared identifier is reported only once
for each function it appears in
c_media.c: In function \u2018MediaControl_put\u2019:
c_media.c:557:17: error: \u2018G_VALUE_INIT\u2019 undeclared (first use in
this function)
c_media.c: In function \u2018cb_message\u2019:
c_media.c:923:6: warning: implicit declaration of function
\u2018gst_tag_list_to_string\u2019
c_media.c:923:11: warning: assignment makes pointer from integer without a
cast
c_media.c:941:10: error: \u2018GST_MESSAGE_PROGRESS\u2019 undeclared (first
use in this function)
make[4]: *** [gb_media_la-c_media.lo] Error 1
make[4]: Leaving directory `/home/ron/install/gambas/trunk/gb.media/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ron/install/gambas/trunk/gb.media'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ron/install/gambas/trunk/gb.media'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ron/install/gambas/trunk'
make: *** [all] Error 2
From Karl.Reinl at ...2345... Sun Jan 6 14:15:24 2013
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Sun, 06 Jan 2013 14:15:24 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357460602.3880.41.camel@...2688...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
<50E889EF.9010605@...1...>
<1357421019.2365.87.camel@...40...>
<1357460602.3880.41.camel@...2688...>
Message-ID: <1357478124.2455.33.camel@...40...>
Am Sonntag, den 06.01.2013, 18:53 +1030 schrieb Bruce:
> OK, I have been playing with this all day.
> ------------------------8<-------------------------
>
> What is going on here?
>
> ???
> Bruce
>
Thanks Bruce, with your code I found out the following :
I can't use the splitter with GTK see Screenshuts
and here my system :
[System]
OperatingSystem=Linux
Kernel=3.0.0-29-generic
Architecture=x86
Distribution=Ubuntu 10.04.4 LTS
Desktop=GNOME
Theme=QPlastique
--
Amicalement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-2.png
Type: image/png
Size: 19595 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-3.png
Type: image/png
Size: 232686 bytes
Desc: not available
URL:
From karl.reinl at ...9... Sun Jan 6 14:38:09 2013
From: karl.reinl at ...9... (Karl Reinl)
Date: Sun, 06 Jan 2013 14:38:09 +0100
Subject: [Gambas-user] r5490, did you clean up too much ?
In-Reply-To: <1357460602.3880.41.camel@...2688...>
References: <1357404478.2365.24.camel@...40...>
<50E87195.4000700@...1...>
<1357415301.2365.38.camel@...40...>
<50E889EF.9010605@...1...>
<1357421019.2365.87.camel@...40...>
<1357460602.3880.41.camel@...2688...>
Message-ID: <1357479489.2455.36.camel@...40...>
Am Sonntag, den 06.01.2013, 18:53 +1030 schrieb Bruce:
> OK, I have been playing with this all day.
> ------------------------8<-------------------------
>
> What is going on here?
>
> ???
> Bruce
>
Thanks Bruce, with your code I found out the following :
I can't use the splitter with GTK see Screenshuts
and here my system :
[System]
OperatingSystem=Linux
Kernel=3.0.0-29-generic
Architecture=x86
Distribution=Ubuntu 10.04.4 LTS
Desktop=GNOME
Theme=QPlastique
--
Amicalement
Charlie
Sorry som infos got lost:
[System]
OperatingSystem=Linux
Kernel=3.0.0-29-generic
Architecture=x86
Distribution=Ubuntu 10.04.4 LTS
Desktop=GNOME
Theme=QPlastique
Language=de_DE.UTF-8
Memory=3026M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.24.1
GTK+=libgtk-x11-2.0.so.0.2000.1
Poppler=libpoppler.so.5.0.0
Qt4=libQtCore.so.4.6.2
SDL=libSDL-1.2.so.0.11.3
but also same problem on this system :
[System]
OperatingSystem=Linux
Kernel=3.2.0-34-generic
Architecture=x86_64
Distribution=Ubuntu 12.04.1 LTS
Desktop=GNOME
Theme=QGtk
Language=de_DE.UTF-8
Memory=992M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.30.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-2.png
Type: image/png
Size: 19595 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-3.png
Type: image/png
Size: 232686 bytes
Desc: not available
URL:
From gambas at ...1... Mon Jan 7 00:34:24 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Mon, 07 Jan 2013 00:34:24 +0100
Subject: [Gambas-user] Problems with splitter controls
Message-ID: <50EA0A00.7060404@...1...>
Are things better with revision #5494?
--
Beno?t Minisini
From bbruen at ...2308... Mon Jan 7 05:37:28 2013
From: bbruen at ...2308... (Bruce)
Date: Mon, 07 Jan 2013 15:07:28 +1030
Subject: [Gambas-user] Slider mousewheel event
Message-ID: <1357533448.3880.53.camel@...2688...>
Hi all,
I am trying to get the new value of a slider control when the user spins
the mousewheel over it.
Public Sub InnerSlider_MouseWheel()
Debug $innerslider.Value
Wait
Debug $innerslider.Value
$innervaluebox.Text = $innerslider.Value
End
InnerSlider_MouseWheel fires before the event loop has updated the
slider value, so I tried inserting that wait line. This did not help,
the debug values before and after the wait are the same, i.e. the
previous value of the slider.
Is there a way to defer or "fake a deferral" of the MouseWheel event
until after the value has been updated?
(BTW The MouseWheel event firing before the update is right and proper
IMO.)
tia
Bruce
From gambas at ...2524... Mon Jan 7 11:54:22 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Mon, 07 Jan 2013 10:54:22 +0000
Subject: [Gambas-user] Issue 375 in gambas: Profiler : problem with
recursive methods
Message-ID: <0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-High OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 375 by adamn... at ...626...: Profiler : problem with recursive
methods
http://code.google.com/p/gambas/issues/detail?id=375
1) Describe the problem.
Recursive method durations appear to be incorrectly summed by the profiler.
The durations reported by the profiler for recursive methods are greater
than the total runtime for the application.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5494
Operating system: Linux
Distribution: Other
Architecture: x86
GUI component: n/a
Desktop used: n/a
3) Provide a little project that reproduces the bug or the crash.
Attached
Also attached is a sample .prof file
4) If your project needs a database, try to provide it, or part of it.
n/a
5) Explain clearly how to reproduce the bug or the crash.
Run the project with the profiler.
The durations for the recursive methods Node.SortInsert and
Node.InorderDump are greater than the total runtime for the program.
Attachments:
genbtree-0.0.3.tar.gz 7.8 KB
genbtree.36.prof 21.6 KB
From gambas at ...2524... Mon Jan 7 12:18:05 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Mon, 07 Jan 2013 11:18:05 +0000
Subject: [Gambas-user] Issue 376 in gambas: Help for aliased properties
Message-ID: <0-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Low OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 376 by adamn... at ...626...: Help for aliased properties
http://code.google.com/p/gambas/issues/detail?id=376
1) Describe the problem.
If a property has aliases then the help displayed for both the original and
aliased properties does not show the help comments associated with the
property. This is true whether or not the help comment is on the
declaration line or before it.
This applies to both the inline help and the help browser.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
As per #375
3) Provide a little project that reproduces the bug or the crash.
Use project in #375
4) If your project needs a database, try to provide it, or part of it.
n/a
5) Explain clearly how to reproduce the bug or the crash.
Load project in IDE
F1
Click Node, then Firstchild property
Click back
Click LeftNode property
Neither shows the help comment "The "left" branch, representing the first
child node added."
Same applies to inline/autocomplete help.
Rating = Very low.
From gambas at ...1... Mon Jan 7 12:27:06 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Mon, 07 Jan 2013 12:27:06 +0100
Subject: [Gambas-user] Watching File and Pipe
In-Reply-To: <20130106103201.GA581@...2774...>
References: <20130106012002.GK726@...2774...>
<50E8D746.90409@...1...>
<20130106103201.GA581@...2774...>
Message-ID: <50EAB10A.7020701@...1...>
Le 06/01/2013 11:32, Tobias Boege a ?crit :
>>> that the File_Read() event is called without end
>>
>> Logical, as a normal file is always ready to be read.
>>
>
> The doc says: "If at least one byte can be read". This statement is IMHO
> ambiguous. I expected the Read() event to be raised when Lof(hFile) > 0.
> Do you think this sentence needs clarification?
Logically the Read event should not be raised if the file pointer is at
the end of file, but this is managed by the kernel, so I can't be sure!
--
Beno?t Minisini
From gambas at ...1... Mon Jan 7 12:29:09 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Mon, 07 Jan 2013 12:29:09 +0100
Subject: [Gambas-user] Watching File and Pipe
In-Reply-To: <50EAB10A.7020701@...1...>
References: <20130106012002.GK726@...2774...>
<50E8D746.90409@...1...>
<20130106103201.GA581@...2774...>
<50EAB10A.7020701@...1...>
Message-ID: <50EAB185.7090602@...1...>
Le 07/01/2013 12:27, Beno?t Minisini a ?crit :
> Le 06/01/2013 11:32, Tobias Boege a ?crit :
>>>> that the File_Read() event is called without end
>>>
>>> Logical, as a normal file is always ready to be read.
>>>
>>
>> The doc says: "If at least one byte can be read". This statement is IMHO
>> ambiguous. I expected the Read() event to be raised when Lof(hFile) > 0.
>> Do you think this sentence needs clarification?
>
> Logically the Read event should not be raised if the file pointer is at
> the end of file, but this is managed by the kernel, so I can't be sure!
>
OK. Here is what the manpage of 'select' says:
Three independent sets of file descriptors are watched. Those
listed in 'readfds' will be watched to see if characters become
available for reading (more precisely, to see if a read will
not block; in particular, a file descriptor is also ready on
end-of-file)
So even if we are on end-of-file, the Read event will be raised!
--
Beno?t Minisini
From gambas at ...1... Mon Jan 7 13:04:02 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Mon, 07 Jan 2013 13:04:02 +0100
Subject: [Gambas-user] Slider mousewheel event
In-Reply-To: <1357533448.3880.53.camel@...2688...>
References: <1357533448.3880.53.camel@...2688...>
Message-ID: <50EAB9B2.8050108@...1...>
Le 07/01/2013 05:37, Bruce a ?crit :
> Hi all,
>
> I am trying to get the new value of a slider control when the user spins
> the mousewheel over it.
>
> Public Sub InnerSlider_MouseWheel()
>
> Debug $innerslider.Value
> Wait
> Debug $innerslider.Value
> $innervaluebox.Text = $innerslider.Value
>
> End
>
> InnerSlider_MouseWheel fires before the event loop has updated the
> slider value, so I tried inserting that wait line. This did not help,
> the debug values before and after the wait are the same, i.e. the
> previous value of the slider.
>
> Is there a way to defer or "fake a deferral" of the MouseWheel event
> until after the value has been updated?
>
> (BTW The MouseWheel event firing before the update is right and proper
> IMO.)
>
> tia
> Bruce
>
Why don't you use the "Change" event?
--
Beno?t Minisini
From gambas at ...2524... Mon Jan 7 13:31:51 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Mon, 07 Jan 2013 12:31:51 +0000
Subject: [Gambas-user] Issue 377 in gambas: Error while opening project
without subversion installed.
Message-ID: <0-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 377 by r... at ...1740...: Error while opening project without
subversion installed.
http://code.google.com/p/gambas/issues/detail?id=377
1) Describe the problem.
Error while opening project without subversion installed.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: Gambas3 from ppa:sebikul/gambas-daily
Revision: N/A
Operating system: Linux
Distribution: Ubuntu
Architecture: x86_64
GUI component:
Desktop used: Gnome
5) Explain clearly how to reproduce the bug or the crash.
Open a project without having subversion installed (no svn executable)
You get an error 'Cannot open project file:' etc see also attachment.
Problem is caused by Exec command without error checking or try.
File: app/src/gambas3/.src/Subversion/VersionControl.module
Line: 30
If Not $sSvnVersion Then
Exec ["svn", "--version", "--quiet"] To $sSvnVersion
$sSvnVersion = Trim($sSvnVersion)
$bSvn17 = $sSvnVersion Begins "1.7."
Endif
Regards,
Ron.
Attachments:
Version control.png 26.1 KB
From bbruen at ...2308... Mon Jan 7 13:51:26 2013
From: bbruen at ...2308... (Bruce)
Date: Mon, 07 Jan 2013 23:21:26 +1030
Subject: [Gambas-user] Slider mousewheel event
In-Reply-To: <50EAB9B2.8050108@...1...>
References: <1357533448.3880.53.camel@...2688...>
<50EAB9B2.8050108@...1...>
Message-ID: <1357563086.3880.58.camel@...2688...>
On Mon, 2013-01-07 at 13:04 +0100, Beno?t Minisini wrote:
> Le 07/01/2013 05:37, Bruce a ?crit :
> > Hi all,
> >
> > I am trying to get the new value of a slider control when the user spins
> > the mousewheel over it.
> >
> > Public Sub InnerSlider_MouseWheel()
> >
> > Debug $innerslider.Value
> > Wait
> > Debug $innerslider.Value
> > $innervaluebox.Text = $innerslider.Value
> >
> > End
> >
> > InnerSlider_MouseWheel fires before the event loop has updated the
> > slider value, so I tried inserting that wait line. This did not help,
> > the debug values before and after the wait are the same, i.e. the
> > previous value of the slider.
> >
> > Is there a way to defer or "fake a deferral" of the MouseWheel event
> > until after the value has been updated?
> >
> > (BTW The MouseWheel event firing before the update is right and proper
> > IMO.)
> >
> > tia
> > Bruce
> >
>
> Why don't you use the "Change" event?
>
? Damned if I know. Thanks.
B
From karl.reinl at ...9... Mon Jan 7 15:19:50 2013
From: karl.reinl at ...9... (Karl Reinl)
Date: Mon, 07 Jan 2013 15:19:50 +0100
Subject: [Gambas-user] a new strange behavior
Message-ID: <1357568390.2364.20.camel@...40...>
Salut Beno?t,
for testing matters, I loaded the ReportExample from Examples and saved
it as ReportExample in my home directory to 'Testing+Bugs'.
Then I added on top of FMain.class 'Export', changed in Properties from
normal to library and made an executable.
After I loaded Database from Examples and saved it as Database in my
home directory to 'Testing+Bugs' beside ReportExample.
And attached in Properties/library the before made ReportExample.gambas.
Now when I start Database in the IDE by F5 , the FMain from
ReportExample comes up.
Said : both project have FMain as startup marked. If I change Database
FMain to FMain1 Database starts
tested with Revision 5494
--
Amicalement
Charlie
[System]
OperatingSystem=Linux
Kernel=3.0.0-29-generic
Architecture=x86
Distribution=Ubuntu 10.04.4 LTS
Desktop=GNOME
Theme=QPlastique
Language=de_DE.UTF-8
Memory=3026M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.24.1
GTK+=libgtk-x11-2.0.so.0.2000.1
Poppler=libpoppler.so.5.0.0
Qt4=libQtCore.so.4.6.2
SDL=libSDL-1.2.so.0.11.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto.png
Type: image/png
Size: 226316 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-1.png
Type: image/png
Size: 8627 bytes
Desc: not available
URL:
From taboege at ...626... Mon Jan 7 16:32:12 2013
From: taboege at ...626... (Tobias Boege)
Date: Mon, 7 Jan 2013 16:32:12 +0100
Subject: [Gambas-user] Watching File and Pipe
In-Reply-To: <50EAB185.7090602@...1...>
References: <20130106012002.GK726@...2774...>
<50E8D746.90409@...1...>
<20130106103201.GA581@...2774...>
<50EAB10A.7020701@...1...>
<50EAB185.7090602@...1...>
Message-ID: <20130107153212.GA525@...2774...>
On Mon, 07 Jan 2013, Beno?t Minisini wrote:
> Le 07/01/2013 12:27, Beno?t Minisini a ?crit :
> > Le 06/01/2013 11:32, Tobias Boege a ?crit :
> >>>> that the File_Read() event is called without end
> >>>
> >>> Logical, as a normal file is always ready to be read.
> >>>
> >>
> >> The doc says: "If at least one byte can be read". This statement is IMHO
> >> ambiguous. I expected the Read() event to be raised when Lof(hFile) > 0.
> >> Do you think this sentence needs clarification?
> >
> > Logically the Read event should not be raised if the file pointer is at
> > the end of file, but this is managed by the kernel, so I can't be sure!
> >
>
> OK. Here is what the manpage of 'select' says:
>
> Three independent sets of file descriptors are watched. Those
> listed in 'readfds' will be watched to see if characters become
> available for reading (more precisely, to see if a read will
> not block; in particular, a file descriptor is also ready on
> end-of-file)
>
> So even if we are on end-of-file, the Read event will be raised!
OK. Sorry for the false positives.
FYI, I felt to mention that Gambas uses select() in the documentation. This
would clarify the situation to most people, I think.
Regards,
Tobi
From gambas at ...2524... Tue Jan 8 02:49:36 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 01:49:36 +0000
Subject: [Gambas-user] Issue 377 in gambas: Error while opening project
without subversion installed.
In-Reply-To: <0-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-TRUNK
Comment #1 on issue 377 by benoit.m... at ...626...: Error while opening
project without subversion installed.
http://code.google.com/p/gambas/issues/detail?id=377
(No comment was entered for this change.)
From gambas at ...2524... Tue Jan 8 02:50:36 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 01:50:36 +0000
Subject: [Gambas-user] Issue 377 in gambas: Error while opening project
without subversion installed.
In-Reply-To: <1-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
<0-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-13419041072732750137-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #2 on issue 377 by benoit.m... at ...626...: Error while opening
project without subversion installed.
http://code.google.com/p/gambas/issues/detail?id=377
Fixed in revision #5496.
From gambas at ...2524... Tue Jan 8 02:54:26 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 01:54:26 +0000
Subject: [Gambas-user] Issue 375 in gambas: Profiler : problem with
recursive methods
In-Reply-To: <0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-TRUNK
Comment #1 on issue 375 by benoit.m... at ...626...: Profiler : problem with
recursive methods
http://code.google.com/p/gambas/issues/detail?id=375
(No comment was entered for this change.)
From gambas at ...2524... Tue Jan 8 03:14:36 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 02:14:36 +0000
Subject: [Gambas-user] Issue 376 in gambas: Help for aliased properties
In-Reply-To: <0-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-TRUNK
Comment #1 on issue 376 by benoit.m... at ...626...: Help for aliased
properties
http://code.google.com/p/gambas/issues/detail?id=376
(No comment was entered for this change.)
From gambas at ...2524... Tue Jan 8 03:15:36 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 02:15:36 +0000
Subject: [Gambas-user] Issue 376 in gambas: Help for aliased properties
In-Reply-To: <1-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
<0-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-3296357761597109254-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #2 on issue 376 by benoit.m... at ...626...: Help for aliased
properties
http://code.google.com/p/gambas/issues/detail?id=376
Fixed in revision #5497.
From gambas at ...2524... Tue Jan 8 09:59:56 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 08:59:56 +0000
Subject: [Gambas-user] Issue 378 in gambas: Filename needs to have .txt
entered (in Dialog.SaveFile()) even though Filter specifies .txt only
Message-ID: <0-6813199134517018827-12212962085775572339-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 378 by john.aaron.rose at ...626...: Filename needs to have .txt
entered (in Dialog.SaveFile()) even though Filter specifies .txt only
http://code.google.com/p/gambas/issues/detail?id=378
I'm not sure if this is a bug. I have a .txt file. I specify Dialog.Filter
= ["*.txt", "Text file only"]. I type the filename without .txt at the end
in response to Dialog.SaveFile(). I use a Shell command to create a copy of
this file (rather than File.Save). The filename of the new file does not
contain .txt at the end, whereas I expected that it would. I've attached a
small Test project illustrating this result.
[OperatingSystem]
OperatingSystem=Linux
KernelRelease=3.2.0-35-generic
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.04.1 LTS"
[System]
CPUArchitecture=x86_64
TotalRam=8070756 kB
Desktop=Gnome
[Gambas]
Gambas1=Not Installed
Gambas2=Not Installed
Gambas3=3.3.4
Gambas3Path=/usr/bin/gbx3
Attachments:
Test.tar.gz 30.6 KB
From gambas at ...2524... Tue Jan 8 17:40:12 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 16:40:12 +0000
Subject: [Gambas-user] Issue 379 in gambas: ERROR: #2: Cannot load class
'Balloon': Bytecode too recent. Please upgrade Gambas.
Message-ID: <0-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 379 by r... at ...1740...: ERROR: #2: Cannot load
class 'Balloon': Bytecode too recent. Please upgrade Gambas.
http://code.google.com/p/gambas/issues/detail?id=379
1) Describe the problem.
$ gambas3
ERROR: #2: Cannot load class 'Balloon': Bytecode too recent. Please upgrade
Gambas.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision:
URL: svn://svn.code.sf.net/p/gambas/code/gambas/trunk
Repository Root: svn://svn.code.sf.net/p/gambas/code
Repository UUID: 02bb98e2-b625-4c1b-a9b2-7bc90b9017ea
Revision: 5497
Node Kind: directory
Schedule: normal
Last Changed Author: gambas
Last Changed Rev: 5497
Last Changed Date: 2013-01-08 03:14:13 +0100 (Tue, 08 Jan 2013)
Operating system: Linux
Distribution: Ubuntu
Architecture: x86_64
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome
5) Explain clearly how to reproduce the bug or the crash.
Download trunk fresh
reconf and configure, compile and start gambas3
From gambas at ...2524... Tue Jan 8 18:30:52 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 17:30:52 +0000
Subject: [Gambas-user] Issue 379 in gambas: ERROR: #2: Cannot load class
'Balloon': Bytecode too recent. Please upgrade Gambas.
In-Reply-To: <0-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
Comment #1 on issue 379 by r... at ...1740...: ERROR: #2: Cannot load
class 'Balloon': Bytecode too recent. Please upgrade Gambas.
http://code.google.com/p/gambas/issues/detail?id=379
Nevermind, old /usr/local/stuff again.
Why are all versions installed in different directories, I had 3.3.4, and
moving to trunk doesn't go without removing old bins.
From gambas at ...2524... Tue Jan 8 19:05:04 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 18:05:04 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
Message-ID: <0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-High OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP requests
(and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
1) Describe the problem.
gambas3 has a RpcClient and RpcServer component. I use the client to send
xml requests to the server, only the client sends an invalid request.
The requests has 2 issues:
- The request is incorrectly terminated, because it is missing the "\r\n"
(hex 0x0d 0x0a)
- In the xml request only "\n" is done, this should be "\r\n" also
The request looks now:
\nglobalvar.get
This should be:
\r\nglobalvar.get\r\n
As side-effect the RpcServer stops working completely, only a restart of
the gambas3 application helps (it should time-out?)
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5495 (if you use a development version)
Operating system: Linux
Distribution: LUbuntu 10.04
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome / KDE ...
3) Provide a little project that reproduces the bug or the crash.
Attached are the following files:
RpcClient.tar.gz - example project
gambas2-client.eth - tcpdump between gambas2 client and gambas3 server -
WORKS
gambas3-client-eth - tcpdump between gambas3 client and gambas3 server -
Does NOT work
gambas3-manual.eth - tcpdump between telnet & copy-paste command and
gambas3 server - WORKS
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
RpcClient.tar.gz 5.2 KB
gambas2-client.eth 8.2 KB
gambas3-client.eth 1.2 KB
gambas3-manual.eth 7.2 KB
From gambas at ...2524... Tue Jan 8 19:27:07 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 18:27:07 +0000
Subject: [Gambas-user] Issue 379 in gambas: ERROR: #2: Cannot load class
'Balloon': Bytecode too recent. Please upgrade Gambas.
In-Reply-To: <1-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
<0-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-14363700176550667767-gambas=googlecode.com@...2524...>
Updates:
Status: Invalid
Labels: -Version Version-TRUNK
Comment #2 on issue 379 by benoit.m... at ...626...: ERROR: #2: Cannot load
class 'Balloon': Bytecode too recent. Please upgrade Gambas.
http://code.google.com/p/gambas/issues/detail?id=379
You tell me! :-)
Officially, executables from binary packages are installed in /usr
(/usr/bin, /usr/lib, ...) and executables compiled from sources are
installed in /usr/local.
But some people complained about that difference, so now executables
compiled from sources are also installed in /usr.
But now, if you have an old Gambas compiled from sources, you get old stuff
in /usr/local that must be removed by hand. Otherwise, as /usr/local comes
before /usr in the PATH environment variable, you always run the old
executables! And so the mess...
Sorry for that inconvenience.
From gambas at ...2524... Tue Jan 8 19:28:17 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 08 Jan 2013 18:28:17 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-TRUNK
Comment #1 on issue 380 by benoit.m... at ...626...: RpcClient sends invalid
HTTP requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
(No comment was entered for this change.)
From karl.reinl at ...9... Tue Jan 8 22:46:12 2013
From: karl.reinl at ...9... (Karl Reinl)
Date: Tue, 08 Jan 2013 22:46:12 +0100
Subject: [Gambas-user] Paint.Begin(
Private/Public Function Shuffle(list As Variant[]) As Variant[]
Dim iLast As Integer
Dim iRnd As Integer
iLast = list.Max
Randomize
While iLast > 1
iRnd = Rnd(0, iLast)
Swap list[iLast], list[iRnd]
Dec iLast
Wend
Return list
End
As I haven't said, today the doctor gave me a probability of either 3
months or 30 years. So, given my luck, I'd better start getting some of
this stuff out there.
brta
Bruce
From gambas at ...1... Thu Jan 10 13:18:02 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Thu, 10 Jan 2013 13:18:02 +0100
Subject: [Gambas-user] a new strange behavior
In-Reply-To: <1357568390.2364.20.camel@...40...>
References: <1357568390.2364.20.camel@...40...>
Message-ID: <50EEB17A.3070709@...1...>
Le 07/01/2013 15:19, Karl Reinl a ?crit :
> Salut Beno?t,
>
> for testing matters, I loaded the ReportExample from Examples and saved
> it as ReportExample in my home directory to 'Testing+Bugs'.
>
> Then I added on top of FMain.class 'Export', changed in Properties from
> normal to library and made an executable.
>
> After I loaded Database from Examples and saved it as Database in my
> home directory to 'Testing+Bugs' beside ReportExample.
>
> And attached in Properties/library the before made ReportExample.gambas.
>
> Now when I start Database in the IDE by F5 , the FMain from
> ReportExample comes up.
>
> Said : both project have FMain as startup marked. If I change Database
> FMain to FMain1 Database starts
>
> tested with Revision 5494
>
If you export FMain from your library, and if you have a FMain class in
your project, then the interpreter will make the project's FMain form
override (i.e. inherit with the same name) the library's FMain form.
But as FMain is a form, it already inherits "Form", and so cannot
override something else.
So you should get an error. But maybe it is silently ignored and so,
trying to start something called FMain anyway, the interpreter starts
the first one located in the library.
I will look at that.
Was I clear enough?
--
Beno?t Minisini
From laurent.bernabe at ...626... Thu Jan 10 13:20:00 2013
From: laurent.bernabe at ...626... (laurent bernabe)
Date: Thu, 10 Jan 2013 13:20:00 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To:
References:
<1357817608.2371.2.camel@...40...>
Message-ID:
I solved my problem !
First I am using the latest development version of Gambas instead of the
version available on nemh repository.
This way I could have an idea of where I did my error.
I must not write
private brouillon[6,6] as new Integer
but rather
private brouillon as new Integer[6,6]
Regards
2013/1/10 laurent bernabe
> Hello,
>
> Thank you for your answer.
>
> But I replaced gb.gui to gb.qt4 and it did not solve the problem.
>
> Regards
>
> 2013/1/10 Charlie Reinl
>
>> Am Donnerstag, den 10.01.2013, 12:02 +0100 schrieb laurent bernabe:
>> > Hello,
>> >
>> > Could someone help me for resolving a strange gambas behaviour ?
>> >
>> > When I run my project, I get an error saying me that I gave an incorrect
>> > type : but the stack trace is empty (Fmain.fmain.0) and I it does not
>> show
>> > me where I did the error.
>> >
>> > I've attached a screenshot, my project in a compressed format (zip) and
>> my
>> > configuration.
>> >
>> > Thanks in advance for your help.
>>
>> Salut,
>>
>> change from gb.gui to gb.gtk or gb.qt4 and try if that helps
>> --
>> Amicalement
>> Charlie
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122712
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
From gambas at ...1... Thu Jan 10 13:21:41 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Thu, 10 Jan 2013 13:21:41 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To:
References:
Message-ID: <50EEB255.4000503@...1...>
Le 10/01/2013 12:02, laurent bernabe a ?crit :
> Hello,
>
> Could someone help me for resolving a strange gambas behaviour ?
>
> When I run my project, I get an error saying me that I gave an incorrect
> type : but the stack trace is empty (Fmain.fmain.0) and I it does not show
> me where I did the error.
>
> I've attached a screenshot, my project in a compressed format (zip) and my
> configuration.
>
> Thanks in advance for your help.
>
It's a bug in the compiler.
Private brouillon[6, 6] As New Integer
is not syntactically correct. But the compiler instead compiles
something incorrect.
You should write:
Private brouillon As New Integer[6, 6]
Regards,
--
Beno?t Minisini
From gambas at ...1... Thu Jan 10 13:22:52 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Thu, 10 Jan 2013 13:22:52 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To: <50EEB255.4000503@...1...>
References:
<50EEB255.4000503@...1...>
Message-ID: <50EEB29C.8020807@...1...>
Le 10/01/2013 13:21, Beno?t Minisini a ?crit :
> Le 10/01/2013 12:02, laurent bernabe a ?crit :
>> Hello,
>>
>> Could someone help me for resolving a strange gambas behaviour ?
>>
>> When I run my project, I get an error saying me that I gave an incorrect
>> type : but the stack trace is empty (Fmain.fmain.0) and I it does not
>> show
>> me where I did the error.
>>
>> I've attached a screenshot, my project in a compressed format (zip)
>> and my
>> configuration.
>>
>> Thanks in advance for your help.
>>
>
> It's a bug in the compiler.
>
> Private brouillon[6, 6] As New Integer
>
> is not syntactically correct. But the compiler instead compiles
> something incorrect.
>
> You should write:
>
> Private brouillon As New Integer[6, 6]
>
> Regards,
>
Of course, you should write that if it is really what you intented
originally. Maybe you wanted "brouillon[6, 6] As New Integer[]", or
something else...
--
Beno?t Minisini
From laurent.bernabe at ...626... Thu Jan 10 14:01:10 2013
From: laurent.bernabe at ...626... (laurent bernabe)
Date: Thu, 10 Jan 2013 14:01:10 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To: <50EEB255.4000503@...1...>
References:
<50EEB255.4000503@...1...>
Message-ID:
Ok : That's why I could not be told about my error.
Thank you very much :)
2013/1/10 Beno?t Minisini
> Le 10/01/2013 12:02, laurent bernabe a ?crit :
> > Hello,
> >
> > Could someone help me for resolving a strange gambas behaviour ?
> >
> > When I run my project, I get an error saying me that I gave an incorrect
> > type : but the stack trace is empty (Fmain.fmain.0) and I it does not
> show
> > me where I did the error.
> >
> > I've attached a screenshot, my project in a compressed format (zip) and
> my
> > configuration.
> >
> > Thanks in advance for your help.
> >
>
> It's a bug in the compiler.
>
> Private brouillon[6, 6] As New Integer
>
> is not syntactically correct. But the compiler instead compiles
> something incorrect.
>
> You should write:
>
> Private brouillon As New Integer[6, 6]
>
> Regards,
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From laurent.bernabe at ...626... Thu Jan 10 14:04:42 2013
From: laurent.bernabe at ...626... (laurent bernabe)
Date: Thu, 10 Jan 2013 14:04:42 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To: <50EEB29C.8020807@...1...>
References:
<50EEB255.4000503@...1...>
<50EEB29C.8020807@...1...>
Message-ID:
Ok : thank you.
By the way, can I ask you whether Gambas projects are interpreted, some
kind of byte-coded or compiled ?
It's because I want to code a project like the famous "Le compte est bon"
(The calculation is good).
Regards
2013/1/10 Beno?t Minisini
> Le 10/01/2013 13:21, Beno?t Minisini a ?crit :
> > Le 10/01/2013 12:02, laurent bernabe a ?crit :
> >> Hello,
> >>
> >> Could someone help me for resolving a strange gambas behaviour ?
> >>
> >> When I run my project, I get an error saying me that I gave an incorrect
> >> type : but the stack trace is empty (Fmain.fmain.0) and I it does not
> >> show
> >> me where I did the error.
> >>
> >> I've attached a screenshot, my project in a compressed format (zip)
> >> and my
> >> configuration.
> >>
> >> Thanks in advance for your help.
> >>
> >
> > It's a bug in the compiler.
> >
> > Private brouillon[6, 6] As New Integer
> >
> > is not syntactically correct. But the compiler instead compiles
> > something incorrect.
> >
> > You should write:
> >
> > Private brouillon As New Integer[6, 6]
> >
> > Regards,
> >
>
> Of course, you should write that if it is really what you intented
> originally. Maybe you wanted "brouillon[6, 6] As New Integer[]", or
> something else...
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From gambas.fr at ...626... Thu Jan 10 14:35:56 2013
From: gambas.fr at ...626... (Fabien Bodard)
Date: Thu, 10 Jan 2013 14:35:56 +0100
Subject: [Gambas-user] report
In-Reply-To: <50EE230F.60802@...169...>
References: <50EE230F.60802@...169...>
Message-ID:
so ? ... need miore info to help you
2013/1/10 Shane
> can someone tell me how to use this tried a test project but can't get
> anything to display
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Fabien Bodard
From gambas at ...2524... Thu Jan 10 15:41:48 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 10 Jan 2013 14:41:48 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <3-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <3-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <4-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #4 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
Ok, i found a typo in your
r5498 "./gb.xml/src/rpc/gb.xml.rpc/.src/RpcClient.class" file. Change the
following from:
If Right(sData) <> "\n" Then sData = "\n"
to:
If Right(sData) <> "\n" Then sData &= "\n"
It still doesn't work with this fix (but the request looks fine now), so i
will dig deeper into the code.
From gambas at ...2524... Thu Jan 10 18:39:15 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 10 Jan 2013 17:39:15 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <4-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <4-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <5-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #5 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
@Benoit:
I found the reason why it isn't working. The RpcClient is sending the HTTP
request in 2 IP packets and the RpcServer can't handle this.
If we look in gambas3-client.eth" you can see in TCP/IP packet 6:
-------------------------------------------------------
POST / HTTP/1.1
User-Agent: Gambas/3.4 (gb.net.curl; Linux)
Host: localhost:9009
Accept: */*
Content-Type: text/xml
Content-Length: 113
The rest of the data is in TCP/IP packet 8:
-----------------------------------
globalvar.get
I did a strace on my RpcServer, and you can notice it HANGS (cpu goes to
100%) and the strace shows:
poll([{fd=16, events=POLLIN|POLLNVAL}], 1, 0) = 1 ([{fd=16,
revents=POLLIN}])
recv(16, "P", 1, MSG_PEEK|MSG_NOSIGNAL) = 1
ioctl(16, FIONREAD, [144]) = 0
ioctl(16, FIONREAD, [144]) = 0
ioctl(16, FIONREAD, [144]) = 0
recv(16, "POST / HTTP/1.1\r\nUser-Agent: Gam"..., 144, MSG_NOSIGNAL) = 144
The 144 byte is EXACTLY the end of the first packet and start of the second
packet.
ps. in gambas2 the RpcClient send the request in 1 TCP/IP packet
From gambas at ...2524... Thu Jan 10 18:52:53 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 10 Jan 2013 17:52:53 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <5-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <5-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <6-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #6 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
Looking in the "miniServer.class" file, it seems it retrieves the first
part and it "expects" more data, because the Content-Length specifies 116
bytes, but there is nothing more in the packet.
From gambas at ...1... Thu Jan 10 20:44:50 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Thu, 10 Jan 2013 20:44:50 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To:
References:
<50EEB255.4000503@...1...>
<50EEB29C.8020807@...1...>
Message-ID: <50EF1A32.1080209@...1...>
Le 10/01/2013 14:04, laurent bernabe a ?crit :
> Ok : thank you.
>
> By the way, can I ask you whether Gambas projects are interpreted, some
> kind of byte-coded or compiled ?
> It's because I want to code a project like the famous "Le compte est bon"
> (The calculation is good).
>
> Regards
>
Interpreted (or just-in time compiled if you need and if your CPU is
Intel or AMD). I don't the see the relation with "le compte est bon"!
--
Beno?t Minisini
From laurent.bernabe at ...626... Thu Jan 10 21:48:03 2013
From: laurent.bernabe at ...626... (laurent bernabe)
Date: Thu, 10 Jan 2013 21:48:03 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To: <50EF1A32.1080209@...1...>
References:
<50EEB255.4000503@...1...>
<50EEB29C.8020807@...1...>
<50EF1A32.1080209@...1...>
Message-ID:
Because in "le compte est bon" I use a recursive algorithm.
2013/1/10 Beno?t Minisini
> Le 10/01/2013 14:04, laurent bernabe a ?crit :
> > Ok : thank you.
> >
> > By the way, can I ask whether Gambas projects are interpreted, some
> > kind of byte-coded or compiled ?
> > It's because I want to code a project like the famous "Le compte est bon"
> > (The calculation is good).
> >
> > Regards
> >
>
> Interpreted (or just-in time compiled if you need and if your CPU is
> Intel or AMD). I don't the see the relation with "le compte est bon"!
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From gambas at ...2524... Thu Jan 10 22:09:43 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 10 Jan 2013 21:09:43 +0000
Subject: [Gambas-user] Issue 384 in gambas: XmlReader doesn't raise an error
on FromString if string is empty, which it did in gambas2
Message-ID: <0-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 384 by uAle... at ...626...: XmlReader doesn't raise an error on
FromString if string is empty, which it did in gambas2
http://code.google.com/p/gambas/issues/detail?id=384
1) Describe the problem.
The XmlReader doesn't raise an error if the FromString("") is used. In
gambas2 it did this.
I can fix this in my own code, but the gambas components like RpcServer
(using "gb.xml/src/rpc/gb.xml.rpc/.src/miniServer.class") also depend on
this. Currently if sending an empty XML form to the RpcServer, causes the
application to hang (100% cpu usage) in a endless loop.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK gambas3
Revision: r5498 (if you use a development version)
Operating system: Linux
Distribution: Ubuntu
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: LXDE
3) Provide a little project that reproduces the bug or the crash.
Attached is the gambas2 and gambas3 project. The gambas2 project ends
with "Error #1" and the gambas3 project hangs/100% cpu usage.
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
XmlReader.tar 30.0 KB
From gambas at ...2524... Thu Jan 10 22:11:14 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 10 Jan 2013 21:11:14 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <6-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <6-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <7-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #7 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
@Benoit:
For the 100% cpu usage i logged another issue:
http://code.google.com/p/gambas/issues/detail?id=384
From gambas at ...2524... Fri Jan 11 14:03:34 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Fri, 11 Jan 2013 13:03:34 +0000
Subject: [Gambas-user] Issue 384 in gambas: XmlReader doesn't raise an
error on FromString if string is empty, which it did in gambas2
In-Reply-To: <0-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #1 on issue 384 by adrien.p... at ...626...: XmlReader doesn't raise
an error on FromString if string is empty, which it did in gambas2
http://code.google.com/p/gambas/issues/detail?id=384
This is fixed in revision #5499.
From dgtsiou at ...67... Fri Jan 11 14:47:39 2013
From: dgtsiou at ...67... (dimitris tsiou)
Date: Fri, 11 Jan 2013 13:47:39 +0000
Subject: [Gambas-user] Serial and Multiserial Problem
Message-ID:
Hello to everyone, I wish you a happy new Year!
I am gambas user at about 4 months and I am developing a system for control automation on a Ubuntu 10.04. I'm using the Gambas 2.21 runtime. I have also tried Ubuntu 11.04 for my application. The problem's description is as follows:
An AVR micro polls for some sensor signals and sends asynchronous msgs to the ubuntu PC via /dev/ttyS0. The PC is also communicates with other devices via serial port lines using a multi-serial 4-port RS-232 (PCI card).
After 2-3 hours of normal operation the Control program, running on the ubuntu PC, receives corrupted/no data from the micro. Initially, I was using the event based mechanism for the data reception with Sport_read() event. When the aforementioned problem was raised, I changed my design and I removed the Sport_read by creating an idle event (with a timer event every 300 msecs) and executing READ calls in order to receive micro's data. After Read, the data manipulation is following.
Unfortunately the same problem remains with data received by gambas application. I have already checked the messages transmitted from the micro with cutecom/minicom and it seems that everything is ok (messages successfully delivered).
When I restart the PC (Not the application!) then everything works fine again for another time interval of 3-4 hours.
Has anyone an idea why this happens? Every answer will be really valuable for me.
Thank you in advance
From jussi.lahtinen at ...626... Fri Jan 11 15:10:56 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Fri, 11 Jan 2013 16:10:56 +0200
Subject: [Gambas-user] Serial and Multiserial Problem
In-Reply-To:
References:
Message-ID:
Without source code it's pretty much impossible to say what is happening.
But if you suspect that there is error in Gambas, you could try latest
version (2.24.0).
Or you could convert your project to Gambas 3 (should be easy task).
Jussi
On Fri, Jan 11, 2013 at 3:47 PM, dimitris tsiou wrote:
>
> Hello to everyone, I wish you a happy new Year!
>
> I am gambas user at about 4 months and I am developing a system for
> control automation on a Ubuntu 10.04. I'm using the Gambas 2.21 runtime. I
> have also tried Ubuntu 11.04 for my application. The problem's description
> is as follows:
>
> An AVR micro polls for some sensor signals and sends asynchronous msgs to
> the ubuntu PC via /dev/ttyS0. The PC is also communicates with other
> devices via serial port lines using a multi-serial 4-port RS-232 (PCI card).
>
> After 2-3 hours of normal operation the Control program, running on the
> ubuntu PC, receives corrupted/no data from the micro. Initially, I was
> using the event based mechanism for the data reception with Sport_read()
> event. When the aforementioned problem was raised, I changed my design and
> I removed the Sport_read by creating an idle event (with a timer event
> every 300 msecs) and executing READ calls in order to receive micro's data.
> After Read, the data manipulation is following.
> Unfortunately the same problem remains with data received by gambas
> application. I have already checked the messages transmitted from the micro
> with cutecom/minicom and it seems that everything is ok (messages
> successfully delivered).
>
> When I restart the PC (Not the application!) then everything works fine
> again for another time interval of 3-4 hours.
>
> Has anyone an idea why this happens? Every answer will be really valuable
> for me.
>
> Thank you in advance
>
> ------------------------------------------------------------------------------
> Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
> much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From gambas at ...2524... Fri Jan 11 18:54:35 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Fri, 11 Jan 2013 17:54:35 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <7-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <7-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <8-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #8 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
The problem is basically in the MiniServer.class & stream, the RpcServer
can only handle data if it is in 1 IP Packet. If it is split over 2 or more
packets, the RcpServer component malfunctions (faulty).
From gambas at ...2524... Fri Jan 11 18:55:35 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Fri, 11 Jan 2013 17:55:35 +0000
Subject: [Gambas-user] Issue 384 in gambas: XmlReader doesn't raise an
error on FromString if string is empty, which it did in gambas2
In-Reply-To: <1-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
<0-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-15261051448833342409-gambas=googlecode.com@...2524...>
Comment #2 on issue 384 by uAle... at ...626...: XmlReader doesn't raise an
error on FromString if string is empty, which it did in gambas2
http://code.google.com/p/gambas/issues/detail?id=384
Thanks, it works fine now.
From gambas at ...2524... Fri Jan 11 18:58:26 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Fri, 11 Jan 2013 17:58:26 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <8-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <8-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <9-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #9 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
The problem is basically in the MiniServer.class & stream, the RpcServer
can only handle data if it is in 1 IP Packet. If it is split over 2 or more
packets, the MiniServer component malfunctions (faulty) and in turn the
RpcServer doesn't work properly.
From gambas at ...2524... Sat Jan 12 19:41:42 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 18:41:42 +0000
Subject: [Gambas-user] Issue 385 in gambas: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
Message-ID: <0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 385 by uAle... at ...626...: XmlReader hangs RpcClient response
parsing in gambas3, works fine in gambas2
http://code.google.com/p/gambas/issues/detail?id=385
1) Describe the problem.
The XmlReader works differently between gambas3 and gambas2 and causes
RpcClient to hang while parsing the response from RpcServer. On gambas
2.24.0 it works fine.
Attached is the example project, filtering specific files from the gb.xml
code. The gambas2 project ends succesfully, but the gambas3 project hangs
and uses 100% CPU.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5499
Operating system: Linux
Distribution: LUbuntu
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome / KDE ...
3) Provide a little project that reproduces the bug or the crash.
Project is attached for gambas 2.24.0 and gambas3 r5499
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
example-project.tar.gz 32.6 KB
From gambas at ...2524... Sat Jan 12 19:48:53 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 18:48:53 +0000
Subject: [Gambas-user] Issue 386 in gambas: Memory leak when using the
"Signature" property of the ".Symbol" class
Message-ID: <0-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 386 by svit... at ...626...: Memory leak when using the "Signature"
property of the ".Symbol" class
http://code.google.com/p/gambas/issues/detail?id=386
1) Describe the problem.
Memory leak when using the "Signature" property of the ".Symbol" class.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: 3.3.3 and trunk r5499
3) Provide a little project that reproduces the bug or the crash.
Code:
Public Sub Main()
Print Classes["MMain"]["method_with_arg"].Signature 'bug: warning: 2
allocation(s) non freed.
Print Classes["MMain"]["method_void"].Signature 'no bug
End
Public Sub method_with_arg(X As Variant)
End
Public Sub method_void()
End
Output:
v
gbx3: warning: 2 allocation(s) non freed.
From gambas at ...2524... Sat Jan 12 19:51:13 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 18:51:13 +0000
Subject: [Gambas-user] Issue 385 in gambas: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
In-Reply-To: <0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Comment #1 on issue 385 by uAle... at ...626...: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
http://code.google.com/p/gambas/issues/detail?id=385
The code never exits, because the following lines will NEVER be true in
gambas3:
If Xml.Node.Name = "data" Then
ExitNode(Xml)
Xml.Read()
Return hAtom
End If
In the gambas2 code the LAST Xml.Node.Name from Xml.Read is "data" and
exits.
From gambas at ...2524... Sat Jan 12 19:59:05 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 18:59:05 +0000
Subject: [Gambas-user] Issue 385 in gambas: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
In-Reply-To: <1-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
<0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Comment #2 on issue 385 by uAle... at ...626...: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
http://code.google.com/p/gambas/issues/detail?id=385
Ok, last comment.
Replacing the:
If Xml.Node.Name = "data" Then
with:
If Xml.Eof Then Then
Seems to solve it ... Only somebody needs to submit it into the SVN in
the "Tools.module":
gb.xml/src/rpc/gb.xml.rpc/.src/Tools.module
From gambas at ...2524... Sat Jan 12 21:03:43 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 20:03:43 +0000
Subject: [Gambas-user] Issue 381 in gambas: Connection created via GUI
doesn't work
In-Reply-To: <1-6813199134517018827-10328826797549713748-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-10328826797549713748-gambas=googlecode.com@...2524...>
<0-6813199134517018827-10328826797549713748-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-10328826797549713748-gambas=googlecode.com@...2524...>
Comment #2 on issue 381 by mig... at ...626...: Connection created via GUI
doesn't work
http://code.google.com/p/gambas/issues/detail?id=381
Hi again and thanks for your time.
You were right...gb.desktop component was not checked. I checked it but
same error message is shown.
From gambas at ...2524... Sat Jan 12 21:45:00 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 20:45:00 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <9-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <9-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <10-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #10 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
@Benoit:
I modified the "gb.xml/src/rpc/gb.xml.rpc/.src/miniServer.class" and is
attached.
It does a few things now:
1 - It waits maximum of 1 seconds for all TCP/IP packets are received, if
the content-length is received earlier - it continues directly
2 - Modified the Print lines into 1 line, this will put all the information
into 1 TCP/IP packet. This reduces the overhead and the RpcClient likes it
much more now
Can you include this in the SVN? This will make the RpcClient & RpcServer i
am using finally functional in gambas3 (it worked fine in gambas2 - because
of version 2.x put all in 1 TCP/IP packet)
Attachments:
miniServer.class 8.5 KB
From gambas at ...2524... Sat Jan 12 23:32:16 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 22:32:16 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <10-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <10-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <11-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #11 on issue 380 by benoit.m... at ...626...: RpcClient sends invalid
HTTP requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
Cool, reporting a bug and fixing it. :-)
More seriously, I was actually aware of the problem of packet unicity
because I introduced the method Begin() and Send() in the Stream class. If
allows to send everything between a Begin() call and a Send() call is one
system call (which leads to one packet as soon as the data it not too big
of course).
Your fix should have exactly the same effect.
From gambas at ...2524... Sat Jan 12 23:37:16 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 22:37:16 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <11-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <11-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <12-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #12 on issue 380 by benoit.m... at ...626...: RpcClient sends invalid
HTTP requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
I implemented your fix by using the Begin() and Send() method in revision
#5500. Can you tell me if it works?
By the way, I think the problem does come from the client, that should be
able to read the data whatever the number of packets.
From gambas at ...2524... Sat Jan 12 23:40:06 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 22:40:06 +0000
Subject: [Gambas-user] Issue 385 in gambas: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
In-Reply-To: <2-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
References: <2-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
<0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Message-ID: <3-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Updates:
Status: NeedsInfo
Labels: -Version Version-TRUNK
Comment #3 on issue 385 by benoit.m... at ...626...: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
http://code.google.com/p/gambas/issues/detail?id=385
Fixed submitted in revision #5401. Can you confirm that it works?
From gambas at ...2524... Sat Jan 12 23:45:07 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 22:45:07 +0000
Subject: [Gambas-user] Issue 386 in gambas: Memory leak when using the
"Signature" property of the ".Symbol" class
In-Reply-To: <0-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Comment #1 on issue 386 by benoit.m... at ...626...: Memory leak when using
the "Signature" property of the ".Symbol" class
http://code.google.com/p/gambas/issues/detail?id=386
(No comment was entered for this change.)
From gambas at ...2524... Sat Jan 12 23:46:07 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 22:46:07 +0000
Subject: [Gambas-user] Issue 386 in gambas: Memory leak when using the
"Signature" property of the ".Symbol" class
In-Reply-To: <1-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
<0-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-18393678117643835520-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #2 on issue 386 by benoit.m... at ...626...: Memory leak when using
the "Signature" property of the ".Symbol" class
http://code.google.com/p/gambas/issues/detail?id=386
Fixed in revision #5502.
From gambas at ...2524... Sun Jan 13 00:09:12 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 23:09:12 +0000
Subject: [Gambas-user] Issue 385 in gambas: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
In-Reply-To: <3-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
References: <3-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
<0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Message-ID: <4-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Comment #4 on issue 385 by uAle... at ...626...: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
http://code.google.com/p/gambas/issues/detail?id=385
I can confirm it works, thanks for the quick fix.
From gambas at ...2524... Sun Jan 13 00:11:02 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 23:11:02 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <12-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <12-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <13-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #13 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
Ok, i can confirm the new code looks to work fine.
Only, can you modify 1 more thing, because the r5498 fix was invalid:
-----------------
Ok, i found a typo in your
r5498 "./gb.xml/src/rpc/gb.xml.rpc/.src/RpcClient.class" file. Change the
following from:
If Right(sData) <> "\n" Then sData = "\n"
to:
If Right(sData) <> "\n" Then sData &= "\n"
------------------
If that's in, i am an extremely happy bunny :-)
From gambas at ...2524... Sun Jan 13 00:12:52 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 23:12:52 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <13-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <13-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <14-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Comment #14 on issue 380 by uAle... at ...626...: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
ps. the client is the RcpClient, which uses the curl library. When i got
more time, i will have a look (i think it is more timing issue related?)
From gambas at ...2524... Sun Jan 13 00:14:12 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 23:14:12 +0000
Subject: [Gambas-user] Issue 385 in gambas: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
In-Reply-To: <4-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
References: <4-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
<0-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Message-ID: <5-6813199134517018827-17555701087552199167-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #5 on issue 385 by benoit.m... at ...626...: XmlReader hangs RpcClient
response parsing in gambas3, works fine in gambas2
http://code.google.com/p/gambas/issues/detail?id=385
(No comment was entered for this change.)
From gambas at ...2524... Sun Jan 13 00:17:52 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 12 Jan 2013 23:17:52 +0000
Subject: [Gambas-user] Issue 380 in gambas: RpcClient sends invalid HTTP
requests (and RpcServer stops working)
In-Reply-To: <14-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
References: <14-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
<0-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Message-ID: <15-6813199134517018827-2205856480309761153-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #15 on issue 380 by benoit.m... at ...626...: RpcClient sends invalid
HTTP requests (and RpcServer stops working)
http://code.google.com/p/gambas/issues/detail?id=380
Oops, fixed in revision #5502.
From gambas at ...2524... Sun Jan 13 02:03:14 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 01:03:14 +0000
Subject: [Gambas-user] Issue 373 in gambas: Drag And Drop Data from CAJA
and Nautilus
In-Reply-To: <0-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
Updates:
Status: NeedsInfo
Labels: -Version Version-TRUNK
Comment #1 on issue 373 by benoit.m... at ...626...: Drag And Drop Data from
CAJA and Nautilus
http://code.google.com/p/gambas/issues/detail?id=373
Can you check the contents of Drag.Formats to see if there is a difference
between Nautilus and Caja?
If there are several formats in the drop, Drag.Data will use the first one.
From charles at ...1784... Sun Jan 13 11:13:27 2013
From: charles at ...1784... (charlesg)
Date: Sun, 13 Jan 2013 02:13:27 -0800 (PST)
Subject: [Gambas-user] Gambas 3 in Debian Repository?
Message-ID: <1358072007146-40718.post@...3046...>
I see Gambas 3.1.1 has re-appeared (yet again) in the repository of Xubuntu
12.10 which presumably inherits from Ubuntu which presumably inherits from
Debian.
Seems ok. Is this (at long last) a working version?
--
View this message in context: http://gambas.8142.n7.nabble.com/Gambas-3-in-Debian-Repository-tp40718.html
Sent from the gambas-user mailing list archive at Nabble.com.
From dgtsiou at ...67... Sun Jan 13 11:19:58 2013
From: dgtsiou at ...67... (dimitris tsiou)
Date: Sun, 13 Jan 2013 10:19:58 +0000
Subject: [Gambas-user] FW: Serial and Multiserial Problem
In-Reply-To:
References:
Message-ID:
Thank you for the answer. I had the same problem with 2.24 so I downgrade gambas version to 2.21.
This is a code snippet of what I wrote.
PUBLIC CTimeOut AS Timer
PUBLIC FUNCTION initialize() AS Boolean
DIM s AS String
DIM Derror AS Integer = 0
DIM i AS Integer = 0
DIM sout AS String = ""
CTimeOut = NEW Timer AS "CTimeOut"
CTimeOut.Delay = 300
FMain.ProgressBarTest.value = 0.00
FMain.TextAreaInformation.Background = &HFFFF00&
FMain.TextAreaInformation.Text = "\n\n\n\n\n\t\t\t" & "Init...\n"
FMain.TextAreaInformation.Font.Size = 15
'Init Controller Module (AVR)
IF Settings["Station/Init"] = TRUE THEN
sout = MStation.init()
IF sout = NULL THEN Error.Raise("STATION")
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & sout & FMain.TextAreaTrace.Text
ENDIF
CTimeOut.Start()
WAIT 1
MStation.reset()
WAIT 0.4
RETURN TRUE
CATCH
s = "\n" & Format(Now(), "hh:nn:ssuuuu") & " - " & "Error during Initialization...\n" &
"Process Error: " & Error.Class.Name & "\n" &
"Error Text: " & Error.Text & "\n" &
"Error Code: " & Derror & "\n"
FMain.TextAreaInformation.Text = FMain.TextAreaInformation.Text & s
FMain.TextAreaTrace.Text = FMain.TextAreaTrace.Text & s
FMain.TextAreaInformation.Background = &HFF0000&
FMain.TextAreaError.Text = FMain.TextAreaError.Text & s
DEBUG s
RETURN FALSE
END
PUBLIC SUB CTimeOut_Timer()
CTimeOut.Stop()
MStation.CDataRead()
CTimeOut.Start()
END
PUBLIC FUNCTION CDataRead() AS String
DIM i AS Integer = 0
DIM index AS Integer
DIM Derror AS Integer
DIM buf AS String = ""
DIM sout AS String= ""
DIM StationStatus AS String = ""
DIM StationError AS String = ""
CurrentPortByte = ""
TRY READ #SPort, buf, Lof(SPort)
RxSport &= buf
WHILE TRUE
i = InStr(RxSport, "\n", 1)
IF i = 0 THEN BREAK
buf = Left(RxSport, i)
RxSport = Right(RxSport, Len(RxSport) - i)
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & buf & FMain.TextAreaTrace.Text
'------ Manipulate Controller's data -------'
'Port Signals
IF buf = "F?\n" THEN
CurrentPortByte = Left(RxSport, 2)
PRINT Left(buf, 2) & " --> PORTF: " & CurrentPortByte
ENDIF
IF buf = "C?\n" THEN
CurrentPortByte = Left(RxSport, 2)
PRINT Left(buf, 2) & " --> PORTC: " & CurrentPortByte
ENDIF
'Inputs
IF InStr(buf, "inputs:") <> 0 THEN
PRINT buf
ENDIF
'Status
IF InStr(buf, "status:") <> 0 THEN
index = InStr(buf, "s:", 1)
StationStatus = Mid(buf, index + 2, 1)
PRINT "StationStatus: " & StationStatus
IF StationStatus = "5" THEN
sout = "New device\n"
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & sout & FMain.TextAreaTrace.Text
FMain.TextAreaSpec.Text = ""
FMain.TextAreaInformation.Text = sout
FMain.TextAreaInformation.Background = Color.Yellow
ENDIF
IF StationStatus = "7" AND IsTestRunning = FALSE THEN
IsTestRunning = TRUE
sout = "New Test\n"
FMain.TextAreaInformation.Text &= sout
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & sout & FMain.TextAreaTrace.Text
TestMod.TestExec()
ENDIF
ENDIF
'Errors
IF InStr(buf, "error!:") <> 0 THEN
index = InStr(buf, "or!:", 1)
StationError = Mid(buf, index + 4, 1)
PRINT "StationError: " & StationError
IF StationError = "@" THEN
sout = "Error: Overflow\n."
ENDIF
IF StationError = "A"
sout = "Error (A)"
ENDIF
IF StationError = "C"
sout = "Error (C)\n"
ENDIF
IF StationError = "F"
sout = "Error (F)\n"
ENDIF
IF StationError = "G"
sout = "Error (G)\n"
ENDIF
IF StationError = "H"
sout = "Error (H)\n"
ENDIF
IF StationError = "Q"
sout = "Error (Q)\n"
ENDIF
FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" & FMain.TextAreaError.Text
FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & Left(buf, 8) & FMain.TextAreaError.Text
FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & sout & FMain.TextAreaError.Text
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" & FMain.TextAreaTrace.Text
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & Left(buf, 8) & FMain.TextAreaTrace.Text
FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA > " & sout & FMain.TextAreaTrace.Text
FMain.TextAreaInformation.Text = FMain.TextAreaInformation.Text & Format(Now(), "hh:nn:ssuuuu: ") & Settings["Station/" & Mid(buf, 8, 1)] &"\n\r" & sout
FMain.TextAreaInformation.Background = Color.Red
IF FStation.Visible THEN
FStation.TextAreaRx.Text = "@" & Sport.PortName & ">: " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" & FStation.TextAreaRx.Text
ENDIF
ENDIF
buf = ""
WEND
CATCH
'Error.Raise("CDataRead(): " & Error.Text)
END
Is it possible that the timer event every 300ms is responsible for data corruption?
Thanks again.
From: dgtsiou at ...67...
To: gambas-user at lists.sourceforge.net
Subject: Serial and Multiserial Problem
Date: Fri, 11 Jan 2013 13:47:39 +0000
Hello to everyone, I wish you a happy new Year!
I am gambas user at about 4 months and I am developing a system for control automation on a Ubuntu 10.04. I'm using the Gambas 2.21 runtime. I have also tried Ubuntu 11.04 for my application. The problem's description is as follows:
An AVR micro polls for some sensor signals and sends asynchronous msgs to the ubuntu PC via /dev/ttyS0. The PC is also communicates with other devices via serial port lines using a multi-serial 4-port RS-232 (PCI card).
After 2-3 hours of normal operation the Control program, running on the ubuntu PC, receives corrupted/no data from the micro. Initially, I was using the event based mechanism for the data reception with Sport_read() event. When the aforementioned problem was raised, I changed my design and I removed the Sport_read by creating an idle event (with a timer event every 300 msecs) and executing READ calls in order to receive micro's data. After Read, the data manipulation is following.
Unfortunately the same problem remains with data received by gambas application. I have already checked the messages transmitted from the micro with cutecom/minicom and it seems that everything is ok (messages successfully delivered).
When I restart the PC (Not the application!) then everything works fine again for another time interval of 3-4 hours.
Has anyone an idea why this happens? Every answer will be really valuable for me.
Thank you in advance
From bill-lancaster at ...2231... Sun Jan 13 11:26:37 2013
From: bill-lancaster at ...2231... (bill-lancaster)
Date: Sun, 13 Jan 2013 02:26:37 -0800 (PST)
Subject: [Gambas-user] FileChooser settings
Message-ID: <1358072797681-40720.post@...3046...>
Is it possible to change the width of columns in the files window of
FileChooser and store them?
Gambas 3.3.4
--
View this message in context: http://gambas.8142.n7.nabble.com/FileChooser-settings-tp40720.html
Sent from the gambas-user mailing list archive at Nabble.com.
From gambas at ...1... Sun Jan 13 12:19:09 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 13 Jan 2013 12:19:09 +0100
Subject: [Gambas-user] FileChooser settings
In-Reply-To: <1358072797681-40720.post@...3046...>
References: <1358072797681-40720.post@...3046...>
Message-ID: <50F2982D.7000600@...1...>
Le 13/01/2013 11:26, bill-lancaster a ?crit :
> Is it possible to change the width of columns in the files window of
> FileChooser and store them?
> Gambas 3.3.4
>
This is done by the Settings class: Settings.Save(MyFileChooser, "key")
and Settings.Load(MyFileChooser, "key").
If you need more control, you can use the Settings property.
--
Beno?t Minisini
From gambas at ...2524... Sun Jan 13 13:06:10 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 12:06:10 +0000
Subject: [Gambas-user] Issue 375 in gambas: Profiler : problem with
recursive methods
In-Reply-To: <1-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
<0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Comment #2 on issue 375 by benoit.m... at ...626...: Profiler : problem with
recursive methods
http://code.google.com/p/gambas/issues/detail?id=375
Apparently there is no general solution to this problem. Still searching...
From gambas at ...2524... Sun Jan 13 13:07:50 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 12:07:50 +0000
Subject: [Gambas-user] Issue 383 in gambas: TableView jumps to last row
after edit a value (Qt4)
In-Reply-To: <2-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
References: <2-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
<0-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Message-ID: <3-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-TRUNK
Comment #3 on issue 383 by benoit.m... at ...626...: TableView jumps to last
row after edit a value (Qt4)
http://code.google.com/p/gambas/issues/detail?id=383
(No comment was entered for this change.)
From gambas at ...2524... Sun Jan 13 13:19:42 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 12:19:42 +0000
Subject: [Gambas-user] Issue 383 in gambas: TableView jumps to last row
after edit a value (Qt4)
In-Reply-To: <3-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
References: <3-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
<0-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Message-ID: <4-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Comment #4 on issue 383 by uAle... at ...626...: TableView jumps to last row
after edit a value (Qt4)
http://code.google.com/p/gambas/issues/detail?id=383
I retested in Ubuntu 12.04 and i have the same issues.
[System]
OperatingSystem=Linux
Kernel=3.2.0-35-generic-pae
Architecture=x86
Distribution=Ubuntu 12.04.1 LTS
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=495M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.30.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3
From gambas at ...2524... Sun Jan 13 13:22:52 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 12:22:52 +0000
Subject: [Gambas-user] Issue 383 in gambas: TableView jumps to last row
after edit a value (Qt4)
In-Reply-To: <4-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
References: <4-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
<0-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Message-ID: <5-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Comment #5 on issue 383 by uAle... at ...626...: TableView jumps to last row
after edit a value (Qt4)
http://code.google.com/p/gambas/issues/detail?id=383
I retested with r5503.
Also another weird this i got with this TableView edit i have:
- When you edit the field and you press RIGHT ARROW, it jumps to the LAST
row. I expect it to stay in the edit mode and just go 1 letter to right
(until it reaches the end - then it should stay in edit mode)
- When press LEFT ARROW, when you are on the left of the value, it jumps to
the FIRST row. I expect it to stay in the edit mode and jump to the
previous character (until it reaches the beginning - then it should stay in
edit mode)
From gambas at ...2524... Sun Jan 13 13:55:46 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 12:55:46 +0000
Subject: [Gambas-user] Issue 383 in gambas: TableView jumps to last row
after edit a value (Qt4)
In-Reply-To: <5-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
References: <5-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
<0-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Message-ID: <6-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #6 on issue 383 by benoit.m... at ...626...: TableView jumps to last
row after edit a value (Qt4)
http://code.google.com/p/gambas/issues/detail?id=383
As stated in the documentation, the Edit() method must be called during the
Click event handler (otherwise the keyboard management does not work).
In revision #5504, the Activate event is used if the Click event handler
has not been implemented, so it should fix your program.
From gambas at ...2524... Sun Jan 13 14:01:07 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 13:01:07 +0000
Subject: [Gambas-user] Issue 383 in gambas: TableView jumps to last row
after edit a value (Qt4)
In-Reply-To: <6-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
References: <6-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
<0-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Message-ID: <7-6813199134517018827-14309048664127273636-gambas=googlecode.com@...2524...>
Comment #7 on issue 383 by uAle... at ...626...: TableView jumps to last row
after edit a value (Qt4)
http://code.google.com/p/gambas/issues/detail?id=383
Thanks, it works fine now.
From gambas at ...2524... Sun Jan 13 18:24:08 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 17:24:08 +0000
Subject: [Gambas-user] Issue 387 in gambas: Gridview crreated by adding rows
does not scroll
Message-ID: <0-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 387 by JohnFort... at ...626...: Gridview crreated by adding rows
does not scroll
http://code.google.com/p/gambas/issues/detail?id=387
1) Describe the problem.
I have a problem with not being able to scroll a gridview.
After trying a large number of things, I have narrowed this down to how the
grid is filled.
Basically, if the number of rows is set before any data is added, the grid
will scroll properly.
However, if the number of rows is initially set to zero, and rows are added
as the data becomes available, then then the grid will NOT scroll.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK or BRANCHES/2.0 or 2.22.0
Revision: r1234 (if you use a development version)
Operating system: Linux / FreeBSD
Distribution: Ubuntu / Fedora / ArchLinux / Gentoo ...
Architecture: x86 / x86_64 / ARM
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome / KDE ...
[System]
OperatingSystem=Linux
Kernel=3.2.0-35-generic-pae
Architecture=i686
Memory=3028144 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.04.1 LTS"
Desktop=KDE4
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.8.1
GTK+=libgtk-x11-2.0.so.0.2400.10
I am using Gambas 3.3.4 and QT4.
3) Provide a little project that reproduces the bug or the crash.
To reproduce this problem, create a project with a single form, and add two
gridview controls, called grdOne and grdTwo.
Add the following code in the Form_Open event:
Public Sub Form_Open()
Dim intR As Integer
Dim intC As Integer
Dim intRows As Integer
Dim intCols As Integer
Me.Center
intRows = 99
intCols = 3
' Set up Grid One
With grdOne
' Size the grid
.Columns.Count = intCols
.Rows.Count = intRows ' <------ Number of rows is preset
'
' Set the column widths
For intC = 0 To intCols - 1
.Columns[intC].Width = .Width / intCols
Next
' Fill the grid
For intR = 0 To intRows - 1
For intC = 0 To intCols - 1
grdOne[intR, intC].text = "Row: " & CStr(intR) & " Col: " &
CStr(intC)
Next
Next
End With
' Set up Grid Two
With grdTwo
' Size the grid
.Columns.Count = intCols
.Rows.Count = 0 ' <----- Number of rows is initially zero
'
' Set the column widths
For intC = 0 To intCols - 1
.Columns[intC].Width = .Width / intCols
Next
' Fill the grid
For intR = 0 To intRows - 1
.Rows.Count = .Rows.Count + 1 ' <----- Each row is added as needed
For intC = 0 To intCols - 1
grdTwo[intR, intC].text = "Row: " & CStr(intR) & " Col: " &
CStr(intC)
Next
Next
End With
End
4) If your project needs a database, try to provide it, or part of it.
N/A
5) Explain clearly how to reproduce the bug or the crash.
Run the above project. Grid One can be scrolled; grid Two cannot.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
From jussi.lahtinen at ...626... Sun Jan 13 21:08:30 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 13 Jan 2013 22:08:30 +0200
Subject: [Gambas-user] FW: Serial and Multiserial Problem
In-Reply-To:
References:
Message-ID:
Can you send the whole runnable project (or small demonstration project)?
It's bit difficult to get the proper picture from that. Missing
declarations, etc.
I didn't quite understand why you rejected model based on Sport_read()
event..?
Jussi
On Sun, Jan 13, 2013 at 12:19 PM, dimitris tsiou wrote:
>
>
>
>
>
> Thank you for the answer. I had the same problem with 2.24 so I downgrade
> gambas version to 2.21.
>
> This is a code snippet of what I wrote.
>
>
> PUBLIC CTimeOut AS Timer
>
>
> PUBLIC FUNCTION initialize() AS Boolean
> DIM s AS String
> DIM Derror AS Integer = 0
> DIM i AS Integer = 0
> DIM sout AS String = ""
>
> CTimeOut = NEW Timer AS "CTimeOut"
> CTimeOut.Delay = 300
>
> FMain.ProgressBarTest.value = 0.00
> FMain.TextAreaInformation.Background = &HFFFF00&
> FMain.TextAreaInformation.Text = "\n\n\n\n\n\t\t\t" & "Init...\n"
> FMain.TextAreaInformation.Font.Size = 15
>
>
> 'Init Controller Module (AVR)
>
> IF Settings["Station/Init"] = TRUE THEN
> sout = MStation.init()
> IF sout = NULL THEN Error.Raise("STATION")
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA
> > " & sout & FMain.TextAreaTrace.Text
> ENDIF
>
> CTimeOut.Start()
> WAIT 1
> MStation.reset()
> WAIT 0.4
>
>
> RETURN TRUE
>
> CATCH
> s = "\n" & Format(Now(), "hh:nn:ssuuuu") & " - " & "Error during
> Initialization...\n" &
> "Process Error: " & Error.Class.Name & "\n" &
> "Error Text: " & Error.Text & "\n" &
> "Error Code: " & Derror & "\n"
>
> FMain.TextAreaInformation.Text = FMain.TextAreaInformation.Text & s
> FMain.TextAreaTrace.Text = FMain.TextAreaTrace.Text & s
> FMain.TextAreaInformation.Background = &HFF0000&
> FMain.TextAreaError.Text = FMain.TextAreaError.Text & s
> DEBUG s
>
> RETURN FALSE
> END
>
>
>
> PUBLIC SUB CTimeOut_Timer()
>
> CTimeOut.Stop()
> MStation.CDataRead()
> CTimeOut.Start()
>
> END
>
>
>
> PUBLIC FUNCTION CDataRead() AS String
> DIM i AS Integer = 0
> DIM index AS Integer
> DIM Derror AS Integer
> DIM buf AS String = ""
> DIM sout AS String= ""
> DIM StationStatus AS String = ""
> DIM StationError AS String = ""
>
>
> CurrentPortByte = ""
>
> TRY READ #SPort, buf, Lof(SPort)
> RxSport &= buf
>
>
> WHILE TRUE
> i = InStr(RxSport, "\n", 1)
> IF i = 0 THEN BREAK
> buf = Left(RxSport, i)
> RxSport = Right(RxSport, Len(RxSport) - i)
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA >
> " & buf & FMain.TextAreaTrace.Text
>
> '------ Manipulate Controller's data -------'
>
> 'Port Signals
> IF buf = "F?\n" THEN
> CurrentPortByte = Left(RxSport, 2)
> PRINT Left(buf, 2) & " --> PORTF: " & CurrentPortByte
> ENDIF
>
> IF buf = "C?\n" THEN
> CurrentPortByte = Left(RxSport, 2)
> PRINT Left(buf, 2) & " --> PORTC: " & CurrentPortByte
> ENDIF
>
> 'Inputs
> IF InStr(buf, "inputs:") <> 0 THEN
> PRINT buf
> ENDIF
>
> 'Status
> IF InStr(buf, "status:") <> 0 THEN
> index = InStr(buf, "s:", 1)
> StationStatus = Mid(buf, index + 2, 1)
> PRINT "StationStatus: " & StationStatus
>
> IF StationStatus = "5" THEN
> sout = "New device\n"
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & sout & FMain.TextAreaTrace.Text
> FMain.TextAreaSpec.Text = ""
> FMain.TextAreaInformation.Text = sout
> FMain.TextAreaInformation.Background = Color.Yellow
> ENDIF
>
> IF StationStatus = "7" AND IsTestRunning = FALSE THEN
> IsTestRunning = TRUE
>
> sout = "New Test\n"
> FMain.TextAreaInformation.Text &= sout
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ")
> & "STA > " & sout & FMain.TextAreaTrace.Text
> TestMod.TestExec()
> ENDIF
> ENDIF
>
> 'Errors
> IF InStr(buf, "error!:") <> 0 THEN
> index = InStr(buf, "or!:", 1)
> StationError = Mid(buf, index + 4, 1)
> PRINT "StationError: " & StationError
>
> IF StationError = "@" THEN
> sout = "Error: Overflow\n."
> ENDIF
>
> IF StationError = "A"
> sout = "Error (A)"
> ENDIF
>
> IF StationError = "C"
> sout = "Error (C)\n"
> ENDIF
>
> IF StationError = "F"
> sout = "Error (F)\n"
> ENDIF
>
> IF StationError = "G"
> sout = "Error (G)\n"
> ENDIF
>
> IF StationError = "H"
> sout = "Error (H)\n"
> ENDIF
>
> IF StationError = "Q"
> sout = "Error (Q)\n"
> ENDIF
>
> FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" &
> FMain.TextAreaError.Text
> FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & Left(buf, 8) & FMain.TextAreaError.Text
> FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & sout & FMain.TextAreaError.Text
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" &
> FMain.TextAreaTrace.Text
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & Left(buf, 8) & FMain.TextAreaTrace.Text
> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
> "STA > " & sout & FMain.TextAreaTrace.Text
> FMain.TextAreaInformation.Text = FMain.TextAreaInformation.Text
> & Format(Now(), "hh:nn:ssuuuu: ") & Settings["Station/" & Mid(buf, 8, 1)]
> &"\n\r" & sout
> FMain.TextAreaInformation.Background = Color.Red
>
> IF FStation.Visible THEN
> FStation.TextAreaRx.Text = "@" & Sport.PortName & ">: " &
> Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" & FStation.TextAreaRx.Text
> ENDIF
> ENDIF
>
> buf = ""
> WEND
>
> CATCH
> 'Error.Raise("CDataRead(): " & Error.Text)
> END
>
>
>
>
> Is it possible that the timer event every 300ms is responsible for data
> corruption?
>
> Thanks again.
>
>
>
>
>
>
>
> From: dgtsiou at ...67...
> To: gambas-user at lists.sourceforge.net
> Subject: Serial and Multiserial Problem
> Date: Fri, 11 Jan 2013 13:47:39 +0000
>
>
>
>
>
> Hello to everyone, I wish you a happy new Year!
>
> I am gambas user at about 4 months and I am developing a system for
> control automation on a Ubuntu 10.04. I'm using the Gambas 2.21 runtime. I
> have also tried Ubuntu 11.04 for my application. The problem's description
> is as follows:
>
> An AVR micro polls for some sensor signals and sends asynchronous msgs to
> the ubuntu PC via /dev/ttyS0. The PC is also communicates with other
> devices via serial port lines using a multi-serial 4-port RS-232 (PCI card).
>
> After 2-3 hours of normal operation the Control program, running on the
> ubuntu PC, receives corrupted/no data from the micro. Initially, I was
> using the event based mechanism for the data reception with Sport_read()
> event. When the aforementioned problem was raised, I changed my design and
> I removed the Sport_read by creating an idle event (with a timer event
> every 300 msecs) and executing READ calls in order to receive micro's data.
> After Read, the data manipulation is following.
> Unfortunately the same problem remains with data received by gambas
> application. I have already checked the messages transmitted from the micro
> with cutecom/minicom and it seems that everything is ok (messages
> successfully delivered).
>
> When I restart the PC (Not the application!) then everything works fine
> again for another time interval of 3-4 hours.
>
> Has anyone an idea why this happens? Every answer will be really valuable
> for me.
>
> Thank you in advance
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_123012
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From jussi.lahtinen at ...626... Sun Jan 13 21:11:15 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 13 Jan 2013 22:11:15 +0200
Subject: [Gambas-user] FW: Serial and Multiserial Problem
In-Reply-To:
References:
Message-ID:
Hmmmm.... maybe 300 ms is more than enough to fill some buffer --> lost
data?
Jussi
On Sun, Jan 13, 2013 at 10:08 PM, Jussi Lahtinen
wrote:
> Can you send the whole runnable project (or small demonstration project)?
> It's bit difficult to get the proper picture from that. Missing
> declarations, etc.
>
> I didn't quite understand why you rejected model based on Sport_read()
> event..?
>
> Jussi
>
>
>
>
>
> On Sun, Jan 13, 2013 at 12:19 PM, dimitris tsiou wrote:
>
>>
>>
>>
>>
>>
>> Thank you for the answer. I had the same problem with 2.24 so I downgrade
>> gambas version to 2.21.
>>
>> This is a code snippet of what I wrote.
>>
>>
>> PUBLIC CTimeOut AS Timer
>>
>>
>> PUBLIC FUNCTION initialize() AS Boolean
>> DIM s AS String
>> DIM Derror AS Integer = 0
>> DIM i AS Integer = 0
>> DIM sout AS String = ""
>>
>> CTimeOut = NEW Timer AS "CTimeOut"
>> CTimeOut.Delay = 300
>>
>> FMain.ProgressBarTest.value = 0.00
>> FMain.TextAreaInformation.Background = &HFFFF00&
>> FMain.TextAreaInformation.Text = "\n\n\n\n\n\t\t\t" & "Init...\n"
>> FMain.TextAreaInformation.Font.Size = 15
>>
>>
>> 'Init Controller Module (AVR)
>>
>> IF Settings["Station/Init"] = TRUE THEN
>> sout = MStation.init()
>> IF sout = NULL THEN Error.Raise("STATION")
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA
>> > " & sout & FMain.TextAreaTrace.Text
>> ENDIF
>>
>> CTimeOut.Start()
>> WAIT 1
>> MStation.reset()
>> WAIT 0.4
>>
>>
>> RETURN TRUE
>>
>> CATCH
>> s = "\n" & Format(Now(), "hh:nn:ssuuuu") & " - " & "Error during
>> Initialization...\n" &
>> "Process Error: " & Error.Class.Name & "\n" &
>> "Error Text: " & Error.Text & "\n" &
>> "Error Code: " & Derror & "\n"
>>
>> FMain.TextAreaInformation.Text = FMain.TextAreaInformation.Text & s
>> FMain.TextAreaTrace.Text = FMain.TextAreaTrace.Text & s
>> FMain.TextAreaInformation.Background = &HFF0000&
>> FMain.TextAreaError.Text = FMain.TextAreaError.Text & s
>> DEBUG s
>>
>> RETURN FALSE
>> END
>>
>>
>>
>> PUBLIC SUB CTimeOut_Timer()
>>
>> CTimeOut.Stop()
>> MStation.CDataRead()
>> CTimeOut.Start()
>>
>> END
>>
>>
>>
>> PUBLIC FUNCTION CDataRead() AS String
>> DIM i AS Integer = 0
>> DIM index AS Integer
>> DIM Derror AS Integer
>> DIM buf AS String = ""
>> DIM sout AS String= ""
>> DIM StationStatus AS String = ""
>> DIM StationError AS String = ""
>>
>>
>> CurrentPortByte = ""
>>
>> TRY READ #SPort, buf, Lof(SPort)
>> RxSport &= buf
>>
>>
>> WHILE TRUE
>> i = InStr(RxSport, "\n", 1)
>> IF i = 0 THEN BREAK
>> buf = Left(RxSport, i)
>> RxSport = Right(RxSport, Len(RxSport) - i)
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") & "STA >
>> " & buf & FMain.TextAreaTrace.Text
>>
>> '------ Manipulate Controller's data -------'
>>
>> 'Port Signals
>> IF buf = "F?\n" THEN
>> CurrentPortByte = Left(RxSport, 2)
>> PRINT Left(buf, 2) & " --> PORTF: " & CurrentPortByte
>> ENDIF
>>
>> IF buf = "C?\n" THEN
>> CurrentPortByte = Left(RxSport, 2)
>> PRINT Left(buf, 2) & " --> PORTC: " & CurrentPortByte
>> ENDIF
>>
>> 'Inputs
>> IF InStr(buf, "inputs:") <> 0 THEN
>> PRINT buf
>> ENDIF
>>
>> 'Status
>> IF InStr(buf, "status:") <> 0 THEN
>> index = InStr(buf, "s:", 1)
>> StationStatus = Mid(buf, index + 2, 1)
>> PRINT "StationStatus: " & StationStatus
>>
>> IF StationStatus = "5" THEN
>> sout = "New device\n"
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ")
>> & "STA > " & sout & FMain.TextAreaTrace.Text
>> FMain.TextAreaSpec.Text = ""
>> FMain.TextAreaInformation.Text = sout
>> FMain.TextAreaInformation.Background = Color.Yellow
>> ENDIF
>>
>> IF StationStatus = "7" AND IsTestRunning = FALSE THEN
>> IsTestRunning = TRUE
>>
>> sout = "New Test\n"
>> FMain.TextAreaInformation.Text &= sout
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu:
>> ") & "STA > " & sout & FMain.TextAreaTrace.Text
>> TestMod.TestExec()
>> ENDIF
>> ENDIF
>>
>> 'Errors
>> IF InStr(buf, "error!:") <> 0 THEN
>> index = InStr(buf, "or!:", 1)
>> StationError = Mid(buf, index + 4, 1)
>> PRINT "StationError: " & StationError
>>
>> IF StationError = "@" THEN
>> sout = "Error: Overflow\n."
>> ENDIF
>>
>> IF StationError = "A"
>> sout = "Error (A)"
>> ENDIF
>>
>> IF StationError = "C"
>> sout = "Error (C)\n"
>> ENDIF
>>
>> IF StationError = "F"
>> sout = "Error (F)\n"
>> ENDIF
>>
>> IF StationError = "G"
>> sout = "Error (G)\n"
>> ENDIF
>>
>> IF StationError = "H"
>> sout = "Error (H)\n"
>> ENDIF
>>
>> IF StationError = "Q"
>> sout = "Error (Q)\n"
>> ENDIF
>>
>> FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") &
>> "STA > " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" &
>> FMain.TextAreaError.Text
>> FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") &
>> "STA > " & Left(buf, 8) & FMain.TextAreaError.Text
>> FMain.TextAreaError.Text = Format(Now(), "hh:nn:ssuuuu: ") &
>> "STA > " & sout & FMain.TextAreaError.Text
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
>> "STA > " & Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" &
>> FMain.TextAreaTrace.Text
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
>> "STA > " & Left(buf, 8) & FMain.TextAreaTrace.Text
>> FMain.TextAreaTrace.Text = Format(Now(), "hh:nn:ssuuuu: ") &
>> "STA > " & sout & FMain.TextAreaTrace.Text
>> FMain.TextAreaInformation.Text = FMain.TextAreaInformation.Text
>> & Format(Now(), "hh:nn:ssuuuu: ") & Settings["Station/" & Mid(buf, 8, 1)]
>> &"\n\r" & sout
>> FMain.TextAreaInformation.Background = Color.Red
>>
>> IF FStation.Visible THEN
>> FStation.TextAreaRx.Text = "@" & Sport.PortName & ">: " &
>> Settings["Station/" & Mid(buf, 8, 1)] & "\n\r" & FStation.TextAreaRx.Text
>> ENDIF
>> ENDIF
>>
>> buf = ""
>> WEND
>>
>> CATCH
>> 'Error.Raise("CDataRead(): " & Error.Text)
>> END
>>
>>
>>
>>
>> Is it possible that the timer event every 300ms is responsible for data
>> corruption?
>>
>> Thanks again.
>>
>>
>>
>>
>>
>>
>>
>> From: dgtsiou at ...67...
>> To: gambas-user at lists.sourceforge.net
>> Subject: Serial and Multiserial Problem
>> Date: Fri, 11 Jan 2013 13:47:39 +0000
>>
>>
>>
>>
>>
>> Hello to everyone, I wish you a happy new Year!
>>
>> I am gambas user at about 4 months and I am developing a system for
>> control automation on a Ubuntu 10.04. I'm using the Gambas 2.21 runtime. I
>> have also tried Ubuntu 11.04 for my application. The problem's description
>> is as follows:
>>
>> An AVR micro polls for some sensor signals and sends asynchronous msgs to
>> the ubuntu PC via /dev/ttyS0. The PC is also communicates with other
>> devices via serial port lines using a multi-serial 4-port RS-232 (PCI card).
>>
>> After 2-3 hours of normal operation the Control program, running on the
>> ubuntu PC, receives corrupted/no data from the micro. Initially, I was
>> using the event based mechanism for the data reception with Sport_read()
>> event. When the aforementioned problem was raised, I changed my design and
>> I removed the Sport_read by creating an idle event (with a timer event
>> every 300 msecs) and executing READ calls in order to receive micro's data.
>> After Read, the data manipulation is following.
>> Unfortunately the same problem remains with data received by gambas
>> application. I have already checked the messages transmitted from the micro
>> with cutecom/minicom and it seems that everything is ok (messages
>> successfully delivered).
>>
>> When I restart the PC (Not the application!) then everything works fine
>> again for another time interval of 3-4 hours.
>>
>> Has anyone an idea why this happens? Every answer will be really valuable
>> for me.
>>
>> Thank you in advance
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_123012
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
From gambas at ...2524... Sun Jan 13 22:39:54 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 13 Jan 2013 21:39:54 +0000
Subject: [Gambas-user] Issue 375 in gambas: Profiler : problem with
recursive methods
In-Reply-To: <2-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
References: <2-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
<0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Message-ID: <3-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Labels: -Priority-High Priority-Medium
Comment #3 on issue 375 by benoit.m... at ...626...: Profiler : problem with
recursive methods
http://code.google.com/p/gambas/issues/detail?id=375
I have modified the duration computation in revision #5504. Can you tell me
if it is ok for you?
Note that now the duration of a function call in the line by line report
does not include the duration of the called function anymore.
From gambas at ...1... Mon Jan 14 02:26:43 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Mon, 14 Jan 2013 02:26:43 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To: <50EEB255.4000503@...1...>
References:
<50EEB255.4000503@...1...>
Message-ID: <50F35ED3.3040704@...1...>
Le 10/01/2013 13:21, Beno?t Minisini a ?crit :
> Le 10/01/2013 12:02, laurent bernabe a ?crit :
>> Hello,
>>
>> Could someone help me for resolving a strange gambas behaviour ?
>>
>> When I run my project, I get an error saying me that I gave an incorrect
>> type : but the stack trace is empty (Fmain.fmain.0) and I it does not
>> show
>> me where I did the error.
>>
>> I've attached a screenshot, my project in a compressed format (zip)
>> and my
>> configuration.
>>
>> Thanks in advance for your help.
>>
>
> It's a bug in the compiler.
>
> Private brouillon[6, 6] As New Integer
>
> is not syntactically correct. But the compiler instead compiles
> something incorrect.
>
> You should write:
>
> Private brouillon As New Integer[6, 6]
>
> Regards,
>
The compiler bug has been fixed in revision #5506.
Regards,
--
Beno?t Minisini
From gambas at ...2524... Mon Jan 14 13:45:21 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Mon, 14 Jan 2013 12:45:21 +0000
Subject: [Gambas-user] Issue 388 in gambas: Parse error : Invalid Tag ! Line
1 , Column 1 : ?mso-application pro with gb.xml (gb.libxml works fine)
Message-ID: <0-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 388 by sot... at ...626...: Parse error : Invalid Tag ! Line 1 ,
Column 1 : ?mso-application pro with gb.xml (gb.libxml works fine)
http://code.google.com/p/gambas/issues/detail?id=388
1) Describe the problem.
Opening an xml file produced by Excell, gb.xml fails at second line with
error:
Parse error : Invalid Tag !
Line 1 , Column 1 :
?mso-application pro
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=3.2.0-35-generic
Architecture=x86_64
Distribution=Ubuntu 12.04.1 LTS
Desktop=GNOME
Theme=QGtk
Language=it_IT.UTF-8
Memory=3954M
[Libraries]
Poppler=libpoppler.so.5.0.0
GStreamer=libgstreamer-0.10.so.0.30.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3
3) Provide a little project that reproduces the bug or the crash.
listino.tar.gz attached
4) If your project needs a database, try to provide it, or part of it.
NA
5) Explain clearly how to reproduce the bug or the crash.
In the attached project there re two xml file, the file named LISTINO.XML
(uppercase)
is the output from an excell spreadsheet. opening it with gb.xml fails at
line 1.
(Style declaration).
The second file named listino (lowercase) is the same file where i deleted
the failing line; IT doesn't fails.
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
listino.tar.gz 6.3 KB
From gambas at ...2524... Mon Jan 14 23:48:48 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Mon, 14 Jan 2013 22:48:48 +0000
Subject: [Gambas-user] Issue 375 in gambas: Profiler : problem with
recursive methods
In-Reply-To: <3-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
References: <3-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
<0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Message-ID: <4-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Comment #4 on issue 375 by adamn... at ...626...: Profiler : problem with
recursive methods
http://code.google.com/p/gambas/issues/detail?id=375
Yes thanks, that's much more understandable.
One minor annoyance though. The profiler now opens with the methods in the
main panel sorted upwards by duration, rather than the more intuitive
downwards.
From gambas at ...2524... Tue Jan 15 01:11:19 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 15 Jan 2013 00:11:19 +0000
Subject: [Gambas-user] Issue 388 in gambas: Parse error : Invalid Tag !
Line 1 , Column 1 : ?mso-application pro with gb.xml (gb.libxml works fine)
In-Reply-To: <0-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Owner: adrien.p... at ...626...
Comment #1 on issue 388 by adrien.p... at ...626...: Parse error : Invalid
Tag ! Line 1 , Column 1 : ?mso-application pro with gb.xml (gb.libxml
works fine)
http://code.google.com/p/gambas/issues/detail?id=388
The XML parser does not support processing instructions yet. I will add
this as soon as possible.
By the way, please don't do :
? xDoc.FromString(File.Load("LISTINO.XML")) ?
You should use xDoc.Open("LISTINO.XML") method instead (or even ? Dim xDoc
As New XmlDocument("LISTINO.XML") ? if you can). It's waaay faster.
From karl.reinl at ...9... Tue Jan 15 12:01:15 2013
From: karl.reinl at ...9... (Karl Reinl)
Date: Tue, 15 Jan 2013 12:01:15 +0100
Subject: [Gambas-user] Paint.Begin() and printer.print
In-Reply-To: <50ED43E9.3020607@...1...>
References: <1357681572.8809.10.camel@...40...>
<50EC94A9.2060807@...1...>
<1357726305.2323.42.camel@...40...>
<50ED43E9.3020607@...1...>
Message-ID: <1358247675.2264.11.camel@...40...>
Am Mittwoch, den 09.01.2013, 11:18 +0100 schrieb Beno?t Minisini:
> Le 09/01/2013 11:11, Charlie Reinl a ?crit :
> > Am Dienstag, den 08.01.2013, 22:50 +0100 schrieb Beno?t Minisini:
> >> Le 08/01/2013 22:46, Karl Reinl a ?crit :
> >>> Salut,
> >>>
> >>> is that logical?
> >>> For Paint.Begin() I need a device object.
> >>> But if i start a printer with .print, Paint hijacks the printer as
> >>> device.
> >>> Had some day with blanc pages, while setting Paint.Begin() in
> >>> printer_Begin().
> >>> What worked when project is started as executable, but not when used as
> >>> library.
> >>>
> >>
> >> Sorry, I don't understand a word. :-/
> >>
> >
> > Ok, so I'll try to explain it in a another way:
> >
> > normally if you want to use Paint, you have to start with
> > Paint.Begin()
> >
> > Paint.Begin() needs the Device, to which it should paint.
> >
> > Paint is also used by the printer.
> >
> > The difference is :
> > while for other devices you declare it in Paint.Begin(),
> > the printer, becomes with .print the painting device.
> >
> > That is what I call 'Paint hijacks the printer as device'
>
> Yes, exactly like DrawingArea.
>
> >
> > And the problem is : if you call on _Begin() event a
> > Paint.Begin() that will work standalone executables ,
> > but not in libraries.
>
> You don't have to call Paint.Begin() in the Begin event handler. This is
> done automatically just before raising the event.
yes, that I know now.
>
> I don't understand what does not work in libraries.
I do not understand too, I haven't isolated it, but later that week I
will try to make an example.
Shortly:
take a project where you are printing, add at _Begin() event
the Paint.Begin(), add 'Export' to the Startup and make it a
library.
run as executable it prints fine
Now make a new project that insert the previous project as library ,
call it, and try to print.
Salut,
now I'm back, I have made an example and I'm no more sure it is the
Paint.Begin().
The application don't find his variable values when painting to the
printer.
I have a workaround, but I'm interested whether it is a bug or not.
If you use only ThePrinter every thing work ok.
But if you use ThePrinterCaller, the text to print gets lost.
The workaround is to store it outside the form, like the checkBox value
too.
--
Amicalement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ThePrinter-0.0.18.tar.gz
Type: application/x-compressed-tar
Size: 11025 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ThePrinterCaller-0.0.4.tar.gz
Type: application/x-compressed-tar
Size: 8741 bytes
Desc: not available
URL:
From gambas at ...2524... Tue Jan 15 12:11:01 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 15 Jan 2013 11:11:01 +0000
Subject: [Gambas-user] Issue 388 in gambas: Parse error : Invalid Tag !
Line 1 , Column 1 : ?mso-application pro with gb.xml (gb.libxml works fine)
In-Reply-To: <1-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
<0-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-6486192081698778766-gambas=googlecode.com@...2524...>
Comment #2 on issue 388 by sot... at ...626...: Parse error : Invalid Tag !
Line 1 , Column 1 : ?mso-application pro with gb.xml (gb.libxml works fine)
http://code.google.com/p/gambas/issues/detail?id=388
Hi Adrien,
thanks for your answer. I will wait for the new feature.
it is not a problem editing the source file to remove the failing line, and
i have a few files to edit.
I will also take care of your suggestion about the .Open method
Emanuele
From ron at ...1740... Tue Jan 15 14:25:36 2013
From: ron at ...1740... (Ron)
Date: Tue, 15 Jan 2013 14:25:36 +0100
Subject: [Gambas-user] Valid regexp?
Message-ID:
DIM sPattern AS String = "s/\x05\x05\x03\x03(\w+)\r\n//"
This is not a valid syntax in Gambas regexp.
Error bad character constant in string...
The part with the problem is (\w+)
Anybody has suggestions to get it working?
Thanks in advance.
Regards,
Ron.
From vuott at ...325... Tue Jan 15 16:01:19 2013
From: vuott at ...325... (Ru Vuott)
Date: Tue, 15 Jan 2013 15:01:19 +0000 (GMT)
Subject: [Gambas-user] R: Valid regexp?
In-Reply-To:
Message-ID: <1358262079.45552.YahooMailClassic@...3063...>
Maybe:
DIM sPattern AS String = "s/\x05\x05\x03\x03(\\w+)\r\n//"
--- Mar 15/1/13, Ron ha scritto:
> Da: Ron
> Oggetto: [Gambas-user] Valid regexp?
> A: "mailing list for gambas users"
> Data: Marted? 15 gennaio 2013, 14:25
> DIM sPattern AS String =
> "s/\x05\x05\x03\x03(\w+)\r\n//"
>
> This is not a valid syntax in Gambas regexp.
> Error bad character constant in string...
>
> The part with the problem is (\w+)
> Anybody has suggestions to get it working?
>
> Thanks in advance.
>
> Regards,
> Ron.
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS,
> SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with
> LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs
> and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From ron at ...1740... Tue Jan 15 16:08:46 2013
From: ron at ...1740... (Ron)
Date: Tue, 15 Jan 2013 16:08:46 +0100
Subject: [Gambas-user] R: Valid regexp?
In-Reply-To: <1358262079.45552.YahooMailClassic@...3063...>
References: <1358262079.45552.YahooMailClassic@...3063...>
Message-ID: <50F570FE.5060808@...1740...>
Yes that seems to work, well it's accepted as valid...
Need to polish it a bit more...
Thanks!
> Maybe:
>
> DIM sPattern AS String = "s/\x05\x05\x03\x03(\\w+)\r\n//"
>
>
>
>
>
>
> --- Mar 15/1/13, Ron ha scritto:
>
>> Da: Ron
>> Oggetto: [Gambas-user] Valid regexp?
>> A: "mailing list for gambas users"
>> Data: Marted? 15 gennaio 2013, 14:25
>> DIM sPattern AS String =
>> "s/\x05\x05\x03\x03(\w+)\r\n//"
>>
>> This is not a valid syntax in Gambas regexp.
>> Error bad character constant in string...
>>
>> The part with the problem is (\w+)
>> Anybody has suggestions to get it working?
>>
>> Thanks in advance.
>>
>> Regards,
>> Ron.
>> ------------------------------------------------------------------------------
>> Master SQL Server Development, Administration, T-SQL, SSAS,
>> SSIS, SSRS
>> and more. Get SQL Server skills now (including 2012) with
>> LearnDevNow -
>> 200+ hours of step-by-step video tutorials by Microsoft MVPs
>> and experts.
>> SALE $99.99 this month only - learn more at:
>> http://p.sf.net/sfu/learnmore_122512
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
From vuott at ...325... Tue Jan 15 17:27:11 2013
From: vuott at ...325... (Ru Vuott)
Date: Tue, 15 Jan 2013 16:27:11 +0000 (GMT)
Subject: [Gambas-user] R: Valid regexp?
In-Reply-To: <50F570FE.5060808@...1740...>
Message-ID: <1358267231.55830.YahooMailClassic@...3066...>
Bye, Ron.
vuott
--- Mar 15/1/13, Ron ha scritto:
> Da: Ron
> Oggetto: Re: [Gambas-user] R: Valid regexp?
> A: "mailing list for gambas users"
> Data: Marted? 15 gennaio 2013, 16:08
> Yes that seems to work, well it's
> accepted as valid...
> Need to polish it a bit more...
> Thanks!
>
>
> > Maybe:
> >
> > DIM sPattern AS String =
> "s/\x05\x05\x03\x03(\\w+)\r\n//"
> >
> >
> >
> >
> >? ?
> >
> > --- Mar 15/1/13, Ron
> ha scritto:
> >
> >> Da: Ron
> >> Oggetto: [Gambas-user] Valid regexp?
> >> A: "mailing list for gambas users"
> >> Data: Marted? 15 gennaio 2013, 14:25
> >> DIM sPattern AS String =
> >> "s/\x05\x05\x03\x03(\w+)\r\n//"
> >>
> >> This is not a valid syntax in Gambas regexp.
> >> Error bad character constant in string...
> >>
> >> The part with the problem is (\w+)
> >> Anybody has suggestions to get it working?
> >>
> >> Thanks in advance.
> >>
> >> Regards,
> >> Ron.
> >>
> ------------------------------------------------------------------------------
> >> Master SQL Server Development, Administration,
> T-SQL, SSAS,
> >> SSIS, SSRS
> >> and more. Get SQL Server skills now (including
> 2012) with
> >> LearnDevNow -
> >> 200+ hours of step-by-step video tutorials by
> Microsoft MVPs
> >> and experts.
> >> SALE $99.99 this month only - learn more at:
> >> http://p.sf.net/sfu/learnmore_122512
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> ------------------------------------------------------------------------------
> > Master SQL Server Development, Administration, T-SQL,
> SSAS, SSIS, SSRS
> > and more. Get SQL Server skills now (including 2012)
> with LearnDevNow -
> > 200+ hours of step-by-step video tutorials by Microsoft
> MVPs and experts.
> > SALE $99.99 this month only - learn more at:
> > http://p.sf.net/sfu/learnmore_122512
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS,
> SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with
> LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs
> and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From laurent.bernabe at ...626... Wed Jan 16 16:09:06 2013
From: laurent.bernabe at ...626... (laurent bernabe)
Date: Wed, 16 Jan 2013 16:09:06 +0100
Subject: [Gambas-user] Need help for resolving a strange behaviour in
Gambas 3.3.4
In-Reply-To: <50F35ED3.3040704@...1...>
References:
<50EEB255.4000503@...1...>
<50F35ED3.3040704@...1...>
Message-ID:
Thanks :)
2013/1/14 Beno?t Minisini
> Le 10/01/2013 13:21, Beno?t Minisini a ?crit :
> > Le 10/01/2013 12:02, laurent bernabe a ?crit :
> >> Hello,
> >>
> >> Could someone help me for resolving a strange gambas behaviour ?
> >>
> >> When I run my project, I get an error saying me that I gave an incorrect
> >> type : but the stack trace is empty (Fmain.fmain.0) and I it does not
> >> show
> >> me where I did the error.
> >>
> >> I've attached a screenshot, my project in a compressed format (zip)
> >> and my
> >> configuration.
> >>
> >> Thanks in advance for your help.
> >>
> >
> > It's a bug in the compiler.
> >
> > Private brouillon[6, 6] As New Integer
> >
> > is not syntactically correct. But the compiler instead compiles
> > something incorrect.
> >
> > You should write:
> >
> > Private brouillon As New Integer[6, 6]
> >
> > Regards,
> >
>
> The compiler bug has been fixed in revision #5506.
>
> Regards,
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From taboege at ...626... Wed Jan 16 16:41:23 2013
From: taboege at ...626... (Tobias Boege)
Date: Wed, 16 Jan 2013 16:41:23 +0100
Subject: [Gambas-user] Abort on (strange) Picture load
Message-ID: <20130116154123.GD790@...2774...>
Hi Benoit,
converting an old Gambas2 project of a certain Mr. Fuchs I found gbx3
aborting from QT when we do a rather strange Picture load:
Static P As Picture = Picture["url"]
in an _exported class_. The test project isolating the issue is attached.
GDB shows the following:
--8<---------------
...
(gdb) r
...
QPixmap: Must construct a QApplication before a QPaintDevice
Program received signal SIGABRT, Aborted.
0x00007ffff713d2c5 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff713d2c5 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff713e748 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff435d334 in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#3 0x00007ffff435d4e8 in ?? () from /usr/lib/libQtCore.so.4
#4 0x00007ffff435d674 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#5 0x00007ffff4a54a6e in ?? () from /usr/lib/libQtGui.so.4
#6 0x00007ffff4a55fe1 in QPixmap::QPixmap() () from /usr/lib/libQtGui.so.4
#7 0x00007ffff6170fcb in CPICTURE_new (_object=0x7e82d8, _param=0x7ffff65d5040) at CPicture.cpp:230
#8 0x0000000000412495 in EXEC_native () at gbx_exec.c:1332
#9 0x000000000041343c in EXEC_special (special=0, class=0x6a6d38, object=0x7e82d8, nparam=0, drop=1 '\001') at gbx_exec.c:1640
#10 0x00000000004136c8 in EXEC_special_inheritance (special=0, class=0x6a6d38, object=0x7e82d8, nparam=0, drop=1 '\001') at gbx_exec.c:1696
#11 0x00000000004445a5 in OBJECT_create (class=0x6a6d38, name=0x0, parent=0x0, nparam=0) at gbx_object.c:404
#12 0x0000000000437f68 in GB_New (class=0x6a6d38, name=0x0, parent=0x0) at gbx_api.c:1864
#13 0x00007ffff61703bf in create () at CPicture.cpp:55
#14 0x00007ffff6170a9e in get_picture (path=0x7b3017 "knob.png", len=8) at ../share/gb.form.picture.h:177
#15 0x00007ffff6170e2f in CPICTURE_get (_object=0x0, _param=0x7ffff65d5020) at CPicture.cpp:188
#16 0x0000000000412495 in EXEC_native () at gbx_exec.c:1332
#17 0x000000000041343c in EXEC_special (special=2, class=0x6a6d38, object=0x0, nparam=1, drop=0 '\000') at gbx_exec.c:1640
#18 0x0000000000416235 in EXEC_push_array (code=770) at gbx_exec_push.c:637
#19 0x000000000045a3f8 in EXEC_loop () at gbx_exec_loop.c:570
#20 0x0000000000410750 in EXEC_function_loop () at gbx_exec.c:906
#21 0x00000000004103a7 in EXEC_function_real () at gbx_exec.c:870
#22 0x000000000041fa66 in CLASS_run_inits (class=0x73f478) at gbx_class_load.c:1267
#23 0x000000000041fb85 in CLASS_load_real (class=0x73f478) at gbx_class_load.c:1303
#24 0x000000000043dd23 in ARCHIVE_load_exported_class (arch=0x68ff58) at gbx_archive.c:148
#25 0x000000000043df79 in ARCHIVE_load_main () at gbx_archive.c:235
#26 0x000000000042761c in PROJECT_load_finish () at gbx_project.c:476
#27 0x0000000000441fe9 in init (file=0x464598 ".", argc=1, argv=0x7fffffffe6e8) at gbx.c:108
#28 0x0000000000442a02 in main (argc=1, argv=0x7fffffffe6e8) at gbx.c:348
--8<---------------
gbx3 revision is #5499. This report is just in case you care fixing it. A
(more sane) workaround is simple.
BTW: I found some elementary (means: only Gambas keywords involved) syntax
in this project which wasn't recognised by the automatic converter. Do you
want to have a report for this, too?
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picture_load_crash-0.0.1.tar.gz
Type: application/octet-stream
Size: 16851 bytes
Desc: not available
URL:
From taboege at ...626... Wed Jan 16 17:07:19 2013
From: taboege at ...626... (Tobias Boege)
Date: Wed, 16 Jan 2013 17:07:19 +0100
Subject: [Gambas-user] No error if source archive overwrite failed
Message-ID: <20130116160719.GE790@...2774...>
Hi,
I noticed that the IDE does not report the failing to overwrite an already
existing source archive (Make -> Source archive) by a new one - in my case
the overwrite failed because of insufficient permissions.
Simple to reproduce:
1. Save a source archive of any project
2. chmod a-w the archive
3. Overwrite the source archive - allegedly successfully
4. Notice that the timestamp did not change (nor the content did)
Gambas executables can apparently be overwritten flawlessly under the same
circumstances, though. And you must help me with this point: If I do
1. Save an executable
2. Close the IDE
3. chown root:root the-executable.gambas
4. chmod a-rwx the-executable.gambas
5. Open the IDE again
6. Try to overwrite the executable
It actually works! Did I miss something here?
Regards,
Tobi
From taboege at ...626... Wed Jan 16 17:32:11 2013
From: taboege at ...626... (Tobias Boege)
Date: Wed, 16 Jan 2013 17:32:11 +0100
Subject: [Gambas-user] Process' events stall after restart
Message-ID: <20130116163211.GF790@...2774...>
Hi Benoit,
we noticed that the Read and Error events of a newly started Process don't
fire up when a former process was killed and the variable holding that
process gets filled with the new one which in turn shows the symptoms above.
To reproduce, open and start the attached project and
1. Start the process
2. Verify that it works by sending the sample command
3. Kill the process
4. Restart it
5. Send another command which yields nothing
6. Kill the process and see the output being flushed into the TextArea
This does not happen when step 3 reads "Start/Replace the process"
(consequently step 4 would be useless but the result is indifferent).
You will find a NOTE line in the source code. If one, before the new Process
gets started, assigns Null to the Process variable, everything seems to
work and output comes in instantly. Please tell me what is not supposed to
be done in a certain way there.
It was somewhat difficult to reproduce the issue in a smaller project than
the original one. I couldn't find any alternative to the 'bc' program. Hope
you can bear that dependency.
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process_events_stall-0.0.1.tar.gz
Type: application/octet-stream
Size: 5299 bytes
Desc: not available
URL:
From gambas at ...2524... Thu Jan 17 02:50:29 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 17 Jan 2013 01:50:29 +0000
Subject: [Gambas-user] Issue 373 in gambas: Drag And Drop Data from CAJA
and Nautilus
In-Reply-To: <1-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
<0-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-13155815167081028707-gambas=googlecode.com@...2524...>
Comment #2 on issue 373 by bjda... at ...626...: Drag And Drop Data from CAJA
and Nautilus
http://code.google.com/p/gambas/issues/detail?id=373
The output from PRINT Drag.Formats on a drop with Caja is "9" Whereas
Nautilus is "x-special/gnome-icon-list". I will have to do further testing
to see if I can force a drag.format to be used with drag.data. I need
another Virtualbox to test this so it may take a little longer.
From uli at ...3067... Thu Jan 17 10:18:05 2013
From: uli at ...3067... (Ulrich Hartmann)
Date: Thu, 17 Jan 2013 10:18:05 +0100 (CET)
Subject: [Gambas-user] Help with DrawingArea and class design
Message-ID: <20130117091805.45F23260682@...3068...>
Hi all,
I'm trying to create a class which can draw a pixel-font character on screen and would let me edit the pixels (this is for my graphic lcd connected to an arduino project). So I started playing around with the Paint class in Gambas3.
So here are my questions:
If I wanted to create my own class in which I would need to draw stuff like boxes which represent the characters pixels and make them clickable to activate or deactivate pixels (eg. draw characters), which class would I use to inherit from (DrawAerea?)?
Also how would I be able to draw form within my new class when it seems to be only possible to draw in the _Draw event of the DrawingArea (can I hijack the _Draw event insde the new class inherited from DrawigArea to do the drawing)?
I guess what I want is more like my own component to display and edit a pixel character.
Tips and help would be highly appreciated!
Uli
From Gambas at ...1950... Thu Jan 17 11:25:04 2013
From: Gambas at ...1950... (Caveat)
Date: Thu, 17 Jan 2013 11:25:04 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <20130117091805.45F23260682@...3068...>
References: <20130117091805.45F23260682@...3068...>
Message-ID: <50F7D180.1020205@...1950...>
As a kind of getting started hint (not sure how far you got already), I
have some code I wrote a while back to draw hex values as binary using
little red boxes to represent the 1 bits...in the good old days, you'd
often get custom sprites or characters defined with a bunch of DATA
statements and binary values...
Public Sub Form_Open()
Dim draw As New DrawingArea(Me)
Dim values As String[]
Dim hexValues As String = "01 0F 1C FF 00 01 02 03 04 05 06 07 08 09
10 11"
values = Split(hexValues, " ")
addBoxes(draw, 20, values)
End
Public Sub addBoxes(draw As DrawingArea, size As Integer, values As
String[])
Dim idx, idy As Integer
Dim drawc As DrawingArea
Dim aBinValue As String
For idy = 1 To values.Count
aBinValue = hexToBinary(values[idy - 1])
For idx = 1 To Len(aBinValue)
drawc = New DrawingArea(draw)
drawc.H = size
drawc.W = size
drawc.X = idx * size
drawc.Y = idy * size
If Mid(aBinValue, idx, 1) = "1" Then
drawc.Background = Color.Red
Else
drawc.Background = Color.White
End If
Next
Next
End
Private Function hexToBinary(hexValue As String) As String
Dim idx As Integer
Dim result As String = ""
For idx = 1 To Len(hexValue)
result &= hexDigitToBinary(Mid(hexValue, idx, 1))
Next
Return result
End
Private Function hexDigitToBinary(hexDigit As String) As String
Dim idx, idy As Integer
Dim conversions As String[][] = [
["0", "0000"], ["1", "0001"], ["2", "0010"], ["3", "0011"],
["4", "0100"], ["5", "0101"], ["6", "0110"], ["7", "0111"],
["8", "1000"], ["9", "1001"], ["A", "1010"], ["B", "1011"],
["C", "1010"], ["D", "1011"], ["E", "1110"], ["F", "1111"]]
For idx = 0 To conversions.Count - 1
If conversions[idx][0] = hexDigit Then
Return conversions[idx][1]
Endif
Next
Return "*"
End
Hope this helps,
Caveat
On 17/01/13 10:18, Ulrich Hartmann wrote:
> Hi all,
>
> I'm trying to create a class which can draw a pixel-font character on screen and would let me edit the pixels (this is for my graphic lcd connected to an arduino project). So I started playing around with the Paint class in Gambas3.
>
> So here are my questions:
>
> If I wanted to create my own class in which I would need to draw stuff like boxes which represent the characters pixels and make them clickable to activate or deactivate pixels (eg. draw characters), which class would I use to inherit from (DrawAerea?)?
>
> Also how would I be able to draw form within my new class when it seems to be only possible to draw in the _Draw event of the DrawingArea (can I hijack the _Draw event insde the new class inherited from DrawigArea to do the drawing)?
>
> I guess what I want is more like my own component to display and edit a pixel character.
>
> Tips and help would be highly appreciated!
>
> Uli
>
>
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From taboege at ...626... Thu Jan 17 15:24:19 2013
From: taboege at ...626... (Tobias Boege)
Date: Thu, 17 Jan 2013 15:24:19 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <20130117091805.45F23260682@...3068...>
References: <20130117091805.45F23260682@...3068...>
Message-ID: <20130117142419.GA535@...2774...>
On Thu, 17 Jan 2013, Ulrich Hartmann wrote:
> Hi all,
>
> I'm trying to create a class which can draw a pixel-font character on screen and would let me edit the pixels (this is for my graphic lcd connected to an arduino project). So I started playing around with the Paint class in Gambas3.
>
> So here are my questions:
>
> If I wanted to create my own class in which I would need to draw stuff like boxes which represent the characters pixels and make them clickable to activate or deactivate pixels (eg. draw characters), which class would I use to inherit from (DrawAerea?)?
>
> Also how would I be able to draw form within my new class when it seems to be only possible to draw in the _Draw event of the DrawingArea (can I hijack the _Draw event insde the new class inherited from DrawigArea to do the drawing)?
>
> I guess what I want is more like my own component to display and edit a pixel character.
>
> Tips and help would be highly appreciated!
>
> Uli
I once wrote a program for a game project at our school to design 8*8 sqpx
sprites with a palette of 4 different colours (this system is oriented at
Nintendo's GameBoy internal workings).
The whole thing is implemented using a CTile class which works on an Image
object internally. I attached a screenshot of it. Frankly, it is not really
good for fonts, as you can see :-) Is that of the kind you want to write?
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtd.png
Type: image/png
Size: 11338 bytes
Desc: not available
URL:
From vuott at ...325... Sat Jan 19 01:57:46 2013
From: vuott at ...325... (Ru Vuott)
Date: Sat, 19 Jan 2013 00:57:46 +0000 (GMT)
Subject: [Gambas-user] Background of the "GridView" becames black...
Message-ID: <1358557066.50964.YahooMailClassic@...3065...>
Hello,
I have noticed that, after I set in the code: "Columns.Count" and "Rows.Count" values of a "GridView", strangely its background becames black !
I use Gambas-3 - rev. #5509.
Regards
vuott
From vuott at ...325... Sat Jan 19 02:03:49 2013
From: vuott at ...325... (Ru Vuott)
Date: Sat, 19 Jan 2013 01:03:49 +0000 (GMT)
Subject: [Gambas-user] Background of the "GridView" becames black... - BIS
Message-ID: <1358557429.87652.YahooMailClassic@...3054...>
...I'ld add that if I take off the sets of "Columns.Count" and "Rows.Count" from the code, and so I launch the project, the background of the GridView comes back white !
Regards
vuott
From gambas at ...2524... Sat Jan 19 09:53:58 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 19 Jan 2013 08:53:58 +0000
Subject: [Gambas-user] Issue 389 in gambas: Segmentation Fault due to
workspace
Message-ID: <0-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: 3.3.4 Type-Crash Priority-Medium OpSys-Linux Dist-Ubuntu Arch-X86
Desktop-Gnome GUI-Any
New issue 389 by isaf... at ...626...: Segmentation Fault due to workspace
http://code.google.com/p/gambas/issues/detail?id=389
I added workspace to my project and so several crashes(segmentation fault)
occurred.
2) Info
[System]
OperatingSystem=Linux
Kernel=3.5.0-22-generic
Architecture=i686
Memory=1992740 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 12.04.1 LTS"
Desktop=Gnome
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.8.2
GTK+=libgtk-x11-2.0.so.0.2400.10
The debugger output is:
(gdb) run
Starting program: /usr/bin/gbx3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb5897b40 (LWP 5154)]
[New Thread 0xb4effb40 (LWP 5155)]
[New Thread 0xae497b40 (LWP 5156)]
[New Thread 0xad4f6b40 (LWP 5158)]
[Thread 0xad4f6b40 (LWP 5158) exited]
(SISHGAMBAS:5150): Gdk-CRITICAL **: IA__gdk_window_set_back_pixmap:
assertion `GDK_IS_WINDOW (window)' failed
(SISHGAMBAS:5150): Gdk-CRITICAL **: IA__gdk_cairo_create: assertion
`GDK_IS_DRAWABLE (drawable)' failed
Program received signal SIGSEGV, Segmentation fault.
0xb6cdc6c4 in cairo_get_target () from /usr/lib/i386-linux-gnu/libcairo.so.2
(gdb) bt
#0 0xb6cdc6c4 in cairo_get_target () from
/usr/lib/i386-linux-gnu/libcairo.so.2
#1 0xb7368654 in ?? () from /usr/lib/gambas3/gb.gtk.so
#2 0xb731e667 in ?? () from /usr/lib/gambas3/gb.draw.so
#3 0xb731e7af in ?? () from /usr/lib/gambas3/gb.draw.so
#4 0x08051be5 in ?? ()
#5 0x0807c37f in ?? ()
#6 0x08050e4a in ?? ()
#7 0x08051497 in ?? ()
#8 0x08065922 in ?? ()
#9 0x08065e7c in ?? ()
#10 0xb7370e91 in ?? () from /usr/lib/gambas3/gb.gtk.so
#11 0xb7351392 in ?? () from /usr/lib/gambas3/gb.gtk.so
#12 0xb735af94 in ?? () from /usr/lib/gambas3/gb.gtk.so
#13 0xb6c391ec in g_cclosure_marshal_VOID__VOID () from
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#14 0xb6c37484 in g_closure_invoke () from
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#15 0xb6c490d9 in ?? () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#16 0xb6c512dc in g_signal_emit_valist () from
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#17 0xb6c51453 in g_signal_emit () from
/usr/lib/i386-linux-gnu/libgobject-2.0.so.0
#18 0xb70bd0d6 in ?? () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#19 0xb70bd76b in gtk_tree_view_set_cursor_on_cell ()
from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#20 0xb70bd82f in gtk_tree_view_set_cursor () from
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#21 0xb735a785 in ?? () from /usr/lib/gambas3/gb.gtk.so
#22 0xb737149b in ?? () from /usr/lib/gambas3/gb.gtk.so
---Type to continue, or q to quit---
From taboege at ...626... Sat Jan 19 15:40:51 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 19 Jan 2013 15:40:51 +0100
Subject: [Gambas-user] IDE patch functionality
Message-ID: <20130119144051.GC528@...2774...>
Hi,
I added the following items under the "Make" menu in the IDE (my working
copy):
- "Generate patch..." to take an old source archive and generate a diff
relative to the current project
- "Apply patch..." to apply a previously generated patch to the currently
open project (the "old" one from above)
- "Revert patch..." the inverse operation of "Apply patch..."
One may then have a software-1.0.0.tar.gz archive and generate a patch for
it to ascend to the latest version. I used my modified IDE to create a diff
between itself and the unmodified IDE source code archive, applied and
reverted it without errors.
This may not be the usual Gambas development pattern but I found it
particularly useful the last days. If anyone is interested, I will add more
advanced error handling and perhaps commit it to the official repository if
Benoit is content with it.
Regards,
Tobi
From gambas at ...2524... Sat Jan 19 15:53:30 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 19 Jan 2013 14:53:30 +0000
Subject: [Gambas-user] Issue 389 in gambas: Segmentation Fault due to
workspace
In-Reply-To: <0-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Comment #1 on issue 389 by benoit.m... at ...626...: Segmentation Fault due to
workspace
http://code.google.com/p/gambas/issues/detail?id=389
I can't reproduce that: can you provide a project that crashes on your
computer?
From gambas at ...1... Sat Jan 19 15:55:32 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 19 Jan 2013 15:55:32 +0100
Subject: [Gambas-user] IDE patch functionality
In-Reply-To: <20130119144051.GC528@...2774...>
References: <20130119144051.GC528@...2774...>
Message-ID: <50FAB3E4.5000900@...1...>
Le 19/01/2013 15:40, Tobias Boege a ?crit :
> Hi,
>
> I added the following items under the "Make" menu in the IDE (my working
> copy):
>
> - "Generate patch..." to take an old source archive and generate a diff
> relative to the current project
> - "Apply patch..." to apply a previously generated patch to the currently
> open project (the "old" one from above)
> - "Revert patch..." the inverse operation of "Apply patch..."
>
> One may then have a software-1.0.0.tar.gz archive and generate a patch for
> it to ascend to the latest version. I used my modified IDE to create a diff
> between itself and the unmodified IDE source code archive, applied and
> reverted it without errors.
>
> This may not be the usual Gambas development pattern but I found it
> particularly useful the last days. If anyone is interested, I will add more
> advanced error handling and perhaps commit it to the official repository if
> Benoit is content with it.
>
> Regards,
> Tobi
>
I need to see it to give my opinion. Of course if there is no error
handling, I will not be happy. :-)
--
Beno?t Minisini
From gambas at ...1... Sat Jan 19 16:00:04 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 19 Jan 2013 16:00:04 +0100
Subject: [Gambas-user] Abort on (strange) Picture load
In-Reply-To: <20130116154123.GD790@...2774...>
References: <20130116154123.GD790@...2774...>
Message-ID: <50FAB4F4.6000707@...1...>
Le 16/01/2013 16:41, Tobias Boege a ?crit :
> Hi Benoit,
>
> converting an old Gambas2 project of a certain Mr. Fuchs I found gbx3
> aborting from QT when we do a rather strange Picture load:
>
> Static P As Picture = Picture["url"]
>
> in an _exported class_. The test project isolating the issue is attached.
>
> GDB shows the following:
>
> --8<---------------
>
> ...
> (gdb) r
> ...
> QPixmap: Must construct a QApplication before a QPaintDevice
>
> Program received signal SIGABRT, Aborted.
> 0x00007ffff713d2c5 in raise () from /usr/lib/libc.so.6
> (gdb) bt
> #0 0x00007ffff713d2c5 in raise () from /usr/lib/libc.so.6
> #1 0x00007ffff713e748 in abort () from /usr/lib/libc.so.6
> #2 0x00007ffff435d334 in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
> #3 0x00007ffff435d4e8 in ?? () from /usr/lib/libQtCore.so.4
> #4 0x00007ffff435d674 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
> #5 0x00007ffff4a54a6e in ?? () from /usr/lib/libQtGui.so.4
> #6 0x00007ffff4a55fe1 in QPixmap::QPixmap() () from /usr/lib/libQtGui.so.4
> #7 0x00007ffff6170fcb in CPICTURE_new (_object=0x7e82d8, _param=0x7ffff65d5040) at CPicture.cpp:230
> #8 0x0000000000412495 in EXEC_native () at gbx_exec.c:1332
> #9 0x000000000041343c in EXEC_special (special=0, class=0x6a6d38, object=0x7e82d8, nparam=0, drop=1 '\001') at gbx_exec.c:1640
> #10 0x00000000004136c8 in EXEC_special_inheritance (special=0, class=0x6a6d38, object=0x7e82d8, nparam=0, drop=1 '\001') at gbx_exec.c:1696
> #11 0x00000000004445a5 in OBJECT_create (class=0x6a6d38, name=0x0, parent=0x0, nparam=0) at gbx_object.c:404
> #12 0x0000000000437f68 in GB_New (class=0x6a6d38, name=0x0, parent=0x0) at gbx_api.c:1864
> #13 0x00007ffff61703bf in create () at CPicture.cpp:55
> #14 0x00007ffff6170a9e in get_picture (path=0x7b3017 "knob.png", len=8) at ../share/gb.form.picture.h:177
> #15 0x00007ffff6170e2f in CPICTURE_get (_object=0x0, _param=0x7ffff65d5020) at CPicture.cpp:188
> #16 0x0000000000412495 in EXEC_native () at gbx_exec.c:1332
> #17 0x000000000041343c in EXEC_special (special=2, class=0x6a6d38, object=0x0, nparam=1, drop=0 '\000') at gbx_exec.c:1640
> #18 0x0000000000416235 in EXEC_push_array (code=770) at gbx_exec_push.c:637
> #19 0x000000000045a3f8 in EXEC_loop () at gbx_exec_loop.c:570
> #20 0x0000000000410750 in EXEC_function_loop () at gbx_exec.c:906
> #21 0x00000000004103a7 in EXEC_function_real () at gbx_exec.c:870
> #22 0x000000000041fa66 in CLASS_run_inits (class=0x73f478) at gbx_class_load.c:1267
> #23 0x000000000041fb85 in CLASS_load_real (class=0x73f478) at gbx_class_load.c:1303
> #24 0x000000000043dd23 in ARCHIVE_load_exported_class (arch=0x68ff58) at gbx_archive.c:148
> #25 0x000000000043df79 in ARCHIVE_load_main () at gbx_archive.c:235
> #26 0x000000000042761c in PROJECT_load_finish () at gbx_project.c:476
> #27 0x0000000000441fe9 in init (file=0x464598 ".", argc=1, argv=0x7fffffffe6e8) at gbx.c:108
> #28 0x0000000000442a02 in main (argc=1, argv=0x7fffffffe6e8) at gbx.c:348
>
> --8<---------------
>
> gbx3 revision is #5499. This report is just in case you care fixing it. A
> (more sane) workaround is simple.
The exported class is loaded before qt4 is initialized, and so the
library aborts the program.
Maybe I can initialize qt4 sooner, I will see...
>
> BTW: I found some elementary (means: only Gambas keywords involved) syntax
> in this project which wasn't recognised by the automatic converter. Do you
> want to have a report for this, too?
Yes. If I can make the conversion automatic, I will do it.
Regards,
--
Beno?t Minisini
From gambas at ...1... Sat Jan 19 16:14:41 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 19 Jan 2013 16:14:41 +0100
Subject: [Gambas-user] No error if source archive overwrite failed
In-Reply-To: <20130116160719.GE790@...2774...>
References: <20130116160719.GE790@...2774...>
Message-ID: <50FAB861.7080209@...1...>
Le 16/01/2013 17:07, Tobias Boege a ?crit :
> Hi,
>
> I noticed that the IDE does not report the failing to overwrite an already
> existing source archive (Make -> Source archive) by a new one - in my case
> the overwrite failed because of insufficient permissions.
>
> Simple to reproduce:
>
> 1. Save a source archive of any project
> 2. chmod a-w the archive
> 3. Overwrite the source archive - allegedly successfully
> 4. Notice that the timestamp did not change (nor the content did)
>
> Gambas executables can apparently be overwritten flawlessly under the same
> circumstances, though. And you must help me with this point: If I do
>
> 1. Save an executable
> 2. Close the IDE
> 3. chown root:root the-executable.gambas
> 4. chmod a-rwx the-executable.gambas
> 5. Open the IDE again
> 6. Try to overwrite the executable
>
> It actually works! Did I miss something here?
Yes. The file is first deleted and then replaced. And the delete
authorization is in the directory rights bits, not in the file.
I have modified the "make source archive" routine in revision #5510 to
act the same way, and to display an error if something fails.
Regards,
--
Beno?t Minisini
From gambas at ...2524... Sat Jan 19 16:21:57 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 19 Jan 2013 15:21:57 +0000
Subject: [Gambas-user] Issue 375 in gambas: Profiler : problem with
recursive methods
In-Reply-To: <4-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
References: <4-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
<0-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Message-ID: <5-6813199134517018827-13172816868269414828-gambas=googlecode.com@...2524...>
Comment #5 on issue 375 by benoit.m... at ...626...: Profiler : problem with
recursive methods
http://code.google.com/p/gambas/issues/detail?id=375
Fixed in revision #5508.
From gambas at ...1... Sat Jan 19 18:43:34 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 19 Jan 2013 18:43:34 +0100
Subject: [Gambas-user] Process' events stall after restart
In-Reply-To: <20130116163211.GF790@...2774...>
References: <20130116163211.GF790@...2774...>
Message-ID: <50FADB46.3060203@...1...>
Le 16/01/2013 17:32, Tobias Boege a ?crit :
> Hi Benoit,
>
> we noticed that the Read and Error events of a newly started Process don't
> fire up when a former process was killed and the variable holding that
> process gets filled with the new one which in turn shows the symptoms above.
>
> To reproduce, open and start the attached project and
>
> 1. Start the process
> 2. Verify that it works by sending the sample command
> 3. Kill the process
> 4. Restart it
> 5. Send another command which yields nothing
> 6. Kill the process and see the output being flushed into the TextArea
>
> This does not happen when step 3 reads "Start/Replace the process"
> (consequently step 4 would be useless but the result is indifferent).
>
> You will find a NOTE line in the source code. If one, before the new Process
> gets started, assigns Null to the Process variable, everything seems to
> work and output comes in instantly. Please tell me what is not supposed to
> be done in a certain way there.
>
> It was somewhat difficult to reproduce the issue in a smaller project than
> the original one. I couldn't find any alternative to the 'bc' program. Hope
> you can bear that dependency.
>
> Regards,
> Tobi
>
That bug should be fixed in revision #5511.
As for your comment: BTW: Doesn't Gambas support "short-circuit
evaluation"?... Are you looking for the following syntax?
If $hProcess And If $hProcess.State = Process.Running Then
Regards,
--
Beno?t Minisini
From taboege at ...626... Sat Jan 19 19:28:51 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 19 Jan 2013 19:28:51 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
Message-ID: <20130119182850.GD528@...2774...>
Hi,
I can't provide a minimal GB2 project so the somewhat bigger original one is
attached.
Just open it with a recent IDE and notice that all the lines like
PUBLIC PROPERTY [READ] Name AS Datatype
get converted to
Public PROPERTY [Read] Name As Datatype
which is a syntax error.
This may actually be a non-issue, I just noticed, because the documentation
doesn't allow PUBLIC|PRIVATE in conjunction with PROPERTY in either Gambas
version as it doesn't make sense but I'm _convinced_ that the project did
compile and run with the Gambas 2.23.1 it was created with but I could be
wrong...
If PUBLIC PROPERTY could be compiled with GB2 it should be recognised by the
converter and corrected on the fly, right?
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LEDClassProjekt.tar.gz
Type: application/octet-stream
Size: 192554 bytes
Desc: not available
URL:
From taboege at ...626... Sat Jan 19 19:33:55 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 19 Jan 2013 19:33:55 +0100
Subject: [Gambas-user] Process' events stall after restart
In-Reply-To: <50FADB46.3060203@...1...>
References: <20130116163211.GF790@...2774...>
<50FADB46.3060203@...1...>
Message-ID: <20130119183355.GE528@...2774...>
On Sat, 19 Jan 2013, Beno?t Minisini wrote:
> Le 16/01/2013 17:32, Tobias Boege a ?crit :
> > Hi Benoit,
> >
> > we noticed that the Read and Error events of a newly started Process don't
> > fire up when a former process was killed and the variable holding that
> > process gets filled with the new one which in turn shows the symptoms above.
> >
> > To reproduce, open and start the attached project and
> >
> > 1. Start the process
> > 2. Verify that it works by sending the sample command
> > 3. Kill the process
> > 4. Restart it
> > 5. Send another command which yields nothing
> > 6. Kill the process and see the output being flushed into the TextArea
> >
> > This does not happen when step 3 reads "Start/Replace the process"
> > (consequently step 4 would be useless but the result is indifferent).
> >
> > You will find a NOTE line in the source code. If one, before the new Process
> > gets started, assigns Null to the Process variable, everything seems to
> > work and output comes in instantly. Please tell me what is not supposed to
> > be done in a certain way there.
> >
> > It was somewhat difficult to reproduce the issue in a smaller project than
> > the original one. I couldn't find any alternative to the 'bc' program. Hope
> > you can bear that dependency.
> >
> > Regards,
> > Tobi
> >
>
> That bug should be fixed in revision #5511.
>
Yes, I confirm.
> As for your comment: BTW: Doesn't Gambas support "short-circuit
> evaluation"?... Are you looking for the following syntax?
>
> If $hProcess And If $hProcess.State = Process.Running Then
>
Oh, alright! I tried without the second If...
Hrm, it is big and fat in the docs :-/
Thanks,
Tobi
From gambas at ...2524... Sat Jan 19 20:33:34 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 19 Jan 2013 19:33:34 +0000
Subject: [Gambas-user] Issue 390 in gambas: gb.xml does not raise error with
invalid tag name
Message-ID: <0-6813199134517018827-2020003446143073507-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Linux Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 390 by sot... at ...626...: gb.xml does not raise error with invalid
tag name
http://code.google.com/p/gambas/issues/detail?id=390
1) Describe the problem.
Invalid element name (no well formed file) is not recognized by XmlReader
(gb.xml),so no error is raised by the interpreter.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=3.2.0-23-generic
Architecture=x86_64
Distribution=Linux Mint 13 Maya
Desktop=MATE
Theme=QGtk
Language=it_IT.UTF-8
Memory=984M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.30.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3
Gambas3 revision 5511 (not shown in System Information)
3) Provide a little project that reproduces the bug or the crash.
parse_error.tar.gz attached
4) If your project needs a database, try to provide it, or part of it.
NA
5) Explain clearly how to reproduce the bug or the crash.
Just have a look at line 4 of provaxml file. It
looks ""
Note the lt sign used to end the Start Tag Supplier.
Run the project; no parse error is raised.
Thanks,
Emanuele
Attachments:
parse_error.tar.gz 6.0 KB
From taboege at ...626... Sat Jan 19 23:22:58 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 19 Jan 2013 23:22:58 +0100
Subject: [Gambas-user] IDE patch functionality
In-Reply-To: <50FAB3E4.5000900@...1...>
References: <20130119144051.GC528@...2774...>
<50FAB3E4.5000900@...1...>
Message-ID: <20130119222258.GG528@...2774...>
On Sat, 19 Jan 2013, Beno?t Minisini wrote:
> Le 19/01/2013 15:40, Tobias Boege a ?crit :
> > Hi,
> >
> > I added the following items under the "Make" menu in the IDE (my working
> > copy):
> >
> > - "Generate patch..." to take an old source archive and generate a diff
> > relative to the current project
> > - "Apply patch..." to apply a previously generated patch to the currently
> > open project (the "old" one from above)
> > - "Revert patch..." the inverse operation of "Apply patch..."
> >
> > One may then have a software-1.0.0.tar.gz archive and generate a patch for
> > it to ascend to the latest version. I used my modified IDE to create a diff
> > between itself and the unmodified IDE source code archive, applied and
> > reverted it without errors.
> >
> > This may not be the usual Gambas development pattern but I found it
> > particularly useful the last days. If anyone is interested, I will add more
> > advanced error handling and perhaps commit it to the official repository if
> > Benoit is content with it.
> >
> > Regards,
> > Tobi
> >
>
> I need to see it to give my opinion. Of course if there is no error
> handling, I will not be happy. :-)
>
OK. So here it is:
1. Make a .tar.gz archive of your working copy IDE (rev#5511)
2. Copy the attached patch into app/src/gambas3/
3. $ patch -p1 Make -> Patches -> Generate patch... and select the source
archive from above to generate a patch against it and save that patch
6. Unpack the source archive to somewhere else
7. With the patched IDE, open the unpatched one, open FMain.class and do
Project -> Make -> Patches -> Apply patch..., then select the patch
8. Watch it being applied
9. Revert it
10. Change FMain.class so that the patch utility will reject the patch
11. Try to apply again
12. Watch how nothing is changed. If one file fails, the backups of all
successfully patched files are reloaded again to not go into an
inconsistent state of the project. You get the complaints from patch.
13. Remove your changes and apply, then commit ;-)
This is mostly how I created and tested the attached patch.
I could commit the changes myself but I wanted to show you how such a patch
will look like because I'm not sure about this issue: a generated patch will
contain some paths from the author's local filesystem. I don't know how to
solve this efficiently.
The best solution would be to copy the current project, similar to how it is
done with the old project, to the same temporary directory and make a diff
from the temporary directory. This way, one would have
--- old-source.tmp/.src/FMain.class
+++ new-source.tmp/.src/FMain.class
in the patch's header. I momentarily took the more efficient way which has
instead:
--- old-source.tmp/.src/FMain.class
+++ /home/tab/Desktop/gambas3/.src/FMain.class
and exposes the location of the newer files.
You certainly have some objections, don't you? :-)
Regards,
Tobi
-------------- next part --------------
diff -urNa old-source.tmp/.src/FMain.class /home/tab/Desktop/gambas3/.src/FMain.class
--- old-source.tmp/.src/FMain.class 2012-12-19 13:19:34.000000000 +0100
+++ /home/tab/Desktop/gambas3/.src/FMain.class 2013-01-19 22:48:54.343993842 +0100
@@ -2202,3 +2202,70 @@
wrkProject.Picture = Project.GetBackground()
End
+
+Public Sub mnuGeneratePatch_Click()
+
+ Dim sOld As String = Temp$("old-source")
+ ' Dim aIgnore As String[] = Project.GetIgnoreFiles()
+ Dim sIgnore As String = ""
+ Dim sCmd As String
+ Dim sPatch As String
+
+ ' If aIgnore.Count Then
+ ' sIgnore = "-x \"*" & aIgnore.Join("\" -x \"*") & "\""
+ ' Endif
+
+ Dialog.Title = ("Select the older source archive...")
+ Dialog.Filter = ["*.tar.gz", ("Gambas source archive")]
+ If Dialog.OpenFile(False) Then Return
+ Project.Save()
+ Project.CleanUp()
+
+ Shell Subst$("tar -zxPf &1 --xform='s_^[^/]\\+_&2_'", Shell$(Dialog.Path), sOld) Wait
+ sCmd = Subst$("cd &1/..; ", Shell$(sOld))
+ sCmd &= Subst$("diff -urNa &1 &2 &3", sIgnore, Shell$(File.Name(sOld)), Shell$(Project.Dir))
+ Shell sCmd To sPatch
+ Shell "rm -r " & Shell$(sOld)
+
+ Dialog.Title = "Save the patch..."
+ Dialog.AutoExt = True
+ Dialog.Filter = ["*.patch;*.diff", ("Diff/Patch files")]
+ If Dialog.SaveFile() Then Return
+ File.Save(Dialog.Path, sPatch)
+
+End
+
+Private Sub DoPatch(Optional sOpt As String)
+
+ Dim sCmd As String
+ Dim sBackup As String = Temp$("backup") & "/"
+ Dim sRes As String
+
+ Dialog.Title = ("Select patch...")
+ Dialog.Filter = ["*.patch;*.diff", ("Diff/Patch files")]
+ If Dialog.OpenFile(False) Then Return
+ Try Mkdir sBackup
+ sCmd = Subst$("cd &1; patch &2 -B &3 -r - ", Shell$(Project.Dir), sOpt, sBackup)
+ sCmd &= Subst$("-bsNp1 <&1", Shell$(Dialog.Path))
+ Shell sCmd To sRes
+ If Process.LastValue Then
+ Shell Subst$("cp -r $(find &1 -mindepth 1 -print) &2", sBackup, Shell$(Project.Dir)) Wait
+ Message.Error(("Patch didn't apply:\n") & sRes)
+ Else
+ Project.ReloadAll()
+ Endif
+ Shell "rm -r " & sBackup
+
+End
+
+Public Sub mnuApplyPatch_Click()
+
+ DoPatch()
+
+End
+
+Public Sub mnuRevertPatch_Click()
+
+ DoPatch("-R")
+
+End
diff -urNa old-source.tmp/.src/FMain.form /home/tab/Desktop/gambas3/.src/FMain.form
--- old-source.tmp/.src/FMain.form 2013-01-02 00:23:44.000000000 +0100
+++ /home/tab/Desktop/gambas3/.src/FMain.form 2013-01-19 22:48:56.890661102 +0100
@@ -98,6 +98,21 @@
Picture = Picture["icon:/small/package"]
Shortcut = "Ctrl+Alt+I"
}
+ { mnuPatch Menu
+ Text = ("Patches...")
+ { mnuGeneratePatch Menu
+ Text = ("Generate patch...")
+ Picture = Picture["icon:/16/add"]
+ }
+ { mnuApplyPatch Menu
+ Text = ("Apply patch...")
+ Picture = Picture["icon:/16/redo"]
+ }
+ { mnuRevertPatch Menu
+ Text = ("Revert patch...")
+ Picture = Picture["icon:/16/undo"]
+ }
+ }
}
{ Menu15 Menu
}
From gambas at ...1... Sun Jan 20 01:32:40 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 01:32:40 +0100
Subject: [Gambas-user] IDE patch functionality
In-Reply-To: <20130119222258.GG528@...2774...>
References: <20130119144051.GC528@...2774...>
<50FAB3E4.5000900@...1...>
<20130119222258.GG528@...2774...>
Message-ID: <50FB3B28.3000208@...1...>
Le 19/01/2013 23:22, Tobias Boege a ?crit :
> On Sat, 19 Jan 2013, Beno?t Minisini wrote:
>> Le 19/01/2013 15:40, Tobias Boege a ?crit :
>>> Hi,
>>>
>>> I added the following items under the "Make" menu in the IDE (my working
>>> copy):
>>>
>>> - "Generate patch..." to take an old source archive and generate a diff
>>> relative to the current project
>>> - "Apply patch..." to apply a previously generated patch to the currently
>>> open project (the "old" one from above)
>>> - "Revert patch..." the inverse operation of "Apply patch..."
>>>
>>> One may then have a software-1.0.0.tar.gz archive and generate a patch for
>>> it to ascend to the latest version. I used my modified IDE to create a diff
>>> between itself and the unmodified IDE source code archive, applied and
>>> reverted it without errors.
>>>
>>> This may not be the usual Gambas development pattern but I found it
>>> particularly useful the last days. If anyone is interested, I will add more
>>> advanced error handling and perhaps commit it to the official repository if
>>> Benoit is content with it.
>>>
>>> Regards,
>>> Tobi
>>>
>>
>> I need to see it to give my opinion. Of course if there is no error
>> handling, I will not be happy. :-)
>>
>
> OK. So here it is:
>
> 1. Make a .tar.gz archive of your working copy IDE (rev#5511)
> 2. Copy the attached patch into app/src/gambas3/
> 3. $ patch -p1 4. Start the patched IDE and make it open itself
> 5. Project -> Make -> Patches -> Generate patch... and select the source
> archive from above to generate a patch against it and save that patch
> 6. Unpack the source archive to somewhere else
> 7. With the patched IDE, open the unpatched one, open FMain.class and do
> Project -> Make -> Patches -> Apply patch..., then select the patch
> 8. Watch it being applied
> 9. Revert it
> 10. Change FMain.class so that the patch utility will reject the patch
> 11. Try to apply again
> 12. Watch how nothing is changed. If one file fails, the backups of all
> successfully patched files are reloaded again to not go into an
> inconsistent state of the project. You get the complaints from patch.
> 13. Remove your changes and apply, then commit ;-)
>
> This is mostly how I created and tested the attached patch.
>
> I could commit the changes myself but I wanted to show you how such a patch
> will look like because I'm not sure about this issue: a generated patch will
> contain some paths from the author's local filesystem. I don't know how to
> solve this efficiently.
>
> The best solution would be to copy the current project, similar to how it is
> done with the old project, to the same temporary directory and make a diff
> from the temporary directory. This way, one would have
>
> --- old-source.tmp/.src/FMain.class
> +++ new-source.tmp/.src/FMain.class
>
> in the patch's header. I momentarily took the more efficient way which has
> instead:
>
> --- old-source.tmp/.src/FMain.class
> +++ /home/tab/Desktop/gambas3/.src/FMain.class
>
> and exposes the location of the newer files.
>
> You certainly have some objections, don't you? :-)
>
A few, how did you know? :-)
- I prefer code submitted to subversion and not a patch.
- There must not be local absolutes paths in the patch file, only
relative ones.
- You should not call extern utilities (like 'find') if you can do what
you need in Gambas directly.
- That patch feature should be accessed through a special dialog that
will allow to see the diff before applying it (there is already a "diff"
highlighting in the 'gb.eval.highlight' component).
- That dialog should allow to apply the patch to some specific files,
not all. If it is possible of course.
- Can 'patch' deal with binary files? Or should that feature be limited
to what lies in the '.src' directory?
Regards,
--
Beno?t Minisini
From taboege at ...626... Sun Jan 20 01:40:03 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 20 Jan 2013 01:40:03 +0100
Subject: [Gambas-user] IDE patch functionality
In-Reply-To: <50FB3B28.3000208@...1...>
References: <20130119144051.GC528@...2774...>
<50FAB3E4.5000900@...1...>
<20130119222258.GG528@...2774...>
<50FB3B28.3000208@...1...>
Message-ID: <20130120004003.GH528@...2774...>
On Sun, 20 Jan 2013, Beno?t Minisini wrote:
> Le 19/01/2013 23:22, Tobias Boege a ?crit :
> > OK. So here it is:
> >
> > 1. Make a .tar.gz archive of your working copy IDE (rev#5511)
> > 2. Copy the attached patch into app/src/gambas3/
> > 3. $ patch -p1 > 4. Start the patched IDE and make it open itself
> > 5. Project -> Make -> Patches -> Generate patch... and select the source
> > archive from above to generate a patch against it and save that patch
> > 6. Unpack the source archive to somewhere else
> > 7. With the patched IDE, open the unpatched one, open FMain.class and do
> > Project -> Make -> Patches -> Apply patch..., then select the patch
> > 8. Watch it being applied
> > 9. Revert it
> > 10. Change FMain.class so that the patch utility will reject the patch
> > 11. Try to apply again
> > 12. Watch how nothing is changed. If one file fails, the backups of all
> > successfully patched files are reloaded again to not go into an
> > inconsistent state of the project. You get the complaints from patch.
> > 13. Remove your changes and apply, then commit ;-)
> >
> > This is mostly how I created and tested the attached patch.
> >
> > I could commit the changes myself but I wanted to show you how such a patch
> > will look like because I'm not sure about this issue: a generated patch will
> > contain some paths from the author's local filesystem. I don't know how to
> > solve this efficiently.
> >
> > The best solution would be to copy the current project, similar to how it is
> > done with the old project, to the same temporary directory and make a diff
> > from the temporary directory. This way, one would have
> >
> > --- old-source.tmp/.src/FMain.class
> > +++ new-source.tmp/.src/FMain.class
> >
> > in the patch's header. I momentarily took the more efficient way which has
> > instead:
> >
> > --- old-source.tmp/.src/FMain.class
> > +++ /home/tab/Desktop/gambas3/.src/FMain.class
> >
> > and exposes the location of the newer files.
> >
> > You certainly have some objections, don't you? :-)
> >
>
> A few, how did you know? :-)
>
> - I prefer code submitted to subversion and not a patch.
>
> - There must not be local absolutes paths in the patch file, only
> relative ones.
>
> - You should not call extern utilities (like 'find') if you can do what
> you need in Gambas directly.
>
> - That patch feature should be accessed through a special dialog that
> will allow to see the diff before applying it (there is already a "diff"
> highlighting in the 'gb.eval.highlight' component).
>
> - That dialog should allow to apply the patch to some specific files,
> not all. If it is possible of course.
>
5 x Alright. I'll see what I can do.
> - Can 'patch' deal with binary files? Or should that feature be limited
> to what lies in the '.src' directory?
Yes, I already patched a new image file into a project. The resulting patch
is then binary in those particular hunks, too.
Regards,
Tobi
From jussi.lahtinen at ...626... Sun Jan 20 03:25:27 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 20 Jan 2013 04:25:27 +0200
Subject: [Gambas-user] GUI help needed
Message-ID:
Hi! Not sure what is going on, but some of the recent revisions changed
behaviour of VSplit (this used to work).
Am I doing something wrong or how this is meant to work? See the attached
demo project.
I want textarea to be resizable, but at start textarea should not cover
button (or any content) of tabstrip.
Ie. at start, form should look like it looks in IDE.
How this is supposed to be implemented?
Jussi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VSplitTest-0.0.1.tar.gz
Type: application/x-gzip
Size: 4822 bytes
Desc: not available
URL:
From gambas at ...1... Sun Jan 20 03:48:36 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 03:48:36 +0100
Subject: [Gambas-user] GUI help needed
In-Reply-To:
References:
Message-ID: <50FB5B04.8080300@...1...>
Le 20/01/2013 03:25, Jussi Lahtinen a ?crit :
> Hi! Not sure what is going on, but some of the recent revisions changed
> behaviour of VSplit (this used to work).
> Am I doing something wrong or how this is meant to work? See the attached
> demo project.
>
> I want textarea to be resizable, but at start textarea should not cover
> button (or any content) of tabstrip.
> Ie. at start, form should look like it looks in IDE.
> How this is supposed to be implemented?
>
> Jussi
>
You must define the layout explicitely with the Layout property.
Regards,
--
Beno?t Minisini
From gambas at ...1... Sun Jan 20 03:49:02 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 03:49:02 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <20130119182850.GD528@...2774...>
References: <20130119182850.GD528@...2774...>
Message-ID: <50FB5B1E.4020603@...1...>
Le 19/01/2013 19:28, Tobias Boege a ?crit :
> Hi,
>
> I can't provide a minimal GB2 project so the somewhat bigger original one is
> attached.
>
> Just open it with a recent IDE and notice that all the lines like
>
> PUBLIC PROPERTY [READ] Name AS Datatype
>
> get converted to
>
> Public PROPERTY [Read] Name As Datatype
>
> which is a syntax error.
>
> This may actually be a non-issue, I just noticed, because the documentation
> doesn't allow PUBLIC|PRIVATE in conjunction with PROPERTY in either Gambas
> version as it doesn't make sense but I'm _convinced_ that the project did
> compile and run with the Gambas 2.23.1 it was created with but I could be
> wrong...
>
> If PUBLIC PROPERTY could be compiled with GB2 it should be recognised by the
> converter and corrected on the fly, right?
>
> Regards,
> Tobi
>
Done in revision #5512, but not really tested!
--
Beno?t Minisini
From gambas at ...1... Sun Jan 20 03:50:19 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 03:50:19 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <20130117091805.45F23260682@...3068...>
References: <20130117091805.45F23260682@...3068...>
Message-ID: <50FB5B6B.7030101@...1...>
Le 17/01/2013 10:18, Ulrich Hartmann a ?crit :
> Hi all,
>
> I'm trying to create a class which can draw a pixel-font character on screen and would let me edit the pixels (this is for my graphic lcd connected to an arduino project). So I started playing around with the Paint class in Gambas3.
>
> So here are my questions:
>
> If I wanted to create my own class in which I would need to draw stuff like boxes which represent the characters pixels and make them clickable to activate or deactivate pixels (eg. draw characters), which class would I use to inherit from (DrawAerea?)?
>
> Also how would I be able to draw form within my new class when it seems to be only possible to draw in the _Draw event of the DrawingArea (can I hijack the _Draw event insde the new class inherited from DrawigArea to do the drawing)?
>
> I guess what I want is more like my own component to display and edit a pixel character.
>
> Tips and help would be highly appreciated!
>
> Uli
>
Whatever you do, look at the Paint.ZoomImage() method.
--
Beno?t Minisini
From bbruen at ...2308... Sun Jan 20 03:53:45 2013
From: bbruen at ...2308... (Bruce)
Date: Sun, 20 Jan 2013 13:23:45 +1030
Subject: [Gambas-user] GUI help needed
In-Reply-To:
References:
Message-ID: <1358650425.22721.2.camel@...2688...>
On Sun, 2013-01-20 at 04:25 +0200, Jussi Lahtinen wrote:
> Hi! Not sure what is going on, but some of the recent revisions changed
> behaviour of VSplit (this used to work).
> Am I doing something wrong or how this is meant to work? See the attached
> demo project.
>
> I want textarea to be resizable, but at start textarea should not cover
> button (or any content) of tabstrip.
> Ie. at start, form should look like it looks in IDE.
> How this is supposed to be implemented?
>
> Jussi
Solution attached. But you will need to manually create the config file,
with for example:
[FMain]
VSplit1=[479,151]
cheers
Bruce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VSplitTest-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 4880 bytes
Desc: not available
URL:
From gambas at ...2524... Sun Jan 20 10:17:51 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 20 Jan 2013 09:17:51 +0000
Subject: [Gambas-user] Issue 367 in gambas: Crash in
Properties...Environment - Gambas 3.3.4
In-Reply-To: <3-6813199134517018827-570553192276410361-gambas=googlecode.com@...2524...>
References: <3-6813199134517018827-570553192276410361-gambas=googlecode.com@...2524...>
<0-6813199134517018827-570553192276410361-gambas=googlecode.com@...2524...>
Message-ID: <4-6813199134517018827-570553192276410361-gambas=googlecode.com@...2524...>
Comment #4 on issue 367 by john.eve... at ...3069...: Crash in
Properties...Environment - Gambas 3.3.4
http://code.google.com/p/gambas/issues/detail?id=367
This is reproducible:-
1. Create new graphical project.
2. Open form (FMain)
3. Right click within Properties
MESSAGE BOX READS:-
This aplication has raised an unexpected
error and must abort.
Bad row index.
Gridview,_checkCell.932
[System]
OperatingSystem=Linux
Kernel=3.5.0-22-generic
Architecture=i686
Memory=2064556 kB
DistributionVendor=Ubuntu
DistributionRelease="LUbuntu 12.10"
Desktop=LXPanel 0.5.11
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.8.3
GTK+=libgtk-x11-2.0.so.0.2400.13
From taboege at ...626... Sun Jan 20 11:31:27 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 20 Jan 2013 11:31:27 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <50FB5B1E.4020603@...1...>
References: <20130119182850.GD528@...2774...>
<50FB5B1E.4020603@...1...>
Message-ID: <20130120103127.GA574@...2774...>
On Sun, 20 Jan 2013, Beno?t Minisini wrote:
> Le 19/01/2013 19:28, Tobias Boege a ?crit :
> > Hi,
> >
> > I can't provide a minimal GB2 project so the somewhat bigger original one is
> > attached.
> >
> > Just open it with a recent IDE and notice that all the lines like
> >
> > PUBLIC PROPERTY [READ] Name AS Datatype
> >
> > get converted to
> >
> > Public PROPERTY [Read] Name As Datatype
> >
> > which is a syntax error.
> >
> > This may actually be a non-issue, I just noticed, because the documentation
> > doesn't allow PUBLIC|PRIVATE in conjunction with PROPERTY in either Gambas
> > version as it doesn't make sense but I'm _convinced_ that the project did
> > compile and run with the Gambas 2.23.1 it was created with but I could be
> > wrong...
> >
> > If PUBLIC PROPERTY could be compiled with GB2 it should be recognised by the
> > converter and corrected on the fly, right?
> >
> > Regards,
> > Tobi
> >
>
> Done in revision #5512, but not really tested!
>
No, it didn't work.
Regards,
Tobi
From gambas at ...1... Sun Jan 20 12:04:51 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 12:04:51 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <20130120103127.GA574@...2774...>
References: <20130119182850.GD528@...2774...>
<50FB5B1E.4020603@...1...>
<20130120103127.GA574@...2774...>
Message-ID: <50FBCF53.7010105@...1...>
Le 20/01/2013 11:31, Tobias Boege a ?crit :
>> Done in revision #5512, but not really tested!
>>
>
> No, it didn't work.
>
> Regards,
> Tobi
>
Can you send me the Gambas 2 project?
--
Beno?t Minisini
From taboege at ...626... Sun Jan 20 12:06:56 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 20 Jan 2013 12:06:56 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <50FBCF53.7010105@...1...>
References: <20130119182850.GD528@...2774...>
<50FB5B1E.4020603@...1...>
<20130120103127.GA574@...2774...>
<50FBCF53.7010105@...1...>
Message-ID: <20130120110656.GB574@...2774...>
On Sun, 20 Jan 2013, Beno?t Minisini wrote:
> Le 20/01/2013 11:31, Tobias Boege a ?crit :
> >> Done in revision #5512, but not really tested!
> >>
> >
> > No, it didn't work.
> >
> > Regards,
> > Tobi
> >
>
> Can you send me the Gambas 2 project?
>
Isn't it attached to my first mail?
From gambas at ...1... Sun Jan 20 12:14:33 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 12:14:33 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <20130120110656.GB574@...2774...>
References: <20130119182850.GD528@...2774...>
<50FB5B1E.4020603@...1...>
<20130120103127.GA574@...2774...>
<50FBCF53.7010105@...1...>
<20130120110656.GB574@...2774...>
Message-ID: <50FBD199.1070105@...1...>
Le 20/01/2013 12:06, Tobias Boege a ?crit :
> On Sun, 20 Jan 2013, Beno?t Minisini wrote:
>> Le 20/01/2013 11:31, Tobias Boege a ?crit :
>>>> Done in revision #5512, but not really tested!
>>>>
>>>
>>> No, it didn't work.
>>>
>>> Regards,
>>> Tobi
>>>
>>
>> Can you send me the Gambas 2 project?
>>
>
> Isn't it attached to my first mail?
>
Oops. didn't notice...
--
Beno?t Minisini
From uli at ...3067... Sun Jan 20 14:03:00 2013
From: uli at ...3067... (Ulrich Hartmann)
Date: Sun, 20 Jan 2013 14:03:00 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50F7D180.1020205@...1950...>
References: <20130117091805.45F23260682@...3068...>
<50F7D180.1020205@...1950...>
Message-ID: <50FBEB04.1000904@...3067...>
Hi Caveat,
thanks for the code, this makes it easier for me to understand how I
could solve this in a good way!
Uli
Am 17.01.2013 11:25, schrieb Caveat:
> As a kind of getting started hint (not sure how far you got already),
> I have some code I wrote a while back to draw hex values as binary
> using little red boxes to represent the 1 bits...in the good old days,
> you'd often get custom sprites or characters defined with a bunch of
> DATA statements and binary values...
>
> Public Sub Form_Open()
> Dim draw As New DrawingArea(Me)
> Dim values As String[]
> Dim hexValues As String = "01 0F 1C FF 00 01 02 03 04 05 06 07 08 09
> 10 11"
> values = Split(hexValues, " ")
> addBoxes(draw, 20, values)
> End
>
> Public Sub addBoxes(draw As DrawingArea, size As Integer, values As
> String[])
>
> Dim idx, idy As Integer
> Dim drawc As DrawingArea
> Dim aBinValue As String
> For idy = 1 To values.Count
> aBinValue = hexToBinary(values[idy - 1])
> For idx = 1 To Len(aBinValue)
> drawc = New DrawingArea(draw)
> drawc.H = size
> drawc.W = size
> drawc.X = idx * size
> drawc.Y = idy * size
> If Mid(aBinValue, idx, 1) = "1" Then
> drawc.Background = Color.Red
> Else
> drawc.Background = Color.White
> End If
> Next
> Next
>
> End
>
> Private Function hexToBinary(hexValue As String) As String
>
> Dim idx As Integer
> Dim result As String = ""
> For idx = 1 To Len(hexValue)
> result &= hexDigitToBinary(Mid(hexValue, idx, 1))
> Next
> Return result
>
> End
>
>
> Private Function hexDigitToBinary(hexDigit As String) As String
>
> Dim idx, idy As Integer
> Dim conversions As String[][] = [
> ["0", "0000"], ["1", "0001"], ["2", "0010"], ["3", "0011"],
> ["4", "0100"], ["5", "0101"], ["6", "0110"], ["7", "0111"],
> ["8", "1000"], ["9", "1001"], ["A", "1010"], ["B", "1011"],
> ["C", "1010"], ["D", "1011"], ["E", "1110"], ["F", "1111"]]
> For idx = 0 To conversions.Count - 1
> If conversions[idx][0] = hexDigit Then
> Return conversions[idx][1]
> Endif
> Next
> Return "*"
> End
>
> Hope this helps,
> Caveat
>
> On 17/01/13 10:18, Ulrich Hartmann wrote:
>> Hi all,
>>
>> I'm trying to create a class which can draw a pixel-font character on
>> screen and would let me edit the pixels (this is for my graphic lcd
>> connected to an arduino project). So I started playing around with
>> the Paint class in Gambas3.
>>
>> So here are my questions:
>>
>> If I wanted to create my own class in which I would need to draw
>> stuff like boxes which represent the characters pixels and make them
>> clickable to activate or deactivate pixels (eg. draw characters),
>> which class would I use to inherit from (DrawAerea?)?
>>
>> Also how would I be able to draw form within my new class when it
>> seems to be only possible to draw in the _Draw event of the
>> DrawingArea (can I hijack the _Draw event insde the new class
>> inherited from DrawigArea to do the drawing)?
>>
>> I guess what I want is more like my own component to display and edit
>> a pixel character.
>>
>> Tips and help would be highly appreciated!
>>
>> Uli
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122712
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
From uli at ...3067... Sun Jan 20 14:17:47 2013
From: uli at ...3067... (Ulrich Hartmann)
Date: Sun, 20 Jan 2013 14:17:47 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <20130117142419.GA535@...2774...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...>
Message-ID: <50FBEE7B.6050000@...3067...>
Hi Tobi,
yes this looks pretty much like what I want to do, just that I need only
pixel on or off and a way to export it as a C code byte array.
I have a first version which allows me to define character size and edit
the character, but when I choose character sizes bigger than 20x20
pixels it takes quite a while to initially draw it (editing works fine
though).
I currently use a picturebox for each pixel representation so I guess it
takes a while to initialize all those PictureBoxes...
Thanks
Uli
Am 17.01.2013 15:24, schrieb Tobias Boege:
> On Thu, 17 Jan 2013, Ulrich Hartmann wrote:
>> Hi all,
>>
>> I'm trying to create a class which can draw a pixel-font character on screen and would let me edit the pixels (this is for my graphic lcd connected to an arduino project). So I started playing around with the Paint class in Gambas3.
>>
>> So here are my questions:
>>
>> If I wanted to create my own class in which I would need to draw stuff like boxes which represent the characters pixels and make them clickable to activate or deactivate pixels (eg. draw characters), which class would I use to inherit from (DrawAerea?)?
>>
>> Also how would I be able to draw form within my new class when it seems to be only possible to draw in the _Draw event of the DrawingArea (can I hijack the _Draw event insde the new class inherited from DrawigArea to do the drawing)?
>>
>> I guess what I want is more like my own component to display and edit a pixel character.
>>
>> Tips and help would be highly appreciated!
>>
>> Uli
> I once wrote a program for a game project at our school to design 8*8 sqpx
> sprites with a palette of 4 different colours (this system is oriented at
> Nintendo's GameBoy internal workings).
>
> The whole thing is implemented using a CTile class which works on an Image
> object internally. I attached a screenshot of it. Frankly, it is not really
> good for fonts, as you can see :-) Is that of the kind you want to write?
>
> Regards,
> Tobi
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
>
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FontCharacterEditor1.png
Type: image/png
Size: 16034 bytes
Desc: not available
URL:
From gambas at ...1... Sun Jan 20 14:22:05 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 14:22:05 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FBEE7B.6050000@...3067...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
Message-ID: <50FBEF7D.9090101@...1...>
Le 20/01/2013 14:17, Ulrich Hartmann a ?crit :
> Hi Tobi,
>
> yes this looks pretty much like what I want to do, just that I need only
> pixel on or off and a way to export it as a C code byte array.
>
> I have a first version which allows me to define character size and edit
> the character, but when I choose character sizes bigger than 20x20
> pixels it takes quite a while to initially draw it (editing works fine
> though).
>
> I currently use a picturebox for each pixel representation so I guess it
> takes a while to initialize all those PictureBoxes...
>
> Thanks
>
> Uli
>
>
Use Paint.ZoomImage() method inside a DrawingArea!
--
Beno?t Minisini
From taboege at ...626... Sun Jan 20 14:26:48 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 20 Jan 2013 14:26:48 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FBEE7B.6050000@...3067...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
Message-ID: <20130120132648.GD574@...2774...>
On Sun, 20 Jan 2013, Ulrich Hartmann wrote:
> Hi Tobi,
>
> yes this looks pretty much like what I want to do, just that I need
> only pixel on or off and a way to export it as a C code byte array.
>
> I have a first version which allows me to define character size and
> edit the character, but when I choose character sizes bigger than
> 20x20 pixels it takes quite a while to initially draw it (editing
> works fine though).
>
> I currently use a picturebox for each pixel representation so I
> guess it takes a while to initialize all those PictureBoxes...
>
> Thanks
>
> Uli
>
Hmm. History repeats :-) I already have a program which transforms the
simple binary format of my program's files to a C array. I think it can
be done using some standard programs as well.
If you want, I can go through the project again to tidy it up and send it
after Wednesday. It supposedly is more efficient than yours although I can't
say that I studied Gambas' drawing routines very well and I'm not up to date
with the recent changes... Anyway, then you can tune it to your needs?
Regards,
Tobi
From uli at ...3067... Sun Jan 20 15:30:36 2013
From: uli at ...3067... (Ulrich Hartmann)
Date: Sun, 20 Jan 2013 15:30:36 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FBEF7D.9090101@...1...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
<50FBEF7D.9090101@...1...>
Message-ID: <50FBFF8C.5020503@...3067...>
Hi Beno?t,
thanks for the tip.
I would then I guess have to create a Image object in the desired size
(32x50 for example) in memory, black and white and use Paint.ZoomImage
to display and edit it?
Uli
Am 20.01.2013 14:22, schrieb Beno?t Minisini:
> Le 20/01/2013 14:17, Ulrich Hartmann a ?crit :
>> Hi Tobi,
>>
>> yes this looks pretty much like what I want to do, just that I need only
>> pixel on or off and a way to export it as a C code byte array.
>>
>> I have a first version which allows me to define character size and edit
>> the character, but when I choose character sizes bigger than 20x20
>> pixels it takes quite a while to initially draw it (editing works fine
>> though).
>>
>> I currently use a picturebox for each pixel representation so I guess it
>> takes a while to initialize all those PictureBoxes...
>>
>> Thanks
>>
>> Uli
>>
>>
> Use Paint.ZoomImage() method inside a DrawingArea!
>
From uli at ...3067... Sun Jan 20 16:03:14 2013
From: uli at ...3067... (Ulrich Hartmann)
Date: Sun, 20 Jan 2013 16:03:14 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FBFF8C.5020503@...3067...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
<50FBEF7D.9090101@...1...>
<50FBFF8C.5020503@...3067...>
Message-ID: <50FC0732.2040803@...3067...>
ok, I tried to use Paint.ZoomImage but I get an error "unknown symbol in
class Paint"
The Documentation states gb.qt4 is the class needed and I already have
gb.qt4 imported/ activated...
I'm using Gambas 3.3.4 on Ubuntu
Uli
Am 20.01.2013 15:30, schrieb Ulrich Hartmann:
> Hi Beno?t,
>
> thanks for the tip.
>
> I would then I guess have to create a Image object in the desired size
> (32x50 for example) in memory, black and white and use Paint.ZoomImage
> to display and edit it?
>
> Uli
>
> Am 20.01.2013 14:22, schrieb Beno?t Minisini:
>> Le 20/01/2013 14:17, Ulrich Hartmann a ?crit :
>>> Hi Tobi,
>>>
>>> yes this looks pretty much like what I want to do, just that I need only
>>> pixel on or off and a way to export it as a C code byte array.
>>>
>>> I have a first version which allows me to define character size and edit
>>> the character, but when I choose character sizes bigger than 20x20
>>> pixels it takes quite a while to initially draw it (editing works fine
>>> though).
>>>
>>> I currently use a picturebox for each pixel representation so I guess it
>>> takes a while to initialize all those PictureBoxes...
>>>
>>> Thanks
>>>
>>> Uli
>>>
>>>
>> Use Paint.ZoomImage() method inside a DrawingArea!
>>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_123012
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From jussi.lahtinen at ...626... Sun Jan 20 16:09:47 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sun, 20 Jan 2013 17:09:47 +0200
Subject: [Gambas-user] GUI help needed
In-Reply-To: <50FB5B04.8080300@...1...>
References:
<50FB5B04.8080300@...1...>
Message-ID:
OK. I found this:
http://gambasdoc.org/help/comp/gb.qt4/vsplit/layout?v3
Is it possible to have some examples of use of layout property to
documentation?
Or is it possible to have feature to edit this graphically via IDE?
Thanks to both of you!
Jussi
On Sun, Jan 20, 2013 at 4:48 AM, Beno?t Minisini <
gambas at ...1...> wrote:
> Le 20/01/2013 03:25, Jussi Lahtinen a ?crit :
> > Hi! Not sure what is going on, but some of the recent revisions changed
> > behaviour of VSplit (this used to work).
> > Am I doing something wrong or how this is meant to work? See the attached
> > demo project.
> >
> > I want textarea to be resizable, but at start textarea should not cover
> > button (or any content) of tabstrip.
> > Ie. at start, form should look like it looks in IDE.
> > How this is supposed to be implemented?
> >
> > Jussi
> >
>
> You must define the layout explicitely with the Layout property.
>
> Regards,
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_123012
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From gambas at ...1... Sun Jan 20 17:16:35 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 17:16:35 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <50FBD199.1070105@...1...>
References: <20130119182850.GD528@...2774...>
<50FB5B1E.4020603@...1...>
<20130120103127.GA574@...2774...>
<50FBCF53.7010105@...1...>
<20130120110656.GB574@...2774...>
<50FBD199.1070105@...1...>
Message-ID: <50FC1863.9090803@...1...>
Le 20/01/2013 12:14, Beno?t Minisini a ?crit :
> Le 20/01/2013 12:06, Tobias Boege a ?crit :
>> On Sun, 20 Jan 2013, Beno?t Minisini wrote:
>>> Le 20/01/2013 11:31, Tobias Boege a ?crit :
>>>>> Done in revision #5512, but not really tested!
>>>>>
>>>>
>>>> No, it didn't work.
>>>>
>>>> Regards,
>>>> Tobi
>>>>
>>>
>>> Can you send me the Gambas 2 project?
>>>
>>
>> Isn't it attached to my first mail?
>>
>
> Oops. didn't notice...
>
OK, this should work in revision #5513.
--
Beno?t Minisini
From taboege at ...626... Sun Jan 20 17:19:24 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 20 Jan 2013 17:19:24 +0100
Subject: [Gambas-user] (Potential) addition to GB2 -> GB3 converter
In-Reply-To: <50FC1863.9090803@...1...>
References: <20130119182850.GD528@...2774...>
<50FB5B1E.4020603@...1...>
<20130120103127.GA574@...2774...>
<50FBCF53.7010105@...1...>
<20130120110656.GB574@...2774...>
<50FBD199.1070105@...1...>
<50FC1863.9090803@...1...>
Message-ID: <20130120161924.GE574@...2774...>
On Sun, 20 Jan 2013, Beno?t Minisini wrote:
> Le 20/01/2013 12:14, Beno?t Minisini a ?crit :
> > Le 20/01/2013 12:06, Tobias Boege a ?crit :
> >> On Sun, 20 Jan 2013, Beno?t Minisini wrote:
> >>> Le 20/01/2013 11:31, Tobias Boege a ?crit :
> >>>>> Done in revision #5512, but not really tested!
> >>>>>
> >>>>
> >>>> No, it didn't work.
> >>>>
> >>>> Regards,
> >>>> Tobi
> >>>>
> >>>
> >>> Can you send me the Gambas 2 project?
> >>>
> >>
> >> Isn't it attached to my first mail?
> >>
> >
> > Oops. didn't notice...
> >
>
> OK, this should work in revision #5513.
>
It does.
Thanks,
Tobi
From gambas at ...1... Sun Jan 20 19:08:43 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 20 Jan 2013 19:08:43 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FC0732.2040803@...3067...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
<50FBEF7D.9090101@...1...>
<50FBFF8C.5020503@...3067...> <50FC0732.2040803@...3067...>
Message-ID: <50FC32AB.3000806@...1...>
Le 20/01/2013 16:03, Ulrich Hartmann a ?crit :
> ok, I tried to use Paint.ZoomImage but I get an error "unknown symbol in
> class Paint"
>
> The Documentation states gb.qt4 is the class needed and I already have
> gb.qt4 imported/ activated...
>
> I'm using Gambas 3.3.4 on Ubuntu
>
> Uli
>
Oops sorry. You should wait for the 3.4 version I must release... But I
didn't find time yet! :-/
--
Beno?t Minisini
From uli at ...3067... Sun Jan 20 19:26:23 2013
From: uli at ...3067... (Ulrich Hartmann)
Date: Sun, 20 Jan 2013 19:26:23 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FC32AB.3000806@...1...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
<50FBEF7D.9090101@...1...>
<50FBFF8C.5020503@...3067...> <50FC0732.2040803@...3067...>
<50FC32AB.3000806@...1...>
Message-ID: <50FC36CF.6080006@...3067...>
ok, no problem, I'll wait for version 3.4
Just one question, is there a way (in 3.4's Paint class) to access each
pixel and get its color value, so that I can export the characters bytes
as a text-file (.c/ .h) based on the changed image, when I'm done
drawing my characters/ images?
Uli
Am 20.01.2013 19:08, schrieb Beno?t Minisini:
> Le 20/01/2013 16:03, Ulrich Hartmann a ?crit :
>> ok, I tried to use Paint.ZoomImage but I get an error "unknown symbol in
>> class Paint"
>>
>> The Documentation states gb.qt4 is the class needed and I already have
>> gb.qt4 imported/ activated...
>>
>> I'm using Gambas 3.3.4 on Ubuntu
>>
>> Uli
>>
> Oops sorry. You should wait for the 3.4 version I must release... But I
> didn't find time yet! :-/
>
From bbruen at ...2308... Mon Jan 21 00:39:03 2013
From: bbruen at ...2308... (Bruce)
Date: Mon, 21 Jan 2013 10:09:03 +1030
Subject: [Gambas-user] GUI help needed
In-Reply-To:
References:
<50FB5B04.8080300@...1...>
Message-ID: <1358725143.22721.32.camel@...2688...>
On Sun, 2013-01-20 at 17:09 +0200, Jussi Lahtinen wrote:
> OK. I found this:
> http://gambasdoc.org/help/comp/gb.qt4/vsplit/layout?v3
>
> Is it possible to have some examples of use of layout property to
> documentation?
> Or is it possible to have feature to edit this graphically via IDE?
>
> Thanks to both of you!
>
> Jussi
Hi Jussi,
I have added some more to the wiki page. How is it now?
Bruce
From jussi.lahtinen at ...626... Mon Jan 21 13:16:09 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Mon, 21 Jan 2013 14:16:09 +0200
Subject: [Gambas-user] GUI help needed
In-Reply-To: <1358725143.22721.32.camel@...2688...>
References:
<50FB5B04.8080300@...1...>
<1358725143.22721.32.camel@...2688...>
Message-ID:
> Hi Jussi,
>
> I have added some more to the wiki page. How is it now?
>
Yes, it's good now!
Thanks!
Jussi
From kevinfishburne at ...1887... Tue Jan 22 09:15:50 2013
From: kevinfishburne at ...1887... (Kevin Fishburne)
Date: Tue, 22 Jan 2013 03:15:50 -0500
Subject: [Gambas-user] a message to my friends
Message-ID: <50FE4AB6.1000301@...1887...>
I'm sorry as I know this is a bit off-topic, but I am writing my game in
GAMBAS and want to recognize everyone who's helped me along the way. I'm
doing an alpha test soon and made an Acknowledgments menu entry on the
title screen to give credit where it's due. Thank you so much everyone.
GAMBAS is awesome!
http://youtu.be/steFu8Xw-gE
--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271
From gambas at ...2524... Tue Jan 22 17:21:12 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 22 Jan 2013 16:21:12 +0000
Subject: [Gambas-user] Issue 391 in gambas: DataCombo Bug Gambas 3
Message-ID: <0-6813199134517018827-8236105916640452517-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Linux Dist-Fedora
Arch-X86-64 Desktop-KDE GUI-QT4
New issue 391 by aoshioro... at ...626...: DataCombo Bug Gambas 3
http://code.google.com/p/gambas/issues/detail?id=391
1) datacombo don't show the correct field of the table
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=3.7.2-204.fc18.x86_64
Architecture=x86_64
Memory=8161488 kB
DistributionVendor=redhat
DistributionRelease=Fedora release 18 (Spherical Cow)
Desktop=KDE4
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
3) when i use the datacombos, then shows other field of the table.
4) database include, in sqlite3
5) select on the properties of the datacombo the table and the field, but
don't show the correct field
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
DataBaseBugDataCombo.zip 11.9 KB
From gambas at ...2524... Tue Jan 22 20:53:44 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 22 Jan 2013 19:53:44 +0000
Subject: [Gambas-user] Issue 392 in gambas: Segfault 11 after compile error
Message-ID: <0-6813199134517018827-6910673063895816738-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 392 by r... at ...1740...: Segfault 11 after compile error
http://code.google.com/p/gambas/issues/detail?id=392
1) Describe the problem.
IDE/compiler gives error about unknown symbol in class, (which is correct,
symbol doesn't exist) then aborts program, when clicked ok it segfaults.
It also displays this in console output:
QCoreApplication::exec: The event loop is already running
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5514
Operating system: Linux
Distribution: Ubuntu 11.04
Architecture: x86_64
GUI component: QT4
Desktop used: Gnome
[System]
OperatingSystem=Linux
Kernel=2.6.38-16-generic
Architecture=x86_64
Distribution=Ubuntu 11.04
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=7739M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.28.0
GTK+=libgtk-x11-2.0.so.0.2400.4
Poppler=libpoppler.so.13.0.0
Qt4=libQtCore.so.4.7.2
SDL=libSDL-1.2.so.0.11.3
3) Provide a little project that reproduces the bug or the crash.
Sorry too big project still.
Can try to get it reproduced on smaller project if needed.
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
Running my project with a unknown class symbol, compiler gives error, (see
attachment) but after clicking ok it also segfaults... (with eventloop
already running error too)
(gdb) run
Starting program: /usr/bin/gbx3
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffead8b700 (LWP 26036)]
[New Thread 0x7fffdf686700 (LWP 26037)]
QCoreApplication::exec: The event loop is already running
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff41e3908 in QEventLoop::exit(int) () from /usr/lib/libQtCore.so.4
(gdb) bt
#0 0x00007ffff41e3908 in QEventLoop::exit(int) () from
/usr/lib/libQtCore.so.4
#1 0x00007ffff5eaa648 in MyMainWindow::closeEvent (this=0xbf1510,
e=0x7fffffffd6e0) at CWindow.cpp:2278
#2 0x00007ffff4724076 in QWidget::event(QEvent*) () from
/usr/lib/libQtGui.so.4
#3 0x00007ffff46d29f4 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/libQtGui.so.4
#4 0x00007ffff46d73ba in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/libQtGui.so.4
#5 0x00007ffff41e444c in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/libQtCore.so.4
#6 0x00007ffff471ea15 in
QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () from
/usr/lib/libQtGui.so.4
#7 0x00007ffff5ea79b1 in do_close (_object=0xbf1378, ret=0,
destroyed=true) at CWindow.cpp:606
#8 0x00007ffff5ea99e3 in MyMainWindow::~MyMainWindow (this=0xbf1510,
__in_chrg=) at CWindow.cpp:1546
#9 0x00007ffff5ea9a81 in MyMainWindow::~MyMainWindow (this=0xbf1510,
__in_chrg=) at CWindow.cpp:1575
#10 0x00007ffff41f8478 in QObject::event(QEvent*) () from
/usr/lib/libQtCore.so.4
#11 0x00007ffff472367d in QWidget::event(QEvent*) () from
/usr/lib/libQtGui.so.4
#12 0x00007ffff46d29f4 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007ffff46d73ba in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/libQtGui.so.4
#14 0x00007ffff41e444c in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/libQtCore.so.4
#15 0x00007ffff41e7bd5 in
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
from /usr/lib/libQtCore.so.4
#16 0x00007ffff41e7fb4 in
QCoreApplication::processEvents(QFlags, int)
() from /usr/lib/libQtCore.so.4
#17 0x00007ffff5e9e995 in hook_quit () at main.cpp:764
#18 0x00007ffff5e9e9de in hook_loop () at main.cpp:781
#19 0x0000000000426072 in main (argc=1, argv=0x7fffffffe3d8) at gbx.c:408
(gdb)
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
unknown symbol.png 23.1 KB
From bill-lancaster at ...2231... Wed Jan 23 11:13:43 2013
From: bill-lancaster at ...2231... (bill-lancaster)
Date: Wed, 23 Jan 2013 02:13:43 -0800 (PST)
Subject: [Gambas-user] Gambas3 64 bit
Message-ID: <1358936022986-40795.post@...3046...>
I'm about to install Gambas3 on a new Compaq 64 bit machine running Kubuntu.
Do I need to install the 64 bit version, if so, where would I find it?
--
View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-64-bit-tp40795.html
Sent from the gambas-user mailing list archive at Nabble.com.
From Karl.Reinl at ...2345... Wed Jan 23 12:00:05 2013
From: Karl.Reinl at ...2345... (Charlie Reinl)
Date: Wed, 23 Jan 2013 12:00:05 +0100
Subject: [Gambas-user] Gambas3 64 bit
In-Reply-To: <1358936022986-40795.post@...3046...>
References: <1358936022986-40795.post@...3046...>
Message-ID: <1358938805.4523.1.camel@...40...>
Am Mittwoch, den 23.01.2013, 02:13 -0800 schrieb bill-lancaster:
> I'm about to install Gambas3 on a new Compaq 64 bit machine running Kubuntu.
>
> Do I need to install the 64 bit version, if so, where would I find it?
>
Salut Bill,
Ther is NO Gambas3 32bit or 64bit , THE Gambas3 run on both.
--
Amicalement
Charlie
From bill-lancaster at ...2231... Wed Jan 23 12:52:42 2013
From: bill-lancaster at ...2231... (bill-lancaster)
Date: Wed, 23 Jan 2013 03:52:42 -0800 (PST)
Subject: [Gambas-user] Gambas3 64 bit
In-Reply-To: <1358938805.4523.1.camel@...40...>
References: <1358936022986-40795.post@...3046...>
<1358938805.4523.1.camel@...40...>
Message-ID: <1358941962502-40797.post@...3046...>
Thank you! Charlie,
Bill
--
View this message in context: http://gambas.8142.n7.nabble.com/Gambas3-64-bit-tp40795p40797.html
Sent from the gambas-user mailing list archive at Nabble.com.
From jussi.lahtinen at ...626... Wed Jan 23 20:34:08 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Wed, 23 Jan 2013 21:34:08 +0200
Subject: [Gambas-user] Image quality value?
Message-ID:
Hi!
Documentation mentions quality argument, but what is that unit? 0-100..?
http://gambasdoc.org/help/comp/gb.qt4/image/save?v3
Jussi
From gambas at ...2524... Thu Jan 24 11:47:18 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 24 Jan 2013 10:47:18 +0000
Subject: [Gambas-user] Issue 393 in gambas: Signal 11 in JSON.Decode
Message-ID: <0-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 393 by r... at ...1740...: Signal 11 in JSON.Decode
http://code.google.com/p/gambas/issues/detail?id=393
1) Describe the problem.
When using JSON.Decode Gambas3 segfaults
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5514
Operating system: Linux
Distribution: Ubuntu 11.04
Architecture: x86_64
GUI component: QT4
Desktop used: Gnome
3) Provide a little project that reproduces the bug or the crash.
Attached
5) Explain clearly how to reproduce the bug or the crash.
Run attached project, see this gdb bt output:
~/development/bugreports/Jsonsignal11$ gdb gbx3
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/bin/gbx3...done.
(gdb) run
Starting program: /usr/bin/gbx3
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
ARRAY_add_data (p_data=0x67bff8, num=2, zero=1 '\001')
at ../share/gb_array_temp.h:68
68 array->count += num;
(gdb) bt
#0 ARRAY_add_data (p_data=0x67bff8, num=2, zero=1 '\001')
at ../share/gb_array_temp.h:68
#1 0x000000000042ce5c in _convert (src=0x83c6b8, class=, conv=0x7ffff630d060) at gbx_c_array.c:1426
#2 0x00000000004072de in VALUE_convert (value=0x7ffff630d060,
type=6689736) at gbx_value.c:861
#3 0x0000000000436a47 in EXEC_loop () at gbx_exec_loop.c:625
#4 0x0000000000409d6b in EXEC_function_loop () at gbx_exec.c:906
#5 0x000000000040a437 in EXEC_function_real () at gbx_exec.c:870
#6 0x000000000041fc65 in raise_event (observer=,
object=, func_id=, nparam=) at gbx_api.c:810
#7 0x000000000042040d in GB_Raise (object=0x835f28, event_id=21, nparam=0)
at gbx_api.c:946
#8 0x00007ffff5cae81e in gMainWindow::emitOpen (this=0x835ff0) at
gmainwindow.cpp:445
#9 0x00007ffff5cae880 in gMainWindow::setVisible (this=, vl=) at gmainwindow.cpp:475
#10 0x000000000040ab82 in EXEC_native () at gbx_exec.c:1332
#11 0x000000000040b155 in EXEC_public_desc (class=,
object=, desc=, nparam=) at gbx_exec.c:1572
#12 0x0000000000426012 in main (argc=1, argv=0x7fffffffe3c8) at gbx.c:390
(gdb)
6) By doing that carefully, you have done 50% of the bug fix job!
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
Attachments:
Jsonsignal11-0.0.1.tar.gz 604 KB
From john.aaron.rose at ...626... Thu Jan 24 18:59:50 2013
From: john.aaron.rose at ...626... (John Rose)
Date: Thu, 24 Jan 2013 17:59:50 +0000
Subject: [Gambas-user] Shell command including string containing a quote
Message-ID: <51017696.4000205@...626...>
I have written a GUI to execute a command which involves selecting
filenames (e.g. sCombinedPath below) to be used in a Shell command (as
part of a Process). It works OK generally. However, if any filename
includes a quote, it goes wrong.
sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "' " &
"'" & sVideoPath & "' " &
"'" & sAudioPath & "' " &
">/dev/null 2>'" & sLogFilename & "'"
Print sCommand
hProcess = Shell sCommand
I read about using the Shell$ command to create a quoted string but I
couldn't make that work. I've also tried a Replace$ command to replace a
quote by a backslash followed by a quote. I couldn't get that to work.
Any ideas please?
Project attached.
--
Regards,
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CombineAV.tar.gz
Type: application/x-gzip
Size: 14720 bytes
Desc: not available
URL:
From mohareve at ...626... Thu Jan 24 21:46:09 2013
From: mohareve at ...626... (M. Cs.)
Date: Thu, 24 Jan 2013 21:46:09 +0100
Subject: [Gambas-user] Shell command including string containing a quote
In-Reply-To: <51017696.4000205@...626...>
References: <51017696.4000205@...626...>
Message-ID:
I guess you will need Chr$(39) as ASCII code for ', or if you need double
quote just use Chr$(34).
2013/1/24 John Rose
> I have written a GUI to execute a command which involves selecting
> filenames (e.g. sCombinedPath below) to be used in a Shell command (as part
> of a Process). It works OK generally. However, if any filename includes a
> quote, it goes wrong.
>
> sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "' " &
> "'" & sVideoPath & "' " &
> "'" & sAudioPath & "' " &
> ">/dev/null 2>'" & sLogFilename & "'"
> Print sCommand
> hProcess = Shell sCommand
>
> I read about using the Shell$ command to create a quoted string but I
> couldn't make that work. I've also tried a Replace$ command to replace a
> quote by a backslash followed by a quote. I couldn't get that to work.
>
> Any ideas please?
>
> Project attached.
>
> --
> Regards,
> John
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
From taboege at ...626... Thu Jan 24 22:08:19 2013
From: taboege at ...626... (Tobias Boege)
Date: Thu, 24 Jan 2013 22:08:19 +0100
Subject: [Gambas-user] Shell command including string containing a quote
In-Reply-To: <51017696.4000205@...626...>
References: <51017696.4000205@...626...>
Message-ID: <20130124210819.GB652@...2774...>
On Thu, 24 Jan 2013, John Rose wrote:
> I have written a GUI to execute a command which involves selecting
> filenames (e.g. sCombinedPath below) to be used in a Shell command
> (as part of a Process). It works OK generally. However, if any
> filename includes a quote, it goes wrong.
>
> sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "' " &
> "'" & sVideoPath & "' " &
> "'" & sAudioPath & "' " &
> ">/dev/null 2>'" & sLogFilename & "'"
> Print sCommand
> hProcess = Shell sCommand
>
> I read about using the Shell$ command to create a quoted string but
> I couldn't make that work. I've also tried a Replace$ command to
> replace a quote by a backslash followed by a quote. I couldn't get
> that to work.
Use it like
sCommand = "mplex ... " & Shell$(sCombinedPath) & etc.
This will result in
mplex ... /path/with/\"quotes\"
which is totally valid. But then you must not enclose the path within ''
single quotes.
Regards,
Tobi
From john.aaron.rose at ...626... Thu Jan 24 23:21:23 2013
From: john.aaron.rose at ...626... (John Rose)
Date: Thu, 24 Jan 2013 22:21:23 +0000
Subject: [Gambas-user] Shell command including string containing a quote
In-Reply-To: <20130124210819.GB652@...2774...>
References: <51017696.4000205@...626...> <20130124210819.GB652@...2774...>
Message-ID: <5101B3E3.4070207@...626...>
Thanks Tobias. It worked.
Regards,
John
On 24/01/13 21:08, Tobias Boege wrote:
> On Thu, 24 Jan 2013, John Rose wrote:
>> I have written a GUI to execute a command which involves selecting
>> filenames (e.g. sCombinedPath below) to be used in a Shell command
>> (as part of a Process). It works OK generally. However, if any
>> filename includes a quote, it goes wrong.
>>
>> sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "' " &
>> "'" & sVideoPath & "' " &
>> "'" & sAudioPath & "' " &
>> ">/dev/null 2>'" & sLogFilename & "'"
>> Print sCommand
>> hProcess = Shell sCommand
>>
>> I read about using the Shell$ command to create a quoted string but
>> I couldn't make that work. I've also tried a Replace$ command to
>> replace a quote by a backslash followed by a quote. I couldn't get
>> that to work.
> Use it like
>
> sCommand = "mplex ... " & Shell$(sCombinedPath) & etc.
>
> This will result in
>
> mplex ... /path/with/\"quotes\"
>
> which is totally valid. But then you must not enclose the path within ''
> single quotes.
>
> Regards,
> Tobi
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
From gambas at ...2524... Thu Jan 24 23:31:15 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 24 Jan 2013 22:31:15 +0000
Subject: [Gambas-user] Issue 393 in gambas: Signal 11 in JSON.Decode
In-Reply-To: <0-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-3.3.0
Comment #1 on issue 393 by benoit.m... at ...626...: Signal 11 in JSON.Decode
http://code.google.com/p/gambas/issues/detail?id=393
(No comment was entered for this change.)
From gambas at ...2524... Thu Jan 24 23:32:25 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 24 Jan 2013 22:32:25 +0000
Subject: [Gambas-user] Issue 393 in gambas: Signal 11 in JSON.Decode
In-Reply-To: <1-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
<0-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-4141694558738035377-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #2 on issue 393 by benoit.m... at ...626...: Signal 11 in JSON.Decode
http://code.google.com/p/gambas/issues/detail?id=393
Fixed in revision #5516.
This was not a bug in the JSON class, but in the array conversion routine
that tried to convert the Collection into an array instead of raising an
error.
From gambas at ...2524... Thu Jan 24 23:35:06 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 24 Jan 2013 22:35:06 +0000
Subject: [Gambas-user] Issue 392 in gambas: Segfault 11 after compile
error
In-Reply-To: <0-6813199134517018827-6910673063895816738-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-6910673063895816738-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-6910673063895816738-gambas=googlecode.com@...2524...>
Updates:
Labels: -Version Version-TRUNK
Comment #1 on issue 392 by benoit.m... at ...626...: Segfault 11 after compile
error
http://code.google.com/p/gambas/issues/detail?id=392
The interpreter raises the error, not the compiler. The compiler...
compiles the program, it does not run it!
From gambas at ...2524... Thu Jan 24 23:38:07 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 24 Jan 2013 22:38:07 +0000
Subject: [Gambas-user] Issue 389 in gambas: Segmentation Fault due to
workspace
In-Reply-To: <1-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
<0-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Updates:
Status: NeedsInfo
Comment #2 on issue 389 by benoit.m... at ...626...: Segmentation Fault due to
workspace
http://code.google.com/p/gambas/issues/detail?id=389
(No comment was entered for this change.)
From gambas at ...2524... Thu Jan 24 23:39:07 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Thu, 24 Jan 2013 22:39:07 +0000
Subject: [Gambas-user] Issue 389 in gambas: Segmentation Fault due to
workspace
In-Reply-To: <2-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
References: <2-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
<0-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Message-ID: <3-6813199134517018827-1551574736709184766-gambas=googlecode.com@...2524...>
Updates:
Labels: -3.3.4 Version-3.3.0
Comment #3 on issue 389 by benoit.m... at ...626...: Segmentation Fault due to
workspace
http://code.google.com/p/gambas/issues/detail?id=389
(No comment was entered for this change.)
From gambas at ...1... Thu Jan 24 23:40:40 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Thu, 24 Jan 2013 23:40:40 +0100
Subject: [Gambas-user] Image quality value?
In-Reply-To:
References:
Message-ID: <5101B868.3090605@...1...>
Le 23/01/2013 20:34, Jussi Lahtinen a ?crit :
> Hi!
> Documentation mentions quality argument, but what is that unit? 0-100..?
> http://gambasdoc.org/help/comp/gb.qt4/image/save?v3
>
> Jussi
For JPEG images, this is the same quality value as what you entered when
you save a JPEG in the GIMP for example (100 = no compression, 0 =
maximum compression, worst quality).
--
Beno?t Minisini
From vuott at ...325... Thu Jan 24 23:55:07 2013
From: vuott at ...325... (Ru Vuott)
Date: Thu, 24 Jan 2013 22:55:07 +0000 (GMT)
Subject: [Gambas-user] Image quality value?
In-Reply-To: <5101B868.3090605@...1...>
Message-ID: <1359068107.26169.YahooMailClassic@...3065...>
In fact.
I tried to save a image.jpg with value = 1000 and another with value=100. The dimension of "1000" image was same of "100" image.
And more, when I saved image with value=1000, I received in console this notice:
QPixmap::save: Quality out of range [-1, 100]
Regards
vuott
--- Gio 24/1/13, Beno?t Minisini ha scritto:
> Da: Beno?t Minisini
> Oggetto: Re: [Gambas-user] Image quality value?
> A: "mailing list for gambas users"
> Data: Gioved? 24 gennaio 2013, 23:40
> Le 23/01/2013 20:34, Jussi Lahtinen a
> ?crit :
> > Hi!
> > Documentation mentions quality argument, but what is
> that unit? 0-100..?
> > http://gambasdoc.org/help/comp/gb.qt4/image/save?v3
> >
> > Jussi
>
> For JPEG images, this is the same quality value as what you
> entered when
> you save a JPEG in the GIMP for example (100 = no
> compression, 0 =
> maximum compression, worst quality).
>
> --
> Beno?t Minisini
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012,
> HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your
> skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by
> Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From sourceforge-raindog2 at ...94... Fri Jan 25 01:00:11 2013
From: sourceforge-raindog2 at ...94... (Rob Kudla)
Date: Thu, 24 Jan 2013 19:00:11 -0500
Subject: [Gambas-user] Shell command including string containing a quote
In-Reply-To: <51017696.4000205@...626...>
References: <51017696.4000205@...626...>
Message-ID: <5101CB0B.7020608@...94...>
On 01/24/2013 12:59 PM, John Rose wrote:
> I have written a GUI to execute a command which involves selecting
> filenames (e.g. sCombinedPath below) to be used in a Shell command (as part
> of a Process). It works OK generally. However, if any filename includes a
> quote, it goes wrong.
> sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "' " &
> ...
> hProcess = Shell sCommand
If you use Exec (which is not the same as Unix exec()), you can eliminate
quoting altogether.
http://gambasdoc.org/help/lang/exec
It takes an array, not a single string, and there's no shell redirection
because it doesn't invoke a shell. But you can just ignore the Read events
the process raises, and handle writing the log file (or doing something
fancier, I can't remember whether mplex provides useful progress
notifications and I don't seem to have any mpeg streams around that are old
enough for it to handle... ffmpeg definitely does, though) in the Error
event handler. So in your case it would be something like:
Dim mplex as Process
mplex = Exec [ "mplex", "-f", "8", "-o ", sCombinedPath, sVideoPath,
sAudioPath ]
Public Sub mplex_Error(output)
' append output to the log file, or parse it for use in a progress bar or
whatever
End
I haven't tested this code, but you get the idea.
Rob
From cefcogt at ...626... Fri Jan 25 01:50:22 2013
From: cefcogt at ...626... (cefcom)
Date: Thu, 24 Jan 2013 16:50:22 -0800 (PST)
Subject: [Gambas-user] Who use gb.report ? (to all gambas users)
In-Reply-To:
References:
Message-ID: <1359075022371-40812.post@...3046...>
Hi Fabien:
I'm learning to use reports. Once you get the feel is relatively easy.
There are some properties that I still don't understand, though.
-One is how to use report.print? When I try to use it, it returns an error
message, like there is still
something missing.
- Another is how to print to a custom sized page. If you have an instance
of tne printer, let's say
printer1, how do you define printer.paperwidth ans printer.papeheight so
so that the custom option
can be selected?
Carlos
--
View this message in context: http://gambas.8142.n7.nabble.com/Who-use-gb-report-to-all-gambas-users-tp25210p40812.html
Sent from the gambas-user mailing list archive at Nabble.com.
From pabloredondoarch at ...626... Fri Jan 25 12:33:10 2013
From: pabloredondoarch at ...626... (Pablo)
Date: Fri, 25 Jan 2013 11:33:10 +0000
Subject: [Gambas-user] Class Draw deprecated since Gambas 3.4
Message-ID: <51026D76.70102@...626...>
Hello,
I'm a new user of gambas. I've seen that class Draw wil be deprecated
since version 3.4. That means that from that version we can't use Draw?
Thanks
Pablo
From joem at ...2671... Fri Jan 25 14:44:59 2013
From: joem at ...2671... (jm)
Date: Fri, 25 Jan 2013 13:44:59 +0000
Subject: [Gambas-user] Who use gb.report ? (to all gambas users)
In-Reply-To:
References:
Message-ID: <1359121499.26285.25.camel@...2672...>
On Thu, 2012-08-30 at 13:11 +0200, Fabien Bodard wrote:
> This is my query...
>
> If you use it tell me what you want to see as improvement... The problems
> with it.
>
> If you are not using it but need printing or generate reports. Tell me why
> you are not using it.
>
> Thank you
>
> Fabien Bodard
I always wondered what the point of a 'report generator' is when
you already have an open source office suit such as LibreOffice
out there.
All you would need to do is auto-pilot LibreOffice from Gambas programs
and drive it with data generated from inside gambas. Then all the best
reports in best laid out fonts, spreadsheets, presentations, etc, can be
auto generated with all the hard work done LibreOffice!!
Doubly better if the files that LibreOffice opens such as spread sheets
can be processed to read the data from the spread sheet back into
Gambas.
Since source code is available for LibreOffice, I assume, its just a
matter of telling LibreOffice developers to make some APIs (if they
don't exist already) that oil this idea through to completion.
The same idea would work with other software such as gimp to generate
images, inkscape to generate vector graphics, LibreCAD to generate
CAD files from Gambas, 3D files with openscad, custom copper shapes in
KiCAD, Cheese to take photos, something to talk to evolution and
calendar, etc..
So in short, if you got source code, and you are not beholden on a
third party to take the next step, then why not work with the other open
source projects extend gambas to
directly control some of the more common packages with emphasis on
the transfer of data back and forth? Report generation is a small and
outdated idea that we forget it only applies to software that has been
walled. Everything that a report generator does is a duplication of
what a word processor already does. And its unlikely to beat it.
If it were down to me, I'd get rid of anything that looks like
binary data, and make all transfer of data through
simple text files which can be more readily inspected and debugged.
From jussi.lahtinen at ...626... Fri Jan 25 18:43:14 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Fri, 25 Jan 2013 19:43:14 +0200
Subject: [Gambas-user] Image quality value?
In-Reply-To: <5101B868.3090605@...1...>
References:
<5101B868.3090605@...1...>
Message-ID:
OK, thanks!
In GIMP there is quality value also for PNG, and I think I have seen
quality parameter for GIFs also.
But it seems that for PNG, the quality doesn't do anything.
And for some reason I cannot save pics as GIF (unknown format).
Jussi
On Fri, Jan 25, 2013 at 12:40 AM, Beno?t Minisini <
gambas at ...1...> wrote:
> Le 23/01/2013 20:34, Jussi Lahtinen a ?crit :
> > Hi!
> > Documentation mentions quality argument, but what is that unit? 0-100..?
> > http://gambasdoc.org/help/comp/gb.qt4/image/save?v3
> >
> > Jussi
>
> For JPEG images, this is the same quality value as what you entered when
> you save a JPEG in the GIMP for example (100 = no compression, 0 =
> maximum compression, worst quality).
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From jussi.lahtinen at ...626... Fri Jan 25 18:48:07 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Fri, 25 Jan 2013 19:48:07 +0200
Subject: [Gambas-user] Class Draw deprecated since Gambas 3.4
In-Reply-To: <51026D76.70102@...626...>
References: <51026D76.70102@...626...>
Message-ID:
...?
I think you have misunderstood.
Old implementation of Draw is deprecated, and new one is going to replace
it.
Jussi
On Fri, Jan 25, 2013 at 1:33 PM, Pablo wrote:
> Hello,
>
> I'm a new user of gambas. I've seen that class Draw wil be deprecated
> since version 3.4. That means that from that version we can't use Draw?
>
> Thanks
>
> Pablo
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From vuott at ...325... Fri Jan 25 19:28:26 2013
From: vuott at ...325... (Ru Vuott)
Date: Fri, 25 Jan 2013 18:28:26 +0000 (GMT)
Subject: [Gambas-user] Image quality value?
In-Reply-To:
Message-ID: <1359138506.38859.YahooMailClassic@...3070...>
> But it seems that for PNG, the quality doesn't do anything.
I tried that.
I loaded a gif image and then I saved it twice in PNG format: the first image in 10-quality, the second in 100-quality.
Well, the 10-quality PNG file-image was 10,2 KByte; the 10-quality PNG file-image was 46 KByte !
> And for some reason I cannot save pics as GIF (unknown
> format).
About this problem I asked Benoit, and he answered:
"Actually, gb.image.io relies on the gdk-pixbuf library to save the
picture. So the supported formats are the one supported by that library."
Well, gdk-pixbuf documentation says:
"Saves pixbuf to a file in type, which is currently "jpeg", "png", "tiff", "ico" or "bmp". "
From jussi.lahtinen at ...626... Sat Jan 26 00:10:35 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Sat, 26 Jan 2013 01:10:35 +0200
Subject: [Gambas-user] Image quality value?
In-Reply-To: <1359138506.38859.YahooMailClassic@...3070...>
References:
<1359138506.38859.YahooMailClassic@...3070...>
Message-ID:
> > But it seems that for PNG, the quality doesn't do anything.
>
> I tried that.
> I loaded a gif image and then I saved it twice in PNG format: the first
> image in 10-quality, the second in 100-quality.
> Well, the 10-quality PNG file-image was 10,2 KByte; the 10-quality PNG
> file-image was 46 KByte !
>
You are right, I think I tried 10 versus non-determined, and because of
that there were no difference.
Quality value 100, creates much larger file.
> > And for some reason I cannot save pics as GIF (unknown
> > format).
>
> About this problem I asked Benoit, and he answered:
> "Actually, gb.image.io relies on the gdk-pixbuf library to save the
> picture. So the supported formats are the one supported by that library."
>
> Well, gdk-pixbuf documentation says:
> "Saves pixbuf to a file in type, which is currently "jpeg", "png", "tiff",
> "ico" or "bmp". "
>
OK, makes sense.
Documentation should be corrected (and quality should be explained).
Jussi
From taboege at ...626... Sat Jan 26 00:17:29 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 26 Jan 2013 00:17:29 +0100
Subject: [Gambas-user] IDE patch functionality
In-Reply-To: <50FB3B28.3000208@...1...>
References: <20130119144051.GC528@...2774...>
<50FAB3E4.5000900@...1...>
<20130119222258.GG528@...2774...>
<50FB3B28.3000208@...1...>
Message-ID: <20130125231729.GE844@...2774...>
On Sun, 20 Jan 2013, Beno?t Minisini wrote:
> - There must not be local absolutes paths in the patch file, only
> relative ones.
>
Done by editing the in-memory patch buffer before saving it. This seemed to
be the easiest solution to me.
> - You should not call extern utilities (like 'find') if you can do what
> you need in Gambas directly.
>
You are right.
BTW, I have done the patch editing above by using Split(sPatch, "\n") to
easily work with each line. This may be a place where calling an extern
utility, namely sed, is more useful but I would need GNU extensions to make
it easy. What is the directive here?
> - That patch feature should be accessed through a special dialog that
> will allow to see the diff before applying it (there is already a "diff"
> highlighting in the 'gb.eval.highlight' component).
>
There is a window for that now. The patch can be viewed read-only. I changed
the menu structure in FMain accordingly. Feel free to change the names of
the menu items.
> - That dialog should allow to apply the patch to some specific files,
> not all. If it is possible of course.
>
I wrote a small Patch parser class which allows to easily select or deselect
individual hunks from the patch, coalesce different patches to one and
potentially more. You can actually compose a patch of different files at
present but not save it.
Hope, it's better.
Regards,
Tobi
P.S.: Try to click on the Expander on FPatch. I will write a separate email
for this.
From taboege at ...626... Sat Jan 26 00:21:56 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 26 Jan 2013 00:21:56 +0100
Subject: [Gambas-user] Expander on FPatch in the IDE
Message-ID: <20130125232156.GF844@...2774...>
Hi Benoit,
when I click on the Expander in the FPatch form in the IDE, I just added,
the IDE crashes with a Null object in FSidePanel. I think it's your turn :-)
Regards,
Tobi
From taboege at ...626... Sat Jan 26 00:35:59 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 26 Jan 2013 00:35:59 +0100
Subject: [Gambas-user] Struct declaration scope and array of Struct
Message-ID: <20130125233559.GG844@...2774...>
Hi,
two separate questions about Structs in Gambas:
1. Even if I declare a *Public* Struct, all other classes in which I try to
use this Struct give me an error about an unknown identifier. In what
regard is the Struct 'global'?
2. The docs state that we could only create embedded arrays of structures
but the usual Dim a As New MyStruct[] syntax works perfectly and gives a
normal dynamic array with Add() method, etc.. Except one thing I noticed:
the objects one added dynamically to the array must apparently be freed
by oneself or the interpreter will warn about non-freed allocations.
There is DestroyHunk() function in the Project/FPatch.class file in the
IDE source code which is the product of this observation. Is this alright
and should we trust the documentation to not try to create non-embedded
arrays from structures?
I hope these are not too obvious errors of mine...
Regards,
Tobi
From rmorgan62 at ...626... Sat Jan 26 02:17:33 2013
From: rmorgan62 at ...626... (Randall Morgan)
Date: Fri, 25 Jan 2013 17:17:33 -0800
Subject: [Gambas-user] Who use gb.report ? (to all gambas users)
In-Reply-To: <1359121499.26285.25.camel@...2672...>
References:
<1359121499.26285.25.camel@...2672...>
Message-ID:
I think the report module is a good thing. You can't always depend on
having the open office suite installed on the machine.
I haven't used reports except for a couple small projects quite a
while ago. If it does not already contain plot abilities I would
like to see some of the same features found in matlibplot (python) for
generating nice plots and graphs. Or a seperate graphing
module added.
On Fri, Jan 25, 2013 at 5:44 AM, jm wrote:
> On Thu, 2012-08-30 at 13:11 +0200, Fabien Bodard wrote:
>> This is my query...
>>
>> If you use it tell me what you want to see as improvement... The problems
>> with it.
>>
>> If you are not using it but need printing or generate reports. Tell me why
>> you are not using it.
>>
>> Thank you
>>
>> Fabien Bodard
>
>
> I always wondered what the point of a 'report generator' is when
> you already have an open source office suit such as LibreOffice
> out there.
>
> All you would need to do is auto-pilot LibreOffice from Gambas programs
> and drive it with data generated from inside gambas. Then all the best
> reports in best laid out fonts, spreadsheets, presentations, etc, can be
> auto generated with all the hard work done LibreOffice!!
>
> Doubly better if the files that LibreOffice opens such as spread sheets
> can be processed to read the data from the spread sheet back into
> Gambas.
>
> Since source code is available for LibreOffice, I assume, its just a
> matter of telling LibreOffice developers to make some APIs (if they
> don't exist already) that oil this idea through to completion.
>
> The same idea would work with other software such as gimp to generate
> images, inkscape to generate vector graphics, LibreCAD to generate
> CAD files from Gambas, 3D files with openscad, custom copper shapes in
> KiCAD, Cheese to take photos, something to talk to evolution and
> calendar, etc..
>
> So in short, if you got source code, and you are not beholden on a
> third party to take the next step, then why not work with the other open
> source projects extend gambas to
> directly control some of the more common packages with emphasis on
> the transfer of data back and forth? Report generation is a small and
> outdated idea that we forget it only applies to software that has been
> walled. Everything that a report generator does is a duplication of
> what a word processor already does. And its unlikely to beat it.
>
> If it were down to me, I'd get rid of anything that looks like
> binary data, and make all transfer of data through
> simple text files which can be more readily inspected and debugged.
>
>
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
If you ask me if it can be done. The answer is YES, it can always be
done. The correct questions however are... What will it cost, and how
long will it take?
From vuott at ...325... Sat Jan 26 02:34:08 2013
From: vuott at ...325... (Ru Vuott)
Date: Sat, 26 Jan 2013 01:34:08 +0000 (GMT)
Subject: [Gambas-user] R: Struct declaration scope and array of Struct
In-Reply-To: <20130125233559.GG844@...2774...>
Message-ID: <1359164048.59778.YahooMailClassic@...3066...>
>
> 1. Even if I declare a *Public* Struct, all other classes in
> which I try to
> ???use this Struct give me an error about an
> unknown identifier. In what
> ???regard is the Struct 'global'?
>
You have declare also "Public" the variable of relative Structure type.
Example.
In FMAIN I have:
***********
Public class1 As New Class1 ' secondary Class
Public Struct structura ' my Structure
a As Byte
b As Integer
End Struct
' Now the variable of Structure type:
***Public*** variabilis As New Structura <-------
Public Sub Form_Open()
With variabilis
.a = 2
.b = 1000
End With
class1.prova()
End
''''''''''''''''''''''
In Class1 I have:
Public Sub prova()
With FMain.variabilis
Print .a
Print .b
End With
End
Well, in my console I see:
2
1000
''''''''''''''''''''''''''''''''''
Obviously, symbols of modules and Form controls have to be Public in the project.
From taboege at ...626... Sat Jan 26 10:01:32 2013
From: taboege at ...626... (Tobias Boege)
Date: Sat, 26 Jan 2013 10:01:32 +0100
Subject: [Gambas-user] R: Struct declaration scope and array of Struct
In-Reply-To: <1359164048.59778.YahooMailClassic@...3066...>
References: <20130125233559.GG844@...2774...>
<1359164048.59778.YahooMailClassic@...3066...>
Message-ID: <20130126090132.GA651@...2774...>
On Sat, 26 Jan 2013, Ru Vuott wrote:
>
> >
> > 1. Even if I declare a *Public* Struct, all other classes in
> > which I try to
> > ???use this Struct give me an error about an
> > unknown identifier. In what
> > ???regard is the Struct 'global'?
> >
>
> You have declare also "Public" the variable of relative Structure type.
>
> Example.
>
> ...
>
> Obviously, symbols of modules and Form controls have to be Public in the project.
>
There is no variable involved. I declared a structure:
--[Class1.class]--
Public Struct Structure1
A As Integer
End
------------------
as you can see, the identifier is public and now I want to use its
definition in Class2:
--[Class2.class]--
Private $s As Structure1
------------------
which gives me an "unknown identifier".
Regards,
Tobi
From gambas at ...2524... Sat Jan 26 11:17:08 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 26 Jan 2013 10:17:08 +0000
Subject: [Gambas-user] Issue 394 in gambas: JSON.Encode cannot encode an
Array, includes FIX
Message-ID: <0-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 394 by r... at ...1740...: JSON.Encode cannot encode an Array,
includes FIX
http://code.google.com/p/gambas/issues/detail?id=394
1) Describe the problem.
When JSON.Encode is called with an array as argument, it errors with 'Not
an Array in JSON:220'
Although it's a valid array.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r5516
Operating system: Linux
Distribution: Ubuntu 11.04
Architecture: x86_64
GUI component: QT4
Desktop used: Gnome
[System]
OperatingSystem=Linux
Kernel=2.6.38-16-generic
Architecture=x86_64
Distribution=Ubuntu 11.04
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=7739M
[Libraries]
GStreamer=libgstreamer-0.10.so.0.28.0
GTK+=libgtk-x11-2.0.so.0.2400.4
Poppler=libpoppler.so.13.0.0
Qt4=libQtCore.so.4.7.2
SDL=libSDL-1.2.so.0.11.3
3) Provide a little project that reproduces the bug or the crash.
5) Explain clearly how to reproduce the bug or the crash.
FIX:
Private Sub WriteValue(vVal As Variant)
...
Case Else
If vVal Is Array Then
aArray = vVal
$sStr &= "["
For iPos = 0 To vVal.Max
If iPos Then $sStr &= ", "
WriteValue(vVal[iPos]) <--------------------
Next
$sStr &= "]"
Was WriteValues(aArray[iPos])
Dim aArray
and aArray = vVal
can be removed from that function too.
Haven't tested it in all situations.
6) By doing that carefully, you have done 100% of the bug fix job!
From gambas at ...1... Sat Jan 26 11:38:04 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 26 Jan 2013 11:38:04 +0100
Subject: [Gambas-user] Help with DrawingArea and class design
In-Reply-To: <50FC36CF.6080006@...3067...>
References: <20130117091805.45F23260682@...3068...>
<20130117142419.GA535@...2774...> <50FBEE7B.6050000@...3067...>
<50FBEF7D.9090101@...1...>
<50FBFF8C.5020503@...3067...> <50FC0732.2040803@...3067...>
<50FC32AB.3000806@...1...>
<50FC36CF.6080006@...3067...>
Message-ID: <5103B20C.3060702@...1...>
Le 20/01/2013 19:26, Ulrich Hartmann a ?crit :
> ok, no problem, I'll wait for version 3.4
>
> Just one question, is there a way (in 3.4's Paint class) to access each
> pixel and get its color value, so that I can export the characters bytes
> as a text-file (.c/ .h) based on the changed image, when I'm done
> drawing my characters/ images?
>
> Uli
>
You can only access pixels of an Image object.
Regards,
--
Beno?t Minisini
From gambas at ...1... Sat Jan 26 11:55:24 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 26 Jan 2013 11:55:24 +0100
Subject: [Gambas-user] Expander on FPatch in the IDE
In-Reply-To: <20130125232156.GF844@...2774...>
References: <20130125232156.GF844@...2774...>
Message-ID: <5103B61C.2020309@...1...>
Le 26/01/2013 00:21, Tobias Boege a ?crit :
> Hi Benoit,
>
> when I click on the Expander in the FPatch form in the IDE, I just added,
> the IDE crashes with a Null object in FSidePanel. I think it's your turn :-)
>
> Regards,
> Tobi
>
My answer is on the developer mailing-list...
--
Beno?t Minisini
From gambas at ...2524... Sat Jan 26 11:57:27 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 26 Jan 2013 10:57:27 +0000
Subject: [Gambas-user] Issue 394 in gambas: JSON.Encode cannot encode an
Array, includes FIX
In-Reply-To: <0-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Comment #1 on issue 394 by r... at ...1740...: JSON.Encode cannot encode an
Array, includes FIX
http://code.google.com/p/gambas/issues/detail?id=394
Not sure if JSON.Encode supports encoding multiple arrays at once, and if
this fix breaks it or not..
From gambas at ...1... Sat Jan 26 12:05:54 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sat, 26 Jan 2013 12:05:54 +0100
Subject: [Gambas-user] Struct declaration scope and array of Struct
In-Reply-To: <20130125233559.GG844@...2774...>
References: <20130125233559.GG844@...2774...>
Message-ID: <5103B892.6070205@...1...>
Le 26/01/2013 00:35, Tobias Boege a ?crit :
> Hi,
>
> two separate questions about Structs in Gambas:
>
> 1. Even if I declare a *Public* Struct, all other classes in which I try to
> use this Struct give me an error about an unknown identifier. In what
> regard is the Struct 'global'?
>
First one: You must declare the same structure everywhere. Because all
classes are really completely independent during the compilation
process. The interpreter will check at runtime that the same structure
is always declared the same way in every class.
--
Beno?t Minisini
From gambas at ...2524... Sat Jan 26 12:10:32 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 26 Jan 2013 11:10:32 +0000
Subject: [Gambas-user] Issue 394 in gambas: JSON.Encode cannot encode an
Array, includes FIX
In-Reply-To: <1-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
<0-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Updates:
Status: Accepted
Labels: -Version Version-3.3.0
Comment #2 on issue 394 by benoit.m... at ...626...: JSON.Encode cannot encode
an Array, includes FIX
http://code.google.com/p/gambas/issues/detail?id=394
(No comment was entered for this change.)
From gambas at ...2524... Sat Jan 26 12:11:33 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sat, 26 Jan 2013 11:11:33 +0000
Subject: [Gambas-user] Issue 394 in gambas: JSON.Encode cannot encode an
Array, includes FIX
In-Reply-To: <2-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
References: <2-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
<0-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Message-ID: <3-6813199134517018827-9457188725894794454-gambas=googlecode.com@...2524...>
Updates:
Status: Fixed
Comment #3 on issue 394 by benoit.m... at ...626...: JSON.Encode cannot encode
an Array, includes FIX
http://code.google.com/p/gambas/issues/detail?id=394
The fix is right. Done in revision #5518.
From gambas at ...1... Sun Jan 27 09:32:31 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 27 Jan 2013 09:32:31 +0100
Subject: [Gambas-user] Struct declaration scope and array of Struct
In-Reply-To: <20130125233559.GG844@...2774...>
References: <20130125233559.GG844@...2774...>
Message-ID: <5104E61F.1060307@...1...>
Le 26/01/2013 00:35, Tobias Boege a ?crit :
> Hi,
>
> two separate questions about Structs in Gambas:
>
> 1. Even if I declare a *Public* Struct, all other classes in which I try to
> use this Struct give me an error about an unknown identifier. In what
> regard is the Struct 'global'?
>
> 2. The docs state that we could only create embedded arrays of structures
> but the usual Dim a As New MyStruct[] syntax works perfectly and gives a
> normal dynamic array with Add() method, etc.. Except one thing I noticed:
> the objects one added dynamically to the array must apparently be freed
> by oneself or the interpreter will warn about non-freed allocations.
> There is DestroyHunk() function in the Project/FPatch.class file in the
> IDE source code which is the product of this observation. Is this alright
> and should we trust the documentation to not try to create non-embedded
> arrays from structures?
>
> I hope these are not too obvious errors of mine...
>
> Regards,
> Tobi
>
Second point: the bug has been fixed in revision #5519.
Regards,
--
Beno?t Minisini
From joem at ...2671... Sun Jan 27 10:37:50 2013
From: joem at ...2671... (jm)
Date: Sun, 27 Jan 2013 09:37:50 +0000
Subject: [Gambas-user] Who use gb.report ? (to all gambas users)
In-Reply-To:
References:
<1359121499.26285.25.camel@...2672...>
Message-ID: <1359279470.30060.2.camel@...2672...>
On Fri, 2013-01-25 at 17:17 -0800, Randall Morgan wrote:
> I think the report module is a good thing. You can't always depend on
> having the open office suite installed on the machine.
You should be able to. Its not pay walled software.
Its free software.
And included in most distros.
> I haven't used reports except for a couple small projects quite a
> while ago. If it does not already contain plot abilities
Libre office has many charting functions, as well as spreadsheets,
presentations and drawing package.
> I would
> like to see some of the same features found in matlibplot (python) for
> generating nice plots and graphs. Or a seperate graphing
> module added.
>
>
>
>
>
> On Fri, Jan 25, 2013 at 5:44 AM, jm wrote:
> > On Thu, 2012-08-30 at 13:11 +0200, Fabien Bodard wrote:
> >> This is my query...
> >>
> >> If you use it tell me what you want to see as improvement... The problems
> >> with it.
> >>
> >> If you are not using it but need printing or generate reports. Tell me why
> >> you are not using it.
> >>
> >> Thank you
> >>
> >> Fabien Bodard
> >
> >
> > I always wondered what the point of a 'report generator' is when
> > you already have an open source office suit such as LibreOffice
> > out there.
> >
> > All you would need to do is auto-pilot LibreOffice from Gambas programs
> > and drive it with data generated from inside gambas. Then all the best
> > reports in best laid out fonts, spreadsheets, presentations, etc, can be
> > auto generated with all the hard work done LibreOffice!!
> >
> > Doubly better if the files that LibreOffice opens such as spread sheets
> > can be processed to read the data from the spread sheet back into
> > Gambas.
> >
> > Since source code is available for LibreOffice, I assume, its just a
> > matter of telling LibreOffice developers to make some APIs (if they
> > don't exist already) that oil this idea through to completion.
> >
> > The same idea would work with other software such as gimp to generate
> > images, inkscape to generate vector graphics, LibreCAD to generate
> > CAD files from Gambas, 3D files with openscad, custom copper shapes in
> > KiCAD, Cheese to take photos, something to talk to evolution and
> > calendar, etc..
> >
> > So in short, if you got source code, and you are not beholden on a
> > third party to take the next step, then why not work with the other open
> > source projects extend gambas to
> > directly control some of the more common packages with emphasis on
> > the transfer of data back and forth? Report generation is a small and
> > outdated idea that we forget it only applies to software that has been
> > walled. Everything that a report generator does is a duplication of
> > what a word processor already does. And its unlikely to beat it.
> >
> > If it were down to me, I'd get rid of anything that looks like
> > binary data, and make all transfer of data through
> > simple text files which can be more readily inspected and debugged.
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > MVPs and experts. ON SALE this month only -- learn more at:
> > http://p.sf.net/sfu/learnnow-d2d
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
From rmorgan62 at ...626... Sun Jan 27 11:02:53 2013
From: rmorgan62 at ...626... (Randall Morgan)
Date: Sun, 27 Jan 2013 02:02:53 -0800
Subject: [Gambas-user] Who use gb.report ? (to all gambas users)
In-Reply-To: <1359279470.30060.2.camel@...2672...>
References:
<1359121499.26285.25.camel@...2672...>
<1359279470.30060.2.camel@...2672...>
Message-ID:
I have a machine running Gambas and using Apache as a proxy. This
allowed me to develop web apps. This machine does not have open office
installed and being a web server it wont get it. Not because I would
have to pay for it, as you said it is free. But cost is not the only
factor. HD space, processing power, limited ram, etc.. could all be
factors for not installing an open office suite. Yet, it would be nice
to generate reports on the machine for things like traffic and pages
hits, file update times, etc...
For this reason I think using the report module in Gambas is a better
approach than scripting a solution in external tools.
For most of my reporting and charting I currently use python modules.
Python has great support for reporting and charting and creating most
reports and charts is pretty simple. I would love to see such
functionality added to Gambas.
On Sun, Jan 27, 2013 at 1:37 AM, jm wrote:
> On Fri, 2013-01-25 at 17:17 -0800, Randall Morgan wrote:
>> I think the report module is a good thing. You can't always depend on
>> having the open office suite installed on the machine.
>
> You should be able to. Its not pay walled software.
> Its free software.
> And included in most distros.
>
>> I haven't used reports except for a couple small projects quite a
>> while ago. If it does not already contain plot abilities
>
> Libre office has many charting functions, as well as spreadsheets,
> presentations and drawing package.
>
>> I would
>> like to see some of the same features found in matlibplot (python) for
>> generating nice plots and graphs. Or a seperate graphing
>> module added.
>>
>>
>>
>>
>>
>> On Fri, Jan 25, 2013 at 5:44 AM, jm wrote:
>> > On Thu, 2012-08-30 at 13:11 +0200, Fabien Bodard wrote:
>> >> This is my query...
>> >>
>> >> If you use it tell me what you want to see as improvement... The problems
>> >> with it.
>> >>
>> >> If you are not using it but need printing or generate reports. Tell me why
>> >> you are not using it.
>> >>
>> >> Thank you
>> >>
>> >> Fabien Bodard
>> >
>> >
>> > I always wondered what the point of a 'report generator' is when
>> > you already have an open source office suit such as LibreOffice
>> > out there.
>> >
>> > All you would need to do is auto-pilot LibreOffice from Gambas programs
>> > and drive it with data generated from inside gambas. Then all the best
>> > reports in best laid out fonts, spreadsheets, presentations, etc, can be
>> > auto generated with all the hard work done LibreOffice!!
>> >
>> > Doubly better if the files that LibreOffice opens such as spread sheets
>> > can be processed to read the data from the spread sheet back into
>> > Gambas.
>> >
>> > Since source code is available for LibreOffice, I assume, its just a
>> > matter of telling LibreOffice developers to make some APIs (if they
>> > don't exist already) that oil this idea through to completion.
>> >
>> > The same idea would work with other software such as gimp to generate
>> > images, inkscape to generate vector graphics, LibreCAD to generate
>> > CAD files from Gambas, 3D files with openscad, custom copper shapes in
>> > KiCAD, Cheese to take photos, something to talk to evolution and
>> > calendar, etc..
>> >
>> > So in short, if you got source code, and you are not beholden on a
>> > third party to take the next step, then why not work with the other open
>> > source projects extend gambas to
>> > directly control some of the more common packages with emphasis on
>> > the transfer of data back and forth? Report generation is a small and
>> > outdated idea that we forget it only applies to software that has been
>> > walled. Everything that a report generator does is a duplication of
>> > what a word processor already does. And its unlikely to beat it.
>> >
>> > If it were down to me, I'd get rid of anything that looks like
>> > binary data, and make all transfer of data through
>> > simple text files which can be more readily inspected and debugged.
>> >
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> > MVPs and experts. ON SALE this month only -- learn more at:
>> > http://p.sf.net/sfu/learnnow-d2d
>> > _______________________________________________
>> > Gambas-user mailing list
>> > Gambas-user at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>>
>
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
If you ask me if it can be done. The answer is YES, it can always be
done. The correct questions however are... What will it cost, and how
long will it take?
From taboege at ...626... Sun Jan 27 14:23:52 2013
From: taboege at ...626... (Tobias Boege)
Date: Sun, 27 Jan 2013 14:23:52 +0100
Subject: [Gambas-user] FilterView.Filter (at least) problem
Message-ID: <20130127132352.GA670@...2774...>
Hi,
the FileView.Filter property does not always work like described in the
documentation, here. The problem comes up when multiple file types are
to be displayed. The attached project creates three kinds of archives under
/tmp and offers two filters.
The first one mimics how it is done in the documentation, e.g. [0], and
yields nothing - which is wrong.
The second syntax is inspired by the shell and makes the FileView display
the files correctly.
Is this system specific or an error in the docs, or...? This may affect
other Filter properties, too. I didn't test.
Regards,
Tobi
[0] http://gambasdoc.org/help/comp/gb.form/fileview/filter?v3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fileview_filter-0.0.1.tar.gz
Type: application/octet-stream
Size: 4938 bytes
Desc: not available
URL:
From gambas at ...1... Sun Jan 27 15:04:13 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 27 Jan 2013 15:04:13 +0100
Subject: [Gambas-user] FilterView.Filter (at least) problem
In-Reply-To: <20130127132352.GA670@...2774...>
References: <20130127132352.GA670@...2774...>
Message-ID: <510533DD.20608@...1...>
Le 27/01/2013 14:23, Tobias Boege a ?crit :
> Hi,
>
> the FileView.Filter property does not always work like described in the
> documentation, here. The problem comes up when multiple file types are
> to be displayed. The attached project creates three kinds of archives under
> /tmp and offers two filters.
>
> The first one mimics how it is done in the documentation, e.g. [0], and
> yields nothing - which is wrong.
>
> The second syntax is inspired by the shell and makes the FileView display
> the files correctly.
>
> Is this system specific or an error in the docs, or...? This may affect
> other Filter properties, too. I didn't test.
>
> Regards,
> Tobi
>
> [0] http://gambasdoc.org/help/comp/gb.form/fileview/filter?v3
>
The documentation is false. It assumes that the FileView.Filter property
works like the Dialog.Filter property, but no!
The FileView.Filter property just takes an array of "LIKE" patterns:
FileView1.Filter = ["*.tar.gz", "*.tar.xz", "*.tar.bz2"]
Regards,
--
Beno?t Minisini
From gambas at ...2524... Sun Jan 27 21:19:36 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 20:19:36 +0000
Subject: [Gambas-user] Issue 395 in gambas: Wait instruction conflicts with
Process Wait
Message-ID: <0-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version-3.3.4 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 395 by cplopez at ...626...: Wait instruction conflicts with Process
Wait
http://code.google.com/p/gambas/issues/detail?id=395
1) When using Wait to allow the program to process events, they may be
processed out of time when waiting the result of a process called with
Shell.
2)
[System]
OperatingSystem=Linux
Kernel=2.6.35-32-generic
Architecture=i686
Memory=2051224 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 10.10"
Desktop=Gnome
[Gambas 2]
Version=2.21.0
Path=/usr/bin/gbx2
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.7.0
GTK+=libgtk-x11-2.0.so.0.2200.0
3)
Create a Form with a TextBox named TextBox1, and put the following code on
the form:
--------------------------
Public Sub Form_KeyPress()
Me.Text = "1"
Wait 0.5
Shell "sleep 2" Wait
Me.Text = "2"
End
Public Sub TextBox1_KeyPress()
Debug Key.Normal
End
--------------------------
5) Explain clearly how to reproduce the bug or the crash.
Run the project and press a key; hold it for a little more than just a key
press. After the process (sleep in this case) ends, the KeyPress event will
raise from TextBox1, but, since no key is being pressed, the error "No
keyboard event data" will be raised.
I was trying a code like this to start a process with a key press, show a
wait message, and then hide the message after the process end. Some other
controls grab also KeyPress, and the event is received by them after the
process.
From ualex73 at ...626... Sun Jan 27 21:24:50 2013
From: ualex73 at ...626... (Alexie)
Date: Sun, 27 Jan 2013 21:24:50 +0100
Subject: [Gambas-user] When is Gambas 3.3.5 or 3.4.x released?
Message-ID:
@Benoit:
When is the next "official" version of gambas been release, because there
were a lot of fixes in SVN :-)
Regards,
Alex
From gambas at ...2524... Sun Jan 27 21:30:42 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 20:30:42 +0000
Subject: [Gambas-user] Issue 396 in gambas: Gambas crashes when having a
module named f
Message-ID: <0-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version-3.3.4 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 396 by cplopez at ...626...: Gambas crashes when having a module
named f
http://code.google.com/p/gambas/issues/detail?id=396
1) Describe the problem.
When there is a module whose name is f, the code-completion feature of
gambas crashes the program when looking for keywords started with f.
Displaying the list of functions inside the module has the same effect.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=2.6.35-32-generic
Architecture=i686
Memory=2051224 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 10.10"
Desktop=Gnome
[Gambas 2]
Version=2.21.0
Path=/usr/bin/gbx2
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.7.0
GTK+=libgtk-x11-2.0.so.0.2200.0
3) Provide a little project that reproduces the bug or the crash.
*Start a new project
*Add a module. Name it "f"
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
*Anywhere on the code (even outside the code of the module), try to type:
dim a as float
**The same behavior will be reproduced if simply displaying the list of
procedures inside the f module (F6, or by mouse click).
In either case, Gambas will crash and say:
--------------
This application has raised an unexpected error and must abort.
[13] Null object.
FEditor.FillProcCombo.2809
--------------
Hiding the completion list (with Esc, for example) before typing the f,
fixes the problem, but no function, variable or method from f will be
displayed.
From gambas at ...2524... Sun Jan 27 21:32:22 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 20:32:22 +0000
Subject: [Gambas-user] Issue 397 in gambas: Gambas crashes when having a
module named f
Message-ID: <0-6813199134517018827-14259543206652194102-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version Type-Crash Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 397 by cplopez at ...626...: Gambas crashes when having a module
named f
http://code.google.com/p/gambas/issues/detail?id=397
1) Describe the problem.
When there is a module whose name is f, the code-completion feature of
gambas crashes the program when looking for keywords started with f.
Displaying the list of functions inside the module has the same effect.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
[System]
OperatingSystem=Linux
Kernel=2.6.35-32-generic
Architecture=i686
Memory=2051224 kB
DistributionVendor=Ubuntu
DistributionRelease="Ubuntu 10.10"
Desktop=Gnome
[Gambas 2]
Version=2.21.0
Path=/usr/bin/gbx2
[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3
[Libraries]
Qt4=libQtCore.so.4.7.0
GTK+=libgtk-x11-2.0.so.0.2200.0
3) Provide a little project that reproduces the bug or the crash.
*Start a new project
*Add a module. Name it "f"
4) If your project needs a database, try to provide it, or part of it.
5) Explain clearly how to reproduce the bug or the crash.
*Anywhere on the code (even outside the code of the module), try to type:
dim a as float
**The same behavior will be reproduced if simply displaying the list of
procedures inside the f module (F6, or by mouse click).
In either case, Gambas will crash and say:
--------------
This application has raised an unexpected error and must abort.
[13] Null object.
FEditor.FillProcCombo.2809
--------------
Hiding the completion list (with Esc, for example) before typing the f,
fixes the problem, but no function, variable or method from f will be
displayed.
From gambas at ...1... Sun Jan 27 21:35:17 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Sun, 27 Jan 2013 21:35:17 +0100
Subject: [Gambas-user] When is Gambas 3.3.5 or 3.4.x released?
In-Reply-To:
References:
Message-ID: <51058F85.5020707@...1...>
Le 27/01/2013 21:24, Alexie a ?crit :
> @Benoit:
>
> When is the next "official" version of gambas been release, because there
> were a lot of fixes in SVN :-)
>
> Regards,
> Alex
I will try to release it that week.
I'm currently very busy three weeks by month until June. The coming week
is the quiet one.
Regards,
--
Beno?t Minisini
From gambas at ...2524... Sun Jan 27 21:37:03 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 20:37:03 +0000
Subject: [Gambas-user] Issue 396 in gambas: Gambas crashes when having a
module named f
In-Reply-To: <0-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
Comment #1 on issue 396 by cplo... at ...626...: Gambas crashes when having a
module named f
http://code.google.com/p/gambas/issues/detail?id=396
Please erase this bug, I returned the page to change "Bug" to "Crash", and
a new one was created.
From gambas at ...2524... Sun Jan 27 21:54:09 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 20:54:09 +0000
Subject: [Gambas-user] Issue 397 in gambas: Gambas crashes when having a
module named f
In-Reply-To: <0-6813199134517018827-14259543206652194102-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-14259543206652194102-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-14259543206652194102-gambas=googlecode.com@...2524...>
Updates:
Status: Invalid
Comment #1 on issue 397 by benoit.m... at ...626...: Gambas crashes when
having a module named f
http://code.google.com/p/gambas/issues/detail?id=397
(No comment was entered for this change.)
From gambas at ...2524... Sun Jan 27 21:56:30 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 20:56:30 +0000
Subject: [Gambas-user] Issue 396 in gambas: Gambas crashes when having a
module named f
In-Reply-To: <1-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
<0-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-11042258011398565946-gambas=googlecode.com@...2524...>
Updates:
Status: NeedsInfo
Labels: -Version-3.3.4 Version-3.3.0
Comment #2 on issue 396 by benoit.m... at ...626...: Gambas crashes when
having a module named f
http://code.google.com/p/gambas/issues/detail?id=396
Do you have a little project that shows the bug? I can't reproduce it with
the development version, maybe the bug has already been fixed...
From gambas at ...2524... Sun Jan 27 22:00:13 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Sun, 27 Jan 2013 21:00:13 +0000
Subject: [Gambas-user] Issue 395 in gambas: Wait instruction conflicts
with Process Wait
In-Reply-To: <0-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-1576611235866677122-gambas=googlecode.com@...2524...>
Updates:
Labels: -Version-3.3.4 Version-3.3.0
Comment #1 on issue 395 by benoit.m... at ...626...: Wait instruction
conflicts with Process Wait
http://code.google.com/p/gambas/issues/detail?id=395
It's not a good idea to call the event loop while processing an event
handler...
From ualex73 at ...626... Mon Jan 28 08:32:58 2013
From: ualex73 at ...626... (Alexie)
Date: Mon, 28 Jan 2013 08:32:58 +0100
Subject: [Gambas-user] When is Gambas 3.3.5 or 3.4.x released?
In-Reply-To: <51058F85.5020707@...1...>
References:
<51058F85.5020707@...1...>
Message-ID:
Thanks Benoit for the quick response and i will wait on that release.
2013/1/27 Beno?t Minisini
> Le 27/01/2013 21:24, Alexie a ?crit :
> > @Benoit:
> >
> > When is the next "official" version of gambas been release, because there
> > were a lot of fixes in SVN :-)
> >
> > Regards,
> > Alex
>
> I will try to release it that week.
>
> I'm currently very busy three weeks by month until June. The coming week
> is the quiet one.
>
> Regards,
>
> --
> Beno?t Minisini
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From ivanwms64 at ...43... Mon Jan 28 16:45:46 2013
From: ivanwms64 at ...43... (Ivan Williams)
Date: Mon, 28 Jan 2013 07:45:46 -0800 (PST)
Subject: [Gambas-user] reset gambas / touchpad sensitivity
Message-ID: <1359387946.43530.YahooMailNeo@...3072...>
Greetings
I have two issues - the first caused by the second.? I have a old touchscreen laptop which I have installed ubuntu 12.10 on.? I installed gambas2 but when I navigate the screen in gambas it appears that all the text i scroll over is being selected whether I use the keyboard or the touch pad.? That is problem number one.? Problem number two occurred when I attempted to correct problem one - specifically I have totally wiped out everything on my screen except for the menu bar on top of the screen.? The touch pad issue only appears in gambas.? All other programs behave properly.? Can someone tell how to resolve either issue?
I would greatly appreciate it.
?
?
Ivan ?? \~/
?
I never saw a wild thing sorry for itself.
A small bird will drop frozen dead from a bough
Without ever having felt sorry for itself.
-- D.H. Lawrence
http://www.usconstitution.net/const.html
Linux - Live Free or Die.
From bill-lancaster at ...2231... Mon Jan 28 16:59:52 2013
From: bill-lancaster at ...2231... (bill-lancaster)
Date: Mon, 28 Jan 2013 07:59:52 -0800 (PST)
Subject: [Gambas-user] EXEC output advice needed
Message-ID: <1359388792509-40855.post@...3046...>
I've tried to make a Gambas front end for a mysql restore.
Instead of running code in a terminal I want to use the EXEC function in
Gambas.
This code works in terminal:-
mysql -u root -pmypassword archive <
/home/bill/GambasFolder/mysql/BackUpOfarchive.sql
But when this code is run from Gambas:-
Exec ["mysql", "-u", "root", "-pmypassword", txbDbName.Text, "<",
FileChooser1.Value]
nothing happens, the result shown in the Gambas terminal indicates that the
EXEC function failed.
Is there a way to see exactly what instructions were passed to mysql through
the EXEC call?
--
View this message in context: http://gambas.8142.n7.nabble.com/EXEC-output-advice-needed-tp40855.html
Sent from the gambas-user mailing list archive at Nabble.com.
From ivanwms64 at ...43... Mon Jan 28 17:20:07 2013
From: ivanwms64 at ...43... (Ivan Williams)
Date: Mon, 28 Jan 2013 08:20:07 -0800 (PST)
Subject: [Gambas-user] EXEC output advice needed
In-Reply-To: <1359388792509-40855.post@...3046...>
References: <1359388792509-40855.post@...3046...>
Message-ID: <1359390007.39829.YahooMailNeo@...3074...>
Bill
have you tried SHELL/
?'SHELL "mysql -u root -pmypassword archive < /home/bill/GambasFolder/mysql/BackUpOfarchive.sql" &
'" -O " & WAIT
?
Ivan ?? \~/
?
I never saw a wild thing sorry for itself.
A small bird will drop frozen dead from a bough
Without ever having felt sorry for itself.
-- D.H. Lawrence
http://www.usconstitution.net/const.html
Linux - Live Free or Die.
________________________________
From: bill-lancaster
To: gambas-user at lists.sourceforge.net
Sent: Monday, January 28, 2013 10:59 AM
Subject: [Gambas-user] EXEC output advice needed
I've tried to make a Gambas front end for a mysql restore.
Instead of running code in a terminal I want to use the EXEC function in
Gambas.
This code works in terminal:-
mysql -u root -pmypassword archive <
/home/bill/GambasFolder/mysql/BackUpOfarchive.sql
But when this code is run from Gambas:-
Exec ["mysql", "-u", "root", "-pmypassword", txbDbName.Text, "<",
FileChooser1.Value]
nothing happens, the result shown in the Gambas terminal indicates that the
EXEC function failed.
Is there a way to see exactly what instructions were passed to mysql through
the EXEC call?
--
View this message in context: http://gambas.8142.n7.nabble.com/EXEC-output-advice-needed-tp40855.html
Sent from the gambas-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
From sebikul at ...626... Mon Jan 28 17:28:35 2013
From: sebikul at ...626... (Sebastian Kulesz)
Date: Mon, 28 Jan 2013 14:28:35 -0200
Subject: [Gambas-user] EXEC output advice needed
In-Reply-To: <1359390007.39829.YahooMailNeo@...3074...>
References: <1359388792509-40855.post@...3046...>
<1359390007.39829.YahooMailNeo@...3074...>
Message-ID:
Redirection is a shell feature, so a system call via exec won't support it.
On 1/28/13, Ivan Williams wrote:
> Bill
>
> have you tried SHELL/
>
>
> ?'SHELL "mysql -u root -pmypassword archive <
> /home/bill/GambasFolder/mysql/BackUpOfarchive.sql" &
> '" -O " & WAIT
>
>
>
> Ivan ?? \~/
>
>
> I never saw a wild thing sorry for itself.
> A small bird will drop frozen dead from a bough
> Without ever having felt sorry for itself.
> -- D.H. Lawrence
>
>
> http://www.usconstitution.net/const.html
>
> Linux - Live Free or Die.
>
>
>
> ________________________________
> From: bill-lancaster
> To: gambas-user at lists.sourceforge.net
> Sent: Monday, January 28, 2013 10:59 AM
> Subject: [Gambas-user] EXEC output advice needed
>
> I've tried to make a Gambas front end for a mysql restore.
> Instead of running code in a terminal I want to use the EXEC function in
> Gambas.
> This code works in terminal:-
>
> mysql -u root -pmypassword archive <
> /home/bill/GambasFolder/mysql/BackUpOfarchive.sql
>
> But when this code is run from Gambas:-
>
> Exec ["mysql", "-u", "root", "-pmypassword", txbDbName.Text, "<",
> FileChooser1.Value]
>
> nothing happens, the result shown in the Gambas terminal indicates that the
> EXEC function failed.
>
> Is there a way to see exactly what instructions were passed to mysql
> through
> the EXEC call?
>
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/EXEC-output-advice-needed-tp40855.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
*Sebi Kulesz*
From joem at ...2671... Mon Jan 28 17:40:56 2013
From: joem at ...2671... (jm)
Date: Mon, 28 Jan 2013 16:40:56 +0000
Subject: [Gambas-user] Who use gb.report ? (to all gambas users)
In-Reply-To:
References:
<1359121499.26285.25.camel@...2672...>
<1359279470.30060.2.camel@...2672...>
Message-ID: <1359391256.32749.15.camel@...2672...>
On Sun, 2013-01-27 at 02:02 -0800, Randall Morgan wrote:
> I have a machine running Gambas and using Apache as a proxy. This
> allowed me to develop web apps. This machine does not have open office
> installed and being a web server it wont get it. Not because I would
> have to pay for it, as you said it is free. But cost is not the only
> factor. HD space, processing power, limited ram, etc.. could all be
> factors for not installing an open office suite. Yet, it would be nice
> to generate reports on the machine for things like traffic and pages
> hits, file update times, etc...
>
> For this reason I think using the report module in Gambas is a better
> approach than scripting a solution in external tools.
>
> For most of my reporting and charting I currently use python modules.
> Python has great support for reporting and charting and creating most
> reports and charts is pretty simple. I would love to see such
> functionality added to Gambas.
Actually, I'm all for multi-solutions.
A built in report generator, python hooks and Libre Office hooks.
The reason I mention Libreoffice gambas link is that it would
turn gambas into industrial strength product overnight (not that it
isn't already in many a way!)
Imagine for example a gambas program producing a report using
Libreoffice that is a presentation with charts and facts extracted
for the day from a database, and then using something like espeak to
generate the sound file to talk through the presentation.
Such a thing could be mailed to all those interested.
Very little work for gambas developer if LibreOffice could be auto
piloted to do all the work.
> On Sun, Jan 27, 2013 at 1:37 AM, jm wrote:
> > On Fri, 2013-01-25 at 17:17 -0800, Randall Morgan wrote:
> >> I think the report module is a good thing. You can't always depend on
> >> having the open office suite installed on the machine.
> >
> > You should be able to. Its not pay walled software.
> > Its free software.
> > And included in most distros.
> >
> >> I haven't used reports except for a couple small projects quite a
> >> while ago. If it does not already contain plot abilities
> >
> > Libre office has many charting functions, as well as spreadsheets,
> > presentations and drawing package.
> >
> >> I would
> >> like to see some of the same features found in matlibplot (python) for
> >> generating nice plots and graphs. Or a seperate graphing
> >> module added.
> >>
> >>
> >>
> >>
> >>
> >> On Fri, Jan 25, 2013 at 5:44 AM, jm wrote:
> >> > On Thu, 2012-08-30 at 13:11 +0200, Fabien Bodard wrote:
> >> >> This is my query...
> >> >>
> >> >> If you use it tell me what you want to see as improvement... The problems
> >> >> with it.
> >> >>
> >> >> If you are not using it but need printing or generate reports. Tell me why
> >> >> you are not using it.
> >> >>
> >> >> Thank you
> >> >>
> >> >> Fabien Bodard
> >> >
> >> >
> >> > I always wondered what the point of a 'report generator' is when
> >> > you already have an open source office suit such as LibreOffice
> >> > out there.
> >> >
> >> > All you would need to do is auto-pilot LibreOffice from Gambas programs
> >> > and drive it with data generated from inside gambas. Then all the best
> >> > reports in best laid out fonts, spreadsheets, presentations, etc, can be
> >> > auto generated with all the hard work done LibreOffice!!
> >> >
> >> > Doubly better if the files that LibreOffice opens such as spread sheets
> >> > can be processed to read the data from the spread sheet back into
> >> > Gambas.
> >> >
> >> > Since source code is available for LibreOffice, I assume, its just a
> >> > matter of telling LibreOffice developers to make some APIs (if they
> >> > don't exist already) that oil this idea through to completion.
> >> >
> >> > The same idea would work with other software such as gimp to generate
> >> > images, inkscape to generate vector graphics, LibreCAD to generate
> >> > CAD files from Gambas, 3D files with openscad, custom copper shapes in
> >> > KiCAD, Cheese to take photos, something to talk to evolution and
> >> > calendar, etc..
> >> >
> >> > So in short, if you got source code, and you are not beholden on a
> >> > third party to take the next step, then why not work with the other open
> >> > source projects extend gambas to
> >> > directly control some of the more common packages with emphasis on
> >> > the transfer of data back and forth? Report generation is a small and
> >> > outdated idea that we forget it only applies to software that has been
> >> > walled. Everything that a report generator does is a duplication of
> >> > what a word processor already does. And its unlikely to beat it.
> >> >
> >> > If it were down to me, I'd get rid of anything that looks like
> >> > binary data, and make all transfer of data through
> >> > simple text files which can be more readily inspected and debugged.
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ------------------------------------------------------------------------------
> >> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> >> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> >> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> >> > MVPs and experts. ON SALE this month only -- learn more at:
> >> > http://p.sf.net/sfu/learnnow-d2d
> >> > _______________________________________________
> >> > Gambas-user mailing list
> >> > Gambas-user at lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >>
> >>
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > MVPs and experts. ON SALE this month only -- learn more at:
> > http://p.sf.net/sfu/learnnow-d2d
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
From gambas at ...2524... Tue Jan 29 04:04:41 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 29 Jan 2013 03:04:41 +0000
Subject: [Gambas-user] Issue 398 in gambas: configure can't find LLVM
Message-ID: <0-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
Status: New
Owner: ----
Labels: Version-3.3.0 Type-Bug Priority-Medium OpSys-Linux Dist-OpenSUSE
Arch-Any Desktop-Gnome GUI-Any
New issue 398 by duchyde... at ...626...: configure can't find LLVM
http://code.google.com/p/gambas/issues/detail?id=398
Configure
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: 3.3.4
Revision: N/A
Operating system: Linux
Distribution: OpenSUSE 11.4
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome
5) Opened gambas3-3.3.4.tar.gz into a user directory on OpenSUSE 11.4, but
it won't configure gb.jit, though the libs are installed. Most recent
version of LLVM from software repo is 3.0, so D/L and installed most recent
source version of LLVM (llvm-3.2.src.tar.gz) but configure looks for
libLLVM-3.2svn.so which looks incorrect to me because of the 'svn' part.
IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!
From john.aaron.rose at ...626... Tue Jan 29 17:02:29 2013
From: john.aaron.rose at ...626... (John Rose)
Date: Tue, 29 Jan 2013 16:02:29 +0000
Subject: [Gambas-user] Shell command including string containing a quote
In-Reply-To: <20130124210819.GB652@...2774...>
References: <51017696.4000205@...626...> <20130124210819.GB652@...2774...>
Message-ID: <5107F295.5030703@...626...>
Tobias,
Thanks for that useful reply.
I have a quick question (it doesn't seem worth asking on the Mailing List):
Using Dialog.OpenFile(), the resulting Dialog.Path shows the full path
to the file (e.g. /home/john/x.txt). Given that the runtime user might
change to a different directory (from that specified in Dialog.Path -
/home/john/ - as a prior command to Dialog.OpenFile()) how can I obtain
the new directory (e.g. /home/john/abc/) easily? I thought of using a
string function to select characters before the final slash character
but then the filename might contain a slash....
Regards,
John
On 24/01/13 21:08, Tobias Boege wrote:
> On Thu, 24 Jan 2013, John Rose wrote:
>> I have written a GUI to execute a command which involves selecting
>> filenames (e.g. sCombinedPath below) to be used in a Shell command
>> (as part of a Process). It works OK generally. However, if any
>> filename includes a quote, it goes wrong.
>>
>> sCommand = "mplex -f 8 -o " & "'" & sCombinedPath & "' " &
>> "'" & sVideoPath & "' " &
>> "'" & sAudioPath & "' " &
>> ">/dev/null 2>'" & sLogFilename & "'"
>> Print sCommand
>> hProcess = Shell sCommand
>>
>> I read about using the Shell$ command to create a quoted string but
>> I couldn't make that work. I've also tried a Replace$ command to
>> replace a quote by a backslash followed by a quote. I couldn't get
>> that to work.
> Use it like
>
> sCommand = "mplex ... " & Shell$(sCombinedPath) & etc.
>
> This will result in
>
> mplex ... /path/with/\"quotes\"
>
> which is totally valid. But then you must not enclose the path within ''
> single quotes.
>
> Regards,
> Tobi
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
From taboege at ...626... Tue Jan 29 17:28:13 2013
From: taboege at ...626... (Tobias Boege)
Date: Tue, 29 Jan 2013 17:28:13 +0100
Subject: [Gambas-user] Shell command including string containing a quote
In-Reply-To: <5107F295.5030703@...626...>
References: <51017696.4000205@...626...> <20130124210819.GB652@...2774...>
<5107F295.5030703@...626...>
Message-ID: <20130129162813.GB991@...2774...>
On Tue, 29 Jan 2013, John Rose wrote:
> Tobias,
>
> Thanks for that useful reply.
>
> I have a quick question (it doesn't seem worth asking on the Mailing List):
> Using Dialog.OpenFile(), the resulting Dialog.Path shows the full path
> to the file (e.g. /home/john/x.txt). Given that the runtime user might
> change to a different directory (from that specified in Dialog.Path -
> /home/john/ - as a prior command to Dialog.OpenFile()) how can I obtain
> the new directory (e.g. /home/john/abc/) easily? I thought of using a
> string function to select characters before the final slash character
> but then the filename might contain a slash....
Mmm. I hope I understood you correctly: you want to get the directory part
of a path? The File class has some useful static functions for path
manipulation.
The right one for this case could probably be File.Dir(). Try out if it fits
your needs. Especially your last sentence makes me wonder...
Regards,
Tobi
From gambas at ...2524... Tue Jan 29 19:16:28 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 29 Jan 2013 18:16:28 +0000
Subject: [Gambas-user] Issue 398 in gambas: configure can't find LLVM
In-Reply-To: <0-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
References: <0-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
Message-ID: <1-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
Comment #1 on issue 398 by duchyde... at ...626...: configure can't find LLVM
http://code.google.com/p/gambas/issues/detail?id=398
config.log attached.
Attachments:
config.log 13.6 KB
From gambas at ...2524... Tue Jan 29 19:19:13 2013
From: gambas at ...2524... (gambas at ...2524...)
Date: Tue, 29 Jan 2013 18:19:13 +0000
Subject: [Gambas-user] Issue 398 in gambas: configure can't find LLVM
In-Reply-To: <1-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
References: <1-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
<0-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
Message-ID: <2-6813199134517018827-7191332786888667920-gambas=googlecode.com@...2524...>
Comment #2 on issue 398 by emil.len... at ...626...: configure can't find LLVM
http://code.google.com/p/gambas/issues/detail?id=398
Does openSUSE install the LLVM libraries as .a static object libraries, or
as shared object libraries (.so)?
From vuott at ...325... Tue Jan 29 21:25:25 2013
From: vuott at ...325... (Ru Vuott)
Date: Tue, 29 Jan 2013 20:25:25 +0000 (GMT)
Subject: [Gambas-user] Form, as Control,
in a Balloon function produces another same Form !
Message-ID: <1359491125.82962.YahooMailClassic@...3070...>
Hello,
well, I have this simple code:
*********************************
Public Sub TextEdit1_Enter()
Balloon.Info("Textum", Form)
End
*********************************
When I launch the project, if mouse cursor stays in the same screen area where TextEdit'll appear on Form, a new Form'll (without objects on it) be created ! :-O
Equally, a new Form 'll be appear, if cursor mouse enters twice in TextEdit.
The new Form has the same name of the main Form.
If the control in Ballon function is "Fmain" or "Me", that strange phenomenon doesn't appen.
...Why this phenomenon appens ?
Regards
vuott
From taboege at ...626... Tue Jan 29 22:26:44 2013
From: taboege at ...626... (Tobias Boege)
Date: Tue, 29 Jan 2013 22:26:44 +0100
Subject: [Gambas-user] gb.pcre crash
Message-ID: <20130129212644.GD603@...2774...>
Hi,
is gb.pcre still maintained? However, there is a simple crash when trying
Regexp.Compile("") ' Notice how an empty string produces a segfault
For convenience, a test project is attached.
Regards,
Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcre_crash-0.0.1.tar.gz
Type: application/octet-stream
Size: 4734 bytes
Desc: not available
URL:
From sourceforge-raindog2 at ...94... Tue Jan 29 22:49:18 2013
From: sourceforge-raindog2 at ...94... (Rob Kudla)
Date: Tue, 29 Jan 2013 16:49:18 -0500
Subject: [Gambas-user] gb.pcre crash
In-Reply-To: <20130129212644.GD603@...2774...>
References: <20130129212644.GD603@...2774...>
Message-ID: <510843DE.9070109@...94...>
On 01/29/2013 04:26 PM, Tobias Boege wrote:
> is gb.pcre still maintained?
If so, not by me. I haven't even have Gambas installed since about 2.11.
Still enjoy it, I just very rarely have desktop-only projects anymore.
Sounds like a pretty basic fix and a dumb move on my part originally, but I
wouldn't even know how to get back into Gambas component development.
Rob
From vuott at ...325... Wed Jan 30 00:22:25 2013
From: vuott at ...325... (Ru Vuott)
Date: Tue, 29 Jan 2013 23:22:25 +0000 (GMT)
Subject: [Gambas-user] R: Form, as Control, in a Balloon function... BIS
In-Reply-To: <1359491125.82962.YahooMailClassic@...3070...>
Message-ID: <1359501745.6356.YahooMailClassic@...3054...>
I'ld like to add that if I write this code:
**************
Public Sub TextEdit1_Enter()
dim bt As Button
With bt = New Button(Form)
.X = 20
.Y = 20
.W = 100
.H = 50
End With
Balloon.Info("Textum", Form)
End
**************
well, on "new" Form I can see that Button !
Regards
vuott
--- Mar 29/1/13, Ru Vuott ha scritto:
> Da: Ru Vuott
> Oggetto: [Gambas-user] Form, as Control, in a Balloon function produces another same Form !
> A: gambas at ...1...
> Cc: gambas-user at lists.sourceforge.net
> Data: Marted? 29 gennaio 2013, 21:25
> Hello,
>
> well, I have this simple code:
>
> *********************************
> Public Sub TextEdit1_Enter()
>
> ? Balloon.Info("Textum", Form)
>
> End
> *********************************
>
> When I launch the project, if mouse cursor stays in the same
> screen area where TextEdit'll appear on Form, a new Form'll
> (without objects on it) be created !? :-O
> Equally, a new Form 'll be appear, if cursor mouse enters
> twice in TextEdit.
>
> The new Form has the same name of the main Form.
>
> If the control in Ballon function is "Fmain" or "Me", that
> strange phenomenon doesn't appen.
>
>
> ...Why this phenomenon appens ?
>
> Regards
> vuott
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012,
> HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your
> skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by
> Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From john.aaron.rose at ...626... Wed Jan 30 11:07:22 2013
From: john.aaron.rose at ...626... (John Rose)
Date: Wed, 30 Jan 2013 10:07:22 +0000
Subject: [Gambas-user] SaveFile problems
Message-ID: <5108F0DA.7000201@...626...>
When I click the Combined button on the attached project (CombineAV
which is fairly small), the SaveFile (from the GB.Form.Dialog component)
does not point to the specified Dialog.Path (/home/john/Temporary) but
points to the directory above it (/home/john) with the filename set to
Temporary (see procedure ButtonCombined_Click). You'll need to
have/setup a directory (e.g. Temporary) containing a .m2v and a .mp2
file. These files don't have to be proper video or audio files as the
problem I have occurs before they are used by the mplex program - part
of the mpegtools package - which does not need to be installed.
When I run this project (under Ubuntu 32 bit Precise) using Debug (e.g.
up to the above point) and then switch to another app (e.g. Firefox)
using the Unity Launcher, then I have no means to switch back to the
project's window (i.e. the CombineAV window). The Unit Launcher does not
have it as a separate 'instance' on the Unity Launcher. This could be a
fault with Ubuntu or the Unity Launcher. What's the view?
--
Regards,
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CombineAV.tar.gz
Type: application/x-gzip
Size: 15108 bytes
Desc: not available
URL:
From taboege at ...626... Wed Jan 30 14:50:24 2013
From: taboege at ...626... (Tobias Boege)
Date: Wed, 30 Jan 2013 14:50:24 +0100
Subject: [Gambas-user] gb.pcre crash
In-Reply-To: <510843DE.9070109@...94...>
References: <20130129212644.GD603@...2774...>
<510843DE.9070109@...94...>
Message-ID: <20130130135024.GB721@...2774...>
On Tue, 29 Jan 2013, Rob Kudla wrote:
> On 01/29/2013 04:26 PM, Tobias Boege wrote:
> > is gb.pcre still maintained?
>
> If so, not by me. I haven't even have Gambas installed since about 2.11.
> Still enjoy it, I just very rarely have desktop-only projects anymore.
>
> Sounds like a pretty basic fix and a dumb move on my part originally, but I
> wouldn't even know how to get back into Gambas component development.
I added a check in rev5529. My problem is solved.
Regards,
Tobi
From support at ...2529... Wed Jan 30 21:11:33 2013
From: support at ...2529... (John Spikowski)
Date: Wed, 30 Jan 2013 12:11:33 -0800
Subject: [Gambas-user] gambas.us
Message-ID: <1359576693.2366.3.camel@...1833...>
John (konaexpress) Wrote: (Subject: Re: GambOS Alpha 2)
>
Well?...........
Looks like things are on hold for a bit as the White Island site has
been down for a while, not sure what is going on with it.
John
>
If your looking for something a bit more stable and willing to support
your efforts, I'm just saying ...
http://www.gambas.us
From sourceforge-raindog2 at ...94... Wed Jan 30 21:58:21 2013
From: sourceforge-raindog2 at ...94... (Rob Kudla)
Date: Wed, 30 Jan 2013 15:58:21 -0500
Subject: [Gambas-user] gambas.us
In-Reply-To: <1359576693.2366.3.camel@...1833...>
References: <1359576693.2366.3.camel@...1833...>
Message-ID: <5109896D.6060706@...94...>
On 01/30/2013 03:11 PM, John Spikowski wrote:
> John (konaexpress) Wrote: (Subject: Re: GambOS Alpha 2)
> Well?...........
> Looks like things are on hold for a bit as the White Island site has
> been down for a while, not sure what is going on with it.
Was this meant to be a private email? I couldn't find anything with that
subject line in the gambas-user archives.
Rob
From kevinfishburne at ...1887... Thu Jan 31 08:35:11 2013
From: kevinfishburne at ...1887... (Kevin Fishburne)
Date: Thu, 31 Jan 2013 02:35:11 -0500
Subject: [Gambas-user] forcing time zone localization
Message-ID: <510A1EAF.2070200@...1887...>
I have a client/server application in which the server tells the client
the date and time. The date and time is calculated by the server from an
arbitrary starting point and at an arbitrary scale, but based on the
server's system clock so that time still "advances" when the server
application is not running. The client and server display the date and
time using code like this:
Format$(CDate(DateCurrent), "mmmm d, yyyy, hh:nn:AM/PM")
I need Gambas to use a specific time zone for the client and server,
ignoring the system time zone. I've read this:
http://gambasdoc.org/help/doc/locale?v3
Is what I'm trying to do possible? What environment variable should I
set in Gambas ($LC_ALL, $LANG), and is there an ISO or table of codes to
choose from? I've looked at ISO 3166 here:
http://en.wikipedia.org/wiki/ISO_3166
Thanks.
--
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271
From gambas at ...1... Thu Jan 31 10:29:19 2013
From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=)
Date: Thu, 31 Jan 2013 10:29:19 +0100
Subject: [Gambas-user] forcing time zone localization
In-Reply-To: <510A1EAF.2070200@...1887...>
References: <510A1EAF.2070200@...1887...>
Message-ID: <510A396F.7020805@...1...>
Le 31/01/2013 08:35, Kevin Fishburne a ?crit :
> I have a client/server application in which the server tells the client
> the date and time. The date and time is calculated by the server from an
> arbitrary starting point and at an arbitrary scale, but based on the
> server's system clock so that time still "advances" when the server
> application is not running. The client and server display the date and
> time using code like this:
>
> Format$(CDate(DateCurrent), "mmmm d, yyyy, hh:nn:AM/PM")
>
> I need Gambas to use a specific time zone for the client and server,
> ignoring the system time zone. I've read this:
>
> http://gambasdoc.org/help/doc/locale?v3
>
> Is what I'm trying to do possible? What environment variable should I
> set in Gambas ($LC_ALL, $LANG), and is there an ISO or table of codes to
> choose from? I've looked at ISO 3166 here:
>
> http://en.wikipedia.org/wiki/ISO_3166
>
> Thanks.
>
You should not need to use a different timezone for a program. Otherwise
you can use the TZ environmental variable.
But you can get the current timezone by doing: Round(Frac(Date(now)) *
24). (Meaning that the time is UTC + that value. TZ is set with the
opposite).
Then you can convert a local time to GTM time for your communication
between server and client.
Dunno if it fits your need.
Regards,
--
Beno?t Minisini
From nicholso at ...2533... Thu Jan 31 15:21:13 2013
From: nicholso at ...2533... (MinnesotaJon)
Date: Thu, 31 Jan 2013 06:21:13 -0800 (PST)
Subject: [Gambas-user] Shell sudo
In-Reply-To: <4B33BFD0.20709@...2337...>
References:
<4B33BFD0.20709@...2337...>
Message-ID: <1359642073160-40876.post@...3046...>
Thanks, Les -- I had this same problem, and you solved it for me. For other
readers, here is the command adapted for Gambas3:
Shell "sudo -S chmod 0777 ~/myfilename << EOF\nmypassword\nEOF"
Note: "chmod 0777" is just an example of a chmod code
The newline code "\n" should NOT have spaces before it or after it. If you
have excess spaces, this will be interpreted as part of the shell command,
and you'll get an error.
--
View this message in context: http://gambas.8142.n7.nabble.com/Shell-sudo-tp17654p40876.html
Sent from the gambas-user mailing list archive at Nabble.com.
From vuott at ...325... Thu Jan 31 15:58:28 2013
From: vuott at ...325... (Ru Vuott)
Date: Thu, 31 Jan 2013 14:58:28 +0000 (GMT)
Subject: [Gambas-user] Form, as Control,
in a Balloon function produces another same Form !
Message-ID: <1359644308.25314.YahooMailClassic@...3065...>
Hello,
I come back on this problem, that I wrote a few days ago; and I'ld like to repropose it, because it seems to me a bug.
well, I have this simple code:
*********************************
Public Sub TextEdit1_Enter()
? Balloon.Info("Textum", Form)
End
*********************************
When I launch the project, if mouse cursor enter into the TextEdit, a new Form is created !
This new Form has the same name of the main Form.
If the "Control" in Ballon function is "Fmain" or "Me", that
strange phenomenon doesn't appen.
Is it a bug ?
Regards
vuott
From jussi.lahtinen at ...626... Thu Jan 31 16:21:11 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Thu, 31 Jan 2013 17:21:11 +0200
Subject: [Gambas-user] Form, as Control,
in a Balloon function produces another same Form !
In-Reply-To: <1359644308.25314.YahooMailClassic@...3065...>
References: <1359644308.25314.YahooMailClassic@...3065...>
Message-ID:
I guess Gambas creates the control you are referring (Form is class, and
so, not proper object to refer).
Maybe this is what you want:
Balloon.Info("Textum", TextEdit1)
Jussi
On Thu, Jan 31, 2013 at 4:58 PM, Ru Vuott wrote:
> Hello,
>
> I come back on this problem, that I wrote a few days ago; and I'ld like to
> repropose it, because it seems to me a bug.
>
>
> well, I have this simple code:
>
>
> *********************************
>
> Public Sub TextEdit1_Enter()
>
> Balloon.Info("Textum", Form)
>
> End
>
> *********************************
>
>
> When I launch the project, if mouse cursor enter into the TextEdit, a new
> Form is created !
> This new Form has the same name of the main Form.
>
> If the "Control" in Ballon function is "Fmain" or "Me", that
> strange phenomenon doesn't appen.
>
>
> Is it a bug ?
>
> Regards
> vuott
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From jussi.lahtinen at ...626... Thu Jan 31 16:26:52 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Thu, 31 Jan 2013 17:26:52 +0200
Subject: [Gambas-user] Form, as Control,
in a Balloon function produces another same Form !
In-Reply-To:
References: <1359644308.25314.YahooMailClassic@...3065...>
Message-ID:
I think Gambas should raise error instead.
Jussi
On Thu, Jan 31, 2013 at 5:21 PM, Jussi Lahtinen wrote:
> I guess Gambas creates the control you are referring (Form is class, and
> so, not proper object to refer).
> Maybe this is what you want:
> Balloon.Info("Textum", TextEdit1)
>
> Jussi
>
>
>
>
>
> On Thu, Jan 31, 2013 at 4:58 PM, Ru Vuott wrote:
>
>> Hello,
>>
>> I come back on this problem, that I wrote a few days ago; and I'ld like
>> to repropose it, because it seems to me a bug.
>>
>>
>> well, I have this simple code:
>>
>>
>> *********************************
>>
>> Public Sub TextEdit1_Enter()
>>
>> Balloon.Info("Textum", Form)
>>
>> End
>>
>> *********************************
>>
>>
>> When I launch the project, if mouse cursor enter into the TextEdit, a
>> new Form is created !
>> This new Form has the same name of the main Form.
>>
>> If the "Control" in Ballon function is "Fmain" or "Me", that
>> strange phenomenon doesn't appen.
>>
>>
>> Is it a bug ?
>>
>> Regards
>> vuott
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_jan
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
From vuott at ...325... Thu Jan 31 19:57:54 2013
From: vuott at ...325... (Ru Vuott)
Date: Thu, 31 Jan 2013 18:57:54 +0000 (GMT)
Subject: [Gambas-user] Form, as Control,
in a Balloon function produces another same Form !
In-Reply-To:
Message-ID: <1359658674.48673.YahooMailClassic@...3064...>
Hello Jussi,
> I think Gambas should raise error
> instead.
>
> Jussi
I also think so.
> > Maybe this is what you want:
> > Balloon.Info("Textum", TextEdit1)
> >
> > Jussi
Yes, I know. I was just doing some tests on "Balloon"; and so I have noticed that strange thing.
bye
vuotttt
From steve32942000 at ...43... Thu Jan 31 20:58:31 2013
From: steve32942000 at ...43... (steveNewbie)
Date: Thu, 31 Jan 2013 11:58:31 -0800 (PST)
Subject: [Gambas-user] Array for File class?
Message-ID: <1359662311201-40881.post@...3046...>
In the application I am working on I have a need to write various outputs to
multiple files. Gambas does not allow me to create an array of File class
to store multiple pointers to the Files once they are created. Is there a
way to over come this?
I have some code below.
PUBLIC hFile AS File[100] (DOES NOT COMPUTE)
PUBLIC SUB CreateOutFiles()
DIM J As Integer
FOR J = 1 to 50
hFile[J] = OPEN (fileName ) FOR CREATE (DOES NOT COMPUTE)
NEXT
"
END
I have a separate function that writes to these files later in the code do I
need a reference to the hFile[J].
Thanks,
Steve
--
View this message in context: http://gambas.8142.n7.nabble.com/Array-for-File-class-tp40881.html
Sent from the gambas-user mailing list archive at Nabble.com.
From jussi.lahtinen at ...626... Thu Jan 31 21:05:58 2013
From: jussi.lahtinen at ...626... (Jussi Lahtinen)
Date: Thu, 31 Jan 2013 22:05:58 +0200
Subject: [Gambas-user] Array for File class?
In-Reply-To: <1359662311201-40881.post@...3046...>
References: <1359662311201-40881.post@...3046...>
Message-ID:
PUBLIC hFile AS File[100]
---->
PUBLIC hFile AS New File[100]
Jussi
On Thu, Jan 31, 2013 at 9:58 PM, steveNewbie wrote:
> In the application I am working on I have a need to write various outputs
> to
> multiple files. Gambas does not allow me to create an array of File class
> to store multiple pointers to the Files once they are created. Is there a
> way to over come this?
>
> I have some code below.
>
> PUBLIC hFile AS File[100] (DOES NOT COMPUTE)
>
> PUBLIC SUB CreateOutFiles()
> DIM J As Integer
>
> FOR J = 1 to 50
> hFile[J] = OPEN (fileName ) FOR CREATE (DOES NOT COMPUTE)
> NEXT
> "
> END
>
> I have a separate function that writes to these files later in the code do
> I
> need a reference to the hFile[J].
>
> Thanks,
> Steve
>
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Array-for-File-class-tp40881.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
From steve32942000 at ...43... Thu Jan 31 22:28:21 2013
From: steve32942000 at ...43... (steveNewbie)
Date: Thu, 31 Jan 2013 13:28:21 -0800 (PST)
Subject: [Gambas-user] Array for File class?
In-Reply-To: <1359662311201-40881.post@...3046...>
References: <1359662311201-40881.post@...3046...>
Message-ID: <1359667701780-40883.post@...3046...>
PUBLIC hFile AS NEW File[100] (Now COMPUTEs)
but
hFile[J] = OPEN (fileName ) FOR CREATE (Still DOES NOT COMPUTE)
I get error "Class 'File' is not creatable". I tried changing the
declaration to Stream with same error.
Steve
--
View this message in context: http://gambas.8142.n7.nabble.com/Array-for-File-class-tp40881p40883.html
Sent from the gambas-user mailing list archive at Nabble.com.
From taboege at ...626... Thu Jan 31 22:41:08 2013
From: taboege at ...626... (Tobias Boege)
Date: Thu, 31 Jan 2013 22:41:08 +0100
Subject: [Gambas-user] Array for File class?
In-Reply-To: <1359667701780-40883.post@...3046...>
References: <1359662311201-40881.post@...3046...>
<1359667701780-40883.post@...3046...>
Message-ID: <20130131214108.GA562@...2774...>
On Thu, 31 Jan 2013, steveNewbie wrote:
> PUBLIC hFile AS NEW File[100] (Now COMPUTEs)
>
> but
>
> hFile[J] = OPEN (fileName ) FOR CREATE (Still DOES NOT COMPUTE)
>
> I get error "Class 'File' is not creatable". I tried changing the
> declaration to Stream with same error.
Why do you want to use a fixed-size array in the first place?
I would suggest something like:
--8<---------------
Dim aFiles As New File[]
Dim hFile As File
Dim J As Integer
For J = 0 To 50
hFile = Open sPath For Read
aFiles.Add(hFile)
Next
--8<---------------
Regards,
Tobi
From steve32942000 at ...43... Thu Jan 31 23:48:29 2013
From: steve32942000 at ...43... (steveNewbie)
Date: Thu, 31 Jan 2013 14:48:29 -0800 (PST)
Subject: [Gambas-user] Array for File class?
In-Reply-To: <20130131214108.GA562@...2774...>
References: <1359662311201-40881.post@...3046...>
<1359667701780-40883.post@...3046...>
<20130131214108.GA562@...2774...>
Message-ID: <1359672509654-40885.post@...3046...>
I tried the method below without success. I am still getting "Class 'File'
is not creatable" error. I might have to resort to creating 50 separate
File objects to get through this for now and clean up later.
Dim aFiles As New File[]
Dim hFile As File
Dim J As Integer
For J = 0 To 50
hFile = Open sPath For Read
aFiles.Add(hFile) (For some reason, Add is not a
method under this class!)
Next
Many thanks,
Steve
--
View this message in context: http://gambas.8142.n7.nabble.com/Array-for-File-class-tp40881p40885.html
Sent from the gambas-user mailing list archive at Nabble.com.