Re: [Gambas-user] Bug on ImageStat( ).Height ?

2016-07-09 Thread Benoît Minisini
Le 03/07/2016 17:26, Ru Vuott a écrit :
> Hello,
>
> using ImageStat().Height with .JPG type images, it returns "always" the 
> value: 4360.
>
> Regards
>
> vuott
> .
>

Fixed in revision #7813.

Regards,

-- 
Benoît Minisini

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug on ImageStat( ).Height ?

2016-07-08 Thread zainudin ahmad
Maybe you can report it in gambas bugtracker.

I have the same issue on my system

Regards

On Sun, Jul 3, 2016 at 10:26 PM, Ru Vuott  wrote:

> Hello,
>
> using ImageStat().Height with .JPG type images, it returns "always" the
> value: 4360.
>
> Regards
>
> vuott
>
>
> --
> Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug on ImageStat( ).Height ?

2016-07-03 Thread Gianluigi
I confirm the malfunction:
Print ImageStat("Glub128.jpeg").Height = 4360
Print ImageStat("Glub128.jpeg").Width = 128

Regards
Gianluigi

2016-07-03 17:26 GMT+02:00 Ru Vuott :

> Hello,
>
> using ImageStat().Height with .JPG type images, it returns "always" the
> value: 4360.
>
> Regards
>
> vuott
>
>
> --
> Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug on ImageStat( ).Height ?

2016-07-03 Thread Ru Vuott
Hello,

using ImageStat().Height with .JPG type images, it returns "always" the value: 
4360.

Regards

vuott

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug tracking

2016-02-16 Thread Charlie
Can't the bug tracking not have its own "Forum". It seems to get in the way
of everthing else.

Thanks,

Charlie



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Bug-tracking-tp55477.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug #829: Unable to Insert Time value in postgresql database

2015-11-05 Thread adamn...@gmail.com
Hi Benoit and Safiur RAHMAN,

Regardless of whether the revision #7454 fix works or not, I'd just like to 
warn of the following possible problem.

In postgresql, a timestamp column (with or without a timezone) is a date+time 
datatype.  Presumably, inserting a time only value into a timestamp column will 
"assume" the current date for the date part (depending on the postgresql db 
driver version). If Safiur expects that the database will record the time only 
in that field and then, say, tries to SELECT based on a time only parameter 
he(?) will not succeed. 

There are a few possible ways to use a timestamp column to record time only. 
However the better solution is to use a "time [ (p) ] [ without time zone ]" 
column.  This will ensure that any WHERE clause can use the time only value.

(Just wanted to point that out)

regards
bruce

-- 
B Bruen 

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug during Webview Eval() usage

2015-08-18 Thread Benoît Minisini
Le 18/08/2015 22:49, Yahoo a écrit :
 Hi Benoit,

 I have found a bug (Segmentation fault 11) during execution of around
 320 Eval() in a short time inside a loop (for each …) in a Webview.

 Some time this loop works fine and each Webview1.Eval(cmd) are
 executed and another time I have this error.

 I don’t know if it’s important but I run a Linux Mint 17.2 on
 virtualBox  machine. I use the latest SVN release 7227 I tried to
 execute this project as described on Gambas Web Site with gdb but I
 get the same error text, no more.

 I tried to compile Gambas SVN manually with only QT5 Webkit = Same
 error I tried to compile Gambas SVN manually with only QT4 Webkit =
 Same error

 Do you need a little project to reproduce the error because in this
 case I must create it from the main project ?

Yes, it allows me to reproduce the bug.

I can't do anything against bugs inside Qt, which is the case apparently 
according to your backtrace. But send me the project anyway.

Regards,

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug during Webview Eval() usage

2015-08-18 Thread Yahoo
Hi Benoit,

I have found a bug (Segmentation fault 11) during execution of around 320 
Eval() in a short time inside a loop (for each …) in a Webview.

Some time this loop works fine and each Webview1.Eval(cmd) are executed and 
another time I have this error.

I don’t know if it’s important but I run a Linux Mint 17.2 on virtualBox  
machine.
I use the latest SVN release 7227
I tried to execute this project as described on Gambas Web Site with gdb but I 
get the same error text, no more.

I tried to compile Gambas SVN manually with only QT5 Webkit = Same error
I tried to compile Gambas SVN manually with only QT4 Webkit = Same error

Do you need a little project to reproduce the error because in this case I must 
create it from the main project ?


Segmentation Fault 11

FormTracerouteMap.Fin_Traitement_Tracert.750: $TabPointGridview.Count = 308
FormTracerouteMap.Fin_Traitement_Tracert.751: $TabPolyline.Count = 35
FormTracerouteMap.Fin_Traitement_Tracert.754: Affichage des points + Polyline.
FormTracerouteMap.TimerQueueLog_Timer.706: TimerQueueLog_Timer() STOPPED !!
FormTracerouteMap.TimerQueueLog_Timer.711: Fin traitement traceroute. 
NbreId=45, NbreDataInterprete=45, NbreTracerouteError=0, NbrePolyline=0, 
$NbreCheckId=45, $DataReceive=0, $TimeoutTaskTraceroute=0
FormTracerouteMap.Fin_Traitement_Tracert.750: $TabPointGridview.Count = 316
FormTracerouteMap.Fin_Traitement_Tracert.751: $TabPolyline.Count = 37
FormTracerouteMap.Fin_Traitement_Tracert.754: Affichage des points + Polyline.
FormTracerouteMap.TimerQueueLog_Timer.706: TimerQueueLog_Timer() STOPPED !!
FormTracerouteMap.TimerQueueLog_Timer.711: Fin traitement traceroute. 
NbreId=45, NbreDataInterprete=45, NbreTracerouteError=0, NbrePolyline=0, 
$NbreCheckId=45, $DataReceive=0, $TimeoutTaskTraceroute=0
1   0xb3a300c7 
/usr/lib/i386-linux-gnu/libQtWebKit.so.4(_ZN3WTF11OSAllocator16reserveAndCommitEjNS0_5UsageEbbb+0x137)
 [0xb3a300c7]
2   0xb3a30120 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x18b0120) [0xb3a30120]
3   0xb3a158ba /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x18958ba) [0xb3a158ba]
4   0xb3704c62 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x1584c62) [0xb3704c62]
5   0xb3705170 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x1585170) [0xb3705170]
6   0xb3706429 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x1586429) [0xb3706429]
7   0xb3962dd5 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x17e2dd5) [0xb3962dd5]
8   0xb39698f4 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x17e98f4) [0xb39698f4]
9   0xb3963fc0 
/usr/lib/i386-linux-gnu/libQtWebKit.so.4(_ZN3JSC8JSObject10putByIndexEPNS_6JSCellEPNS_9ExecStateEjNS_7JSValueEb+0x80)
 [0xb3963fc0]
10  0xb3967e37 
/usr/lib/i386-linux-gnu/libQtWebKit.so.4(_ZN3JSC8JSObject3putEPNS_6JSCellEPNS_9ExecStateENS_12PropertyNameENS_7JSValueERNS_15PutPropertySlotE+0x207)
 [0xb3967e37]
11  0xb3774cde /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x15f4cde) [0xb3774cde]
12  0xb3846dd0 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x16c6dd0) [0xb3846dd0]
13  0xb38525d2 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x16d25d2) [0xb38525d2]
14  0x97476e41 [0x97476e41]
15  0xb37eed84 /usr/lib/i386-linux-gnu/libQtWebKit.so.4(+0x166ed84) [0xb37eed84]
16  0x2 [0x2]
17  0xfffb [0xfffb]


[System]
Gambas=3.8.0
OperatingSystem=Linux
Kernel=3.16.0-37-generic
Architecture=x86
Distribution=Linux Mint 17.1 Rebecca
Desktop=MATE
Theme=Gtk
Language=fr_CA.UTF-8
Memory=4052M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.28.0.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
Qt5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
[Environment]
CLUTTER_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9aRBjxeCeo,guid=091e6b223ee678201b2ed1aa55af8da3
DEFAULTS_PATH=/usr/share/gconf/mate.default.path
DESKTOP_SESSION=mate
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=mate
GDM_XSERVER_LOCATION=local
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-hfiYfY
GNOME_KEYRING_PID=2689
GPG_AGENT_INFO=/tmp/keyring-GnQRJQ/gpg:0:1
GTK_IM_MODULE=ibus
HOME=/home/ocruilles
LANG=fr_CA.UTF-8
LOGNAME=ocruilles
MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MATE_KEYRING_CONTROL=/tmp/keyring-GnQRJQ
MDMSESSION=mate
MDM_LANG=fr_CA.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/home/ocruilles/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/ocruilles
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
SESSION_MANAGER=local/ocruilles-linux:@/tmp/.ICE-unix/2701,unix/ocruilles-linux:/tmp/.ICE-unix/2701
SHELL=/bin/bash
SSH_AGENT_PID=2790
SSH_AUTH_SOCK=/tmp/keyring-GnQRJQ/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=ocruilles
USERNAME=ocruilles
WINDOWPATH=8
XAUTHORITY=/home/ocruilles/.Xauthority

Re: [Gambas-user] Bug in ide using datacomboview

2015-07-30 Thread Marco Ancillotti

Thank's a lot !

Il 30/07/2015 04:55, Benoît Minisini ha scritto:
 Le 22/07/2015 12:18, Marco Ancillotti a écrit :
 Hi all ,

 from the ide when using datacomboview opening columns list show field of
 base table , not the table chosed from control table field.

 Setting right fields changing .form work perfectly so I think is an ide
 problem.

 bye,
 marco.

 It's fixed in revision #7192.

 Regards,



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in ide using datacomboview

2015-07-29 Thread Benoît Minisini
Le 22/07/2015 12:18, Marco Ancillotti a écrit :

 Hi all ,

 from the ide when using datacomboview opening columns list show field of
 base table , not the table chosed from control table field.

 Setting right fields changing .form work perfectly so I think is an ide
 problem.

 bye,
 marco.


It's fixed in revision #7192.

Regards,

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug in ide using datacomboview

2015-07-23 Thread Marco Ancillotti

Hi all ,

from the ide when using datacomboview opening columns list show field of 
base table , not the table chosed from control table field.

Setting right fields changing .form work perfectly so I think is an ide 
problem.

bye,
marco.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug in ide using datacomboview

2015-07-22 Thread Marco Ancillotti

Hi all ,

from the ide when using datacomboview opening columns list show field of 
base table , not the table chosed from control table field.

Setting right fields changing .form work perfectly so I think is an ide 
problem.

bye,
marco.


--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG in WebBrowser 1.0.1 example

2015-07-08 Thread Benoît Minisini
Le 04/07/2015 21:46, Charlie Reinl a écrit :
 On Sat, 04 Jul 2015 19:40:30 +0200, Benoît Minisini
 gam...@users.sourceforge.net wrote:
 Le 24/06/2015 23:00, Charlie Reinl a écrit :
 Salut Benoît,

 WebBrowser 1.0.1 example have a bug in
 Private Sub DoFind(Optional bBackward As Boolean)

 see attachment


 I just published WebBrowser 1.0.2 with a fix.

 Regards,

 Salut Benoît,

 but now I need qt5

 Amicalement Charlie


I published WebBrowser 1.0.3 that uses QT4 instead of QT5.

Regards,

-- 
Benoît Minisini

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] BUG: Ctrl+Del not working

2015-06-29 Thread Moviga Technologies
 

Ctrl+Delete is no longer working in the editor (to delete whole words
after the cursor) 

 
--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: Ctrl+Del not working

2015-06-29 Thread Benoît Minisini
Le 29/06/2015 21:08, Moviga Technologies a écrit :


 Ctrl+Delete is no longer working in the editor (to delete whole words
 after the cursor)


Fixed in revision #7158.

-- 
Benoît Minisini

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Highlight in Gambas 3.7.1

2015-06-11 Thread willy
On 2015-06-11 03:19, Benoît Minisini wrote:
 Le 11/06/2015 02:40, wi...@develop.earthshipeurope.org a écrit :
 Hi All,
 
 I recently discovered that highlight fdoesn't on Gambas 3.7.1 as it 
 did
 in previous versions.
 I have a textEditor application (gbEdit) that uses a Editor (from
 qt4.ext) and heavily relies on highlight for highlighting Gambas code,
 difference files, html files, gambas webpages and so on.
 
 As I said, this worked great with Gambas 3.5.x and Gambas 3.6.x.
 I made a small project (attached) to show what I mean.
 
 i tested it with a difference file.
 Opening the file and going to menu View - Difference file on Gambas
 3.5.4 shows a correctly highlighted difference file (see screen).
 
 Opening the same difference file and going to menu View - Difference
 file on Gambas 3.7.1 crashes the application (see screen).
 
 Same goes for C, CPlusPlus, CSS, HTML, Javascript, HTML and SQL (oh 
 and
 Webpage although it isn't in the example code attached). All work well
 on Gambas 3.5.x and 3.6.x but crash the app on Gambas 3.7.1
 
 Is this a bug or has something changed?
 
 gbWilly
 
 
 I have no idea why, as the Editor is used by the IDE, and every
 highlighting works in it. Can you check that?

Hi,

Gambas 3.7.1 IDE highlights just fine.

I have done some investigation and this is what I discovered.

1. When application installed on a system with Gambas 3.7.1 IDE 
installed all highlighting works.
2. When application installed on a virgin system (so no Gambas installed 
only PPA available in sources.list) the highlighting crashes.
3. If, on the virgin system (mentioned in 2. and after having 
application installed), I next install gambas3-gb-eval-highlight, the 
highlighting does work
4. The systems with Gambas 3.5.4 and 3.6.2 installed where the 
application was tested, all happened to have Gambas IDE installed, so 
that is why all worked there.

The misleading thing here is that when developing in IDE and no 
component gb.eval.highlight selected in project properties, you can use 
Highlight.C or whatever and there is no complain about a component 
missing when compiling and running the app.
When for example you use args in code but forget to select gb.args in 
properties, as soon as you compile or whant to run the app, the IDE 
tells you that ist doesn't understand the args code.

So, eventually, when making a package of the project, there is no 
dependency on gb.eval.highlight, and thus the application will fail on 
systems without a full IDE installed.

So, when using gb.eval.highlight without it being selected in project 
properties, IDE should complain.
Or maybe gb.qt4.ext should default depend on gb.eval.highlight?

Well, I solved the problem by checking gb.eval.highlight in the project 
properties and next repackage the project. So, now I know and will 
remember, but others might run into the same problem.

So, I feel something should be done to prevent mistakes like this from 
happening. But, I leave that up to Benoît to figure out the best 
solution (if any).

Willy (a.k.a. gbWilly)



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Highlight in Gambas 3.7.1

2015-06-11 Thread Benoît Minisini

 Hi,

 Gambas 3.7.1 IDE highlights just fine.

 I have done some investigation and this is what I discovered.

 1. When application installed on a system with Gambas 3.7.1 IDE
 installed all highlighting works.
 2. When application installed on a virgin system (so no Gambas installed
 only PPA available in sources.list) the highlighting crashes.
 3. If, on the virgin system (mentioned in 2. and after having
 application installed), I next install gambas3-gb-eval-highlight, the
 highlighting does work
 4. The systems with Gambas 3.5.4 and 3.6.2 installed where the
 application was tested, all happened to have Gambas IDE installed, so
 that is why all worked there.

 The misleading thing here is that when developing in IDE and no
 component gb.eval.highlight selected in project properties, you can use
 Highlight.C or whatever and there is no complain about a component
 missing when compiling and running the app.
 When for example you use args in code but forget to select gb.args in
 properties, as soon as you compile or whant to run the app, the IDE
 tells you that ist doesn't understand the args code.

 So, eventually, when making a package of the project, there is no
 dependency on gb.eval.highlight, and thus the application will fail on
 systems without a full IDE installed.

 So, when using gb.eval.highlight without it being selected in project
 properties, IDE should complain.
 Or maybe gb.qt4.ext should default depend on gb.eval.highlight?

 Well, I solved the problem by checking gb.eval.highlight in the project
 properties and next repackage the project. So, now I know and will
 remember, but others might run into the same problem.

 So, I feel something should be done to prevent mistakes like this from
 happening. But, I leave that up to Benoît to figure out the best
 solution (if any).

 Willy (a.k.a. gbWilly)


Ha, ok. So everything occured as expected.

When using highlighting, the gb.qt4.ext component tries to load the 
gb.eval.highlight component automatically, and displays that error 
message if the component cannot be found. Which happens if the it has 
not been installed.

But I cannot make gb.qt4.ext depends on gb.eval.highlight, because the 
component is not mandatory if you don't use highlighting.

Except explaining that in the documentation, I don't see any technical 
solution...

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Highlight in Gambas 3.7.1

2015-06-11 Thread willy
On 2015-06-11 23:19, Benoît Minisini wrote:
 
 Hi,
 
 Gambas 3.7.1 IDE highlights just fine.
 
 I have done some investigation and this is what I discovered.
 
 1. When application installed on a system with Gambas 3.7.1 IDE
 installed all highlighting works.
 2. When application installed on a virgin system (so no Gambas 
 installed
 only PPA available in sources.list) the highlighting crashes.
 3. If, on the virgin system (mentioned in 2. and after having
 application installed), I next install gambas3-gb-eval-highlight, the
 highlighting does work
 4. The systems with Gambas 3.5.4 and 3.6.2 installed where the
 application was tested, all happened to have Gambas IDE installed, so
 that is why all worked there.
 
 The misleading thing here is that when developing in IDE and no
 component gb.eval.highlight selected in project properties, you can 
 use
 Highlight.C or whatever and there is no complain about a component
 missing when compiling and running the app.
 When for example you use args in code but forget to select gb.args in
 properties, as soon as you compile or whant to run the app, the IDE
 tells you that ist doesn't understand the args code.
 
 So, eventually, when making a package of the project, there is no
 dependency on gb.eval.highlight, and thus the application will fail on
 systems without a full IDE installed.
 
 So, when using gb.eval.highlight without it being selected in project
 properties, IDE should complain.
 Or maybe gb.qt4.ext should default depend on gb.eval.highlight?
 
 Well, I solved the problem by checking gb.eval.highlight in the 
 project
 properties and next repackage the project. So, now I know and will
 remember, but others might run into the same problem.
 
 So, I feel something should be done to prevent mistakes like this from
 happening. But, I leave that up to Benoît to figure out the best
 solution (if any).
 
 Willy (a.k.a. gbWilly)
 
 
 Ha, ok. So everything occured as expected.
 
 When using highlighting, the gb.qt4.ext component tries to load the
 gb.eval.highlight component automatically, and displays that error
 message if the component cannot be found. Which happens if the it has
 not been installed.
 
 But I cannot make gb.qt4.ext depends on gb.eval.highlight, because the
 component is not mandatory if you don't use highlighting.
 
 Except explaining that in the documentation, I don't see any technical
 solution...

Good enough for me.

gbWilly


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in Highlight in Gambas 3.7.1

2015-06-10 Thread Benoît Minisini
Le 11/06/2015 02:40, wi...@develop.earthshipeurope.org a écrit :
 Hi All,

 I recently discovered that highlight fdoesn't on Gambas 3.7.1 as it did
 in previous versions.
 I have a textEditor application (gbEdit) that uses a Editor (from
 qt4.ext) and heavily relies on highlight for highlighting Gambas code,
 difference files, html files, gambas webpages and so on.

 As I said, this worked great with Gambas 3.5.x and Gambas 3.6.x.
 I made a small project (attached) to show what I mean.

 i tested it with a difference file.
 Opening the file and going to menu View - Difference file on Gambas
 3.5.4 shows a correctly highlighted difference file (see screen).

 Opening the same difference file and going to menu View - Difference
 file on Gambas 3.7.1 crashes the application (see screen).

 Same goes for C, CPlusPlus, CSS, HTML, Javascript, HTML and SQL (oh and
 Webpage although it isn't in the example code attached). All work well
 on Gambas 3.5.x and 3.6.x but crash the app on Gambas 3.7.1

 Is this a bug or has something changed?

 gbWilly


I have no idea why, as the Editor is used by the IDE, and every 
highlighting works in it. Can you check that?

-- 
Benoît Minisini

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in IDE packager for rpm packages

2015-05-06 Thread Ron
Indeed hard to find official documentation about this subject.

I have found this though:

Package names (both source and binary, see Package, Section 5.6.7)
must consist only of lower case letters (a-z), digits (0-9), plus (+)
and minus (-) signs, and periods (.). They must be at least two
characters long and must start with an alphanumeric character.

source: 
https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Source

Regards,
Ron.

2015-05-06 1:25 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:
 Le 05/05/2015 23:28, Willy@develop a écrit :
 Hi,

 A user on the Gambas forum reported having trouble making rpm packages
 using IDE.

 We had some discussion on the topic to check if all requirements where
 installed to build rpm packages on Ubuntu. They where but when making
 packages for one of the rpm distro's Gambas threw an error.

 I managed isolate the cause of the problem being the name used in the
 project. The persons project was named ListBox+.

 Seems the added + to the project name turns out to be a problem for
 making rpm packages (deb packages build just fine).

 I tried and succeeded in replicating the error as follows:
 I opened a new empty qt4 project and named it MyBox+.
 Next I tried making a  rpm package for Fedora.

 This is the error returned:

 

 Pakket aanmaken voor Fedora / RedHat / CentOS.

 

 Gereed maken ~/RPM map.
 Broncode pakket aanmaken.
 .spec bestand aanmaken.
 Pakket aanmaken...

 rpmbuild -ba '/home/willy/RPM/SPECS/mybox+.spec'
 Executing(%prep): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.pebI7j
 + umask 022
 + cd /home/willy/RPM/BUILD
 + rm -rf /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386
 + cd /home/willy/RPM/BUILD
 + rm -rf MyBox+
 + + /bin/tar -xf -
 /bin/bzip2 -dc /home/willy/RPM/SOURCES/mybox+-0.0.1.tar.bz2
 + STATUS=0
 + [ 0 -ne 0 ]
 + cd MyBox+
 + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
 + exit 0
 Executing(%build): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.DojBTv
 + umask 022
 + cd /home/willy/RPM/BUILD
 + cd MyBox+
 + /usr/bin/gbc3 -e -a -g -x
 OK
 + gba3
 + exit 0
 Executing(%install): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.uHcvWH
 + umask 022
 + cd /home/willy/RPM/BUILD
 + cd MyBox+
 + install -d /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386//usr/bin
 + install -p MyBox+.gambas /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/bin/MyBox+
 + install -d /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/share/pixmaps
 + install -d /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/share/applications
 + install -p .icon/48.png /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/share/pixmaps/MyBox+.png
 + cat
 + /usr/lib/rpm/brp-compress
 + /usr/lib/rpm/brp-strip /usr/bin/strip
 + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
 + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
 Processing files: mybox+-0.0.1-1.noarch
 error: File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/bin/'MyBox+'
 error: File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png


 RPM build errors:
  File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/bin/'MyBox+'
  File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png

 Het pakket maken is mislukt.
 Package.MakeRpmPackage.1420: 'rpmbuild' heeft de volgende foutcode
 teruggestuurd: 1

 ==End of error report=

 My impression is that the added single quotes to the project name
 confuse the rpm builder (see lines after above RPM build errors)

 Note that I can make rpm packages from Gambas IDE for other projects
 (without the added + to the project name).



 It seems that rpm or deb packages usually cannot handle characters that
 are not a letter or a digit. I didn't find any documentation that tells
 me exactly which characters are really allowed in a package name.

 Maybe I should prevent that by automatically replace these characters by
 something else when making the package.

 Anyway, it's better to use only digits and letters in your project name!

 Regards,

 --
 Benoît Minisini

 --
 One dashboard for servers and applications across Physical-Virtual-Cloud
 Widest out-of-the-box monitoring support with 50+ applications
 Performance metrics, stats and reports that give you Actionable Insights
 Deep dive visibility with transaction tracing using APM Insight.
 http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications

Re: [Gambas-user] Bug in IDE packager for rpm packages

2015-05-06 Thread Willy@develop
On wo, 2015-05-06 at 08:26 +0200, Ron wrote:
 Indeed hard to find official documentation about this subject.
 
 I have found this though:
 
 Package names (both source and binary, see Package, Section 5.6.7)
 must consist only of lower case letters (a-z), digits (0-9), plus (+)
 and minus (-) signs, and periods (.). They must be at least two
 characters long and must start with an alphanumeric character.
 
 source: 
 https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Source
 
 Regards,
 Ron.

As I stated in the original mail. Deb packages (both the ones for Debian
as for Mint/Ubuntu) package fine with a + in the package name.
There is no problem there.

It is packaging rpm's with the added + in the package name that gives
trouble. No + in the name, no problem, rpm packages build just fine.

In the error output you can see this:
RPM build errors:
File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/bin/'MyBox+'
File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png

The single quotes in the path name around the project name MyBox+ seem
to cause the trouble.

I don't know if Gambas adds them (the single quotes) before passing the
command to the rpm package builder or if the rpm package builder itself
throws them in and next can't cope with it.

If Gambas adds them it surly can be fixed, but if the rpm builder (an
external process I presume) does this then this is not a Gambas problem.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in IDE packager for rpm packages

2015-05-05 Thread Benoît Minisini
Le 05/05/2015 23:28, Willy@develop a écrit :
 Hi,

 A user on the Gambas forum reported having trouble making rpm packages
 using IDE.

 We had some discussion on the topic to check if all requirements where
 installed to build rpm packages on Ubuntu. They where but when making
 packages for one of the rpm distro's Gambas threw an error.

 I managed isolate the cause of the problem being the name used in the
 project. The persons project was named ListBox+.

 Seems the added + to the project name turns out to be a problem for
 making rpm packages (deb packages build just fine).

 I tried and succeeded in replicating the error as follows:
 I opened a new empty qt4 project and named it MyBox+.
 Next I tried making a  rpm package for Fedora.

 This is the error returned:

 

 Pakket aanmaken voor Fedora / RedHat / CentOS.

 

 Gereed maken ~/RPM map.
 Broncode pakket aanmaken.
 .spec bestand aanmaken.
 Pakket aanmaken...

 rpmbuild -ba '/home/willy/RPM/SPECS/mybox+.spec'
 Executing(%prep): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.pebI7j
 + umask 022
 + cd /home/willy/RPM/BUILD
 + rm -rf /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386
 + cd /home/willy/RPM/BUILD
 + rm -rf MyBox+
 + + /bin/tar -xf -
 /bin/bzip2 -dc /home/willy/RPM/SOURCES/mybox+-0.0.1.tar.bz2
 + STATUS=0
 + [ 0 -ne 0 ]
 + cd MyBox+
 + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
 + exit 0
 Executing(%build): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.DojBTv
 + umask 022
 + cd /home/willy/RPM/BUILD
 + cd MyBox+
 + /usr/bin/gbc3 -e -a -g -x
 OK
 + gba3
 + exit 0
 Executing(%install): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.uHcvWH
 + umask 022
 + cd /home/willy/RPM/BUILD
 + cd MyBox+
 + install -d /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386//usr/bin
 + install -p MyBox+.gambas /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/bin/MyBox+
 + install -d /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/share/pixmaps
 + install -d /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/share/applications
 + install -p .icon/48.png /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386//usr/share/pixmaps/MyBox+.png
 + cat
 + /usr/lib/rpm/brp-compress
 + /usr/lib/rpm/brp-strip /usr/bin/strip
 + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
 + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
 Processing files: mybox+-0.0.1-1.noarch
 error: File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/bin/'MyBox+'
 error: File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png


 RPM build errors:
  File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/bin/'MyBox+'
  File not found: /home/willy/RPM/BUILDROOT/mybox
 +-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png

 Het pakket maken is mislukt.
 Package.MakeRpmPackage.1420: 'rpmbuild' heeft de volgende foutcode
 teruggestuurd: 1

 ==End of error report=

 My impression is that the added single quotes to the project name
 confuse the rpm builder (see lines after above RPM build errors)

 Note that I can make rpm packages from Gambas IDE for other projects
 (without the added + to the project name).



It seems that rpm or deb packages usually cannot handle characters that 
are not a letter or a digit. I didn't find any documentation that tells 
me exactly which characters are really allowed in a package name.

Maybe I should prevent that by automatically replace these characters by 
something else when making the package.

Anyway, it's better to use only digits and letters in your project name!

Regards,

-- 
Benoît Minisini

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug in IDE packager for rpm packages

2015-05-05 Thread Willy@develop
Hi,

A user on the Gambas forum reported having trouble making rpm packages
using IDE.

We had some discussion on the topic to check if all requirements where
installed to build rpm packages on Ubuntu. They where but when making
packages for one of the rpm distro's Gambas threw an error.

I managed isolate the cause of the problem being the name used in the
project. The persons project was named ListBox+.

Seems the added + to the project name turns out to be a problem for
making rpm packages (deb packages build just fine).

I tried and succeeded in replicating the error as follows:
I opened a new empty qt4 project and named it MyBox+.
Next I tried making a  rpm package for Fedora.

This is the error returned:



Pakket aanmaken voor Fedora / RedHat / CentOS.



Gereed maken ~/RPM map.
Broncode pakket aanmaken.
.spec bestand aanmaken.
Pakket aanmaken...

rpmbuild -ba '/home/willy/RPM/SPECS/mybox+.spec'
Executing(%prep): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.pebI7j
+ umask 022
+ cd /home/willy/RPM/BUILD
+ rm -rf /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386
+ cd /home/willy/RPM/BUILD
+ rm -rf MyBox+
+ + /bin/tar -xf -
/bin/bzip2 -dc /home/willy/RPM/SOURCES/mybox+-0.0.1.tar.bz2
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd MyBox+
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.DojBTv
+ umask 022
+ cd /home/willy/RPM/BUILD
+ cd MyBox+
+ /usr/bin/gbc3 -e -a -g -x
OK
+ gba3
+ exit 0
Executing(%install): /bin/sh -e /home/willy/RPM/tmp/rpm-tmp.uHcvWH
+ umask 022
+ cd /home/willy/RPM/BUILD
+ cd MyBox+
+ install -d /home/willy/RPM/BUILDROOT/mybox+-0.0.1-1.i386//usr/bin
+ install -p MyBox+.gambas /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/bin/MyBox+
+ install -d /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/share/pixmaps
+ install -d /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/share/applications
+ install -p .icon/48.png /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386//usr/share/pixmaps/MyBox+.png
+ cat
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: mybox+-0.0.1-1.noarch
error: File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/bin/'MyBox+'
error: File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png


RPM build errors:
File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/bin/'MyBox+'
File not found: /home/willy/RPM/BUILDROOT/mybox
+-0.0.1-1.i386/usr/share/pixmaps/'MyBox+'.png

Het pakket maken is mislukt.
Package.MakeRpmPackage.1420: 'rpmbuild' heeft de volgende foutcode
teruggestuurd: 1

==End of error report=

My impression is that the added single quotes to the project name
confuse the rpm builder (see lines after above RPM build errors)

Note that I can make rpm packages from Gambas IDE for other projects
(without the added + to the project name).


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with WebPage highlighting

2015-03-01 Thread Benoît Minisini
Le 02/03/2015 01:49, Benoît Minisini a écrit :
 Le 02/03/2015 01:48, Benoît Minisini a écrit :
 Le 01/03/2015 22:59, Jørn Erik Mørne a écrit :
 When Keywords in uppercase is set to On WebPage's syntax
 highlighting is broken.


 What do you mean eaxctly?


 OK, I see !


Fixed in revision #6927.

Regards,

-- 
Benoît Minisini

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-16 Thread Benoît Minisini
Le 16/12/2014 04:00, Jussi Lahtinen a écrit :
 I'm not clear enough: you should not have to disable and re-enabling a
 control inside an event handler, because you are not supposed to call
 event loop (WAIT time instruction) inside an event handler. If you
 don't call the event loop, then disabling then re-enabling is useless.


 OK, now I understand the issue... In fact the code showing the data uses
 wait.
 And it seems to work as expected in Qt4. But I understand how it may create
 problems, while now it doesn't seem to.
 So, I could replace wait with sleep and take of the enable/disable
 code. However I like that the control goes gray when disabled... right now
 I can't figure out nice solution for this.


 Jussi

It works with gb.qt4 by luck in your case. Actually neither gb.qt4 or 
gb.gtk likes when WAIT is called during a keyboard event (or mouse 
event), because it messes their internal event process up.

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-15 Thread Benoît Minisini
Le 14/12/2014 18:46, Jussi Lahtinen a écrit :

 Disabling a control, then re-enabling it, then giving it focus back
 inside a keypress event is not a good idea.


 The keypress event waits for enter key as sign of end of user input.
 Then the idea is to disable user input while data is shown in other control.
 This was first thing in my mind how to do it.


 Jussi

But there is no need to disable the control, re-enabling it, then giving 
it focus back. What for? Just disable it when enter is hit.

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-15 Thread Jussi Lahtinen
 But there is no need to disable the control, re-enabling it, then giving
 it focus back. What for? Just disable it when enter is hit.


The code you see is only isolation for demonstration of the problem. There
is really code (call of sub) between disabling and enabling the control.
It's not enough to just disable the control when I hit enter, because the
program ask more input when it is done showing some data. Thus re-enabling.
I think I added the focus because in some cases, the focus went to the
control displaying the data (or somewhere else?).


Jussi
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-15 Thread Jussi Lahtinen
This is what I mean:

TextBox1.Enabled = False 'Prevent user messing while showing the data.
ShowSomeData()

TextBox1.Enabled = True 'Enable user to give new input...
TextBox1.SetFocus() '...without need to click on the textbox.


Jussi

On Tue, Dec 16, 2014 at 4:29 AM, Jussi Lahtinen jussi.lahti...@gmail.com
wrote:


 But there is no need to disable the control, re-enabling it, then giving
 it focus back. What for? Just disable it when enter is hit.


 The code you see is only isolation for demonstration of the problem. There
 is really code (call of sub) between disabling and enabling the control.
 It's not enough to just disable the control when I hit enter, because the
 program ask more input when it is done showing some data. Thus re-enabling.
 I think I added the focus because in some cases, the focus went to the
 control displaying the data (or somewhere else?).


 Jussi

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-15 Thread Benoît Minisini
Le 16/12/2014 03:29, Jussi Lahtinen a écrit :
 But there is no need to disable the control, re-enabling it, then giving
 it focus back. What for? Just disable it when enter is hit.


 The code you see is only isolation for demonstration of the problem. There
 is really code (call of sub) between disabling and enabling the control.
 It's not enough to just disable the control when I hit enter, because the
 program ask more input when it is done showing some data. Thus re-enabling.
 I think I added the focus because in some cases, the focus went to the
 control displaying the data (or somewhere else?).


 Jussi

I'm not clear enough: you should not have to disable and re-enabling a 
control inside an event handler, because you are not supposed to call 
event loop (WAIT time instruction) inside an event handler. If you 
don't call the event loop, then disabling then re-enabling is useless.

Regards,

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-15 Thread Jussi Lahtinen
 I'm not clear enough: you should not have to disable and re-enabling a
 control inside an event handler, because you are not supposed to call
 event loop (WAIT time instruction) inside an event handler. If you
 don't call the event loop, then disabling then re-enabling is useless.


OK, now I understand the issue... In fact the code showing the data uses
wait.
And it seems to work as expected in Qt4. But I understand how it may create
problems, while now it doesn't seem to.
So, I could replace wait with sleep and take of the enable/disable
code. However I like that the control goes gray when disabled... right now
I can't figure out nice solution for this.


Jussi
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-14 Thread Benoît Minisini
Le 14/12/2014 03:34, Jussi Lahtinen a écrit :
 Textbox's event is fired twice if the box is disabled, enabled and put in
 focus.
 See attachment.

 Everything work as expected with Qt4.


 Jussi


Not really. It behaves badly too with gb.qt4, but just less.

Disabling a control, then re-enabling it, then giving it focus back 
inside a keypress event is not a good idea.

I can prevent the event to be raised twice with GTK+, but it will still 
behave strangely.

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with GTK+

2014-12-14 Thread Jussi Lahtinen

 Disabling a control, then re-enabling it, then giving it focus back
 inside a keypress event is not a good idea.


The keypress event waits for enter key as sign of end of user input.
Then the idea is to disable user input while data is shown in other control.
This was first thing in my mind how to do it.


Jussi
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] bug on farm

2014-12-12 Thread Fabien Bodard
Install beast scroll ... open it ... try to launch (there is a bug on
firework.png) ... close it... remove from the farm installed...
reinstall ... give an error file already exist

-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] bug on farm

2014-12-12 Thread Benoît Minisini
Le 12/12/2014 22:03, Fabien Bodard a écrit :
 Install beast scroll ... open it ... try to launch (there is a bug on
 firework.png) ... close it... remove from the farm installed...
 reinstall ... give an error file already exist


It should work now with revision #6727.

I have a strange behaviour when displaying the softwares: the 
'GnuBoxWorld' example is far longer to appear than the other softwares. 
Do you have the same behaviour?

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] bug on farm

2014-12-12 Thread Fabien Bodard
2014-12-12 22:21 GMT+01:00 Benoît Minisini gam...@users.sourceforge.net:
 Le 12/12/2014 22:03, Fabien Bodard a écrit :
 Install beast scroll ... open it ... try to launch (there is a bug on
 firework.png) ... close it... remove from the farm installed...
 reinstall ... give an error file already exist


 It should work now with revision #6727.

 I have a strange behaviour when displaying the softwares: the
 'GnuBoxWorld' example is far longer to appear than the other softwares.
 Do you have the same behaviour?

yes i've this behaviour too... strange


 --
 Benoît Minisini

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] bug on farm

2014-12-12 Thread Fabien Bodard
and when you go to the app desc and then back the label remain empty.

i've an error on beastscroll ... see the attached screenshot.

2014-12-12 22:32 GMT+01:00 Fabien Bodard gambas...@gmail.com:
 2014-12-12 22:21 GMT+01:00 Benoît Minisini gam...@users.sourceforge.net:
 Le 12/12/2014 22:03, Fabien Bodard a écrit :
 Install beast scroll ... open it ... try to launch (there is a bug on
 firework.png) ... close it... remove from the farm installed...
 reinstall ... give an error file already exist


 It should work now with revision #6727.

 I have a strange behaviour when displaying the softwares: the
 'GnuBoxWorld' example is far longer to appear than the other softwares.
 Do you have the same behaviour?

 yes i've this behaviour too... strange


 --
 Benoît Minisini

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Fabien Bodard



-- 
Fabien Bodard
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] bug on farm

2014-12-12 Thread Benoît Minisini
Le 12/12/2014 22:36, Fabien Bodard a écrit :
 and when you go to the app desc and then back the label remain empty.

 i've an error on beastscroll ... see the attached screenshot.


Did you try to uninstall and reload the package? Anyway, the checksum is 
checked when downloading, so maybe there is a problem on your machine... 
Can you open the png file with a GTK+ program?

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] bug on farm

2014-12-12 Thread Fabien Bodard
frLe fichier est défectueux aussi bien dans les dossiers exemples
que dans la ferme !!... il faut un backup/fr



2014-12-12 22:54 GMT+01:00 Benoît Minisini gam...@users.sourceforge.net:
 Le 12/12/2014 22:36, Fabien Bodard a écrit :
 and when you go to the app desc and then back the label remain empty.

 i've an error on beastscroll ... see the attached screenshot.


 Did you try to uninstall and reload the package? Anyway, the checksum is
 checked when downloading, so maybe there is a problem on your machine...
 Can you open the png file with a GTK+ program?

 --
 Benoît Minisini

 --
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration  more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] bug on farm

2014-12-12 Thread Benoît Minisini
Le 12/12/2014 23:25, Fabien Bodard a écrit :
 frLe fichier est défectueux aussi bien dans les dossiers exemples
 que dans la ferme !!... il faut un backup/fr


It works perfectly there... Install, run, uninstall, re-install, run 
again. No problem.

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-12-11 Thread Benoît Minisini
Le 08/12/2014 01:45, T Lee Davidson a écrit :
 On 12/03/2014 04:05 PM, T Lee Davidson wrote:
 On 08/31/2014 07:54 AM, Willy Raets wrote:
 Hi all,

 Lee (also on this mailinglist) did some testing of an application of
 mine.
 He reported that when installing the rpm he had script errors.
 The application did install and had a menu entry, but no icon was
 present for the entry.

 When I run the .deb files on Mint icon are properly made for the distro
 menu entry.

 So the problem seems to be in the mageia package as made by the IDE.

 I believe, with the help of gbWilly who did testing on Linux Mint 13
 (which is based on Ubuntu 12.04), I have determined the cause of the
 script errors and the icon installation issue (and a temporary fix).

 The SPEC file generated by Gambas relies on build macros that may not be
 defined on a Ubuntu-based system. These macros are defined in
 '20build.macros' which, at least on Willy's system, does not exist.

 So, here is my suggestion to fix this, Benoît.

 In the SPEC file, define the _iconsdir, _miconsdir, and _liconsdir
 macros as follows:
 %define_iconsdir%{_datadir}/icons
 %define_miconsdir%{_datadir}/icons/mini
 %define_liconsdir%{_datadir}/icons/large

 Then, simply remove %{update_menus} and %{clean_menus}. They, on my
 system, expand to %{nil} anyway.

 I renamed '20build.macros' so these macros would not be available,
 modified a Gambas-generated package SPEC file as suggested above, and
 rebuilt the package. It built and installed with no errors and correctly
 attributed the application icon to the menu entry.


 If and until this is fixed in Gambas, I have attached a project file
 that users with Ubuntu-based systems may be able to use to fix their
 systems (ie. add the macro definitions) to facilitate making no-error
 RPM-based packages on their systems.

 Well I was mistaken. The project I created modifies the user's
 ~/.rpmmacros file to define the macros that are used by the Gambas
 packager. However, a look at the gambas3 Package.module shows that the
 ~./rpmmacros file is set aside during the packaging process.

 The project I attached won't fix anything. The required macros will need
 to be fully defined in the Package.module.



OK, it should be fixed in revision #6716.

Regards,

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-12-07 Thread T Lee Davidson
On 12/03/2014 04:05 PM, T Lee Davidson wrote:
 On 08/31/2014 07:54 AM, Willy Raets wrote:
 Hi all,

 Lee (also on this mailinglist) did some testing of an application of
 mine.
 He reported that when installing the rpm he had script errors.
 The application did install and had a menu entry, but no icon was
 present for the entry.

 When I run the .deb files on Mint icon are properly made for the distro
 menu entry.

 So the problem seems to be in the mageia package as made by the IDE.

 I believe, with the help of gbWilly who did testing on Linux Mint 13
 (which is based on Ubuntu 12.04), I have determined the cause of the
 script errors and the icon installation issue (and a temporary fix).

 The SPEC file generated by Gambas relies on build macros that may not be
 defined on a Ubuntu-based system. These macros are defined in
 '20build.macros' which, at least on Willy's system, does not exist.

 So, here is my suggestion to fix this, Benoît.

 In the SPEC file, define the _iconsdir, _miconsdir, and _liconsdir
 macros as follows:
 %define_iconsdir%{_datadir}/icons
 %define_miconsdir%{_datadir}/icons/mini
 %define_liconsdir%{_datadir}/icons/large

 Then, simply remove %{update_menus} and %{clean_menus}. They, on my
 system, expand to %{nil} anyway.

 I renamed '20build.macros' so these macros would not be available,
 modified a Gambas-generated package SPEC file as suggested above, and
 rebuilt the package. It built and installed with no errors and correctly
 attributed the application icon to the menu entry.


 If and until this is fixed in Gambas, I have attached a project file
 that users with Ubuntu-based systems may be able to use to fix their
 systems (ie. add the macro definitions) to facilitate making no-error
 RPM-based packages on their systems.

Well I was mistaken. The project I created modifies the user's 
~/.rpmmacros file to define the macros that are used by the Gambas 
packager. However, a look at the gambas3 Package.module shows that the 
~./rpmmacros file is set aside during the packaging process.

The project I attached won't fix anything. The required macros will need 
to be fully defined in the Package.module.


-- 
Lee
__

Artificial Intelligence is no match for natural stupidity.

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-12-03 Thread T Lee Davidson

On 08/31/2014 07:54 AM, Willy Raets wrote:

Hi all,

Lee (also on this mailinglist) did some testing of an application of
mine.
He reported that when installing the rpm he had script errors.
The application did install and had a menu entry, but no icon was
present for the entry.

When I run the .deb files on Mint icon are properly made for the distro
menu entry.

So the problem seems to be in the mageia package as made by the IDE.


I believe, with the help of gbWilly who did testing on Linux Mint 13 
(which is based on Ubuntu 12.04), I have determined the cause of the 
script errors and the icon installation issue (and a temporary fix).


The SPEC file generated by Gambas relies on build macros that may not be 
defined on a Ubuntu-based system. These macros are defined in 
'20build.macros' which, at least on Willy's system, does not exist.


So, here is my suggestion to fix this, Benoît.

In the SPEC file, define the _iconsdir, _miconsdir, and _liconsdir 
macros as follows:

%define _iconsdir   %{_datadir}/icons
%define _miconsdir  %{_datadir}/icons/mini
%define _liconsdir  %{_datadir}/icons/large

Then, simply remove %{update_menus} and %{clean_menus}. They, on my 
system, expand to %{nil} anyway.


I renamed '20build.macros' so these macros would not be available, 
modified a Gambas-generated package SPEC file as suggested above, and 
rebuilt the package. It built and installed with no errors and correctly 
attributed the application icon to the menu entry.



If and until this is fixed in Gambas, I have attached a project file 
that users with Ubuntu-based systems may be able to use to fix their 
systems (ie. add the macro definitions) to facilitate making no-error 
RPM-based packages on their systems.



--
Lee
__

Artificial Intelligence is no match for natural stupidity.


PackageBuildConfigurationTest-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] BUG: Settings.Keys (gb.settings)

2014-11-27 Thread Lewis Balentine
Reference: http://gambaswiki.org/wiki/comp/gb.settings/settings/keys

Settings.Keys (gb.settings)
Property Read Keys As _Settings_Keys
Return a virtual object used for enumerating all the keys used by the 
setting file.

Wrong: It returns a array of strings that are the Slot Names.

Key Definition: A value line, which is a Key=Value pair.
Slot Definition: A slot line, which begins with a [ character, and 
ends with a ] character.

Work-Around: The following function will return the key names.
'-
Public Function GetSettingsKeys(FileName As String) As String[]
   Dim AllKeys As New String[]
   Dim p As Integer
   Dim OneLine, C, SlotName As String
   Dim FileStream As Stream
   ' Well nuts! Settings.Keys returns a list of the slots rather than 
the keys.
   ' This function returns all the key in a array of Strings in the form
   ' SlotName/KeyName as used by the Settings read and Write functions.

   FileStream = Open FileName For Read
   While Not Eof(FileStream)
 Line Input #FileStream, OneLine
 OneLine = Trim(Oneline)
 If IsNull(OneLine) Then
   ' do nothing
 Else
   C = Left(OneLine, 1)
   Select Case C
 Case #, ; ' comment
   ' do nothing
 Case [  ' new slotname
   SlotName = Mid(Left(OneLine, InStr(OneLine, ]) - 1), 2)  /
 Case Else ' new key
   p = InStr(Oneline, =)
   If P  0 Then AllKeys.Add(SlotName  Trim(Left(OneLine, p - 1)))
   End Select
 End If
   Wend
   Close #FileStream
   Return AllKeys
End
'-

Example use:
Public Sub Button1_Click()  ' button labeled Test
   Dim S As String
   For Each S In GetSettingsKeys(TextBox1.Text)
 Print S
   Next
End
'-

cheers,

le...@keywild.com

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: Settings.Keys (gb.settings)

2014-11-27 Thread Tobias Boege
On Thu, 27 Nov 2014, Lewis Balentine wrote:
 Reference: http://gambaswiki.org/wiki/comp/gb.settings/settings/keys
 
 Settings.Keys (gb.settings)
 Property Read Keys As _Settings_Keys
 Return a virtual object used for enumerating all the keys used by the 
 setting file.
 
 Wrong: It returns a array of strings that are the Slot Names.
 

It's not an array, it's a _Settings_Keys object.

 Key Definition: A value line, which is a Key=Value pair.
 Slot Definition: A slot line, which begins with a [ character, and 
 ends with a ] character.
 

Hmm, I'd define them a little differently: a key is not a value line but
only the key part of a value line. Slot is not a slot line but the slot
line minus the brackets.

Now we have the nit-picking out of the way, I will say that you are right to
a degree. In the _Settings_Keys object you can enumerate the slot names. But
in the second iteration, if you have all the slot names, you can use
_Settings_Keys to enumerate all the keys under each slot which sums to all
the keys there are:

  Dim sSlot, sKey As String

  For Each sSlot In Settings.Keys
For Each sKey In Settings.Keys[sSlot]
  Print sSlot / sKey
Next
  Next

If I was to vote, I'd not change the documentation as _Settings_Keys
ultimately allows you to enumerate all the keys. Obviously (?) the keys
are namespaced using a slot, so to enumerate all the keys, it makes sense
to require that we go through the namespace level first.

Regards,
Tobi

-- 
There's an old saying: Don't change anything... ever! -- Mr. Monk

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: Settings.Keys (gb.settings)

2014-11-27 Thread Lewis Balentine
The definitions I was quoting are from the first page of the Wiki for 
gb.settings.

Property Read Keys As _Settings_Keys
Return a virtual object used for enumerating all the keys used by the 
setting file.

I tried several things (including Object) before I landed on String.
... oh and I did try the syntax Settings.keys(SlotName)

... Obviously (?) the keys are namespaced using a slot, so to enumerate 
all the keys ...
Well not so obvious to an old fart like me.

I think the Wiki could use a few more examples in some cases.
It seems a  lot of this stuff is based on C++ and OOP conventions.
I have done a little work in C (/make that darn little/) but most of 
it was some decades ago.
For those of us coming from the ancient VB6 world just providing the 
function
definition (/declaration ?/) leaves us a big short of explanation as how 
to proceed.
It tends to be a process of trial and error (/sometimes a lot of the 
latter/).

I will try your example a little later and see if it works.

Thank you for the insight,

Lewis

On 11/27/2014 12:16 PM, Tobias Boege wrote:
 Key Definition: A value line, which is a Key=Value pair.
 Slot Definition: A slot line, which begins with a [ character, and
 ends with a ] character.

 Hmm, I'd define them a little differently: a key is not a value line but
 only the key part of a value line. Slot is not a slot line but the slot
 line minus the brackets.

 ... you can use _Settings_Keys to enumerate all the keys under each slot 
 which sums to all
 the keys there are:

Dim sSlot, sKey As String

For Each sSlot In Settings.Keys
  For Each sKey In Settings.Keys[sSlot]
Print sSlot / sKey
  Next
Next

 If I was to vote, I'd not change the documentation as _Settings_Keys
 ultimately allows you to enumerate all the keys. Obviously (?) the keys
 are namespaced using a slot, so to enumerate all the keys, it makes sense
 to require that we go through the namespace level first.

 Regards,
 Tobi


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: Settings.Keys (gb.settings)

2014-11-27 Thread Lewis Balentine
It works like charm Tobi.
I added the example code to the Wiki.

...

   Dim sSlot, sKey As String

   For Each sSlot In Settings.Keys
 For Each sKey In Settings.Keys[sSlot]
   Print sSlot / sKey
 Next
   Next

If I was to vote, I'd not change the documentation as _Settings_Keys
ultimately allows you to enumerate all the keys. Obviously (?) the keys
are namespaced using a slot, so to enumerate all the keys, it makes sense
to require that we go through the namespace level first.

Regards,
Tobi




--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with IDE detach Tab

2014-11-17 Thread Benoît Minisini
Le 16/11/2014 03:42, B Bruen a écrit :

 If an IDE tab is detached and then reattached then if there are lines in the 
 file to wide to display there is no scroll bar.

 I'd raise an error report but I have mucked up my login credentials.

 regards
 Bruce


I don't have this problem. Please send a project that has that error, 
and tell me what to do to reproduce it.

Regards,

-- 
Benoît Minisini

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with IDE detach Tab

2014-11-17 Thread B Bruen
On Mon, 17 Nov 2014 18:40:04 +0100
Benoît Minisini gam...@users.sourceforge.net wrote:

 Le 16/11/2014 03:42, B Bruen a écrit :
 
  If an IDE tab is detached and then reattached then if there are lines in 
  the file to wide to display there is no scroll bar.
 
  I'd raise an error report but I have mucked up my login credentials.
 
  regards
  Bruce
 
 
 I don't have this problem. Please send a project that has that error, 
 and tell me what to do to reproduce it.
 
 Regards,
 
 -- 
 Benoît Minisini
 
 
Hmm. I updated to rev 6652 yesterday and now the problem has gone away.
The prior version was one of the interim revs from the 6.5.2 pre-release.
Sorry about the noise.
Bruce

-- 
B Bruen adamn...@gmail.com

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug with IDE detach Tab

2014-11-15 Thread B Bruen

If an IDE tab is detached and then reattached then if there are lines in the 
file to wide to display there is no scroll bar.

I'd raise an error report but I have mucked up my login credentials.

regards
Bruce

-- 
B Bruen adamn...@gmail.com

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-08-31 Thread Willy Raets
Hi all,

Lee (also on this mailinglist) did some testing of an application of
mine.
He reported that when installing the rpm he had script errors.
The application did install and had a menu entry, but no icon was
present for the entry.

When I run the .deb files on Mint icon are properly made for the distro
menu entry.

So the problem seems to be in the mageia package as made by the IDE.

This is what Lee reported back to me:

-
Running `rpm -Uvh earthshipcalc-1.0.91-1mga.noarch.rpm` as root gave me:

Preparing...  # 
[100%]
Updating / installing...
1:earthshipcalc-1.0.91-1mga
# 
[ 50%]
/var/tmp/rpm-tmp.p7FUo4: line 1: fg: no job control
warning: %post(earthshipcalc-1.0.91-1mga.noarch) scriptlet failed, exit 
status 1
Cleaning up / removing...
2:earthshipcalc-1.0.90-1mga
# 
[100%]
/var/tmp/rpm-tmp.lWAIDV: line 1: fg: no job control
warning: %postun(earthshipcalc-1.0.90-1mga.noarch) scriptlet failed, 
exit status 1


Version 1.0.90 was given a menu spot in Development-Tools. Version 
1.0.91 occupies a menu entry in Sciences which is appropriate. But, it 
still does not display its own custom icon.

I tried to find the icon with `locate Earthship` as root. I got the 
following lines at the top of the result:
/%{_iconsdir}/EarthshipCalc.png
/%{_liconsdir}/EarthshipCalc.png
/%{_miconsdir}/EarthshipCalc.png

And indeed, those directories (and the icon) are there in the system 
root directory. It seems something in the install script/process is not 
replacing those dynamic placeholders with their correct local values.
-

Some info on Lee his system:

- Architecture: i686
- Kernel: Linux
- Kernel release: 3.10.50-desktop-1.mga3
- Distribution: Mageia 3
- Distro Code name: thornicroft
- X Window Manager: KWin
- Desktop: KDE
- Gambas3 version: 3.5.4

Maybe Lee can add more info to this bug report.


-- 
Kind regards,

Willy (aka gbWilly)

http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org





--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-08-31 Thread Benoît Minisini
Le 31/08/2014 13:54, Willy Raets a écrit :
 Hi all,

 Lee (also on this mailinglist) did some testing of an application of
 mine.
 He reported that when installing the rpm he had script errors.
 The application did install and had a menu entry, but no icon was
 present for the entry.

 When I run the .deb files on Mint icon are properly made for the distro
 menu entry.

 So the problem seems to be in the mageia package as made by the IDE.

 This is what Lee reported back to me:

 -
 Running `rpm -Uvh earthshipcalc-1.0.91-1mga.noarch.rpm` as root gave me:

 Preparing...  #
 [100%]
 Updating / installing...
  1:earthshipcalc-1.0.91-1mga
 #
 [ 50%]
 /var/tmp/rpm-tmp.p7FUo4: line 1: fg: no job control
 warning: %post(earthshipcalc-1.0.91-1mga.noarch) scriptlet failed, exit
 status 1
 Cleaning up / removing...
  2:earthshipcalc-1.0.90-1mga
 #
 [100%]
 /var/tmp/rpm-tmp.lWAIDV: line 1: fg: no job control
 warning: %postun(earthshipcalc-1.0.90-1mga.noarch) scriptlet failed,
 exit status 1


 Version 1.0.90 was given a menu spot in Development-Tools. Version
 1.0.91 occupies a menu entry in Sciences which is appropriate. But, it
 still does not display its own custom icon.

 I tried to find the icon with `locate Earthship` as root. I got the
 following lines at the top of the result:
 /%{_iconsdir}/EarthshipCalc.png
 /%{_liconsdir}/EarthshipCalc.png
 /%{_miconsdir}/EarthshipCalc.png

 And indeed, those directories (and the icon) are there in the system
 root directory. It seems something in the install script/process is not
 replacing those dynamic placeholders with their correct local values.
 -

 Some info on Lee his system:

 - Architecture: i686
 - Kernel: Linux
 - Kernel release: 3.10.50-desktop-1.mga3
 - Distribution: Mageia 3
 - Distro Code name: thornicroft
 - X Window Manager: KWin
 - Desktop: KDE
 - Gambas3 version: 3.5.4

 Maybe Lee can add more info to this bug report.



Is it possible to have:

- The package you tried to install and that failed.

- A mageia package that installs one application with its icons and that 
works.

Thanks!

-- 
Benoît Minisini

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-08-31 Thread T Lee Davidson
I have attached a simple application package that properly installs the 
icon to /usr/share/icons and also properly displays the icon in the menu 
entry.


On a side note: This project is related to a message I just recently 
sent to the list about the editing shortcut keys and valueboxes. I am 
unsure if that message made it to the list.



Lee


On 08/31/2014 08:10 AM, Benoît Minisini wrote:

Is it possible to have:

- The package you tried to install and that failed.

- A mageia package that installs one application with its icons and that
works.

Thanks!

-- Benoît Minisini


editshortcuts-0.0.1-1mga.noarch.rpm
Description: application/rpm
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug in gambaswiki Mismatched markup

2014-07-02 Thread Jesus
Hi Benoît

There seems to be a bug in this page:

http://gambaswiki.org/wiki/doc/pcre

Regards
-- 
Jesus Guardon

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug/Anomalie in IDE

2014-06-17 Thread richard terry
Hi List, Benoit

Noticed that if I click on a line in the editor  select part of text  
use the Upper Case option on the menu, then the whole line is made upper 
case 3.5.3

regards

richard


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-28 Thread epost
Perhaps an example will show what I mean.

http://speedy.sh/bHjgE/PlayGround2-0.0.1.tar.gz

Run the application twice. First press the first and then the third button - 
this works. Second time, press all the buttons from top to bottom - this 
crashes.

If i understand well the error you must to add an void item before reparent
ant then remove the void item. So the child parent become a parent node
before the move 

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-28 Thread epost
Wait, do not downlad that file I pasted - somewhow this file sharing company 
converts it to exe... that's not good!

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-28 Thread epost
This was better:
http://sharesend.com/8vg8faml

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-27 Thread epost
In TreeView, if you reparent a key to be a child of a key that has the same 
name as the key you want to reparent, there's an error message saying: New 
parent can not be a child item. Renaming the item I want to reparent avoids 
the bug...

- Erik

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-27 Thread B Bruen
On Wed, 28 May 2014 03:36:02 +0200
ep...@joernerik.com wrote:

 In TreeView, if you reparent a key to be a child of a key that has the same 
 name as the key you want to reparent, there's an error message saying: New 
 parent can not be a child item. Renaming the item I want to reparent avoids 
 the bug...
 
 - Erik
 
Erik, 
I am afraid that this doesn't make a great deal of sense to me.  It sounds like 
you are trying to reparent a tree node as a child of itself? Are we having 
translation problems here?

- if you reparent a key No, we reparent a node (which has a unique key across 
the whole tree). So, if we presume you want to move a node identified by the 
key FRED1234 which currently has a parent-key of MARY2468 ...

- to be a child of a key Again, have to presume you mean move 
node[FRED1234] to be a child of node[some_key]

- that has the same name as the key you want to reparent sounds like you want 
to move node[FRED1234] to be a child of node[FRED1234]

- If New parent can not be a child item is really the error you get, then I 
can understand the confusion, a better message would be A node cannot be 
reparented to be a child of itself.

But I really don't understand the bit about  Renaming the item ... avoids the 
bug?

or have I missed the entire point (which is possible :-) )

bruce

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-27 Thread epost
OK! I meant node insted of key then :)

But, I think you misunderstood. Let me illustrate:

Fred123
   == Fred124
   == Fred124

All these have unique keys, but if I want to reparent one of the Fred124 to be 
a child of the other, I get the aforementioned error. However, if I rename 
Fred124 to Fred125, I am now allowed to reparent it to the other Fred124. 
Again, these are the names, not the keys, and to my understanding every node 
could have the exact same name/title/text and it shouldn't interfer with 
reparenting as long as you do not do something silly like trying to put a 
parent node into one of its child nodes.

Hope that made it a bit clearer :)

The final result should look like this:

Fred123
   == Fred124
   == Fred124

- Erik

Onsdag 28. mai 2014 12.42.59 skrev du:
 On Wed, 28 May 2014 03:36:02 +0200
 
 ep...@joernerik.com wrote:
  In TreeView, if you reparent a key to be a child of a key that has the
  same
  name as the key you want to reparent, there's an error message saying:
  New
  parent can not be a child item. Renaming the item I want to reparent
  avoids the bug...
  
  - Erik
 
 Erik,
 I am afraid that this doesn't make a great deal of sense to me.  It sounds
 like you are trying to reparent a tree node as a child of itself? Are we
 having translation problems here?
 
 - if you reparent a key No, we reparent a node (which has a unique key
 across the whole tree). So, if we presume you want to move a node
 identified by the key FRED1234 which currently has a parent-key of
 MARY2468 ...
 
 - to be a child of a key Again, have to presume you mean move
 node[FRED1234] to be a child of node[some_key]
 
 - that has the same name as the key you want to reparent sounds like you
 want to move node[FRED1234] to be a child of node[FRED1234]
 
 - If New parent can not be a child item is really the error you get, then
 I can understand the confusion, a better message would be A node cannot be
 reparented to be a child of itself.
 
 But I really don't understand the bit about  Renaming the item ... avoids
 the bug?
 
 or have I missed the entire point (which is possible :-) )
 
 bruce
ga

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG with the TreeView's new .item.Reparent()

2014-05-27 Thread Fabien Bodard
If i understand well the error you must to add an void item before reparent
ant then remove the void item. So the child parent become a parent node
before the move
Le 28 mai 2014 06:16, ep...@joernerik.com a écrit :

 OK! I meant node insted of key then :)

 But, I think you misunderstood. Let me illustrate:

 Fred123
== Fred124
== Fred124

 All these have unique keys, but if I want to reparent one of the Fred124
 to be
 a child of the other, I get the aforementioned error. However, if I rename
 Fred124 to Fred125, I am now allowed to reparent it to the other Fred124.
 Again, these are the names, not the keys, and to my understanding every
 node
 could have the exact same name/title/text and it shouldn't interfer with
 reparenting as long as you do not do something silly like trying to put a
 parent node into one of its child nodes.

 Hope that made it a bit clearer :)

 The final result should look like this:

 Fred123
== Fred124
== Fred124

 - Erik

 Onsdag 28. mai 2014 12.42.59 skrev du:
  On Wed, 28 May 2014 03:36:02 +0200
 
  ep...@joernerik.com wrote:
   In TreeView, if you reparent a key to be a child of a key that has the
   same
   name as the key you want to reparent, there's an error message saying:
   New
   parent can not be a child item. Renaming the item I want to reparent
   avoids the bug...
  
   - Erik
 
  Erik,
  I am afraid that this doesn't make a great deal of sense to me.  It
 sounds
  like you are trying to reparent a tree node as a child of itself? Are we
  having translation problems here?
 
  - if you reparent a key No, we reparent a node (which has a unique key
  across the whole tree). So, if we presume you want to move a node
  identified by the key FRED1234 which currently has a parent-key of
  MARY2468 ...
 
  - to be a child of a key Again, have to presume you mean move
  node[FRED1234] to be a child of node[some_key]
 
  - that has the same name as the key you want to reparent sounds like
 you
  want to move node[FRED1234] to be a child of node[FRED1234]
 
  - If New parent can not be a child item is really the error you get,
 then
  I can understand the confusion, a better message would be A node cannot
 be
  reparented to be a child of itself.
 
  But I really don't understand the bit about  Renaming the item ...
 avoids
  the bug?
 
  or have I missed the entire point (which is possible :-) )
 
  bruce
 ga


 --
 Time is money. Stop wasting it! Get your web API in 5 minutes.
 www.restlet.com/download
 http://p.sf.net/sfu/restlet
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG : IDE Crash when opening a Form in my Project

2014-05-08 Thread Benoît Minisini
Le 06/05/2014 08:36, Christian Fitzner a écrit :
 Hi,

 first, i want to say thank you for the great programming tool !


 Unfortunately I have a problem whith the IDE. When i open a Form then i
 get :

 CFamily.DrawIcon.260: Unable to load image

 The output of GB_STOCK=debug gambas3 :

 gb.form: init stock with application theme: ''
 gb.form: desktop is GNOME
 gb.form: add icon path: /usr/share/icons/gnome/1x1!2
 gb.form: add icon path: /usr/share/icons/hicolor/1x1!2
 gb.form: add icon path: stock/2
 CFamily.DrawIcon.260: Unable to load image
 1: CFamily.DrawIcon.260
 2: CFamily.EnterControl.177
 3: CFamilyForm.EnterControl.86
 4: FForm.CheckHovered.3883
 5: FForm.Form_Activate.3172
 *** Error in `/usr/bin/gambas3': munmap_chunk(): invalid pointer:
 0x047b796f ***
 Abgebrochen (Speicherabzug geschrieben)

 My System :

 [System]
 Gambas=3.5.90
 OperatingSystem=Linux
 Kernel=3.11.0-15-generic
 Architecture=x86_64
 Distribution=Ubuntu 14.04 LTS
 Desktop=GNOME
 Theme=QGtk
 Language=de_DE.UTF-8
 Memory=3010M
 [Libraries]
 Cairo=libcairo.so.2.11301.0
 Curl=libcurl.so.4.3.0
 DBus=libdbus-1.so.3.7.6
 GStreamer=libgstreamer-0.10.so.0.30.0
 GStreamer=libgstreamer-1.0.so.0.203.0
 GTK+3=libgtk-3.so.0.1000.8
 GTK+=libgtk-x11-2.0.so.0.2400.23
 OpenGL=libGL.so.1.2.0
 Poppler=libpoppler.so.43.0.0
 Poppler=libpoppler.so.44.0.0
 Qt4=libQtCore.so.4.8.6
 SDL=libSDL-1.2.so.0.11.4

 I attached a sample in this mail. The bad form is frmMain.

 Thank You and best wishes

 Christian Fitzner


This has been fixed in revision #6259.

Regards,

-- 
Benoît Minisini

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in WaveGenerator 3.5.90

2014-02-14 Thread Dominique Michel
Le Wed, 12 Feb 2014 20:19:31 +0100,
Dominique Michel dominique.mic...@vtxnet.ch a écrit :

In gnome-media, it is gstreamer-properties that can be used to setup
the default audio and video sinks. On my system, gconf is not
installed, but it create the keys in ~/.config/gconf and is able to use
them (if I close and restart it, I get my previous choice).

Unfortunately, it doesn't work with the wavegenerator, even when the
output sink is autoaudiosink. But maybe someone that have gconf on its
system will get a different result, I don't know.

 Le Wed, 12 Feb 2014 11:24:32 +0100,
 Fabien Bodard gambas...@gmail.com a écrit :
 
  2014-02-12 7:12 GMT+01:00 Dominique Michel
  dominique.mic...@vtxnet.ch:
   Le Wed, 12 Feb 2014 02:57:10 +0200,
   Jussi Lahtinen jussi.lahti...@gmail.com a écrit :
  
   OK, now it works. I'm getting these messages:
   Cannot connect to server socket err = No such file or directory
   Cannot connect to server request channel
   jack server is not running or cannot be started
  
   I really don't have jack installed, why it looks for it?
  
  
   Jussi
  
   This have nothing to do with Gambas and all with Gstreamer. Here I
   have jack running all the time, and if I use the autoaudiosink,
   gstreamer connect to alsa...
  
  But you need to this anybody... it is an example ... it is not
  only for your use.
 
 I know that. That was just to say Jussi is not the only one that have
 an issue with that auto sink, even if it work. 
 
 On my system, alsa and jack are interconnected with the jack pcm
 plugin in my .asoundrc, so I get the sound of both sound systems in
 jack.
 
 
  
  
   Dominique
  
  
  
   On Wed, Feb 12, 2014 at 2:43 AM, Benoît Minisini 
   gam...@users.sourceforge.net wrote:
  
Le 12/02/2014 01:37, Jussi Lahtinen a écrit :
 See attached pic. No further error messages, or warnings.

 Gambas 3 rev 6147 @ Xubuntu 13.10 64bit

 Jussi

   
Replace alsasink with autoaudiosink. I will commit that fix
later.
   
--
Benoît Minisini
   
   
--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start
now.
   
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
   
   --
   Android apps run on BlackBerry 10
   Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
   Now with support for Jelly Bean, Bluetooth, Mapview and more.
   Get your Android app in front of a whole new audience.  Start
   now.
   http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
   ___ Gambas-user
   mailing list Gambas-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/gambas-user
  
   --
   Android apps run on BlackBerry 10
   Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
   Now with support for Jelly Bean, Bluetooth, Mapview and more.
   Get your Android app in front of a whole new audience.  Start now.
   http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
   ___
   Gambas-user mailing list
   Gambas-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/gambas-user
  
  
  
 
 --
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.
 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in WaveGenerator 3.5.90

2014-02-12 Thread Fabien Bodard
2014-02-12 7:12 GMT+01:00 Dominique Michel dominique.mic...@vtxnet.ch:
 Le Wed, 12 Feb 2014 02:57:10 +0200,
 Jussi Lahtinen jussi.lahti...@gmail.com a écrit :

 OK, now it works. I'm getting these messages:
 Cannot connect to server socket err = No such file or directory
 Cannot connect to server request channel
 jack server is not running or cannot be started

 I really don't have jack installed, why it looks for it?


 Jussi

 This have nothing to do with Gambas and all with Gstreamer. Here I have
 jack running all the time, and if I use the autoaudiosink, gstreamer
 connect to alsa...

But you need to this for anybody... it is an example ... it is not
only for your use.


 Dominique



 On Wed, Feb 12, 2014 at 2:43 AM, Benoît Minisini 
 gam...@users.sourceforge.net wrote:

  Le 12/02/2014 01:37, Jussi Lahtinen a écrit :
   See attached pic. No further error messages, or warnings.
  
   Gambas 3 rev 6147 @ Xubuntu 13.10 64bit
  
   Jussi
  
 
  Replace alsasink with autoaudiosink. I will commit that fix
  later.
 
  --
  Benoît Minisini
 
 
  --
  Android apps run on BlackBerry 10
  Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
  Now with support for Jelly Bean, Bluetooth, Mapview and more.
  Get your Android app in front of a whole new audience.  Start now.
 
  http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 --
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.
 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 --
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.
 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in WaveGenerator 3.5.90

2014-02-12 Thread Dominique Michel
Le Wed, 12 Feb 2014 11:24:32 +0100,
Fabien Bodard gambas...@gmail.com a écrit :

 2014-02-12 7:12 GMT+01:00 Dominique Michel
 dominique.mic...@vtxnet.ch:
  Le Wed, 12 Feb 2014 02:57:10 +0200,
  Jussi Lahtinen jussi.lahti...@gmail.com a écrit :
 
  OK, now it works. I'm getting these messages:
  Cannot connect to server socket err = No such file or directory
  Cannot connect to server request channel
  jack server is not running or cannot be started
 
  I really don't have jack installed, why it looks for it?
 
 
  Jussi
 
  This have nothing to do with Gambas and all with Gstreamer. Here I
  have jack running all the time, and if I use the autoaudiosink,
  gstreamer connect to alsa...
 
 But you need to this anybody... it is an example ... it is not
 only for your use.

I know that. That was just to say Jussi is not the only one that have
an issue with that auto sink, even if it work. 

On my system, alsa and jack are interconnected with the jack pcm plugin
in my .asoundrc, so I get the sound of both sound systems in jack.


 
 
  Dominique
 
 
 
  On Wed, Feb 12, 2014 at 2:43 AM, Benoît Minisini 
  gam...@users.sourceforge.net wrote:
 
   Le 12/02/2014 01:37, Jussi Lahtinen a écrit :
See attached pic. No further error messages, or warnings.
   
Gambas 3 rev 6147 @ Xubuntu 13.10 64bit
   
Jussi
   
  
   Replace alsasink with autoaudiosink. I will commit that fix
   later.
  
   --
   Benoît Minisini
  
  
   --
   Android apps run on BlackBerry 10
   Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
   Now with support for Jelly Bean, Bluetooth, Mapview and more.
   Get your Android app in front of a whole new audience.  Start
   now.
  
   http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
   ___
   Gambas-user mailing list
   Gambas-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/gambas-user
  
  --
  Android apps run on BlackBerry 10
  Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
  Now with support for Jelly Bean, Bluetooth, Mapview and more.
  Get your Android app in front of a whole new audience.  Start now.
  http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
  --
  Android apps run on BlackBerry 10
  Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
  Now with support for Jelly Bean, Bluetooth, Mapview and more.
  Get your Android app in front of a whole new audience.  Start now.
  http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in WaveGenerator 3.5.90

2014-02-11 Thread Benoît Minisini
Le 12/02/2014 01:37, Jussi Lahtinen a écrit :
 See attached pic. No further error messages, or warnings.

 Gambas 3 rev 6147 @ Xubuntu 13.10 64bit

 Jussi


Replace alsasink with autoaudiosink. I will commit that fix later.

-- 
Benoît Minisini

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in WaveGenerator 3.5.90

2014-02-11 Thread Jussi Lahtinen
OK, now it works. I'm getting these messages:
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

I really don't have jack installed, why it looks for it?


Jussi


On Wed, Feb 12, 2014 at 2:43 AM, Benoît Minisini 
gam...@users.sourceforge.net wrote:

 Le 12/02/2014 01:37, Jussi Lahtinen a écrit :
  See attached pic. No further error messages, or warnings.
 
  Gambas 3 rev 6147 @ Xubuntu 13.10 64bit
 
  Jussi
 

 Replace alsasink with autoaudiosink. I will commit that fix later.

 --
 Benoît Minisini


 --
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.

 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in WaveGenerator 3.5.90

2014-02-11 Thread Dominique Michel
Le Wed, 12 Feb 2014 02:57:10 +0200,
Jussi Lahtinen jussi.lahti...@gmail.com a écrit :

 OK, now it works. I'm getting these messages:
 Cannot connect to server socket err = No such file or directory
 Cannot connect to server request channel
 jack server is not running or cannot be started
 
 I really don't have jack installed, why it looks for it?
 
 
 Jussi

This have nothing to do with Gambas and all with Gstreamer. Here I have
jack running all the time, and if I use the autoaudiosink, gstreamer
connect to alsa...

Dominique

 
 
 On Wed, Feb 12, 2014 at 2:43 AM, Benoît Minisini 
 gam...@users.sourceforge.net wrote:
 
  Le 12/02/2014 01:37, Jussi Lahtinen a écrit :
   See attached pic. No further error messages, or warnings.
  
   Gambas 3 rev 6147 @ Xubuntu 13.10 64bit
  
   Jussi
  
 
  Replace alsasink with autoaudiosink. I will commit that fix
  later.
 
  --
  Benoît Minisini
 
 
  --
  Android apps run on BlackBerry 10
  Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
  Now with support for Jelly Bean, Bluetooth, Mapview and more.
  Get your Android app in front of a whole new audience.  Start now.
 
  http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 --
 Android apps run on BlackBerry 10
 Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
 Now with support for Jelly Bean, Bluetooth, Mapview and more.
 Get your Android app in front of a whole new audience.  Start now.
 http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] bug ?

2014-02-05 Thread Shane
is this a bug ?

when I use -  Me.Parent.Width  I get a value as exspeced
but when I use  Me.Parent.X .Y  I get 0 when I expecting a value  0 
and the same with
 Me.Parent.ClientX .ClientY  etc

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-10 Thread Jussi Lahtinen
Hmmm... not sure I understood correctly. Why then it doesn't fail every
time?

Anyway, what I'm really trying to do is raise event (when signal arises
from another program), but wait until the system is IDLE. Here is the IDLE
detection code:

  Do
Exec [xprintidle] To sTmp
Sleep 0.25
  Loop Until CLong(Trim$(sTmp))  WaitIDLE Or bClosing = True

I don't know where to put it without causing problems. Also I don't know
any other proper IDLE detection method.


Jussi






On Tue, Dec 10, 2013 at 3:46 AM, Benoît Minisini 
gam...@users.sourceforge.net wrote:

 Le 08/12/2013 18:06, Jussi Lahtinen a écrit :
  See attached project. If event is raised something corrupts/event is
 missed.
 
 
  Jussi
 
 

 EXEC ... TO (and SHELL ... TO) calls the event loop, so by using it
 inside the Something event handler, you are calling the event loop
 recursively, and an inner Process_Read is called while the outer is not
 yet terminated.

 Just put a breakpoint on your What went wrong message and look at the
 stack backtrace.

 The first character is not yet added to Main.sWord, while all the inner
 Process_Read are called as the event is raised before, so that first
 character is missing when reaching the end test.

 Just put the Raise Something after adding the character to Main.sWord,
 for example.

 I can't help you more without knowing exactly what you want to achieve.

 --
 Benoît Minisini


 --
 Sponsored by Intel(R) XDK
 Develop, test and display web and hybrid apps with a single code base.
 Download it for free now!

 http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Jussi Lahtinen
Can someone try to reproduce this with other system?

Jussi


On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote:

 Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit.

 Jussi


 On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen 
 jussi.lahti...@gmail.comwrote:

 See attached project. If event is raised something corrupts/event is
 missed.


 Jussi



--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Tobias Boege
On Mon, 09 Dec 2013, Jussi Lahtinen wrote:
 Can someone try to reproduce this with other system?
 
 Jussi
 
 
 On Sun, Dec 8, 2013 at 7:18 PM, Jussi Lahtinen 
 jussi.lahti...@gmail.comwrote:
 
  Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit.
 
  Jussi
 
 
  On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen 
  jussi.lahti...@gmail.comwrote:
 
  See attached project. If event is raised something corrupts/event is
  missed.
 
 
  Jussi
 
 

Although I don't know what you expect me to report, I get exactly one line
asking what went wrong.

I attached a patch that fixes this without having to comment the Raise line
out. Seems like Raise is taken by the interpreter as an opportunity to
process pending events? I don't know.

Regards,
Tobi
diff -urNaX /tmp/gambas-patch-ignore a/.src/Class1.class b/.src/Class1.class
--- a/.src/Class1.class	2013-12-08 17:58:22.0 +0100
+++ b/.src/Class1.class	2013-12-09 19:28:47.0 +0100
@@ -26,7 +26,9 @@
 
 Inc iByteCount
 
+Object.Lock(hProcess)
 Raise Something() ''-- Disable this and everything works as expected.
+Object.Unlock(hProcess)
 Main.sWord = sStr
 
   End Select
--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Jussi Lahtinen
 Although I don't know what you expect me to report, I get exactly one line
 asking what went wrong.

 I attached a patch that fixes this without having to comment the Raise line
 out. Seems like Raise is taken by the interpreter as an opportunity to
 process pending events? I don't know.


Seems that your fix only makes the bug appear more rarely.
If you change Wait 0.1 to Wait 0.01, you will see that the
missing/extra characters appear randomly and more often.

What is your operating system?


Jussi
--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Tobias Boege
On Mon, 09 Dec 2013, Jussi Lahtinen wrote:
  Although I don't know what you expect me to report, I get exactly one line
  asking what went wrong.
 
  I attached a patch that fixes this without having to comment the Raise line
  out. Seems like Raise is taken by the interpreter as an opportunity to
  process pending events? I don't know.
 
 
 Seems that your fix only makes the bug appear more rarely.
 If you change Wait 0.1 to Wait 0.01, you will see that the
 missing/extra characters appear randomly and more often.
 

Confirm!

 What is your operating system?
 

Arch Linux.

--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-09 Thread Benoît Minisini
Le 08/12/2013 18:06, Jussi Lahtinen a écrit :
 See attached project. If event is raised something corrupts/event is missed.


 Jussi



EXEC ... TO (and SHELL ... TO) calls the event loop, so by using it 
inside the Something event handler, you are calling the event loop 
recursively, and an inner Process_Read is called while the outer is not 
yet terminated.

Just put a breakpoint on your What went wrong message and look at the 
stack backtrace.

The first character is not yet added to Main.sWord, while all the inner 
Process_Read are called as the event is raised before, so that first 
character is missing when reaching the end test.

Just put the Raise Something after adding the character to Main.sWord, 
for example.

I can't help you more without knowing exactly what you want to achieve.

-- 
Benoît Minisini

--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug with process events?

2013-12-08 Thread Jussi Lahtinen
See attached project. If event is raised something corrupts/event is missed.


Jussi


ProcessEventBug-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug with process events?

2013-12-08 Thread Jussi Lahtinen
Oh sorry, problem occurs with Gambas 3 rev 5988 on Xubuntu 13.04 64bit.

Jussi


On Sun, Dec 8, 2013 at 7:06 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote:

 See attached project. If event is raised something corrupts/event is
 missed.


 Jussi

--
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: A little error in Draw.FillStyle

2013-05-08 Thread Benoît Minisini
Le 07/05/2013 09:31, Fabien Bodard a écrit :
 Draw.Style isn't initialised to Style.None by Default.


Draw.Style is a virtual class, and Style.None does not exist. What are 
you talking about???

-- 
Benoît Minisini

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: A little error in Draw.FillStyle

2013-05-08 Thread Fabien Bodard
oups i talk about draw.fillstyle


2013/5/8 Benoît Minisini gam...@users.sourceforge.net

 Le 07/05/2013 09:31, Fabien Bodard a écrit :
  Draw.Style isn't initialised to Style.None by Default.
 

 Draw.Style is a virtual class, and Style.None does not exist. What are
 you talking about???

 --
 Benoît Minisini


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
Fabien Bodard
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: A little error in Draw.FillStyle

2013-05-08 Thread Benoît Minisini
Le 08/05/2013 13:11, Fabien Bodard a écrit :
 oups i talk about draw.fillstyle


It is initialized to zero, which is Fill.None. What value do you get?

-- 
Benoît Minisini

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: A little error in Draw.FillStyle

2013-05-08 Thread Fabien Bodard
oups forget that... it come from a forgotten mysticicous part of my code
that set fillstyle to cross... sorry


2013/5/8 Benoît Minisini gam...@users.sourceforge.net

 Le 08/05/2013 13:11, Fabien Bodard a écrit :
  oups i talk about draw.fillstyle
 

 It is initialized to zero, which is Fill.None. What value do you get?

 --
 Benoît Minisini


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
Fabien Bodard
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] BUG: A little error in Draw.FillStyle

2013-05-07 Thread Fabien Bodard
Draw.Style isn't initialised to Style.None by Default.

-- 
Fabien Bodard
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug using TASK object

2013-05-06 Thread Olivier Cruilles
Hi Benoit,

Forget my problem about TASK object. I think this not for my usage.

After many time trying different solutions about my problem of xcb_io.c, if I 
use TIMER to chain each step of the treatment
this bug appear mutch later but it alway appear.

So I completely forget TASK to solve my problem and use a different solution.

I'm disappointed about this bug because I was very happy to use TASK object, It 
was for me a great approach to treat many process in parallel.

Just for information, for 3 days of datas to be treated, I must execute over 
110 000 external commands.

Cordialement,

Olivier Cruilles
Mail: linu...@club-internet.fr

Le 4 mai 2013 à 16:19, Benoît Minisini gam...@users.sourceforge.net a écrit :

 Le 04/05/2013 12:33, Olivier Cruilles a écrit :
 Hi Benoit,
 
 I found that on internet. Does it help you or talk to you ?
 
 http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html
 
 Cordialement,
 
 Olivier Cruilles
 Mail: linu...@club-internet.fr
 
 
 Mmm... and so? If you want to use GUI things inside tasks, you can't, 
 that does not work.
 
 -- 
 Benoît Minisini
 
 --
 Get 100% visibility into Java/.NET code with AppDynamics Lite
 It's a free troubleshooting tool designed for production
 Get down to code-level detail for bottlenecks, with 2% overhead.
 Download for free and get started troubleshooting in minutes.
 http://p.sf.net/sfu/appdyn_d2d_ap2
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug using TASK object

2013-05-06 Thread Jussi Lahtinen
If you want to use GUI with every thread, you can make them separate
projects and start them with main project.
There are a lot of options how the projects can interact with each other,
depending on your needs.
File, pipe, DBus, ...

Jussi


On Mon, May 6, 2013 at 12:03 PM, Olivier Cruilles
linu...@club-internet.frwrote:

 Hi Benoit,

 Forget my problem about TASK object. I think this not for my usage.

 After many time trying different solutions about my problem of xcb_io.c,
 if I use TIMER to chain each step of the treatment
 this bug appear mutch later but it alway appear.

 So I completely forget TASK to solve my problem and use a different
 solution.

 I'm disappointed about this bug because I was very happy to use TASK
 object, It was for me a great approach to treat many process in parallel.

 Just for information, for 3 days of datas to be treated, I must execute
 over 110 000 external commands.

 Cordialement,

 Olivier Cruilles
 Mail: linu...@club-internet.fr

 Le 4 mai 2013 à 16:19, Benoît Minisini gam...@users.sourceforge.net a
 écrit :

  Le 04/05/2013 12:33, Olivier Cruilles a écrit :
  Hi Benoit,
 
  I found that on internet. Does it help you or talk to you ?
 
 
 http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html
 
  Cordialement,
 
  Olivier Cruilles
  Mail: linu...@club-internet.fr
 
 
  Mmm... and so? If you want to use GUI things inside tasks, you can't,
  that does not work.
 
  --
  Benoît Minisini
 
 
 --
  Get 100% visibility into Java/.NET code with AppDynamics Lite
  It's a free troubleshooting tool designed for production
  Get down to code-level detail for bottlenecks, with 2% overhead.
  Download for free and get started troubleshooting in minutes.
  http://p.sf.net/sfu/appdyn_d2d_ap2
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
 Get 100% visibility into your production application - at no cost.
 Code-level diagnostics for performance bottlenecks with 2% overhead
 Download for free and get started troubleshooting in minutes.
 http://p.sf.net/sfu/appdyn_d2d_ap1
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug using TASK object

2013-05-04 Thread Olivier Cruilles
Hi Benoit,

I found that on internet. Does it help you or talk to you ?

http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html

Cordialement,

Olivier Cruilles
Mail: linu...@club-internet.fr

Le 1 mai 2013 à 17:44, Olivier Cruilles linu...@club-internet.fr a écrit :

 gbx3: xcb_io.c :221 : poll_for_event:  L'assertion

--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug using TASK object

2013-05-04 Thread Benoît Minisini
Le 04/05/2013 12:33, Olivier Cruilles a écrit :
 Hi Benoit,

 I found that on internet. Does it help you or talk to you ?

 http://www.unix.com/programming/153046-fork-thread-assertion-failed-x11.html

 Cordialement,

 Olivier Cruilles
 Mail: linu...@club-internet.fr


Mmm... and so? If you want to use GUI things inside tasks, you can't, 
that does not work.

-- 
Benoît Minisini

--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug using TASK object

2013-05-03 Thread Benoît Minisini
Le 01/05/2013 17:44, Olivier Cruilles a écrit :
 Hi Benoit,

 I'm adding a part in my project witch use intensely TASK objects.

 I start the treatment of many files, analyzed by each TASK object.
 After sometime, this bug appear:

 gbx3: xcb_io.c :221 : poll_for_event:  L'assertion « (((long) 
 (event_sequence) - (long) (dpy-request)) = 0) » a échoué.

 I saw on internet that this bug is known but I can't not send you a little 
 project to reproduce this bug.

 So how can I give you informations to help you about this bug ?


No idea. This is a message for the libX11-xcb.so library, not Gambas.

-- 
Benoît Minisini

--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug using TASK object

2013-05-01 Thread Olivier Cruilles
Hi Benoit,

I'm adding a part in my project witch use intensely TASK objects.

I start the treatment of many files, analyzed by each TASK object.
After sometime, this bug appear:

gbx3: xcb_io.c :221 : poll_for_event:  L'assertion « (((long) (event_sequence) 
- (long) (dpy-request)) = 0) » a échoué.

I saw on internet that this bug is known but I can't not send you a little 
project to reproduce this bug.

So how can I give you informations to help you about this bug ?


informations système:

[System]
OperatingSystem=Linux
Kernel=2.6.35.14-106.fc14.i686
Architecture=i686
Memory=3354092 kB
DistributionVendor=redhat
DistributionRelease=Fedora release 14 (Laughlin)
Desktop=Gnome

[Gambas 3]
Version=3.3.4
Path=/usr/bin/gbx3

[Libraries]
Qt4=libQtCore.so.4.7.4
GTK+=libgtk-x11-2.0.so.0.2200.0

Thank's in advance

Cordialement,

Olivier Cruilles
Mail: linu...@club-internet.fr

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug or misuse of observer?

2013-03-02 Thread Jussi Lahtinen
 OK, the bug should be fixed in revision #5567.


Yes, it works as expected!
Thanks!

Jussi
--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug or misuse of observer?

2013-03-01 Thread Benoît Minisini
Le 26/02/2013 19:09, Benoît Minisini a écrit :
 Le 26/02/2013 18:56, Jussi Lahtinen a écrit :
 Can someone confirm?


 I confirm that it does not work as expected.

 BTW. Benoit is this email list still OK to send bug reports?
 Or do you prefer the actual bug tracker?

 Jussi


 Both are equal for me. But using the bug tracker allows people to search
 for bugs more easily.

 Regards,


OK, the bug should be fixed in revision #5567.

Regards,

-- 
Benoît Minisini

--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug or misuse of observer?

2013-02-26 Thread Jussi Lahtinen
Can someone confirm?

BTW. Benoit is this email list still OK to send bug reports?
Or do you prefer the actual bug tracker?

Jussi



On Sun, Feb 24, 2013 at 9:25 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote:

 Hi!
 Not sure if I use Observer correctly, or is there bug. Should observer
 deattached manually?

 See attachment.

 Steps to reproduce the problem:
 1. Run the project.
 2. Close both forms.
 3. You will see message.

 4. Run the project again.
 5. Click on the Signal button *two* times (ie send one extra signal which
 is not observed anymore).
 6. Close remaining form.

 7. Now the message wont appear (ie event is not executed correctly)!


 Gambas 3 revision 5554 @ Xubuntu 12.04 64 bit

 Jussi



--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug or misuse of observer?

2013-02-26 Thread Benoît Minisini
Le 26/02/2013 18:56, Jussi Lahtinen a écrit :
 Can someone confirm?


I confirm that it does not work as expected.

 BTW. Benoit is this email list still OK to send bug reports?
 Or do you prefer the actual bug tracker?

 Jussi


Both are equal for me. But using the bug tracker allows people to search 
for bugs more easily.

Regards,

-- 
Benoît Minisini

--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] BUG: A big convertion problem in gambas :

2013-02-25 Thread Fabien Bodard
Public Sub Form_Open()
Dim pf As New PointF


pf.x = 414235.32
Print pf.x


End



= 1202590843


???

Je comprend mieux pourquoi je n'avait aucun shapes sur ma carte :-)
Le problème est le même en utilisant explicitement cfloat...
-- 
Fabien Bodard
--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: A big convertion problem in gambas :

2013-02-25 Thread Benoît Minisini
Le 25/02/2013 17:38, Fabien Bodard a écrit :
 Public Sub Form_Open()
 Dim pf As New PointF


 pf.x = 414235.32
 Print pf.x


 End



 = 1202590843


 ???


This was a stupid copy  paste mistake, sorry for that!

It is fixed in revision #5566, and will be backported to Gambas 3.4.1 as 
soon as possible.

Regards,

-- 
Benoît Minisini

--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] BUG: A big convertion problem in gambas :

2013-02-25 Thread Fabien Bodard
thank you


2013/2/25 Benoît Minisini gam...@users.sourceforge.net

 Le 25/02/2013 17:38, Fabien Bodard a écrit :
  Public Sub Form_Open()
  Dim pf As New PointF
 
 
  pf.x = 414235.32
  Print pf.x
 
 
  End
 
 
 
  = 1202590843
 
 
  ???
 

 This was a stupid copy  paste mistake, sorry for that!

 It is fixed in revision #5566, and will be backported to Gambas 3.4.1 as
 soon as possible.

 Regards,

 --
 Benoît Minisini


 --
 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_feb
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
Fabien Bodard
--
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_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug or misuse of observer?

2013-02-24 Thread Jussi Lahtinen
Hi!
Not sure if I use Observer correctly, or is there bug. Should observer
deattached manually?

See attachment.

Steps to reproduce the problem:
1. Run the project.
2. Close both forms.
3. You will see message.

4. Run the project again.
5. Click on the Signal button *two* times (ie send one extra signal which
is not observed anymore).
6. Close remaining form.

7. Now the message wont appear (ie event is not executed correctly)!


Gambas 3 revision 5554 @ Xubuntu 12.04 64 bit

Jussi


ObserverProblem-0.0.1.tar.gz
Description: GNU Zip compressed data
--
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_feb___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Bug in Class File ?

2012-12-29 Thread Ru Vuott
Hello,

I created in /tmp a simple file, and I tried this code that I saw in 
documentation:

*
Public Sub Button1_Click()

Dim filePath As String
  
  Print * A standard type of path
  
   filePath = /tmp/a.txt

  Print filePath
  Print File.SetBaseName(filePath, new-name)

End


...but the name of file doesn't change: I find again a.txt in /tmp directory, 
not new-name.txt !

Is there a bug ?


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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug on MediaTagList with some files

2012-12-19 Thread Benoît Minisini
Le 16/12/2012 04:27, Adrien Prokopowicz a écrit :

 And in the IDE (I don't know either if this is a bug), when the Null
 object occurs into the declaration part of the class (or outside of any
 function/procedure), the balloon pops out somewhere inside the stack
 backtrace panel. (I first thought that the IDE itself was crashing ...)

 Regards,


This is fixed in revision #5452.

Regards,

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug on MediaTagList with some files

2012-12-16 Thread Benoît Minisini
Le 16/12/2012 04:27, Adrien Prokopowicz a écrit :
 Le Sat, 15 Dec 2012 22:42:29 -, Benoît Minisini
 gam...@users.sourceforge.net a écrit:

 Le 16/12/2012 00:34, Adrien Prokopowicz a écrit :
 Le Sat, 15 Dec 2012 22:09:31 -, Benoît Minisini
 gam...@users.sourceforge.net a écrit:

 Le 15/12/2012 15:46, Adrien Prokopowicz a écrit :
 Le Sat, 15 Dec 2012 02:28:13 -, Benoît Minisini
 gam...@users.sourceforge.net a écrit:

 Le 15/12/2012 03:28, Adrien Prokopowicz a écrit :
 Hi Benoît,

 I'm trying to get the tags on each audio file on my music library,
 but
 some files make the MediaTagList._get() function crash with the
 error
 No
 return value.

 As an example, you can try to open and play the following file with
 the
 MediaPlayer example :

 http://dl.free.fr/isvWMm7mq

 Regards,


 It should be fixed in revision #5436.

 Regards,


 It works for that file, but with another one I have a new error
 message
 now : Unsupported property datatype.

 Here is the file : http://dl.free.fr/niWYCQNM3

 Regards,


 Is it better with revision #5439?


 Much better, thanks. :-)

 Just a last little question on gb.media (I'm discovering GStreamer) :
 I'd
 like to get the tags of all the files in my music folder, and to store
 them into a compressed XML file, so that I won't have to fully rescan
 the
 folder each time I start my app.

 The only way I found to retreive the tags is to have a second
 MediaPlayer
 in background, to set its URL property and to call its Pause() method.
 When I see that the player has reached the Pause state (with the State
 event), I stop the player and then repeat the process for the next file.

 Do you know if there is a cleaner method (that doesn't open and close
 an
 audio stream for each file and make PulseAudio overloaded) ?

 Thanks in advance (and for your work). :-)

 Regards,


 The tags are emitted while the media is playing in GStreamer, so try to
 replace the audio output of the MediaPlayer by some GStreamer element
 that does nothing (look in the documentation, it must exist). That way,
 you won't send any sound anywhere.

 Otherwise I don't know if there is another way with GStreamer.

 Regards,


 Yes, that works much faster (with the fakesink element), thank you !
 Just a note : I can't create a MediaControl without a parent (it gives me
 a Null Object error) but the parent parameter is marked as optional. So as
 a workaround I have to create a dummy mediaplayer that will actually
 contain my fake output element.

Why don't you create the fakesink element directly into the MediaPlayer 
instead of using another one?


 And in the IDE (I don't know either if this is a bug), when the Null
 object occurs into the declaration part of the class (or outside of any
 function/procedure), the balloon pops out somewhere inside the stack
 backtrace panel. (I first thought that the IDE itself was crashing ...)

 Regards,


Do you have a screenshot ? Or send me a mail in french with more details...

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug on MediaTagList with some files

2012-12-15 Thread Adrien Prokopowicz
Le Sat, 15 Dec 2012 02:28:13 -, Benoît Minisini  
gam...@users.sourceforge.net a écrit:

 Le 15/12/2012 03:28, Adrien Prokopowicz a écrit :
 Hi Benoît,

 I'm trying to get the tags on each audio file on my music library, but
 some files make the MediaTagList._get() function crash with the error  
 No
 return value.

 As an example, you can try to open and play the following file with the
 MediaPlayer example :

 http://dl.free.fr/isvWMm7mq

 Regards,


 It should be fixed in revision #5436.

 Regards,


It works for that file, but with another one I have a new error message  
now : Unsupported property datatype.

Here is the file : http://dl.free.fr/niWYCQNM3

Regards,

-- 
Adrien Prokopowicz

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   4   5   >