From vuott at ...325... Sat Jun 1 01:17:34 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 1 Jun 2013 00:17:34 +0100 (BST) Subject: [Gambas-user] If Markdown comments of a component aren't visible in a project. Message-ID: <1370042254.16396.YahooMailClassic@...3065...> Hello, I wrote a component: "gb.midi", all in Gambas, for playing the Midi files. Well, for each of its properties and functions, I wrote a comment via "markdown". But when I call a gb.midi function or property in a project, those Markdown comments do not appear in respective popup guide. This shows text: "page not available." Where could be the error? Thanks vuott From gambas at ...1... Sat Jun 1 02:26:44 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 02:26:44 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> Message-ID: <51A93FC4.90400@...1...> Le 31/05/2013 23:54, Antonio S?nchez a ?crit : > What bothers is not only the fact that when I choose the white colour in > the IDE of GAMBAS, it appears orange, but the text, that instead of being > black, it's blur. It seems to have an onion layer on the grid. This was a Gambas 3.3 fixed in Gambas 3.4. Can you check your Gambas version by running "gbx3 -V" in a terminal? > > Could you watch the video-report about gb.gui and qt.gui? > https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1 I will look at it. -- Beno?t Minisini From gambas at ...1... Sat Jun 1 02:35:31 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 02:35:31 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A93FC4.90400@...1...> References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> Message-ID: <51A941D3.8020906@...1...> Le 01/06/2013 02:26, Beno?t Minisini a ?crit : > Le 31/05/2013 23:54, Antonio S?nchez a ?crit : >> What bothers is not only the fact that when I choose the white colour in >> the IDE of GAMBAS, it appears orange, but the text, that instead of being >> black, it's blur. It seems to have an onion layer on the grid. > > This was a Gambas 3.3 fixed in Gambas 3.4. Can you check your Gambas > version by running "gbx3 -V" in a terminal? > >> >> Could you watch the video-report about gb.gui and qt.gui? >> https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1 > > I will look at it. > OK, I saw it. As you are not using KDE, that annoying color may come from the Qt4 configuration that should have been automatically generated. Can you run the Qt4 configuration program to check the palette and show me what it is? On Ubuntu, you have to install the 'qt4-qtconfig' package and then run the 'qtconfig-qt4' program (ubuntu brain fuck...). -- Beno?t Minisini From introlinux at ...626... Sat Jun 1 09:18:41 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 1 Jun 2013 09:18:41 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A941D3.8020906@...1...> References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> Message-ID: Ok, I've just installed qtconfig-qt4. What exact information do you need? 2013/6/1 Beno?t Minisini > Le 01/06/2013 02:26, Beno?t Minisini a ?crit : > > Le 31/05/2013 23:54, Antonio S?nchez a ?crit : > >> What bothers is not only the fact that when I choose the white colour > in > >> the IDE of GAMBAS, it appears orange, but the text, that instead of > being > >> black, it's blur. It seems to have an onion layer on the grid. > > > > This was a Gambas 3.3 fixed in Gambas 3.4. Can you check your Gambas > > version by running "gbx3 -V" in a terminal? > > > >> > >> Could you watch the video-report about gb.gui and qt.gui? > >> https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1 > > > > I will look at it. > > > > OK, I saw it. As you are not using KDE, that annoying color may come > from the Qt4 configuration that should have been automatically generated. > > Can you run the Qt4 configuration program to check the palette and show > me what it is? On Ubuntu, you have to install the 'qt4-qtconfig' package > and then run the 'qtconfig-qt4' program (ubuntu brain fuck...). > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From introlinux at ...626... Sat Jun 1 09:29:01 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 1 Jun 2013 09:29:01 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> Message-ID: I can't found the palette default name or similar thing. I send you a screenshot. 2013/6/1 Antonio S?nchez > Ok, I've just installed qtconfig-qt4. What exact information do you need? > > > 2013/6/1 Beno?t Minisini > >> Le 01/06/2013 02:26, Beno?t Minisini a ?crit : >> > Le 31/05/2013 23:54, Antonio S?nchez a ?crit : >> >> What bothers is not only the fact that when I choose the white colour >> in >> >> the IDE of GAMBAS, it appears orange, but the text, that instead of >> being >> >> black, it's blur. It seems to have an onion layer on the grid. >> > >> > This was a Gambas 3.3 fixed in Gambas 3.4. Can you check your Gambas >> > version by running "gbx3 -V" in a terminal? >> > >> >> >> >> Could you watch the video-report about gb.gui and qt.gui? >> >> https://www.youtube.com/watch?v=hwDom_WBdCU&hd=1 >> > >> > I will look at it. >> > >> >> OK, I saw it. As you are not using KDE, that annoying color may come >> from the Qt4 configuration that should have been automatically generated. >> >> Can you run the Qt4 configuration program to check the palette and show >> me what it is? On Ubuntu, you have to install the 'qt4-qtconfig' package >> and then run the 'qtconfig-qt4' program (ubuntu brain fuck...). >> >> -- >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: qtconfig.jpg Type: image/jpeg Size: 259671 bytes Desc: not available URL: From gambas at ...2524... Sat Jun 1 10:33:20 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 01 Jun 2013 08:33:20 +0000 Subject: [Gambas-user] Issue 435 in gambas: Socket blocks events, timeout not used Message-ID: <0-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 435 by r... at ...1740...: Socket blocks events, timeout not used http://code.google.com/p/gambas/issues/detail?id=435 1) Describe the problem. Start Gambas3 ClientSocket example, and for host fill in an non-existing IP address, for example a private address from a range outside your own. For example 192.168.171.1 Bug #1: It's status stays on 'Looking up hostname' but it's past that part already. The app does a request in syn_sent state, but doesn't get a SYN_SENT back because the IP isn't reachable. $ netstat -an|grep 32340 tcp 0 1 192.168.178.80:50911 192.168.171.1:32340 SYN_SENT This is ok but then you have: Bug #2: The app freezes / socket works in non-async mode, stops and blocking all events (in my application this was what I saw...) Bug #3: And doesn't time out after the (default?) timeout of 10 sec, but after a minute or longer.. Even if you specify a shorter .Timeout, it doesn't use it. If you try this with Gambas2 ClientSocket example you see correctly 'Host Found. Connecting'... It times out after the (default?) of 10 seconds. And doesn't block the program, did try this with the ClientSocket example, but I know this from my own project. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5686 [System] OperatingSystem=Linux Kernel=3.8.0-22-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7954M [Libraries] Curl=libcurl.so.4.3.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Poppler=libpoppler.so.28.0.0 3) Provide a little project that reproduces the bug or the crash. See ClientSocket example. 4) If your project needs a database, try to provide it, or part of it. NA 5) Explain clearly how to reproduce the bug or the crash. See above 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ron at ...1740... Sat Jun 1 10:33:58 2013 From: ron at ...1740... (Ron) Date: Sat, 1 Jun 2013 10:33:58 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51A7A2DB.4060701@...1...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> Message-ID: Benoit, It seems to be a Gambas3 thing all along... not latest revisions... but I didn't see this until I specified a wrong IP address to connect too in my project. Also on the Raspberry Pi I saw this earlier, thinking... man that's a slow device, now I know Gambas socket blocks everything when a host cannot be reached.. I detected three bugs... and filled this bug report. https://code.google.com/p/gambas/issues/detail?id=435 Regards, Ron_2nd. 2013/5/30 Beno?t Minisini : > Le 30/05/2013 20:56, Ron a ?crit : >> Strange i updated two machines and they both hang at startup trying to >> connect to a tcp socket. >> Will downgrade tomorrow and try to isolate it. >> >> Regards, >> Ron_2nd > > Do you have the old revision number before the hang? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Jun 1 14:34:45 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 14:34:45 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> Message-ID: <51A9EA65.8080307@...1...> Le 01/06/2013 09:29, Antonio S?nchez a ?crit : > I can't found the palette default name or similar thing. I send you a > screenshot. > Did you click on the "Tune palette..." button? -- Beno?t Minisini From gambas at ...2524... Sat Jun 1 14:36:27 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 01 Jun 2013 12:36:27 +0000 Subject: [Gambas-user] Issue 434 in gambas: makan durian ker ? In-Reply-To: <0-6813199134517018827-4231180488678179895-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4231180488678179895-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4231180488678179895-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 434 by benoit.m... at ...626...: makan durian ker ? http://code.google.com/p/gambas/issues/detail?id=434 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From introlinux at ...626... Sat Jun 1 14:38:05 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 1 Jun 2013 14:38:05 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A9EA65.8080307@...1...> References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> <51A9EA65.8080307@...1...> Message-ID: Yes, but I don't know what I have to look for. Screenshot again. 2013/6/1 Beno?t Minisini > Le 01/06/2013 09:29, Antonio S?nchez a ?crit : > > I can't found the palette default name or similar thing. I send you a > > screenshot. > > > > Did you click on the "Tune palette..." button? > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: tune.png Type: image/png Size: 20819 bytes Desc: not available URL: From gambas at ...1... Sat Jun 1 14:55:26 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 14:55:26 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> <51A9EA65.8080307@...1...> Message-ID: <51A9EF3E.2020808@...1...> Le 01/06/2013 14:38, Antonio S?nchez a ?crit : > Yes, but I don't know what I have to look for. > Screenshot again. Qt works works with three color palettes (active, inactive, disabled). Each palette has a set of different colors for window background, window text, view background, view text, button background, button text, tooltip background, tooltip text, and few others). You must look from the orange color and see it if you find it by browsing the color roles combo-box (the one with the "Window" text in it). You can change the colors too to see if it has an effect. Or (quicker), send me your '~/.config/Trolltech.conf' file. -- Beno?t Minisini From introlinux at ...626... Sat Jun 1 14:59:30 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 1 Jun 2013 14:59:30 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A9EF3E.2020808@...1...> References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> <51A9EA65.8080307@...1...> <51A9EF3E.2020808@...1...> Message-ID: Here you are :-) 2013/6/1 Beno?t Minisini > Le 01/06/2013 14:38, Antonio S?nchez a ?crit : > > Yes, but I don't know what I have to look for. > > Screenshot again. > > Qt works works with three color palettes (active, inactive, disabled). > Each palette has a set of different colors for window background, window > text, view background, view text, button background, button text, > tooltip background, tooltip text, and few others). > > You must look from the orange color and see it if you find it by > browsing the color roles combo-box (the one with the "Window" text in > it). You can change the colors too to see if it has an effect. > > Or (quicker), send me your '~/.config/Trolltech.conf' file. > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: Trolltech.conf Type: application/octet-stream Size: 23797 bytes Desc: not available URL: From gambas at ...1... Sat Jun 1 15:04:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 15:04:22 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> <51A9EA65.8080307@...1...> <51A9EF3E.2020808@...1...> Message-ID: <51A9F156.8030002@...1...> Le 01/06/2013 14:59, Antonio S?nchez a ?crit : > Here you are :-) > Please send me the hexadecimal code of the light orange color you see in the GridView. -- Beno?t Minisini From gambas at ...2524... Sat Jun 1 15:38:04 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 01 Jun 2013 13:38:04 +0000 Subject: [Gambas-user] Issue 435 in gambas: Socket blocks events, timeout not used In-Reply-To: <0-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #1 on issue 435 by benoit.m... at ...626...: Socket blocks events, timeout not used http://code.google.com/p/gambas/issues/detail?id=435 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jun 1 15:39:04 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 01 Jun 2013 13:39:04 +0000 Subject: [Gambas-user] Issue 435 in gambas: Socket blocks events, timeout not used In-Reply-To: <1-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> <0-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16400179665065536234-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 435 by benoit.m... at ...626...: Socket blocks events, timeout not used http://code.google.com/p/gambas/issues/detail?id=435 It should be fixed in revision #5689 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Jun 1 15:41:11 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 15:41:11 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> Message-ID: <51A9F9F7.7070704@...1...> Le 01/06/2013 10:33, Ron a ?crit : > Benoit, > > It seems to be a Gambas3 thing all along... not latest revisions... > but I didn't see this until I specified a wrong IP address to connect > too in my project. > Also on the Raspberry Pi I saw this earlier, thinking... man that's a > slow device, now I know Gambas socket blocks everything when a host > cannot be reached.. > > I detected three bugs... and filled this bug report. > https://code.google.com/p/gambas/issues/detail?id=435 > > Regards, > Ron_2nd. > OK. It seems to be an old bad change. I fixed it in revision #5689. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jun 1 18:05:47 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 18:05:47 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <20130531183707.GA530@...2774...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> <51A8A8A1.9030401@...1...> <20130531183707.GA530@...2774...> Message-ID: <51AA1BDB.4080902@...1...> Le 31/05/2013 20:37, Tobias Boege a ?crit : > On Fri, 31 May 2013, Beno?t Minisini wrote: >> Hi, >> >> Ford anyone could test if gb.media (the gstreamer component) can be used >> to deal with V4L2 devices? >> >> There are gstreamer plugins for that: >> >> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html >> > > This is what I did: > > - Install and load that v4l2loopback because I have no webcam (/dev/video0 > is created) > - Install gst-plugins-good (with the v4l2 gstreamer plugin; this caused > minor confusion on Arch Linux because I installed the gstreamer-1.0 > packages instead of Gambas' 0.10 ones.) > - As per the wiki of v4l2loopback, execute: > $ gst-launch-0.10 videotestsrc ! v4l2sink device=/dev/video0 > which feeds /dev/video0 with sample data > - And execute: > $ gst-launch-0.10 v4l2src device=/dev/video0 ! xvimagesink > which displays the stuff properly. > > But now I can't get the Gambas part to work because I don't understand how > these things work. > > Regards, > Tobi > I know how to do the last part, but please tell me exactly how to activate that *@#%! v4l2loopback device. I didn't succeed in compiling the module on Ubuntu 13.04 with the information available on the internet. -- Beno?t Minisini From taboege at ...626... Sat Jun 1 18:14:45 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 1 Jun 2013 18:14:45 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51AA1BDB.4080902@...1...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> <51A8A8A1.9030401@...1...> <20130531183707.GA530@...2774...> <51AA1BDB.4080902@...1...> Message-ID: <20130601161445.GD519@...2774...> On Sat, 01 Jun 2013, Beno?t Minisini wrote: > Le 31/05/2013 20:37, Tobias Boege a ?crit : > > On Fri, 31 May 2013, Beno?t Minisini wrote: > >> Hi, > >> > >> Ford anyone could test if gb.media (the gstreamer component) can be used > >> to deal with V4L2 devices? > >> > >> There are gstreamer plugins for that: > >> > >> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html > >> > > > > This is what I did: > > > > - Install and load that v4l2loopback because I have no webcam (/dev/video0 > > is created) > > - Install gst-plugins-good (with the v4l2 gstreamer plugin; this caused > > minor confusion on Arch Linux because I installed the gstreamer-1.0 > > packages instead of Gambas' 0.10 ones.) > > - As per the wiki of v4l2loopback, execute: > > $ gst-launch-0.10 videotestsrc ! v4l2sink device=/dev/video0 > > which feeds /dev/video0 with sample data > > - And execute: > > $ gst-launch-0.10 v4l2src device=/dev/video0 ! xvimagesink > > which displays the stuff properly. > > > > But now I can't get the Gambas part to work because I don't understand how > > these things work. > > > > Regards, > > Tobi > > > > I know how to do the last part, but please tell me exactly how to > activate that *@#%! v4l2loopback device. > > I didn't succeed in compiling the module on Ubuntu 13.04 with the > information available on the internet. > It's a kernel module so you need to have the kernel headers installed to compile it: $ sudo apt-get install linux-headers-$(uname -r) Then clone the source code of v4l2loopback and install it: $ git clone https://github.com/umlaeute/v4l2loopback $ cd v4l2loopback $ make && sudo make install should do the rest. To load the module, issue $ sudo modprobe v4l2loopback and /dev/video0 should be created. Regards, Tobi From gambas at ...1... Sat Jun 1 18:23:17 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 18:23:17 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <20130601161445.GD519@...2774...> References: <51A7CF85.4090808@...1823...> <3683554.IBFUsYn7cG@...2592...> <51A89A25.9010008@...1...> <20130531132148.GC764@...2774...> <51A8A8A1.9030401@...1...> <20130531183707.GA530@...2774...> <51AA1BDB.4080902@...1...> <20130601161445.GD519@...2774...> Message-ID: <51AA1FF5.4010603@...1...> Le 01/06/2013 18:14, Tobias Boege a ?crit : > On Sat, 01 Jun 2013, Beno?t Minisini wrote: >> Le 31/05/2013 20:37, Tobias Boege a ?crit : >>> On Fri, 31 May 2013, Beno?t Minisini wrote: >>>> Hi, >>>> >>>> Ford anyone could test if gb.media (the gstreamer component) can be used >>>> to deal with V4L2 devices? >>>> >>>> There are gstreamer plugins for that: >>>> >>>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-plugin-video4linux2.html >>>> >>> >>> This is what I did: >>> >>> - Install and load that v4l2loopback because I have no webcam (/dev/video0 >>> is created) >>> - Install gst-plugins-good (with the v4l2 gstreamer plugin; this caused >>> minor confusion on Arch Linux because I installed the gstreamer-1.0 >>> packages instead of Gambas' 0.10 ones.) >>> - As per the wiki of v4l2loopback, execute: >>> $ gst-launch-0.10 videotestsrc ! v4l2sink device=/dev/video0 >>> which feeds /dev/video0 with sample data >>> - And execute: >>> $ gst-launch-0.10 v4l2src device=/dev/video0 ! xvimagesink >>> which displays the stuff properly. >>> >>> But now I can't get the Gambas part to work because I don't understand how >>> these things work. >>> >>> Regards, >>> Tobi >>> >> >> I know how to do the last part, but please tell me exactly how to >> activate that *@#%! v4l2loopback device. >> >> I didn't succeed in compiling the module on Ubuntu 13.04 with the >> information available on the internet. >> > > It's a kernel module so you need to have the kernel headers installed to > compile it: > > $ sudo apt-get install linux-headers-$(uname -r) > > Then clone the source code of v4l2loopback and install it: > > $ git clone https://github.com/umlaeute/v4l2loopback > $ cd v4l2loopback > $ make && sudo make install > > should do the rest. To load the module, issue > > $ sudo modprobe v4l2loopback > > and /dev/video0 should be created. > > Regards, > Tobi > I just tried to use the packages provided with Ubuntu, but no way to make them working... :-/ So let's go compiling the module by hand... -- Beno?t Minisini From gambas at ...1... Sat Jun 1 19:00:45 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 19:00:45 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51A7CF85.4090808@...1823...> References: <51A7CF85.4090808@...1823...> Message-ID: <51AA28BD.3080407@...1...> Le 31/05/2013 00:15, richard terry a ?crit : > I've asked about this before and wonder if anyone can help, as the web > cam is/was critical to my clinical practice as it is integrated with > EasyGP and I used to continually use it all day to do things ranging > from snapping the patient's photo for their file, to taking pictures of > skin lesions, rashes, etc etc, and inserting them directly into the notes. > > As previously mentioned this used to work on my old kubuntu 9 machine, > but no versions since eg 10/11/12 and now on Linux Mint ditto. > > Running the examples, or even my program does bring up the video image, > but as soon as the form closes the program dies, below is the terminal > printout. > > I can't believe I'm the only one in the world with this problem. > > I wonder if anyone else on the list could run the samples and report > back - give suggestions or guidance. > > Regards > > richard > Hi, Richard. Can you try to run the MediaPlayer example in revision #5691? I added a button (a camera) that displays the contents of the first video device (/dev/video0) instead of displaying the contents of a file. Tell me if it works for you. If it is ok, I will add brightness/color/contrast controls to the example. Then I will eventually write a webcam example based on gstreamer only. Regards, -- Beno?t Minisini From introlinux at ...626... Sat Jun 1 19:42:23 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sat, 1 Jun 2013 19:42:23 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: <51A9F156.8030002@...1...> References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> <51A9EA65.8080307@...1...> <51A9EF3E.2020808@...1...> <51A9F156.8030002@...1...> Message-ID: FFECC7, but I can't find it in Trolltech.conf. 2013/6/1 Beno?t Minisini > Le 01/06/2013 14:59, Antonio S?nchez a ?crit : > > Here you are :-) > > > > Please send me the hexadecimal code of the light orange color you see in > the GridView. > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Jun 1 21:40:58 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 1 Jun 2013 20:40:58 +0100 (BST) Subject: [Gambas-user] gb.media no longer exists after rev. 5691 ! Message-ID: <1370115658.17670.YahooMailClassic@...3063...> Hello Beno?t, after updating via SVN my Gambas with rev. #5691, at end of Configure -C, I obtained this notice: || || THESE COMPONENTS ARE DISABLED: || - gb.media || It seemed so strange to me, because it worked well before the latest updating. So I uninstalled and then reinstalled everything. After the complete reinstallation I checked the presence of the component gb.media, but it is no longer present there! In fact, with new Configure -C I obtain that notice again. I'ld like to specify that I possess libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev in my system. Regards. vuott From taboege at ...626... Sat Jun 1 21:41:27 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 1 Jun 2013 21:41:27 +0200 Subject: [Gambas-user] gb.media no longer exists after rev. 5691 ! In-Reply-To: <1370115658.17670.YahooMailClassic@...3063...> References: <1370115658.17670.YahooMailClassic@...3063...> Message-ID: <20130601194127.GF519@...2774...> On Sat, 01 Jun 2013, Ru Vuott wrote: > Hello Beno?t, > > after updating via SVN my Gambas with rev. #5691, at end of Configure -C, I obtained this notice: > > > || > || THESE COMPONENTS ARE DISABLED: > || - gb.media > || > > > It seemed so strange to me, because it worked well before the latest updating. > So I uninstalled and then reinstalled everything. > After the complete reinstallation I checked the presence of the component gb.media, but it is no longer present there! > In fact, with new Configure -C I obtain that notice again. > > I'ld like to specify that I possess > libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev > in my system. > You need the gstreamer 1.0 packages now. From vuott at ...325... Sat Jun 1 21:50:16 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 1 Jun 2013 20:50:16 +0100 (BST) Subject: [Gambas-user] gb.media no longer exists - BIS Message-ID: <1370116216.14483.YahooMailClassic@...3070...> In my previous post I wrote: > After the complete reinstallation I checked the presence of the component > gb.media, but it is no longer present there! Well, I would like to point out that the component "gb.media" is present in "Trunk" folder, but it doesn't exist in: /usr/lib/gambas3 vuott From vuott at ...325... Sat Jun 1 21:51:24 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 1 Jun 2013 20:51:24 +0100 (BST) Subject: [Gambas-user] gb.media no longer exists after rev. 5691 ! In-Reply-To: <20130601194127.GF519@...2774...> Message-ID: <1370116284.79931.YahooMailClassic@...3063...> > > You need the gstreamer 1.0 packages now. > > Ah, OK ! Thank you very much, Tobia. vuottt From gambas at ...1... Sat Jun 1 21:58:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 01 Jun 2013 21:58:46 +0200 Subject: [Gambas-user] gb.media no longer exists after rev. 5691 ! In-Reply-To: <1370116284.79931.YahooMailClassic@...3063...> References: <1370116284.79931.YahooMailClassic@...3063...> Message-ID: <51AA5276.6060707@...1...> Le 01/06/2013 21:51, Ru Vuott a ?crit : > >> >> You need the gstreamer 1.0 packages now. >> >> > > > Ah, OK ! Thank you very much, Tobia. > > vuottt > When compiling Gambas from /trunk, you should read all the subversion commit log of the subversion commit mailing-list to follow what happens. Otherwise you will have surprises like that! -- Beno?t Minisini From introlinux at ...626... Sun Jun 2 09:04:09 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sun, 2 Jun 2013 09:04:09 +0200 Subject: [Gambas-user] PYTHONPATH equivalent? In-Reply-To: References: <51A8FBCB.9000802@...1...> <51A9002C.4020402@...1...> <51A93FC4.90400@...1...> <51A941D3.8020906@...1...> <51A9EA65.8080307@...1...> <51A9EF3E.2020808@...1...> <51A9F156.8030002@...1...> Message-ID: Hi! Beno?t I have more datas. I run k3b, vlc, smplayer, tuxguitar and others programs all built with QT, and neither has the problem of the orange grid. Only programs made with gambas3.4.1 have this problem (and the own gambas). It works ok with gambas 3.3.4, and and you say that there was a bug related to this, it has to be something that has been overlooked correcting that bug. 2013/6/1 Antonio S?nchez > FFECC7, but I can't find it in Trolltech.conf. > > > > > 2013/6/1 Beno?t Minisini > >> Le 01/06/2013 14:59, Antonio S?nchez a ?crit : >> > Here you are :-) >> > >> >> Please send me the hexadecimal code of the light orange color you see in >> the GridView. >> >> -- >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From adrien.prokopowicz at ...626... Sun Jun 2 11:47:12 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 02 Jun 2013 11:47:12 +0200 Subject: [Gambas-user] gb.media : Crash when reading the MediaPlayer.ConnectionSpeed property Message-ID: Hi, Everything is in the title : simply reading the ConnectionSpeed of a MediaPlayer leads to a crash. It seems to happen everytime I try to read it, making the debugging of a MediaPlayer impossible... Simple project and its valgrind output attached (gdb doesn't say more about this ...). I also discovered another bug from the last revisions (doing MediaPlayer.Pause() when the player is stopped leads to a "Cannot set status" error), but I need this crash to be fixed first in order to debug and isolate this one. Regards, -- Adrien Prokopowicz -------------- next part -------------- A non-text attachment was scrubbed... Name: valgrind-out.tar.bz2 Type: application/bzip2 Size: 1052 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestMedia-0.0.1.tar.gz Type: application/x-gzip Size: 4621 bytes Desc: not available URL: From adrien.prokopowicz at ...626... Sun Jun 2 12:02:43 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 02 Jun 2013 12:02:43 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51AA28BD.3080407@...1...> References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> Message-ID: Le Sat, 01 Jun 2013 19:00:45 +0200, Beno?t Minisini a ?crit: > > Hi, Richard. > > Can you try to run the MediaPlayer example in revision #5691? > > I added a button (a camera) that displays the contents of the first > video device (/dev/video0) instead of displaying the contents of a file. > > Tell me if it works for you. If it is ok, I will add > brightness/color/contrast controls to the example. > > Then I will eventually write a webcam example based on gstreamer only. > > Regards, > Hi, I have a webcam, and reading from it works perfectly in the MediaPlayer example. However, now trying to open an audio file leads to a crash (not the same as the one I reported earlier). Valgrind and GDB outputs attached. Regards, -- Adrien Prokopowicz -------------- next part -------------- A non-text attachment was scrubbed... Name: debug.tar.bz2 Type: application/bzip2 Size: 2505 bytes Desc: not available URL: From adrien.prokopowicz at ...626... Sun Jun 2 16:00:19 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 02 Jun 2013 16:00:19 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> Message-ID: Le Sun, 02 Jun 2013 12:02:43 +0200, Adrien Prokopowicz a ?crit: > Le Sat, 01 Jun 2013 19:00:45 +0200, Beno?t Minisini > a ?crit: > >> >> Hi, Richard. >> >> Can you try to run the MediaPlayer example in revision #5691? >> >> I added a button (a camera) that displays the contents of the first >> video device (/dev/video0) instead of displaying the contents of a file. >> >> Tell me if it works for you. If it is ok, I will add >> brightness/color/contrast controls to the example. >> >> Then I will eventually write a webcam example based on gstreamer only. >> >> Regards, >> > > Hi, > > I have a webcam, and reading from it works perfectly in the MediaPlayer > example. > However, now trying to open an audio file leads to a crash (not the same > as the one I reported earlier). > Valgrind and GDB outputs attached. > > Regards, > I found out what was wrong : I hadn't the gst-plugins-bad and gst-plugins-ugly installed on my system (for the gstreamer-1.0 version), so the MP3 files could not be read by GStreamer. But the problem is not fixed, as I should get an error message instead of a wild crash. :/ -- Adrien Prokopowicz From adrien.prokopowicz at ...626... Sun Jun 2 16:02:30 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 02 Jun 2013 16:02:30 +0200 Subject: [Gambas-user] gb.media : Crash when reading the MediaPlayer.ConnectionSpeed property In-Reply-To: References: Message-ID: Le Sun, 02 Jun 2013 11:47:12 +0200, Adrien Prokopowicz a ?crit: > Hi, > > Everything is in the title : simply reading the ConnectionSpeed of a > MediaPlayer leads to a crash. > It seems to happen everytime I try to read it, making the debugging of a > MediaPlayer impossible... > Simple project and its valgrind output attached (gdb doesn't say more > about this ...). > > I also discovered another bug from the last revisions (doing > MediaPlayer.Pause() when the player is stopped leads to a "Cannot set > status" error), but I need this crash to be fixed first in order to > debug and isolate this one. > > Regards, > As I said in the other thread, I installed the bad & ugly plugins for GStreamer. That fixed the "Cannot set status" issue, but the ConnectionSpeed property still crashes. Regards, -- Adrien Prokopowicz From gambas at ...1... Sun Jun 2 16:19:05 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 02 Jun 2013 16:19:05 +0200 Subject: [Gambas-user] gb.media : Crash when reading the MediaPlayer.ConnectionSpeed property In-Reply-To: References: Message-ID: <51AB5459.80401@...1...> Le 02/06/2013 16:02, Adrien Prokopowicz a ?crit : > Le Sun, 02 Jun 2013 11:47:12 +0200, Adrien Prokopowicz > a ?crit: > >> Hi, >> >> Everything is in the title : simply reading the ConnectionSpeed of a >> MediaPlayer leads to a crash. >> It seems to happen everytime I try to read it, making the debugging of a >> MediaPlayer impossible... >> Simple project and its valgrind output attached (gdb doesn't say more >> about this ...). >> >> I also discovered another bug from the last revisions (doing >> MediaPlayer.Pause() when the player is stopped leads to a "Cannot set >> status" error), but I need this crash to be fixed first in order to >> debug and isolate this one. >> >> Regards, >> > > As I said in the other thread, I installed the bad & ugly plugins for > GStreamer. That fixed the "Cannot set status" issue, but the > ConnectionSpeed property still crashes. > > Regards, > It should be better with revision 5692. -- Beno?t Minisini From gambas at ...1... Sun Jun 2 16:23:58 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 02 Jun 2013 16:23:58 +0200 Subject: [Gambas-user] gb.media : Crash when reading the MediaPlayer.ConnectionSpeed property In-Reply-To: <51AB5459.80401@...1...> References: <51AB5459.80401@...1...> Message-ID: <51AB557E.7040309@...1...> Le 02/06/2013 16:19, Beno?t Minisini a ?crit : > Le 02/06/2013 16:02, Adrien Prokopowicz a ?crit : >> Le Sun, 02 Jun 2013 11:47:12 +0200, Adrien Prokopowicz >> a ?crit: >> >>> Hi, >>> >>> Everything is in the title : simply reading the ConnectionSpeed of a >>> MediaPlayer leads to a crash. >>> It seems to happen everytime I try to read it, making the debugging of a >>> MediaPlayer impossible... >>> Simple project and its valgrind output attached (gdb doesn't say more >>> about this ...). >>> >>> I also discovered another bug from the last revisions (doing >>> MediaPlayer.Pause() when the player is stopped leads to a "Cannot set >>> status" error), but I need this crash to be fixed first in order to >>> debug and isolate this one. >>> >>> Regards, >>> >> >> As I said in the other thread, I installed the bad & ugly plugins for >> GStreamer. That fixed the "Cannot set status" issue, but the >> ConnectionSpeed property still crashes. >> >> Regards, >> > > It should be better with revision 5692. > Mmm... Not perfect yet, I now have some crashes only when compiling with optimizations enabled... -- Beno?t Minisini From gambas at ...1... Sun Jun 2 16:35:17 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 02 Jun 2013 16:35:17 +0200 Subject: [Gambas-user] gb.media : Crash when reading the MediaPlayer.ConnectionSpeed property In-Reply-To: <51AB557E.7040309@...1...> References: <51AB5459.80401@...1...> <51AB557E.7040309@...1...> Message-ID: <51AB5825.5050906@...1...> Le 02/06/2013 16:23, Beno?t Minisini a ?crit : > Le 02/06/2013 16:19, Beno?t Minisini a ?crit : >> Le 02/06/2013 16:02, Adrien Prokopowicz a ?crit : >>> Le Sun, 02 Jun 2013 11:47:12 +0200, Adrien Prokopowicz >>> a ?crit: >>> >>>> Hi, >>>> >>>> Everything is in the title : simply reading the ConnectionSpeed of a >>>> MediaPlayer leads to a crash. >>>> It seems to happen everytime I try to read it, making the debugging >>>> of a >>>> MediaPlayer impossible... >>>> Simple project and its valgrind output attached (gdb doesn't say more >>>> about this ...). >>>> >>>> I also discovered another bug from the last revisions (doing >>>> MediaPlayer.Pause() when the player is stopped leads to a "Cannot set >>>> status" error), but I need this crash to be fixed first in order to >>>> debug and isolate this one. >>>> >>>> Regards, >>>> >>> >>> As I said in the other thread, I installed the bad & ugly plugins for >>> GStreamer. That fixed the "Cannot set status" issue, but the >>> ConnectionSpeed property still crashes. >>> >>> Regards, >>> >> >> It should be better with revision 5692. >> > > Mmm... Not perfect yet, I now have some crashes only when compiling with > optimizations enabled... > OK, this was the ConnectionSpeed bug. It should be fixed in revision #5693. Regards, -- Beno?t Minisini From ron at ...1740... Sun Jun 2 17:05:46 2013 From: ron at ...1740... (Ron) Date: Sun, 2 Jun 2013 17:05:46 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51A9F9F7.7070704@...1...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> Message-ID: Bug #1 and Bug #2 are fixed, thanks for that! The time it takes for Event_Error to trigger is still more than 2 minutes. I see that in ClientSocket there is a 10sec timer running which cuts the socket if still not connected. Is this the way it should be implemented, what about the TimeOut property it seems it doesn't work? Would be nice if users know after 10 secs that the socket is unable to connect, +2 minutes is too long... Regards, Ron. 2013/6/1 Beno?t Minisini : > Le 01/06/2013 10:33, Ron a ?crit : >> Benoit, >> >> It seems to be a Gambas3 thing all along... not latest revisions... >> but I didn't see this until I specified a wrong IP address to connect >> too in my project. >> Also on the Raspberry Pi I saw this earlier, thinking... man that's a >> slow device, now I know Gambas socket blocks everything when a host >> cannot be reached.. >> >> I detected three bugs... and filled this bug report. >> https://code.google.com/p/gambas/issues/detail?id=435 >> >> Regards, >> Ron_2nd. >> > > OK. It seems to be an old bad change. I fixed it in revision #5689. > > Regards, > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Sun Jun 2 17:20:37 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 2 Jun 2013 18:20:37 +0300 Subject: [Gambas-user] If Markdown comments of a component aren't visible in a project. In-Reply-To: <1370042254.16396.YahooMailClassic@...3065...> References: <1370042254.16396.YahooMailClassic@...3065...> Message-ID: I think documentation for components comes only from Gambas documentation pages ( http://www.gambasdoc.org ). Jussi On Sat, Jun 1, 2013 at 2:17 AM, Ru Vuott wrote: > Hello, > > I wrote a component: "gb.midi", all in Gambas, for playing the Midi files. > Well, for each of its properties and functions, I wrote a comment via > "markdown". > But when I call a gb.midi function or property in a project, those > Markdown comments do not appear in respective popup guide. This shows text: > "page not available." > > Where could be the error? > > Thanks > vuott > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sun Jun 2 17:22:41 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 2 Jun 2013 18:22:41 +0300 Subject: [Gambas-user] gb.media no longer exists - BIS In-Reply-To: <1370116216.14483.YahooMailClassic@...3070...> References: <1370116216.14483.YahooMailClassic@...3070...> Message-ID: Then you haven't compiled/installed it correctly. Jussi On Sat, Jun 1, 2013 at 10:50 PM, Ru Vuott wrote: > In my previous post I wrote: > > After the complete reinstallation I checked the presence of the component > > gb.media, but it is no longer present there! > > Well, I would like to point out that the component "gb.media" is present > in "Trunk" folder, but it doesn't exist in: /usr/lib/gambas3 > > > vuott > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Gambas at ...1950... Mon Jun 3 09:39:08 2013 From: Gambas at ...1950... (Caveat) Date: Mon, 03 Jun 2013 09:39:08 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> Message-ID: <51AC481C.6090807@...1950...> Strangely enough, I had a similar problem with sockets in python. Turned out that the problem was caused by setting the timeout value on a socket, *then* setting the blocking mode. It seems as if the underlying socket 'loses' the timeout value (I actually discovered it when creating a help function that showed the state of the socket) when you set the blocking mode. I was seeing the same symptoms as you, I had the timeout set (or so I thought!) to 10 seconds and the socket would take more than 2 minutes to time out... I presume under Gambas you have the same possibility to set 'blocking' sockets (synchronous) and 'non-blocking' (asynchronous) sockets and to set a user-defined timeout value. Please do try first setting the socket to blocking (synchronous) mode, THEN setting the timeout value! Kind regards, Caveat On 02/06/13 17:05, Ron wrote: > Bug #1 and Bug #2 are fixed, thanks for that! > > The time it takes for Event_Error to trigger is still more than 2 minutes. > I see that in ClientSocket there is a 10sec timer running which cuts > the socket if still not connected. > > Is this the way it should be implemented, what about the TimeOut > property it seems it doesn't work? > Would be nice if users know after 10 secs that the socket is unable to > connect, +2 minutes is too long... > > Regards, > Ron. > > 2013/6/1 Beno?t Minisini : >> Le 01/06/2013 10:33, Ron a ?crit : >>> Benoit, >>> >>> It seems to be a Gambas3 thing all along... not latest revisions... >>> but I didn't see this until I specified a wrong IP address to connect >>> too in my project. >>> Also on the Raspberry Pi I saw this earlier, thinking... man that's a >>> slow device, now I know Gambas socket blocks everything when a host >>> cannot be reached.. >>> >>> I detected three bugs... and filled this bug report. >>> https://code.google.com/p/gambas/issues/detail?id=435 >>> >>> Regards, >>> Ron_2nd. >>> >> OK. It seems to be an old bad change. I fixed it in revision #5689. >> >> Regards, >> >> -- >> 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Mon Jun 3 12:28:01 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 3 Jun 2013 11:28:01 +0100 (BST) Subject: [Gambas-user] If Markdown comments of a component aren't visible in a project. In-Reply-To: Message-ID: <1370255281.47768.YahooMailClassic@...3070...> > I think documentation for components > comes only from Gambas documentation > pages ( http://www.gambasdoc.org ). > > Jussi > Hello Jussi, I wrote this my question, because if I use libraries ".gambas", I can see "Markdown" comments in projects that loaded those libraries. So, if I this comment in my "library.gambas" : '' This is a markdown comment...... Public Function Eneidos() .... ..... Then, in a project, that loads my "library.gambas", if I wrote that function, I can see that comment in the popup guide. ...I thought it could get even with the Components. Bye vuott From gambas at ...2524... Mon Jun 3 16:14:55 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 03 Jun 2013 14:14:55 +0000 Subject: [Gambas-user] Issue 436 in gambas: IconView + "DEL" Key Cause ScrollArea_KeyPress.823 OutofBound Exception Message-ID: <0-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.1 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 436 by s... at ...3142...: IconView + "DEL" Key Cause ScrollArea_KeyPress.823 OutofBound Exception http://code.google.com/p/gambas/issues/detail?id=436 1) Describe the problem. IconView has outBound Error when press "DELETE" key 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.1 Revision: Operating system: Linux Distribution: Netrunner 12.10 Architecture: x86_64 GUI component: QT4 Desktop used: KDE 4.9.5 3) Provide a little project that reproduces the bug or the crash. Project attached. 4) If your project needs a database, try to provide it, or part of it. no DB 5) Explain clearly how to reproduce the bug or the crash. new a GUI project (qt4) with a single Form put IconView on the Window add 1 item (or any number of item) to IconView select last item in the view press "DEL" on keyboard 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: IconViewBug-0.0.1.tar.gz 10.7 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Mon Jun 3 16:17:32 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 3 Jun 2013 16:17:32 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> Message-ID: But there is always the problem of how to grab the cam picture and put it in the image stream, to be able to map it every where ... like in an ogl texture ? 2013/6/2 Adrien Prokopowicz > Le Sun, 02 Jun 2013 12:02:43 +0200, Adrien Prokopowicz > a ?crit: > > > Le Sat, 01 Jun 2013 19:00:45 +0200, Beno?t Minisini > > a ?crit: > > > >> > >> Hi, Richard. > >> > >> Can you try to run the MediaPlayer example in revision #5691? > >> > >> I added a button (a camera) that displays the contents of the first > >> video device (/dev/video0) instead of displaying the contents of a file. > >> > >> Tell me if it works for you. If it is ok, I will add > >> brightness/color/contrast controls to the example. > >> > >> Then I will eventually write a webcam example based on gstreamer only. > >> > >> Regards, > >> > > > > Hi, > > > > I have a webcam, and reading from it works perfectly in the MediaPlayer > > example. > > However, now trying to open an audio file leads to a crash (not the same > > as the one I reported earlier). > > Valgrind and GDB outputs attached. > > > > Regards, > > > > I found out what was wrong : I hadn't the gst-plugins-bad and > gst-plugins-ugly installed on my system (for the gstreamer-1.0 version), > so the MP3 files could not be read by GStreamer. > > But the problem is not fixed, as I should get an error message instead of > a wild crash. :/ > > -- > Adrien Prokopowicz > > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Mon Jun 3 19:50:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 03 Jun 2013 19:50:42 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> Message-ID: <51ACD772.7070900@...1...> Le 03/06/2013 16:17, Fabien Bodard a ?crit : > But there is always the problem of how to grab the cam picture and put it > in the image stream, to be able to map it every where ... like in an ogl > texture ? > It's on its way... -- Beno?t Minisini From gambas at ...1... Mon Jun 3 19:52:16 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 03 Jun 2013 19:52:16 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51ACD772.7070900@...1...> References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> <51ACD772.7070900@...1...> Message-ID: <51ACD7D0.6070005@...1...> Le 03/06/2013 19:50, Beno?t Minisini a ?crit : > Le 03/06/2013 16:17, Fabien Bodard a ?crit : >> But there is always the problem of how to grab the cam picture and put it >> in the image stream, to be able to map it every where ... like in an ogl >> texture ? >> > > It's on its way... > Here it is, in revision #5694. MediaPlayer.Video.Image is a new property that returns an Image of the current (or last) displayed frame. -- Beno?t Minisini From gambas at ...1... Mon Jun 3 20:38:10 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 03 Jun 2013 20:38:10 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51AC481C.6090807@...1950...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> <51AC481C.6090807@...1950...> Message-ID: <51ACE292.20509@...1...> Le 03/06/2013 09:39, Caveat a ?crit : > Strangely enough, I had a similar problem with sockets in python. > Turned out that the problem was caused by setting the timeout value on a > socket, *then* setting the blocking mode. It seems as if the underlying > socket 'loses' the timeout value (I actually discovered it when creating > a help function that showed the state of the socket) when you set the > blocking mode. > > I was seeing the same symptoms as you, I had the timeout set (or so I > thought!) to 10 seconds and the socket would take more than 2 minutes to > time out... > > I presume under Gambas you have the same possibility to set 'blocking' > sockets (synchronous) and 'non-blocking' (asynchronous) sockets and to > set a user-defined timeout value. > > Please do try first setting the socket to blocking (synchronous) mode, > THEN setting the timeout value! > > Kind regards, > Caveat > Huh, really? Weird! I will try to fix that... -- Beno?t Minisini From gambas at ...1... Mon Jun 3 21:14:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 03 Jun 2013 21:14:46 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> Message-ID: <51ACEB26.2000509@...1...> Le 02/06/2013 17:05, Ron a ?crit : > Bug #1 and Bug #2 are fixed, thanks for that! > > The time it takes for Event_Error to trigger is still more than 2 minutes. > I see that in ClientSocket there is a 10sec timer running which cuts > the socket if still not connected. > > Is this the way it should be implemented, what about the TimeOut > property it seems it doesn't work? > Would be nice if users know after 10 secs that the socket is unable to > connect, +2 minutes is too long... > > Regards, > Ron. > Hi Ron, I have implemented what Caveat told in revision #5696: the timeout is reset each time the blocking mode changes internally. Can you try it and tell me if it changes anything for you? -- Beno?t Minisini From denis at ...3091... Tue Jun 4 00:14:52 2013 From: denis at ...3091... (denisc) Date: Mon, 3 Jun 2013 15:14:52 -0700 (PDT) Subject: [Gambas-user] Fedora 17/18 Segmentation Faults Message-ID: <1370297692830-42186.post@...3046...> Hi guys, Before I start delving into core dumps and/or bothering Beno?t etc. Are there any known problems with Fedora 17 or 18? I continually get Segmentation Faults for no "apparent" reason BUT not always. Almost positive it's not Gambas. I've tried; Fedora 17: i3, 8gb ram -multiple kernels, latest 3.8.13-100.fc17.i686.PAE -multiple Gambas3, latest 5693 Fedora 18: vmware, 1gb ram, both i686 & 64bit -Gambas 5693 Example: "The program has stopped unexpectedly: Aborted (6)" or if I use the new static public method "Application_Error" "The program has stopped unexpectedly: Segmentation fault (11)" in both cases the console showed; loaded the Generic plugin FMain.pbParseWebpage_Click.133: no tables 5 FMain.pbParseWebpage_Click.140: count 1 FMain.pbParseWebpage_Click.140: count 2 FMain.pbParseWebpage_Click.140: count 3 FMain.pbParseWebpage_Click.140: count 4 FMain.pbParseWebpage_Click.140: count 5 FMain.pbParseWebpage_Click.152: finish ================================ *** glibc detected *** Scraping_05: double free or corruption (out): 0x09f18c20 *** ======= Backtrace: ========= /lib/libc.so.6[0x46c1c8c9] /lib/libstdc++.so.6(_ZdlPv+0x20)[0x47105ba0] /lib/libQtWebKit.so.4(_ZN11QWebElementD1Ev+0x25)[0x4bb66335] /usr/lib/gambas3/gb.qt4.webkit.so(+0x87d3)[0xb6c4c7d3] Scraping_05[0x8051a46] Scraping_05[0x80520e1] etc etc Note... After the line FMain.pbParseWebpage_Click.152: finish ================================ there is no more code, only the 'end' of the sub -- Regards Denis -- View this message in context: http://gambas.8142.n7.nabble.com/Fedora-17-18-Segmentation-Faults-tp42186.html Sent from the gambas-user mailing list archive at Nabble.com. From denis at ...3091... Tue Jun 4 00:03:13 2013 From: denis at ...3091... (Denis Crowther) Date: Tue, 04 Jun 2013 08:03:13 +1000 Subject: [Gambas-user] Fedora 17/18 Segmentation Faults Message-ID: <51AD12A1.8060904@...3091...> Hi guys, Before I start delving into core dumps and/or bothering Beno?t Minisini etc. Are there any known problems with Fedora 17 or 18? I continually get Segmentation Faults for no "apparent" reason BUT not always. Almost positive it's not Gambas. I've tried; Fedora 17: i3, 8gb ram -multiple kernels, latest 3.8.13-100.fc17.i686.PAE -multiple Gambas3, latest 5693 Fedora 18: vmware, 1gb ram, both i686 & 64bit -Gambas 5693 Example: Note... After the line FMain.pbParseWebpage_Click.152: finish ================================ there is no more code, only the 'end' of the sub "The program has stopped unexpectedly: Aborted (6)" or if I use the new static public method "Application_Error" "The program has stopped unexpectedly: Segmentation fault (11)" in both cases the console showed; loaded the Generic plugin FMain.pbParseWebpage_Click.133: no tables 5 FMain.pbParseWebpage_Click.140: count 1 FMain.pbParseWebpage_Click.140: count 2 FMain.pbParseWebpage_Click.140: count 3 FMain.pbParseWebpage_Click.140: count 4 FMain.pbParseWebpage_Click.140: count 5 FMain.pbParseWebpage_Click.152: finish ================================ *** glibc detected *** Scraping_05: double free or corruption (out): 0x09f18c20 *** ======= Backtrace: ========= /lib/libc.so.6[0x46c1c8c9] /lib/libstdc++.so.6(_ZdlPv+0x20)[0x47105ba0] /lib/libQtWebKit.so.4(_ZN11QWebElementD1Ev+0x25)[0x4bb66335] /usr/lib/gambas3/gb.qt4.webkit.so(+0x87d3)[0xb6c4c7d3] Scraping_05[0x8051a46] Scraping_05[0x80520e1] etc etc -- Regards Denis From ron at ...1740... Tue Jun 4 16:54:45 2013 From: ron at ...1740... (Ron) Date: Tue, 4 Jun 2013 16:54:45 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51ACEB26.2000509@...1...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> <51ACEB26.2000509@...1...> Message-ID: I tried it, without specifying .Blocking or .Timeout the _Error event is still triggered after +2 minutes. With specified .Timeout = 10 * 1000 (10secs) the same, after +2 minutes. When specifying .Blocking (either True or False) you get this directly when opening: Error: Stream is closed Regards, Ron_2nd. 2013/6/3 Beno?t Minisini : > Le 02/06/2013 17:05, Ron a ?crit : >> Bug #1 and Bug #2 are fixed, thanks for that! >> >> The time it takes for Event_Error to trigger is still more than 2 minutes. >> I see that in ClientSocket there is a 10sec timer running which cuts >> the socket if still not connected. >> >> Is this the way it should be implemented, what about the TimeOut >> property it seems it doesn't work? >> Would be nice if users know after 10 secs that the socket is unable to >> connect, +2 minutes is too long... >> >> Regards, >> Ron. >> > > Hi Ron, > > I have implemented what Caveat told in revision #5696: the timeout is > reset each time the blocking mode changes internally. > > Can you try it and tell me if it changes anything for you? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Tue Jun 4 19:17:48 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 4 Jun 2013 19:17:48 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: <51ACD7D0.6070005@...1...> References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> <51ACD772.7070900@...1...> <51ACD7D0.6070005@...1...> Message-ID: hooooo !!! so i can display a film on my cube ? 2013/6/3 Beno?t Minisini > Le 03/06/2013 19:50, Beno?t Minisini a ?crit : > > Le 03/06/2013 16:17, Fabien Bodard a ?crit : > >> But there is always the problem of how to grab the cam picture and put > it > >> in the image stream, to be able to map it every where ... like in an ogl > >> texture ? > >> > > > > It's on its way... > > > > Here it is, in revision #5694. > > MediaPlayer.Video.Image is a new property that returns an Image of the > current (or last) displayed frame. > > -- > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Tue Jun 4 20:31:41 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 04 Jun 2013 20:31:41 +0200 Subject: [Gambas-user] The WebCam Examples crash In-Reply-To: References: <51A7CF85.4090808@...1823...> <51AA28BD.3080407@...1...> <51ACD772.7070900@...1...> <51ACD7D0.6070005@...1...> Message-ID: <51AE328D.3040708@...1...> Le 04/06/2013 19:17, Fabien Bodard a ?crit : > hooooo !!! > so i can display a film on my cube ? > Maybe, but it will not be the fastest way, as that Image property creates a copy of the video screenshot data, that will be converted to an OpenGL texture, with another copy I guess. -- Beno?t Minisini From bbruen at ...2308... Wed Jun 5 02:45:27 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 05 Jun 2013 10:15:27 +0930 Subject: [Gambas-user] ValueBox (Date) detecting a change in the Value Message-ID: <1370393127.16071.15.camel@...2688...> (I must be having a senior moment!) I am using a ValueBox to allow the user to select a date which is a partial key for a database read. But, how can I detect that the user has altered the value and so initiate the db read? The full key consists of a string value from a preceding combobox control and the date from this control. So the overall logic I need to achieve is 1) cboVenue_LostFocus If the valDate.Value <> 0 then ReadDB(cboVenue.Current.Text, valDate.Value) otherwise valDate.SetFocus (this works fine) 2) valDate_??? If cboVenue.Current.Text then ReadDB(cboVenue.Current.Text, valDate.Value) otherwise cboVenue.SetFocus valDate_LostFocus fires if the user tabs from the ValueBox textbox into the button, at which point the date has not been set. The "dwgMonth" control (the calendar popup) does not seem to raise events. The user could enter the date as text in the ValueBox text area or use the calendar popup to select a date and either press the return key or double click the mouse. Both the latter result in the focus going back to the ValueBox text area. tia Bruce From gambas at ...1... Wed Jun 5 02:52:58 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 05 Jun 2013 02:52:58 +0200 Subject: [Gambas-user] ValueBox (Date) detecting a change in the Value In-Reply-To: <1370393127.16071.15.camel@...2688...> References: <1370393127.16071.15.camel@...2688...> Message-ID: <51AE8BEA.7010204@...1...> Le 05/06/2013 02:45, Bruce a ?crit : > (I must be having a senior moment!) > > I am using a ValueBox to allow the user to select a date which is a > partial key for a database read. But, how can I detect that the user has > altered the value and so initiate the db read? > > The full key consists of a string value from a preceding combobox > control and the date from this control. So the overall logic I need to > achieve is > 1) cboVenue_LostFocus > If the valDate.Value <> 0 then ReadDB(cboVenue.Current.Text, > valDate.Value) otherwise valDate.SetFocus (this works fine) > > 2) valDate_??? > If cboVenue.Current.Text then ReadDB(cboVenue.Current.Text, > valDate.Value) otherwise cboVenue.SetFocus > > valDate_LostFocus fires if the user tabs from the ValueBox textbox into > the button, at which point the date has not been set. > > The "dwgMonth" control (the calendar popup) does not seem to raise > events. > > The user could enter the date as text in the ValueBox text area or use > the calendar popup to select a date and either press the return key or > double click the mouse. Both the latter result in the focus going back > to the ValueBox text area. > > tia > Bruce > Mmm, I think you need ValueBox to raise sort of "Change" event, don't you? -- Beno?t Minisini From bbruen at ...2308... Wed Jun 5 03:18:27 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 05 Jun 2013 10:48:27 +0930 Subject: [Gambas-user] ValueBox (Date) detecting a change in the Value In-Reply-To: <51AE8BEA.7010204@...1...> References: <1370393127.16071.15.camel@...2688...> <51AE8BEA.7010204@...1...> Message-ID: <1370395107.16071.16.camel@...2688...> On Wed, 2013-06-05 at 02:52 +0200, Beno?t Minisini wrote: > Le 05/06/2013 02:45, Bruce a ?crit : > > (I must be having a senior moment!) > > > > I am using a ValueBox to allow the user to select a date which is a > > partial key for a database read. But, how can I detect that the user has > > altered the value and so initiate the db read? > > > > The full key consists of a string value from a preceding combobox > > control and the date from this control. So the overall logic I need to > > achieve is > > 1) cboVenue_LostFocus > > If the valDate.Value <> 0 then ReadDB(cboVenue.Current.Text, > > valDate.Value) otherwise valDate.SetFocus (this works fine) > > > > 2) valDate_??? > > If cboVenue.Current.Text then ReadDB(cboVenue.Current.Text, > > valDate.Value) otherwise cboVenue.SetFocus > > > > valDate_LostFocus fires if the user tabs from the ValueBox textbox into > > the button, at which point the date has not been set. > > > > The "dwgMonth" control (the calendar popup) does not seem to raise > > events. > > > > The user could enter the date as text in the ValueBox text area or use > > the calendar popup to select a date and either press the return key or > > double click the mouse. Both the latter result in the focus going back > > to the ValueBox text area. > > > > tia > > Bruce > > > > Mmm, I think you need ValueBox to raise sort of "Change" event, don't you? > Given the multiplicity of ways for the user to create a value, yes. B From ea7dfh at ...2382... Wed Jun 5 18:41:41 2013 From: ea7dfh at ...2382... (Jesus) Date: Wed, 05 Jun 2013 18:41:41 +0200 Subject: [Gambas-user] ValueBox (Date) detecting a change in the Value In-Reply-To: <51AE8BEA.7010204@...1...> References: <1370393127.16071.15.camel@...2688...> <51AE8BEA.7010204@...1...> Message-ID: <51AF6A45.9000008@...2382...> El 05/06/13 02:52, Beno?t Minisini escribi?: > > Mmm, I think you need ValueBox to raise sort of "Change" event, don't you? > That's something that someone else was waiting for ;-) Read the quote below. Regards Jesus Guardon > > > Le 10/03/2013 18:34, Jesus a ?crit : >> Hi all >> >> Since gambas2 I've not used Valuebox until now in Gambas3, but now I'm >> surprised it haven't a '_Change()' event. Anyone could tell about it, if >> you have got the need of this event or not? And how I supposedly could >> detect whether its content has changed? >> >> Of course, I always can inherit and implement a change event, but I was >> curious on why this widget lacks the change event natively. >> >> Thanks for your time >> >> Best regards >> > > Mmm... You're right, a Change event would be useful... I will see if I > can add it... > > As a workaround, you can create an observer on the first inner child of > the control to catch it. > > hObs = New Observer(TheValueBox.Children[0]) As "TheValueBox" > ... > Public Sub TheValueBox_Change() > ... > End > > But beware that you must do it just after having set the Type property > (because it recreates the inner widget each time you change the ValueBox > type). > > Regards, > > -- Beno?t Minisini -- Jesus Guardon From munix9 at ...1601... Thu Jun 6 11:09:59 2013 From: munix9 at ...1601... (munix9) Date: Thu, 06 Jun 2013 11:09:59 +0200 Subject: [Gambas-user] examples/MyWebCam and gambas 3.4.1 (gstreamer-0_10) Message-ID: <51B051E7.3090208@...1601...> hi, attached is a modified examples/MyWebCam which works with gambas 3.4.1 and gstreamer-0_10 (tested on openSUSE 12.3 with gstreamer 0.10.36) ciao paolo -------------- next part -------------- A non-text attachment was scrubbed... Name: MyWebCam-3.3.90.tar.gz Type: application/x-gzip Size: 19925 bytes Desc: not available URL: From shordi at ...626... Thu Jun 6 12:04:59 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 6 Jun 2013 12:04:59 +0200 Subject: [Gambas-user] About Client FTP Message-ID: Using the ClientFtp control I have a behavior that I don't know if its a bug o its somthing supposed to happen: When I use the exec method, it works fine, but after all comands in exec allways perform a CWD name-of-folder who fails an generate an error. Example: Exec(["CWD /personales/jorge", "rnfr gabinete.cfg", "rnto gaginsete.cfg"]) generates the following output in the console of Gambas: * About to connect() to the-ip-server port 21 (#0) * Trying the-ipserver... * connected < 220 (vsFTPd 2.3.5) > USER gabinete < 331 Please specify the password. > PASS thesecrectpassword < 230 Login successful. > PWD < 257 "/" * Entry path is '/' > CWD /personales/jorge/ < 250 Directory successfully changed. > rnfr gabinete.cfg < 350 Ready for RNTO. > rnto gabinsete.cfg < 250 Rename successful. > CWD personales <<<<-------This is the command who comes from nowhere!!! < 550 Failed to change directory. * Server denied you to change to the given directory * Connection #0 to host 84.127.229.244 left intact * Access denied to remote resource > QUIT < 221 Goodbye. * Closing connection #0 This makes very difficult to test if the operation has been successfull or failed. ?How can I prevent this behavior of FtpClient? Regards From gambas at ...2524... Thu Jun 6 12:43:29 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 06 Jun 2013 10:43:29 +0000 Subject: [Gambas-user] Issue 437 in gambas: Add Windows Code Explorer Message-ID: <0-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.4.0 Priority-Medium OpSys-Any Desktop-Any New issue 437 by torredel... at ...626...: Add Windows Code Explorer http://code.google.com/p/gambas/issues/detail?id=437 Add enhancement to Gambas Ide: I would like to request that you add the following enhancement: A Code Explorer window, like the image attached. Regards jsbsan Attachments: Code Explorer.PNG 25.6 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 6 19:31:56 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 06 Jun 2013 17:31:56 +0000 Subject: [Gambas-user] Issue 437 in gambas: Add Windows Code Explorer In-Reply-To: <0-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Comment #1 on issue 437 by torredel... at ...626...: Add Windows Code Explorer http://code.google.com/p/gambas/issues/detail?id=437 Note: The usefulness is that when you click on any item in the code editor appears the property / method / class / module where you pressed, code editing easier. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From mcturra2000 at ...370... Fri Jun 7 00:53:11 2013 From: mcturra2000 at ...370... (Mark Carter) Date: Thu, 6 Jun 2013 23:53:11 +0100 (BST) Subject: [Gambas-user] hi. Message-ID: <1370559191.73757.YahooMailNeo@...3143...> http://kamawet.pl/wiitq/sgj.php From Gambas at ...1950... Fri Jun 7 07:38:39 2013 From: Gambas at ...1950... (Caveat) Date: Fri, 07 Jun 2013 07:38:39 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51ACEB26.2000509@...1...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> <51ACEB26.2000509@...1...> Message-ID: <51B171DF.7090303@...1950...> Hmmm... well I've taken a quick glance at the source and the documentation (Shock news! Developer looks at documentation!!!) and it looks like it's less simple than we thought. When making a connection, it seems as if Gambas insists on using Blocking mode True internally, there is no storage or remembering of the original Blocking mode, so as far as I can see any setting of Blocking mode prior to making a connect is not going to be useful anyway. In fact, from reading the documentation of Gambas (http://gambasdoc.org/help/comp/gb.net/socket?v3), it looks like it's expected that all Socket comms will be be in non-Blocking (asynchronous) mode: "This class performs its work asynchronously, so the program will not be stopped while connecting, sending or receiving data. " Also it looks like the code relating to Blocking/non-Blocking is provided by the Stream class which Socket inherits. I think if we're going to make it possible for the user to specify whether they want Blocking or not, and by implication, set a Timeout value... it will need a little more work than just a tweak to call set_timeout whenever set_blocking is called... Kind regards, Caveat On 03/06/13 21:14, Beno?t Minisini wrote: > Le 02/06/2013 17:05, Ron a ?crit : >> Bug #1 and Bug #2 are fixed, thanks for that! >> >> The time it takes for Event_Error to trigger is still more than 2 minutes. >> I see that in ClientSocket there is a 10sec timer running which cuts >> the socket if still not connected. >> >> Is this the way it should be implemented, what about the TimeOut >> property it seems it doesn't work? >> Would be nice if users know after 10 secs that the socket is unable to >> connect, +2 minutes is too long... >> >> Regards, >> Ron. >> > Hi Ron, > > I have implemented what Caveat told in revision #5696: the timeout is > reset each time the blocking mode changes internally. > > Can you try it and tell me if it changes anything for you? > From abbat.81 at ...787... Fri Jun 7 08:25:12 2013 From: abbat.81 at ...787... (abbat81) Date: Thu, 6 Jun 2013 23:25:12 -0700 (PDT) Subject: [Gambas-user] Draw a form over OpenGL Message-ID: <1370586311874-42202.post@...3046...> I need to make some notification form. That form must be over any application running. Games too. I tried to make it to TopOnly in a Timer, but it's not helpfull. Is there any way to redraw a form? Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/Draw-a-form-over-OpenGL-tp42202.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Fri Jun 7 08:49:55 2013 From: ron at ...1740... (Ron) Date: Fri, 07 Jun 2013 08:49:55 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51B171DF.7090303@...1950...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> <51ACEB26.2000509@...1...> <51B171DF.7090303@...1950...> Message-ID: <51B18292.8020303@...1740...> Thanks. The blocking mode issue is not that bad, since I always want to use non-blocking mode anyway, my project is too big to be interupted by sockets. About the timeout I thought gambas2 did this correctly, but I'm not sure now, since the ClientSocket example uses a timer to remove Socket if it isn't connected in 10 seconds. Regards, Ron_2nd. > Hmmm... well I've taken a quick glance at the source and the > documentation (Shock news! Developer looks at documentation!!!) and it > looks like it's less simple than we thought. > > When making a connection, it seems as if Gambas insists on using > Blocking mode True internally, there is no storage or remembering of the > original Blocking mode, so as far as I can see any setting of Blocking > mode prior to making a connect is not going to be useful anyway. In > fact, from reading the documentation of Gambas > (http://gambasdoc.org/help/comp/gb.net/socket?v3), it looks like it's > expected that all Socket comms will be be in non-Blocking (asynchronous) > mode: > > "This class performs its work asynchronously, so the program will not be > stopped while connecting, sending or receiving data. " > > Also it looks like the code relating to Blocking/non-Blocking is > provided by the Stream class which Socket inherits. I think if we're > going to make it possible for the user to specify whether they want > Blocking or not, and by implication, set a Timeout value... it will need > a little more work than just a tweak to call set_timeout whenever > set_blocking is called... > > Kind regards, > Caveat > > On 03/06/13 21:14, Beno?t Minisini wrote: >> Le 02/06/2013 17:05, Ron a ?crit : >>> Bug #1 and Bug #2 are fixed, thanks for that! >>> >>> The time it takes for Event_Error to trigger is still more than 2 minutes. >>> I see that in ClientSocket there is a 10sec timer running which cuts >>> the socket if still not connected. >>> >>> Is this the way it should be implemented, what about the TimeOut >>> property it seems it doesn't work? >>> Would be nice if users know after 10 secs that the socket is unable to >>> connect, +2 minutes is too long... >>> >>> Regards, >>> Ron. >>> >> Hi Ron, >> >> I have implemented what Caveat told in revision #5696: the timeout is >> reset each time the blocking mode changes internally. >> >> Can you try it and tell me if it changes anything for you? >> > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Fri Jun 7 09:52:37 2013 From: ron at ...1740... (Ron) Date: Fri, 07 Jun 2013 09:52:37 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51B18292.8020303@...1740...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> <51ACEB26.2000509@...1...> <51B171DF.7090303@...1950...> <51B18292.8020303@...1740...> Message-ID: <51B19145.9040501@...1740...> I just checked, gambas2 didn't/doesn't respect timeout either in this case when a hiost cannot be reached. And reports after 2+ minutes. So it was always like this, maybe because of the fact that it was difficult to implement? Regards, Ron. > Thanks. > The blocking mode issue is not that bad, since I always want to use > non-blocking mode anyway, my project is too big to be interupted by > sockets. > > About the timeout I thought gambas2 did this correctly, but I'm not > sure now, since the ClientSocket example uses a timer to remove Socket > if it isn't connected in 10 seconds. > > Regards, > Ron_2nd. >> Hmmm... well I've taken a quick glance at the source and the >> documentation (Shock news! Developer looks at documentation!!!) and it >> looks like it's less simple than we thought. >> >> When making a connection, it seems as if Gambas insists on using >> Blocking mode True internally, there is no storage or remembering of the >> original Blocking mode, so as far as I can see any setting of Blocking >> mode prior to making a connect is not going to be useful anyway. In >> fact, from reading the documentation of Gambas >> (http://gambasdoc.org/help/comp/gb.net/socket?v3), it looks like it's >> expected that all Socket comms will be be in non-Blocking (asynchronous) >> mode: >> >> "This class performs its work asynchronously, so the program will not be >> stopped while connecting, sending or receiving data. " >> >> Also it looks like the code relating to Blocking/non-Blocking is >> provided by the Stream class which Socket inherits. I think if we're >> going to make it possible for the user to specify whether they want >> Blocking or not, and by implication, set a Timeout value... it will need >> a little more work than just a tweak to call set_timeout whenever >> set_blocking is called... >> >> Kind regards, >> Caveat >> >> On 03/06/13 21:14, Beno?t Minisini wrote: >>> Le 02/06/2013 17:05, Ron a ?crit : >>>> Bug #1 and Bug #2 are fixed, thanks for that! >>>> >>>> The time it takes for Event_Error to trigger is still more than 2 >>>> minutes. >>>> I see that in ClientSocket there is a 10sec timer running which cuts >>>> the socket if still not connected. >>>> >>>> Is this the way it should be implemented, what about the TimeOut >>>> property it seems it doesn't work? >>>> Would be nice if users know after 10 secs that the socket is unable to >>>> connect, +2 minutes is too long... >>>> >>>> Regards, >>>> Ron. >>>> >>> Hi Ron, >>> >>> I have implemented what Caveat told in revision #5696: the timeout is >>> reset each time the blocking mode changes internally. >>> >>> Can you try it and tell me if it changes anything for you? >>> >> >> ------------------------------------------------------------------------------ >> >> How ServiceNow helps IT people transform IT departments: >> 1. A cloud service to automate IT design, transition and operations >> 2. Dashboards that offer high-level views of enterprise services >> 3. A single system of record for all IT processes >> http://p.sf.net/sfu/servicenow-d2d-j >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Sat Jun 8 12:00:32 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 08 Jun 2013 10:00:32 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data Message-ID: <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 438 by r... at ...1740...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 1) Describe the problem. XMLRPC server and client communication is faulty because of a timing issue on certain systems. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK [System] OperatingSystem=Linux Kernel=3.8.0-23-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7954M [Libraries] Curl=libcurl.so.4.3.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 Poppler=libpoppler.so.28.0.0 3) Provide a little project that reproduces the bug or the crash. Difficult to reproduce, since it depends on speed of system and network. 4) If your project needs a database, try to provide it, or part of it. N/A. 5) Explain clearly how to reproduce the bug or the crash. It can be fixed by this workaround: Insert a Sleep 0.1 at the beginning of Socket_Read() in miniServer.module: ----- Public Sub Socket_Read() Dim Buf As String Dim sCad As String Dim Bucle As Integer Dim hS As Socket Sleep 0.1 For Bucle = 0 To hSocket.Count - 1 If hSocket[Bucle] = Last Then hS = Last Break End If Next ------ Maybe a better way is to check in Socket_Read for completeness of the received data and then proceed processing it. Can someone apply the patch? At least it fixes problems on a lot of systems. Read here for more background information: http://domotiga.nl/boards/1/topics/1700 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Jun 8 17:00:30 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 08 Jun 2013 17:00:30 +0200 Subject: [Gambas-user] Connect hang with latest revision In-Reply-To: <51B19145.9040501@...1740...> References: <51A79E47.6050607@...1...> <51A7A2DB.4060701@...1...> <51A9F9F7.7070704@...1...> <51ACEB26.2000509@...1...> <51B171DF.7090303@...1950...> <51B18292.8020303@...1740...> <51B19145.9040501@...1740...> Message-ID: <51B3470E.2040400@...1...> Le 07/06/2013 09:52, Ron a ?crit : > I just checked, gambas2 didn't/doesn't respect timeout either in this > case when a hiost cannot be reached. > And reports after 2+ minutes. > So it was always like this, maybe because of the fact that it was > difficult to implement? > > Regards, > Ron. > I have to fix the Socket.Blocking property that mixes up with the internal management of the socket which changes the blocking state of the socket. Anyway, I think that this timeout value may be valid for some states of the socket, but not all. I will check the internal call to DnsClient when connecting to the socket to see if there is a timeout too there. Regards, -- Beno?t Minisini From ihaywood at ...1979... Sun Jun 9 07:02:09 2013 From: ihaywood at ...1979... (Ian Haywood) Date: Sun, 9 Jun 2013 15:02:09 +1000 Subject: [Gambas-user] leaving .ShowDialog() via an exception can crash Qt Message-ID: this is a contrived example in which Window.ShowDialog generates an exception which is then caught by the calling code, this in turn makes Qt crash with signal 11 I enclose the gdb stacktrace. In my program I fixed it by catching and managing the error inside the form on which ShowModal is called, so ShowDialog returns an integer to signify the error condition, not an exception. Not sure whether this is worth fixing as it is admittedly a bizarre way of dealing with errors: would be good if it can be a gambas error instead of a signal 11 at least a warning in the docs that dialog boxes must manage their own exceptions Ian (gdb) run Starting program: /usr/bin/gbx3 "" [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". QCoreApplication::exec: The event loop is already running Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4aead54 in QEventLoop::exit(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (gdb) bt #0 0x00007ffff4aead54 in QEventLoop::exit(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #1 0x00007ffff5db13ac in ?? () from /usr/lib/gambas3/gb.qt4.so #2 0x00007ffff505f4ee in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #3 0x00007ffff500e894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #4 0x00007ffff5013713 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #5 0x00007ffff4aebe9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #6 0x00007ffff505924d in QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #7 0x00007ffff5dafb2f in ?? () from /usr/lib/gambas3/gb.qt4.so #8 0x00007ffff5db1293 in ?? () from /usr/lib/gambas3/gb.qt4.so #9 0x00007ffff5da65fc in ?? () from /usr/lib/gambas3/gb.qt4.so #10 0x00007ffff5da7048 in ?? () from /usr/lib/gambas3/gb.qt4.so #11 0x00000000004047eb in ?? () #12 0x00007ffff711776d in __libc_start_main (main=0x404189, argc=2, ubp_av=0x7fffffffe2d8, init=, fini=, rtld_fini=, stack_end=0x7fffffffe2c8) at libc-start.c:226 #13 0x00000000004048e9 in ?? () #14 0x00007fffffffe2c8 in ?? () #15 0x000000000000001c in ?? () #16 0x0000000000000002 in ?? () #17 0x0000000000665e50 in ?? () #18 0x00007fffffffe585 in ?? () #19 0x0000000000000000 in ?? () (gdb) quit -------------- next part -------------- A non-text attachment was scrubbed... Name: test-qt-crash-0.0.1.tar.gz Type: application/x-gzip Size: 5011 bytes Desc: not available URL: From gambas at ...2524... Sun Jun 9 23:02:05 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jun 2013 21:02:05 +0000 Subject: [Gambas-user] Issue 427 in gambas: gb.v4l2 and bt878 with video additional channels In-Reply-To: <1-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> <0-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Comment #2 on issue 427 by linuxfx.... at ...626...: gb.v4l2 and bt878 with video additional channels http://code.google.com/p/gambas/issues/detail?id=427 a channel is a video input. there boards Bt878 that have 16 video inputs, but the system only displays 4. eg: /dev/video0, /dev/video1, /dev/video2, /dev/video3. Programs such as mplayer, zoneminder and others can view other video inputs. The question is: It would be possible to implement the read of channels in gb.v4l2? Thank you. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 9 23:18:07 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jun 2013 21:18:07 +0000 Subject: [Gambas-user] Issue 427 in gambas: gb.v4l2 and bt878 with video additional channels In-Reply-To: <2-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> <0-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4544964015839853993-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #3 on issue 427 by benoit.m... at ...626...: gb.v4l2 and bt878 with video additional channels http://code.google.com/p/gambas/issues/detail?id=427 The gb.v4l component will be deprecated soon and replaced by gb.media, that has v4l2 support through gstreamer. Anyway, I didn't find yet if the v4l2src gstreamer plugin has support for selecting the channel. The MediaPlayer example has now a button to display the contents of /dev/video0 only. It will be enhanced later. I close the issue. If I forget to implement channel selection in gb.media (if it is possible of course), just tell me on the mailing-list or open a new issue! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 9 23:19:17 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jun 2013 21:19:17 +0000 Subject: [Gambas-user] Issue 436 in gambas: IconView + "DEL" Key Cause ScrollArea_KeyPress.823 OutofBound Exception In-Reply-To: <0-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> Updates: Labels: -Version-3.4.1 Version-3.4.0 Comment #1 on issue 436 by benoit.m... at ...626...: IconView + "DEL" Key Cause ScrollArea_KeyPress.823 OutofBound Exception http://code.google.com/p/gambas/issues/detail?id=436 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 9 23:20:17 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jun 2013 21:20:17 +0000 Subject: [Gambas-user] Issue 437 in gambas: Add Windows Code Explorer In-Reply-To: <1-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> <0-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Updates: Labels: Type-Enhancement Comment #2 on issue 437 by benoit.m... at ...626...: Add Windows Code Explorer http://code.google.com/p/gambas/issues/detail?id=437 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 9 23:21:17 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jun 2013 21:21:17 +0000 Subject: [Gambas-user] Issue 437 in gambas: Add Windows Code Explorer In-Reply-To: <2-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> <0-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1477046831407902484-gambas=googlecode.com@...2524...> Updates: Labels: GUI-Any Arch-Any Comment #3 on issue 437 by benoit.m... at ...626...: Add Windows Code Explorer http://code.google.com/p/gambas/issues/detail?id=437 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 9 23:38:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 09 Jun 2013 21:38:39 +0000 Subject: [Gambas-user] Issue 436 in gambas: IconView + "DEL" Key Cause ScrollArea_KeyPress.823 OutofBound Exception In-Reply-To: <1-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> <0-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3391587943369208557-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 436 by benoit.m... at ...626...: IconView + "DEL" Key Cause ScrollArea_KeyPress.823 OutofBound Exception http://code.google.com/p/gambas/issues/detail?id=436 Fixed in revision #5697 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jun 10 13:17:36 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 10 Jun 2013 11:17:36 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Comment #1 on issue 438 by uAle... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 I got a patch somewhere, which fixes this (i submitted it in a previous issue a while ago). My patch will wait until all data is received (according to the content-length) OR time-out after a few hunderd milliseconds. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jun 10 13:24:29 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 10 Jun 2013 11:24:29 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <1-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Comment #2 on issue 438 by r... at ...1740...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 That's a better solution of course! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From eficara at ...626... Mon Jun 10 19:13:39 2013 From: eficara at ...626... (robotop) Date: Mon, 10 Jun 2013 10:13:39 -0700 (PDT) Subject: [Gambas-user] Gambas2.7 on puppy linux: how to change TargetPort on UDP ? Message-ID: <1370884419191-42218.post@...3046...> Hello, I'm using Gambas2 for a very basic DNS server with limited features. There are no problems receiving packets on port 53 via UDP socket. The request is parsed and the answer is formed correctly and printed to a message window, then the UDP TargetHost is set with the contents of SourceHost and the TargetPort is set to 53; the problem is that the answer UDP packet is sent on a different port (typ. 1031..1044). It seems that the assignment UdpDnss.TargetPort = 53 is ignored; a confirmation is that if I read back the value of UdpDnss.TargetPort, the value read is different from 53 and, again, typically in the range 1031..1044). How can I change that port ? Is there a way to change the data directly accessing the memory buffer where the stream is stored ? How to simulate the varptr function that isn't present on gambas2 ? I can't upgrade my system to Gambas3, 'cause of lack of resources on my HW (miniITX board with CF disk) and no package available for Puppy Linux newer than 2.7 ; thank you in advance. I'll wait for your suggestions... -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas2-7-on-puppy-linux-how-to-change-TargetPort-on-UDP-tp42218.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Mon Jun 10 20:02:04 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 10 Jun 2013 20:02:04 +0200 Subject: [Gambas-user] Gambas3 on PuppyLinux Message-ID: <20130610180204.GA765@...2774...> Hi, a recent post here reminded me that I tried to help someone to compile Gambas3 on PuppyLinux. My first question is: if anyone has ever even heard of this distro (I haven't), has anybody yet succeeded in compiling the trunk on it? The whole systems makes a strange impression to me from what I read. I don't really want to bother with the details anyway. If there is no obvious solution I'll let him down :-) To clarify: we came very close to compiling the IDE but gb.qt4.* were still missing and the other guy couldn't find appropriate packages. It may even be lack of support for these libraries on PuppyLinux...? A related question is: has anybody ever compiled Gambas statically? Would that be possible? I mean: compile the components as shared libraries but link their dependencies statically into them. I know this is a dumb idea but it would be the last resort with all its error-proneness. Regards, Tobi From gambas at ...2524... Mon Jun 10 20:58:08 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 10 Jun 2013 18:58:08 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <2-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Comment #3 on issue 438 by uAle... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 I checked it, and it should have worked in http://code.google.com/p/gambas/issues/detail?id=380 In the "miniserver.class" (http://code.google.com/p/gambas/issues/attachmentText?id=380&aid=3800010000&name=miniServer.class&token=ypSB0mNtf59I_36wVsoe1JavMpA%3A1370890134526), i added the following code: For cCount = 1 to 100 step 1 cLen = Len(hBuffer[Bucle]) - InStr(hBuffer[Bucle], Chr(13) & Chr(10) & Chr(13) & Chr(10)) - 3 If cLen = hLen[Bucle] Then Break Wait 0.01 Next -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Tue Jun 11 06:51:04 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 11 Jun 2013 14:21:04 +0930 Subject: [Gambas-user] gnuplot ... any experienced users? Message-ID: <1370926264.18738.12.camel@...2688...> Rather than write a very lengthy post trying to describe a problem that I am having with embedding a gnuplot plot in a gambas panel I am just asking whether there are any people here that have some experience with gnuplot that I can converse with offline. (The problem is how to kill the gnuplot task when it is to be replaced by a new plot.) What the heck is all this about? gnuplot is a fairly wonderful thing that can create some fantastic plots. Much more than is possible with the gambas gb.chart component. I have written a gambas application that pulls some data from a db, creates a gnuplot data file and a gnuplot script to generate a nice little time series plot using splines, in addition the script embeds the plot in a panel in my form automagically! Specifically, the embedding is done by gnuplot, not by gambas. I just send it the X11 handle of the panel control. It all works 99.9% wonderfully, I just can't figure out how to fix that 0.1% which is ... when I want to generate a new plot using some different data how can I kill(?) the current gnuplot task that is generating/reacting to it's plot in the panel. Obscure? Yes. Any takers? ... please. Bruce From rterry at ...1823... Tue Jun 11 07:54:10 2013 From: rterry at ...1823... (richard terry) Date: Tue, 11 Jun 2013 15:54:10 +1000 Subject: [Gambas-user] gnuplot ... any experienced users? In-Reply-To: <1370926264.18738.12.camel@...2688...> References: <1370926264.18738.12.camel@...2688...> Message-ID: <51B6BB82.6060401@...1823...> On 11/06/13 14:51, Bruce wrote: > Rather than write a very lengthy post trying to describe a problem that > I am having with embedding a gnuplot plot in a gambas panel I am just > asking whether there are any people here that have some experience with > gnuplot that I can converse with offline. > > (The problem is how to kill the gnuplot task when it is to be replaced > by a new plot.) > > What the heck is all this about? > > gnuplot is a fairly wonderful thing that can create some fantastic > plots. Much more than is possible with the gambas gb.chart component. > I have written a gambas application that pulls some data from a db, > creates a gnuplot data file and a gnuplot script to generate a nice > little time series plot using splines, in addition the script embeds the > plot in a panel in my form automagically! Specifically, the embedding > is done by gnuplot, not by gambas. I just send it the X11 handle of the > panel control. > > It all works 99.9% wonderfully, I just can't figure out how to fix that > 0.1% which is ... when I want to generate a new plot using some > different data how can I kill(?) the current gnuplot task that is > generating/reacting to it's plot in the panel. Not sure how you are doing this - would be interested in details. I use this all day everyday generating graph after graph after graph for my patient clinical system. We took a simple method, pass the data to the engine using a process and it returns a filepath of the graph which is then displayed in a picturebox Works a charm, not sure if any of this is relevant to what you want. richard > Obscure? Yes. > > Any takers? ... please. > > Bruce > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From taboege at ...626... Tue Jun 11 10:06:09 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 11 Jun 2013 10:06:09 +0200 Subject: [Gambas-user] gnuplot ... any experienced users? In-Reply-To: <1370926264.18738.12.camel@...2688...> References: <1370926264.18738.12.camel@...2688...> Message-ID: <20130611080609.GA677@...2774...> On Tue, 11 Jun 2013, Bruce wrote: > Rather than write a very lengthy post trying to describe a problem that > I am having with embedding a gnuplot plot in a gambas panel I am just > asking whether there are any people here that have some experience with > gnuplot that I can converse with offline. > > (The problem is how to kill the gnuplot task when it is to be replaced > by a new plot.) > > What the heck is all this about? > > gnuplot is a fairly wonderful thing that can create some fantastic > plots. Much more than is possible with the gambas gb.chart component. > I have written a gambas application that pulls some data from a db, > creates a gnuplot data file and a gnuplot script to generate a nice > little time series plot using splines, in addition the script embeds the > plot in a panel in my form automagically! Specifically, the embedding > is done by gnuplot, not by gambas. I just send it the X11 handle of the > panel control. > > It all works 99.9% wonderfully, I just can't figure out how to fix that > 0.1% which is ... when I want to generate a new plot using some > different data how can I kill(?) the current gnuplot task that is > generating/reacting to it's plot in the panel. > > Obscure? Yes. > > Any takers? ... please. > Hmm, we once had a gnuplot GUI online at [0] but it seems that it's being reconstructed... Don't know if it supported what you asked for. Anyway, I attached a program that lets you plot different functions on a panel of your choice. Somewhere in this should be your solution, right? - in case you want to switch the panel: re-"set terminal ..." - in case you want to plot another function (or data file): re-"plot ..." The difficult part IMHO is actually to find out how to redirect the plot to an X11 handle :-) Regards, Tobi [0] http://www.gambas-buch.de/dw/doku.php?id=k21:k21.3:k21.3.6:start -------------- next part -------------- A non-text attachment was scrubbed... Name: gplot-0.0.2.tar.gz Type: application/octet-stream Size: 5703 bytes Desc: not available URL: From vuott at ...325... Tue Jun 11 16:50:40 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 11 Jun 2013 15:50:40 +0100 (BST) Subject: [Gambas-user] function that finds that value for which an expression = 0 Message-ID: <1370962240.22476.YahooMailClassic@...3070...> Hello, an our friend of italian Gmabs forum asks me to send to this Mailing list a question: ********************** I have an expression (example:+7*(x^3)+6*(x^2)-6*(x^1)+4*(x^0)) as expression (gb.eval) or string and I ask if you can find the value of x for which the expression = 0 ********************** Thanks vuott From taboege at ...626... Tue Jun 11 18:06:07 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 11 Jun 2013 18:06:07 +0200 Subject: [Gambas-user] function that finds that value for which an expression = 0 In-Reply-To: <1370962240.22476.YahooMailClassic@...3070...> References: <1370962240.22476.YahooMailClassic@...3070...> Message-ID: <20130611160607.GA1553@...2774...> On Tue, 11 Jun 2013, Ru Vuott wrote: > Hello, > > an our friend of italian Gmabs forum asks me to send to this Mailing list a question: > > ********************** > > I have an expression (example:+7*(x^3)+6*(x^2)-6*(x^1)+4*(x^0)) as expression (gb.eval) or string and I ask if you can find the value of x for which the expression = 0 > > ********************** > First of all: what is that for a kind of question? Of course can we find that x! It's near x = -1.60999. Next time he should google the result or let wolframalpha calculate it... I really detest doing this but: maybe I should guess a little more about what your question was meant to sound like... Do you want an algorithm to compute/approximate the root of a polynomial in Gambas? How about the bisection method? Sample project attached - which is far from ready to be used. It hangs with something like x^2-10. Guess why! :-) Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: root-0.0.1.tar.gz Type: application/octet-stream Size: 5007 bytes Desc: not available URL: From vuott at ...325... Tue Jun 11 18:27:44 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 11 Jun 2013 17:27:44 +0100 (BST) Subject: [Gambas-user] function that finds that value for which an expression = 0 In-Reply-To: <20130611160607.GA1553@...2774...> Message-ID: <1370968064.29762.YahooMailClassic@...3070...> Thank you, Tobi, I have sent your answer to our friend. bye vuotttt --- Mar 11/6/13, Tobias Boege ha scritto: > Da: Tobias Boege > Oggetto: Re: [Gambas-user] function that finds that value for which an expression = 0 > A: "mailing list for gambas users" > Data: Marted? 11 giugno 2013, 18:06 > On Tue, 11 Jun 2013, Ru Vuott wrote: > > Hello, > > > > an our friend of italian Gmabs forum asks me to send to > this Mailing list a question: > > > > ********************** > > > > I have an expression > (example:+7*(x^3)+6*(x^2)-6*(x^1)+4*(x^0)) as expression > (gb.eval) or string and I ask if you can find the value of x > for which the expression = 0 > > > > ********************** > > > > First of all: what is that for a kind of question? Of course > can we find > that x! It's near x = -1.60999. Next time he should google > the result or > let wolframalpha calculate it... > > I really detest doing this but: maybe I should guess a > little more about > what your question was meant to sound like... Do you want an > algorithm to > compute/approximate the root of a polynomial in Gambas? How > about the > bisection method? Sample project attached - which is far > from ready to be > used. It hangs with something like x^2-10. Guess why! :-) > > Regards, > Tobi > > -----Segue allegato----- > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > -----Segue allegato----- > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Tue Jun 11 18:53:00 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 11 Jun 2013 17:53:00 +0100 (BST) Subject: [Gambas-user] function that finds ... BIS In-Reply-To: <20130611160607.GA1553@...2774...> Message-ID: <1370969580.55034.YahooMailClassic@...3054...> Hello Tobi, our friend thanks you, however he said that he was referring to "Ruffini's rule". http://en.wikipedia.org/wiki/Ruffini%27s_rule bye vuott --- Mar 11/6/13, Tobias Boege ha scritto: > Da: Tobias Boege > Oggetto: Re: [Gambas-user] function that finds that value for which an expression = 0 > A: "mailing list for gambas users" > Data: Marted? 11 giugno 2013, 18:06 > On Tue, 11 Jun 2013, Ru Vuott wrote: > > Hello, > > > > an our friend of italian Gmabs forum asks me to send to > this Mailing list a question: > > > > ********************** > > > > I have an expression > (example:+7*(x^3)+6*(x^2)-6*(x^1)+4*(x^0)) as expression > (gb.eval) or string and I ask if you can find the value of x > for which the expression = 0 > > > > ********************** > > > > First of all: what is that for a kind of question? Of course > can we find > that x! It's near x = -1.60999. Next time he should google > the result or > let wolframalpha calculate it... > > I really detest doing this but: maybe I should guess a > little more about > what your question was meant to sound like... Do you want an > algorithm to > compute/approximate the root of a polynomial in Gambas? How > about the > bisection method? Sample project attached - which is far > from ready to be > used. It hangs with something like x^2-10. Guess why! :-) > > Regards, > Tobi > > -----Segue allegato----- > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > -----Segue allegato----- > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jun 11 19:57:18 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 11 Jun 2013 19:57:18 +0200 Subject: [Gambas-user] function that finds ... BIS In-Reply-To: <1370969580.55034.YahooMailClassic@...3054...> References: <1370969580.55034.YahooMailClassic@...3054...> Message-ID: <51B764FE.8010002@...1...> Le 11/06/2013 18:53, Ru Vuott a ?crit : > Hello Tobi, > > our friend thanks you, however he said that he was referring to "Ruffini's rule". > > http://en.wikipedia.org/wiki/Ruffini%27s_rule > > bye > vuott > In Gambas 3, you can use the gb.gsl component and its 'Polynomial' class for that. For example, to solve '7*(x^3)+6*(x^2)-6*(x^1)+4*(x^0)': Dim hPoly As Polynomial Dim aSolve As Float[] Dim I As Integer hPoly = [4, -6, 6, 7] Print hPoly.ToString aSolve = hPoly.Solve() Print aSolve.Count;; "solution(s)" For I = 0 To aSolve.Max Print aSolve[I] Next Regards, -- Beno?t Minisini From vuott at ...325... Tue Jun 11 20:18:52 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 11 Jun 2013 19:18:52 +0100 (BST) Subject: [Gambas-user] function that finds ... BIS In-Reply-To: <51B764FE.8010002@...1...> Message-ID: <1370974732.13938.YahooMailClassic@...3064...> Thanks, Beno?t, I immediately report that to our friend. Regards vuott --- Mar 11/6/13, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] function that finds ... BIS > A: "mailing list for gambas users" > Data: Marted? 11 giugno 2013, 19:57 > Le 11/06/2013 18:53, Ru Vuott a > ?crit : > > Hello Tobi, > > > > our friend thanks you, however he said that he was > referring to "Ruffini's rule". > > > > http://en.wikipedia.org/wiki/Ruffini%27s_rule > > > > bye > > vuott > > > > In Gambas 3, you can use the gb.gsl component and its > 'Polynomial' class > for that. > > For example, to solve '7*(x^3)+6*(x^2)-6*(x^1)+4*(x^0)': > > ???Dim hPoly As Polynomial > ???Dim aSolve As Float[] > ???Dim I As Integer > > ???hPoly = [4, -6, 6, 7] > ???Print hPoly.ToString > ???aSolve = hPoly.Solve() > ???Print aSolve.Count;; "solution(s)" > ???For I = 0 To aSolve.Max > ? ???Print aSolve[I] > ???Next > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Thu Jun 13 16:41:43 2013 From: wally at ...2037... (wally) Date: Thu, 13 Jun 2013 16:41:43 +0200 Subject: [Gambas-user] error At revision 5700. Message-ID: <2298532.8PRE9bTduV@...3040...> At revision 5700. jit_gambas_pass.cpp: In member function 'virtual bool {anonymous}::GambasPass::runOnFunction(llvm::Function&)': jit_gambas_pass.cpp:62:23: error: invalid use of incomplete type 'class llvm::Function' In file included from jit_gambas_pass.cpp:26:0: /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class llvm::Function' jit_gambas_pass.cpp:65:6: error: incomplete type 'llvm::Function' used in nested name specifier jit_gambas_pass.cpp:65:25: error: expected ';' before 'BB' jit_gambas_pass.cpp:65:54: error: 'BB' was not declared in this scope jit_gambas_pass.cpp:65:60: error: 'E' was not declared in this scope jit_gambas_pass.cpp:81:33: error: invalid use of incomplete type 'class llvm::Function' In file included from jit_gambas_pass.cpp:26:0: /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class llvm::Function' jit_gambas_pass.cpp:84:27: error: invalid use of incomplete type 'class llvm::Function' In file included from jit_gambas_pass.cpp:26:0: /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class llvm::Function' make[4]: *** [gb_jit_la-jit_gambas_pass.lo] Error 1 From lordheavym at ...626... Thu Jun 13 17:01:33 2013 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 13 Jun 2013 17:01:33 +0200 Subject: [Gambas-user] error At revision 5700. In-Reply-To: <2298532.8PRE9bTduV@...3040...> References: <2298532.8PRE9bTduV@...3040...> Message-ID: <1990825.POgHtFpRmi@...2592...> Le jeudi 13 juin 2013 16:41:43 wally a ?crit : > At revision 5700. > > > jit_gambas_pass.cpp: In member function 'virtual bool > {anonymous}::GambasPass::runOnFunction(llvm::Function&)': > jit_gambas_pass.cpp:62:23: error: invalid use of incomplete type 'class > llvm::Function' > In file included from jit_gambas_pass.cpp:26:0: > /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class > llvm::Function' > jit_gambas_pass.cpp:65:6: error: incomplete type 'llvm::Function' used in > nested name specifier > jit_gambas_pass.cpp:65:25: error: expected ';' before 'BB' > jit_gambas_pass.cpp:65:54: error: 'BB' was not declared in this scope > jit_gambas_pass.cpp:65:60: error: 'E' was not declared in this scope > jit_gambas_pass.cpp:81:33: error: invalid use of incomplete type 'class > llvm::Function' > In file included from jit_gambas_pass.cpp:26:0: > /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class > llvm::Function' > jit_gambas_pass.cpp:84:27: error: invalid use of incomplete type 'class > llvm::Function' > In file included from jit_gambas_pass.cpp:26:0: > /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class > llvm::Function' > make[4]: *** [gb_jit_la-jit_gambas_pass.lo] Error 1 > What is your llvm version ? (llvm-config --version) -- Laurent Carlier ArchLinux Developer http://www.archlinux.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part. URL: From bbruen at ...2308... Fri Jun 14 07:42:57 2013 From: bbruen at ...2308... (Bruce) Date: Fri, 14 Jun 2013 15:12:57 +0930 Subject: [Gambas-user] Trouble compiling rev 5700 Message-ID: <1371188577.27091.3.camel@...2688...> Fails at make stage with Making all in gbx make[4]: Entering directory `/home/bb/gb3source/main/gbx' CC libgbx_a-gb_error.o CC libgbx_a-gbx_exec_loop.o AR libgbx.a CC gb_la-gbx_c_class.lo ../libtool: line 2099: gbx_c_class.c: command not found gcc: error: : No such file or directory gcc: fatal error: no input files compilation terminated. make[4]: *** [gb_la-gbx_c_class.lo] Error 1 make[4]: Leaving directory `/home/bb/gb3source/main/gbx' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/bb/gb3source/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/bb/gb3source/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bb/gb3source' make: *** [all] Error 2 [System] OperatingSystem=Linux Kernel=3.2.45-pclos8 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1518M [Libraries] Curl=libcurl.so.3.0.0 GStreamer=libgstreamer-0.10.so.0.29.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.13.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.3 output.txt attached. tia Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: output.tar.gz Type: application/x-compressed-tar Size: 2333 bytes Desc: not available URL: From introlinux at ...626... Fri Jun 14 17:05:26 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Fri, 14 Jun 2013 17:05:26 +0200 Subject: [Gambas-user] ShowPreview Message-ID: Hi! If you use the property the FileChooser control with the property .ShowPreview ( http://gambasdoc.org/help/comp/gb.form/filechooser/showpreview?v3) and you try read it inside _Icon() event, it doesn't return any value. I attach a screenshot showing the stated of the FileChooser1 object and the error in the property .ShowPreview: "Unknown symbol 'GetPreview' in class 'FDirChooser", when you run. S.O.: Linux Mint 12 cinnamon desktop gambas version: 3.4.1 component: qb.form -------------- next part -------------- A non-text attachment was scrubbed... Name: FILECHOOSER_ERROR_ShowPreview.png Type: image/png Size: 237518 bytes Desc: not available URL: From wally at ...2037... Fri Jun 14 18:24:31 2013 From: wally at ...2037... (wally) Date: Fri, 14 Jun 2013 18:24:31 +0200 Subject: [Gambas-user] error At revision 5700. Message-ID: <1605694.ib7FNbDZse@...3040...> >llvm-config --version 3.1 At revision 5700. jit_gambas_pass.cpp: In member function 'virtual bool {anonymous}::GambasPass::runOnFunction(llvm::Function&)': jit_gambas_pass.cpp:62:23: error: invalid use of incomplete type 'class llvm::Function' In file included from jit_gambas_pass.cpp:26:0: /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class llvm::Function' jit_gambas_pass.cpp:65:6: error: incomplete type 'llvm::Function' used in nested name specifier jit_gambas_pass.cpp:65:25: error: expected ';' before 'BB' jit_gambas_pass.cpp:65:54: error: 'BB' was not declared in this scope jit_gambas_pass.cpp:65:60: error: 'E' was not declared in this scope jit_gambas_pass.cpp:81:33: error: invalid use of incomplete type 'class llvm::Function' In file included from jit_gambas_pass.cpp:26:0: /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class llvm::Function' jit_gambas_pass.cpp:84:27: error: invalid use of incomplete type 'class llvm::Function' In file included from jit_gambas_pass.cpp:26:0: /usr/include/llvm/Pass.h:37:7: error: forward declaration of 'class llvm::Function' make[4]: *** [gb_jit_la-jit_gambas_pass.lo] Error 1 From lordheavym at ...626... Sat Jun 15 10:17:16 2013 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 15 Jun 2013 10:17:16 +0200 Subject: [Gambas-user] error At revision 5700. In-Reply-To: <1605694.ib7FNbDZse@...3040...> References: <1605694.ib7FNbDZse@...3040...> Message-ID: 2013/6/14 wally > > > >llvm-config --version > 3.1 > > At revision 5700. > > Please try with rev 5702 ++ -- Laurent Carlier ArchLinux Developer http://www.archlinux.org From jussi.lahtinen at ...626... Sun Jun 16 22:19:23 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 16 Jun 2013 23:19:23 +0300 Subject: [Gambas-user] Crash with latest revision. Message-ID: Right now I don't know what caused this, but I'm investigating. Crash occurs when I run my huge project. I redesigned part of the code, and so this bug may also be in earlier revisions of gbx3. Program received signal SIGSEGV, Segmentation fault. 0x0000000000409b5d in VALUE_write (value=0x7ffff64e7720, addr=0x34, type=4) at gbx_value.c:939 939 *((int *)addr) = value->_integer.value; (gdb) bt #0 0x0000000000409b5d in VALUE_write (value=0x7ffff64e7720, addr=0x34, type=4) at gbx_value.c:939 #1 0x000000000040adce in VALUE_class_write (class=0x7de588, value=0x7ffff64e7720, addr=0x34
, ctype=...) at gbx_value.c:1369 #2 0x000000000045fa9c in EXEC_loop () at gbx_exec_loop.c:1653 #3 0x0000000000410c4f in EXEC_function_loop () at gbx_exec.c:907 #4 0x0000000000410855 in EXEC_function_real () at gbx_exec.c:871 #5 0x0000000000413a28 in EXEC_public_desc (class=0x7cffe8, object=0x0, desc=0x99f118, nparam=0) at gbx_exec.c:1584 #6 0x0000000000444a64 in main (argc=1, argv=0x7fffffffdff8) at gbx.c:392 Gambas 3 rev 5705 @ Xubuntu 13.04 64 bit Jussi From gambas at ...2524... Mon Jun 17 02:08:58 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 17 Jun 2013 00:08:58 +0000 Subject: [Gambas-user] Issue 439 in gambas: Crash with insane class. Message-ID: <0-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Crash Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 439 by jussi.la... at ...626...: Crash with insane class. http://code.google.com/p/gambas/issues/detail?id=439 1) Describe the problem. Gambas crashes with buggy class. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5705 (if you use a development version) Operating system: Linux Distribution: Xubuntu Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Attached. 5) Explain clearly how to reproduce the bug or the crash. Just run the project. Back trace in case if it doesn't crash on your system. Program received signal SIGSEGV, Segmentation fault. 0x0000000000409b5d in VALUE_write (value=0x7ffff64e70a0, addr=0x10, type=4) at gbx_value.c:939 939 *((int *)addr) = value->_integer.value; (gdb) bt #0 0x0000000000409b5d in VALUE_write (value=0x7ffff64e70a0, addr=0x10, type=4) at gbx_value.c:939 #1 0x000000000040adce in VALUE_class_write (class=0x83dc48, value=0x7ffff64e70a0, addr=0x10
, ctype=...) at gbx_value.c:1369 #2 0x000000000045fa9c in EXEC_loop () at gbx_exec_loop.c:1653 #3 0x0000000000410c4f in EXEC_function_loop () at gbx_exec.c:907 #4 0x0000000000410855 in EXEC_function_real () at gbx_exec.c:871 #5 0x0000000000413a28 in EXEC_public_desc (class=0x7529b8, object=0x83eed8, desc=0x83d728, nparam=0) at gbx_exec.c:1584 #6 0x0000000000436cdd in raise_event (observer=0x83eed8, object=0x8470c8, func_id=150, nparam=0) at gbx_api.c:812 #7 0x00000000004373c6 in GB_Raise (object=0x8470c8, event_id=17, nparam=0) at gbx_api.c:948 #8 0x00007ffff5e95604 in gb_raise_button_Click (sender=) at CButton.cpp:38 Attachments: BugHunting-0.0.2.tar.gz 4.9 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jun 17 02:13:29 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 17 Jun 2013 00:13:29 +0000 Subject: [Gambas-user] Issue 440 in gambas: Faulty error message from valid code Message-ID: <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 440 by jussi.la... at ...626...: Faulty error message from valid code http://code.google.com/p/gambas/issues/detail?id=440 1) Describe the problem. Invalid "Type mismatch" error. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5705 Operating system: Linux Distribution: Xubuntu Architecture: x86_64 3) Provide a little project that reproduces the bug or the crash. Attached. 5) Explain clearly how to reproduce the bug or the crash. Just run the project. Error message demands argument type Class1, while integer is valid argument. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Mon Jun 17 02:15:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 17 Jun 2013 00:15:30 +0000 Subject: [Gambas-user] Issue 440 in gambas: Faulty error message from valid code In-Reply-To: <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Comment #1 on issue 440 by jussi.la... at ...626...: Faulty error message from valid code http://code.google.com/p/gambas/issues/detail?id=440 Attachment disappeared... new try. Attachments: BugHunting-0.0.1.tar.gz 4.9 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shordi at ...626... Mon Jun 17 11:37:11 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 17 Jun 2013 11:37:11 +0200 Subject: [Gambas-user] Fwd: About Client FTP In-Reply-To: References: Message-ID: Fixed. It's my fault, not the FtpClient. Sorry for the noise... Regards ---------- Forwarded message ---------- From: Jorge Carri?n Date: 2013/6/6 Subject: About Client FTP To: mailing list for gambas users Using the ClientFtp control I have a behavior that I don't know if its a bug o its somthing supposed to happen: When I use the exec method, it works fine, but after all comands in exec allways perform a CWD name-of-folder who fails an generate an error. Example: Exec(["CWD /personales/jorge", "rnfr gabinete.cfg", "rnto gaginsete.cfg"]) generates the following output in the console of Gambas: * About to connect() to the-ip-server port 21 (#0) * Trying the-ipserver... * connected < 220 (vsFTPd 2.3.5) > USER gabinete < 331 Please specify the password. > PASS thesecrectpassword < 230 Login successful. > PWD < 257 "/" * Entry path is '/' > CWD /personales/jorge/ < 250 Directory successfully changed. > rnfr gabinete.cfg < 350 Ready for RNTO. > rnto gabinsete.cfg < 250 Rename successful. > CWD personales <<<<-------This is the command who comes from nowhere!!! < 550 Failed to change directory. * Server denied you to change to the given directory * Connection #0 to host 84.127.229.244 left intact * Access denied to remote resource > QUIT < 221 Goodbye. * Closing connection #0 This makes very difficult to test if the operation has been successfull or failed. ?How can I prevent this behavior of FtpClient? Regards From willy at ...2734... Tue Jun 18 03:10:13 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 18 Jun 2013 03:10:13 +0200 Subject: [Gambas-user] Opening project in IDE results in CComponent.Load.583 Message-ID: <1371517813.5369.8.camel@...3024...> Hi, When opening one of my projects in IDE this results in: CComponent.Load.583 Void key (see attached .png) The project is a library and when opening a project that depends on the library in IDE same message occurs. Problem appeared after some translation inconsistency when using the translator tool. I already skimmed all .po files for a solution but nothing I tried seemed to work. Any suggestions as where to look for what is going on as the message makes little sense to be? Maybe it does to someone out here. Linux Mint 12.04 - Mate 1.4 - Gambas 3.4.1 from PPA Kendek Also run it on: Debian 6.0.7 - Gnome 2.30 - Gambas 3.4.1 Same occurs there. It seems to be in the project itself not in Gambas -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: 02.png Type: image/png Size: 14439 bytes Desc: not available URL: From gambas at ...1... Tue Jun 18 03:35:02 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 18 Jun 2013 03:35:02 +0200 Subject: [Gambas-user] Opening project in IDE results in CComponent.Load.583 In-Reply-To: <1371517813.5369.8.camel@...3024...> References: <1371517813.5369.8.camel@...3024...> Message-ID: <51BFB946.1020009@...1...> Le 18/06/2013 03:10, Willy Raets a ?crit : > > Hi, > > When opening one of my projects in IDE this results in: > CComponent.Load.583 > Void key > (see attached .png) > > The project is a library and when opening a project that depends on the > library in IDE same message occurs. > > Problem appeared after some translation inconsistency when using the > translator tool. I already skimmed all .po files for a solution but > nothing I tried seemed to work. > > Any suggestions as where to look for what is going on as the message > makes little sense to be? Maybe it does to someone out here. > > Linux Mint 12.04 - Mate 1.4 - Gambas 3.4.1 from PPA Kendek > > Also run it on: Debian 6.0.7 - Gnome 2.30 - Gambas 3.4.1 > Same occurs there. It seems to be in the project itself not in Gambas > Please provide the project so that I can fix the bug. Regards, -- Beno?t Minisini From gambas at ...2524... Tue Jun 18 07:41:17 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 18 Jun 2013 05:41:17 +0000 Subject: [Gambas-user] Issue 441 in gambas: Caling Report print not working when report takes some arguments Message-ID: <0-6813199134517018827-7823826815829786450-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: 3.4.1 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 441 by isaf... at ...626...: Caling Report print not working when report takes some arguments http://code.google.com/p/gambas/issues/detail?id=441 1) when report takes some arguments (e.g. Public Sub _new(txtname As String) ) then preview is working but print is not working. However when report doesn't take any extra argument then both preview and print works 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.1 (using PPA) Revision: r1234 (if you use a development version) Operating system: Linux Distribution: Ubuntu 12.04 Architecture: x86 GUI component: QT4 / GTK+ Desktop used: Gnome 3) Provide a little project that reproduces the bug or the crash. I have a report "Report1" with a label and a form with textbox and button. The label in report gets data from textbox on form when called for printing the report. In report: Public Sub _new(txtname As String) ReportLabel1.Text = txtname End In form: Private hReport As Report Public Sub Button1_Click() hReport = New Report1(TextBox1.Text) hReport.Print End The error comes "No enough arguments". However it works when hReport.Preview I searched but couldn't find suitable answer in any fourm. 4) If your project needs a database, try to provide it, or part of it. No 5) Explain clearly how to reproduce the bug or the crash. as above Attachments: report.zip 7.8 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Tue Jun 18 16:52:30 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 18 Jun 2013 16:52:30 +0200 Subject: [Gambas-user] Possible bug in gb.gtk combined with DrawArea Message-ID: <1371567150.3154.4.camel@...3024...> Hi all, I made a little project to explain the problem. In the project you will find an About form in Help menu. This About form takes a RichText file and scrolls it from bottom to top in a DrawArea on the About form. When using gb.qt4 component things look as I expect them to look. The text is centred on the DrawArea as is my intention. When using gb.gtk component same About form shows the text differently. It is no longer centred. To me this seems to be a bug in gb.gtk Project attached (gb.qt4 is default component to see what I would like) Using Gambas 3.4.1 from PPA Kendek -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: DrawBug-0.0.tar.gz Type: application/x-compressed-tar Size: 111792 bytes Desc: not available URL: From gambas at ...1... Wed Jun 19 04:02:35 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 19 Jun 2013 04:02:35 +0200 Subject: [Gambas-user] Opening project in IDE results in CComponent.Load.583 In-Reply-To: <51BFB946.1020009@...1...> References: <1371517813.5369.8.camel@...3024...> <51BFB946.1020009@...1...> Message-ID: <51C1113B.8010103@...1...> Le 18/06/2013 03:35, Beno?t Minisini a ?crit : > Le 18/06/2013 03:10, Willy Raets a ?crit : >> >> Hi, >> >> When opening one of my projects in IDE this results in: >> CComponent.Load.583 >> Void key >> (see attached .png) >> >> The project is a library and when opening a project that depends on the >> library in IDE same message occurs. >> >> Problem appeared after some translation inconsistency when using the >> translator tool. I already skimmed all .po files for a solution but >> nothing I tried seemed to work. >> >> Any suggestions as where to look for what is going on as the message >> makes little sense to be? Maybe it does to someone out here. >> >> Linux Mint 12.04 - Mate 1.4 - Gambas 3.4.1 from PPA Kendek >> >> Also run it on: Debian 6.0.7 - Gnome 2.30 - Gambas 3.4.1 >> Same occurs there. It seems to be in the project itself not in Gambas >> > > Please provide the project so that I can fix the bug. > > Regards, > It was a bug in the compiler that didn't handle newlines in exported public constants correctly. It is fixed in revision #5706, but you have to recompile your project entirely. Regards, -- Beno?t Minisini From gambas at ...2524... Wed Jun 19 04:48:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 19 Jun 2013 02:48:52 +0000 Subject: [Gambas-user] Issue 439 in gambas: Crash with insane class. In-Reply-To: <0-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.4.0 Comment #1 on issue 439 by benoit.m... at ...626...: Crash with insane class. http://code.google.com/p/gambas/issues/detail?id=439 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jun 19 04:49:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 19 Jun 2013 02:49:52 +0000 Subject: [Gambas-user] Issue 439 in gambas: Crash with insane class. In-Reply-To: <1-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> <0-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4794114954667667885-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 439 by benoit.m... at ...626...: Crash with insane class. http://code.google.com/p/gambas/issues/detail?id=439 Fixed in revision #5707. An error is raised now instead of crashing. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From Karl.Reinl at ...2345... Thu Jun 20 13:29:13 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 20 Jun 2013 13:29:13 +0200 Subject: [Gambas-user] Question about XML Message-ID: <1371727753.2378.31.camel@...40...> Salut Adrien, "Article :\ngreen peppers\ntinned tomatoes" this text saved with xml.Attribute("Text", "Article :\ngreen peppers\ntinned tomatoes") where xml is a XmlWriter the old XMLLib sorted thet Text="Article : green peppers tinned tomatoes" the new XMLLib saves it like Text="Article : green peppers tinned tomatoes" Now my question: is it a bug, or was it a bug. Just to know who makes the changes, you for all, or me in my project. Thanks anyway -- Amicalement Charlie From gambas at ...2524... Thu Jun 20 16:50:52 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 20 Jun 2013 14:50:52 +0000 Subject: [Gambas-user] Issue 442 in gambas: SQL connection.Edit bug Message-ID: <0-6813199134517018827-9979940376369222840-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Type-Bug Priority-High OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 442 by BugCatch... at ...626...: SQL connection.Edit bug http://code.google.com/p/gambas/issues/detail?id=442 1) Describe the problem. Trying to delete a record in a Sqlite DB, so I used the "$hConn.Edit" function. I got the following error: sqlite3: 0x139aa50: BEGIN sqlite3: 0x139aa50: SELECT * FROM 'SELECT * FROM Topics where TopicId = 154' sqlite3: 0x139aa50: ROLLBACK QSpiAccessible::accessibleEvent not handled: "2" obj: QMessageBox(0x1557160) "" FIXME: handle dialog start. Query failed: SQL error or missing database FIXME: handle dialog end. I confirmed that the "Exec" command works fine, but that the "Edit" command duplicates part of the command when sending the SQL to the DB. rsTopics = FMain.$hConn.Exec("SELECT * FROM Topics where TopicId = 154") sqlite3: 0x1566df0: BEGIN sqlite3: 0x1566df0: SELECT * FROM Topics where TopicId = 154 rsTopics = FMain.$hConn.Edit("SELECT * FROM Topics where TopicId = 154") sqlite3: 0x150deb0: BEGIN sqlite3: 0x150deb0: SELECT * FROM 'SELECT * FROM Topics where TopicId = 154' 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): gambas3-ide 3.4.1-1raring2 [System] OperatingSystem=Linux Kernel=3.8.0-25-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=GNOME GUI component: QT4 / GTK+ 3) Provide a little project that reproduces the bug or the crash. Public $hConn As New Connection Private sAppPath As String Dim rsTopics As Result sAppPath = Str$(Application.Path) sName = "churchlibrary.sqlite" With $hConn .Type = "sqlite3" .Host = sAppPath ' path to DB location which is the application.path .Login = "Librarian" 'Technically not needed, just for me .Password = "Righteous" 'Technically not needed, just for me .Name = sName .Port = "" ' See note above ^ End With $hConn.Open $hConn.Begin rsTopics = $hConn.Edit("SELECT * FROM Topics where TopicId = 154") 4) If your project needs a database, try to provide it, or part of it. See attachment 5) Explain clearly how to reproduce the bug or the crash. Run SQL command 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: churchlibrary.sqlite 107 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 20 23:13:41 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 20 Jun 2013 21:13:41 +0000 Subject: [Gambas-user] Issue 443 in gambas: Array size limit??? Message-ID: <0-6813199134517018827-2784767708109103475-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 443 by BugCatch... at ...626...: Array size limit??? http://code.google.com/p/gambas/issues/detail?id=443 1) Describe the problem. Trying to create an array with these values: Dim arrItemId As Integer[] = [300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 32043, 32506, 34594, 35666, 35683, 35684, 50023, 52047, 52126, 53026, 53451, 53556, 53911, 54100, 62012, 62042, 62044, 62045, 62047, 62050, 62051, 62238, 62298, 62332, 62370, 62380, 62462, 62467, 62478, 62492, 62503, 62517, 62520, 62535, 62565, 62604, 62620, 62630] Get error saying: "Too many arguments" Isolated the magic number down to 63 arguments. I have 65. I did not find anything in the documentation about a limit on array sizes. Did I miss something, or is this an artifact from earlier times? 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): gambas3-ide 3.4.1-1raring2 [System] OperatingSystem=Linux Kernel=3.8.0-25-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=GNOME GUI component: QT4 / GTK+ 3) Provide a little project that reproduces the bug or the crash. See "Dim arrItemId As Integer[] " declaration above. 4) If your project needs a database, try to provide it, or part of it. N/A 5) Explain clearly how to reproduce the bug or the crash. Try to declare this array as written 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 20 23:33:57 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 20 Jun 2013 21:33:57 +0000 Subject: [Gambas-user] Issue 442 in gambas: SQL connection.Edit bug In-Reply-To: <0-6813199134517018827-9979940376369222840-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9979940376369222840-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9979940376369222840-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #1 on issue 442 by benoit.m... at ...626...: SQL connection.Edit bug http://code.google.com/p/gambas/issues/detail?id=442 The Edit() method does not work that way. The syntax is Edit(, ) The first argument must be the name of the table. The second argument is the "where" part without the where keyword. It handles argument substitution. Please read the documentation of the Edit() method. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jun 20 23:37:18 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 20 Jun 2013 21:37:18 +0000 Subject: [Gambas-user] Issue 443 in gambas: Array size limit??? In-Reply-To: <0-6813199134517018827-2784767708109103475-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2784767708109103475-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2784767708109103475-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #1 on issue 443 by benoit.m... at ...626...: Array size limit??? http://code.google.com/p/gambas/issues/detail?id=443 The Gambas array initialization is done at runtime. I.e., [...] is an operator, and cannot take more than 63 arguments (this is a Gambas limit). You can use that ugly trick to workaround the limitation: Dim arr As Integer[] = [1, 2, ..., 63].Insert([64, 65, ... ]).Insert([127, 128, ...]) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Thu Jun 20 23:43:49 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 20 Jun 2013 23:43:49 +0200 Subject: [Gambas-user] Gambas2.7 on puppy linux: how to change TargetPort on UDP ? In-Reply-To: <1370884419191-42218.post@...3046...> References: <1370884419191-42218.post@...3046...> Message-ID: <51C37795.9040802@...1...> Le 10/06/2013 19:13, robotop a ?crit : > Hello, I'm using Gambas2 for a very basic DNS server with limited features. > There are no problems receiving packets on port 53 via UDP socket. The > request is parsed and the answer is formed correctly and printed to a > message window, then the UDP TargetHost is set with the contents of > SourceHost and the TargetPort is set to 53; the problem is that the answer > UDP packet is sent on a different port (typ. 1031..1044). It seems that the > assignment UdpDnss.TargetPort = 53 is ignored; a confirmation is that if I > read back the value of UdpDnss.TargetPort, the value read is different from > 53 and, again, typically in the range 1031..1044). How can I change that > port ? Is there a way to change the data directly accessing the memory > buffer where the stream is stored ? How to simulate the varptr function that > isn't present on gambas2 ? I can't upgrade my system to Gambas3, 'cause of > lack of resources on my HW (miniITX board with CF disk) and no package > available for Puppy Linux newer than 2.7 ; thank you in advance. I'll wait > for your suggestions... > If I remember, this was a bug fixed in a later version. I think you have to upgrade your Gambas 2 version to the latest one available. Regards, -- Beno?t Minisini From eficara at ...626... Fri Jun 21 20:40:31 2013 From: eficara at ...626... (robotop) Date: Fri, 21 Jun 2013 11:40:31 -0700 (PDT) Subject: [Gambas-user] Gambas2.7 on puppy linux: how to change TargetPort on UDP ? In-Reply-To: <51C37795.9040802@...1...> References: <1370884419191-42218.post@...3046...> <51C37795.9040802@...1...> Message-ID: <51C49E0A.40205@...626...> Thank you, Mr Minisini. I will check for a more recent compiled package of Gambas for Puppy Linux. :) -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas2-7-on-puppy-linux-how-to-change-TargetPort-on-UDP-tp42218p42258.html Sent from the gambas-user mailing list archive at Nabble.com. From paulwheeler at ...546... Sat Jun 22 02:08:48 2013 From: paulwheeler at ...546... (paulwheeler) Date: Fri, 21 Jun 2013 17:08:48 -0700 Subject: [Gambas-user] Issue 442 in gambas: SQL connection.Edit bug In-Reply-To: References: <0-6813199134517018827-9979940376369222840-gambas=googlecode.com@...2524...> Message-ID: <51C4EB10.6050608@...546...> Beno?t Thank you for your reply, and thank you for your patience in dealing with people like me who are not full-time programmers. Thank you for taking the time to help me understand. Paul As for your last line about reading the documentation. I DID read it. However, I was confused by these lines: ' Same as Select * from tblDEFAULT where id = [parameter value] sCriteria = "id = &1" iParameter = 1012 It was not clear to me how "iParameter" fit into the select statement above it, since it was not in the statement. It was also not obvious to me that you leave out the "where". I usually associate "Request" with the fact that you are doing a "where" statement, so leaving it out did not occur to me. I know you mention that in this line of the code: "The second argument is the "where" part without the where keyword," but again, it did not click. Maybe it was the drugs from the knee replacement surgery a week ago, or the fact that I am trying to remember things I did for only a year 6 years ago. Either way, please accept the fact that I am trying and that I do actually read the instructions. Now that I know what you were trying to say, may I suggest this alternate wording for the definition (feel free to use any, all or none of it): Connection.Edit (gb.db) Function Edit ( Table As String [ , Request As String, Arguments As , ... ] ) As Result Returns a read/write Result object used for editing records in the specified table. This fill-in-the-blank function is the same as the following SQL statement, but with a twist: "Select * from tblDEFAULT where id = [Value or Variable Name]" The syntax is Edit(
, , ) Table (tblDEFAULT) is the only required input. Request and Arguments are optional. Request is the selection criteria (id = [Value or Variable Name]) part of a "WHERE" clause used for filtering the table. However, the "WHERE" keyword is omitted from the statement. So, our sql would now look like this: "Select * from tblDEFAULT id = [Variable Name]" The third value may seem strange, but allows you to write requests that are independant of the underlying database type. The arguments are quoted as needed by the SQL syntax, and substituted inside the Request string. So, visually we now have a statement that may look like this: "Select * from tblDEFAULT id = [Variable Name = iArgument]" To actually plug in the values you would need these definitions: sCriteria = "id = &1" AND iArgument = 1012 Finally your statement looks like this: hResult = $hConn.Edit("tblDEFAULT", sCriteria, iArgument) I also made minor changes to your sample code to reflect the above explanation: Example DIM hResult AS Result DIM sCriteria AS String DIM iArgument AS Integer ' Same as "Select * from tblDEFAULT where id = [Variable Name = iArgument]" sCriteria = "id = &1" iArgument = 1012 $hConn.Begin hResult = $hConn.Edit("tblDEFAULT", sCriteria, iArgument) ' Set field value hResult!Name = "Mr Smith" ' Update the value hResult.Update $hConn.Commit On 06/20/2013 02:33 PM, gambas at ...2524... wrote: > Updates: > Status: WontFix > > Comment #1 on issue 442 by benoit.m... at ...626...: SQL connection.Edit bug > http://code.google.com/p/gambas/issues/detail?id=442 > > The Edit() method does not work that way. > > The syntax is Edit(
, ) > > The first argument must be the name of the table. > The second argument is the "where" part without the where keyword. It > handles argument substitution. > > Please read the documentation of the Edit() method. > From vuott at ...325... Sat Jun 22 17:47:22 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 22 Jun 2013 16:47:22 +0100 (BST) Subject: [Gambas-user] Possible bug in GridView .Font property Message-ID: <1371916042.14731.YahooMailBasic@...3070...> Hello, I would like to bring to your attention this code: Public Sub Form_Open() With GridView1 .Columns.Count = 2 .Rows.Count = 2 .Columns. W = GridView1.W * 0.5 End With ' 1st case: With GridView1[0, 0] .Font.Size = 20 .Font.Bold = True .Text = "Aliquid textum" End With ' 2nd case: With GridView1[0, 1] .RichText = "" .Font.Size = 20 .Font.Bold = True .Text = "Aliquid textum" End With End ************************* Well, about 1st case: - because, while placing the property .Bold = True, the text in the first case does not appear "bold" ? - because, even if you set a value for the property .Font.Size , the characters do not change their size? about 2nd case: why, everything that I wanted to get in the first case, I get it strangely in the second case.... but only if I place *also* the property. RichText = "" ??? Is it a bug ? Regards vuott From gambas at ...1... Sat Jun 22 18:26:44 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 22 Jun 2013 18:26:44 +0200 Subject: [Gambas-user] Possible bug in gb.gtk combined with DrawArea In-Reply-To: <1371567150.3154.4.camel@...3024...> References: <1371567150.3154.4.camel@...3024...> Message-ID: <51C5D044.9050305@...1...> Le 18/06/2013 16:52, Willy Raets a ?crit : > Hi all, > > I made a little project to explain the problem. > In the project you will find an About form in Help menu. > This About form takes a RichText file and scrolls it from bottom to top > in a DrawArea on the About form. > > When using gb.qt4 component things look as I expect them to look. > The text is centred on the DrawArea as is my intention. > > When using gb.gtk component same About form shows the text differently. > It is no longer centred. > > To me this seems to be a bug in gb.gtk > > Project attached (gb.qt4 is default component to see what I would like) > > Using Gambas 3.4.1 from PPA Kendek > It should be fixed in revision #5708. Regards, -- Beno?t Minisini From gambas at ...2524... Sun Jun 23 20:05:15 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 23 Jun 2013 18:05:15 +0000 Subject: [Gambas-user] Issue 444 in gambas: Balloon location is wrong for a textbox Message-ID: <0-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 444 by uAle... at ...626...: Balloon location is wrong for a textbox http://code.google.com/p/gambas/issues/detail?id=444 1) Describe the problem. The Balloon is on the wrong location - it doesn't have the "arrow" inside the textbox, but it is outside the textbox (the balloon is misalligned). 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5708 (if you use a development version) Operating system: Linux Distribution: Ubuntu 12.04 & 13.04 Architecture: x86_64 GUI component: QT4 Desktop used: Ubuntu One and Gnome 3) Provide a little project that reproduces the bug or the crash. Attached is the "TestBalloon.tar" and the screenshot showing that the balloon is at the wrong location. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Start the little project on Ubuntu 13.04 & QT4 and you will see that the balloon is at the wrong location. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: balloon-wrong.png 11.0 KB TestBalloon.tar 20.0 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From willy at ...2734... Mon Jun 24 15:54:33 2013 From: willy at ...2734... (Willy Raets) Date: Mon, 24 Jun 2013 15:54:33 +0200 Subject: [Gambas-user] Possible bug in gb.gtk combined with DrawArea In-Reply-To: <51C5D044.9050305@...1...> References: <1371567150.3154.4.camel@...3024...> <51C5D044.9050305@...1...> Message-ID: <1372082073.3012.0.camel@...3024...> On Sat, 2013-06-22 at 18:26 +0200, Beno?t Minisini wrote: > Le 18/06/2013 16:52, Willy Raets a ?crit : > > Hi all, > > > > I made a little project to explain the problem. > > In the project you will find an About form in Help menu. > > This About form takes a RichText file and scrolls it from bottom to top > > in a DrawArea on the About form. > > > > When using gb.qt4 component things look as I expect them to look. > > The text is centred on the DrawArea as is my intention. > > > > When using gb.gtk component same About form shows the text differently. > > It is no longer centred. > > > > To me this seems to be a bug in gb.gtk > > > > Project attached (gb.qt4 is default component to see what I would like) > > > > Using Gambas 3.4.1 from PPA Kendek > > > > It should be fixed in revision #5708. I can confirm it is fixed. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...2524... Mon Jun 24 22:07:24 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 24 Jun 2013 20:07:24 +0000 Subject: [Gambas-user] Issue 445 in gambas: Project profiling setting not saved Message-ID: <0-6813199134517018827-2981516577960554164-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 445 by r... at ...1740...: Project profiling setting not saved http://code.google.com/p/gambas/issues/detail?id=445 1) Describe the problem. When changing profiling settings of project it doesn't get saved. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5708 [System] OperatingSystem=Linux Kernel=3.10.0-rc1pixel+ Architecture=x86_64 Distribution=Ubuntu 12.04.2 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=3901M [Libraries] Curl=libcurl.so.4.2.0 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. Change profiling settings and close project property window, reopen, no change. Same on project save. 6) By doing that carefully, you have done 50% of the bug fix job! FIX: Insert line .Profiling = cmbProfile.Index = 0 On line 199 in file FProjectProperty.class IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Tue Jun 25 23:16:53 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 25 Jun 2013 22:16:53 +0100 (BST) Subject: [Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error.... Message-ID: <1372195013.64702.YahooMailBasic@...3063...> Hello, why, if writing: Print 16 \ 2 ^ 3 I obtain the error: "Type mismatich: wanted Integer, got Float instead" ? Thanks vuott From dr.diesel at ...626... Wed Jun 26 00:10:12 2013 From: dr.diesel at ...626... (dr.diesel) Date: Tue, 25 Jun 2013 15:10:12 -0700 (PDT) Subject: [Gambas-user] Help binding to /dev/usbtmc0? Message-ID: <1372198211969-42276.post@...3046...> Hello all, I'm trying to communicate to a Rigol spectrum analyzer, which is routed to /dev/usbtmc0 once connected via USB. You can easily echo and cat serial commands to usbtmc0 but I'd prefer to use a socket of some sort, any suggestions on how to do this via gambas? usbtmc0 has no port speed or port number so don't think I can use gambas sockets etc? Basically I'd like the same functionality as a standard serial port, without the baud rate, parity, stop bits etc. Many thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Help-binding-to-dev-usbtmc0-tp42276.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Wed Jun 26 01:17:47 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 25 Jun 2013 23:17:47 +0000 Subject: [Gambas-user] Issue 446 in gambas: Select statement returns no data Message-ID: <0-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 446 by BugCatch... at ...626...: Select statement returns no data http://code.google.com/p/gambas/issues/detail?id=446 1) Describe the problem. I have written this query, but it does not return any data: Select * From Inventory Where InventoryId In ( 'Select InventoryId From Topics2InventoryXref Where TopicId = 18') order by Description Does Gambas support this kind of SQL query? I even tried it without the "order by Description" with the same results: sqlite3: 0x20045a0: Select * From Inventory Where InventoryId In ( 'Select InventoryId From Topics2InventoryXref Where TopicId = 18') rsInventory.Count = 0 rsInventory.Available = rsInventory.Max = -1 I have checked the Gambas Documentation Wiki, gambasdoc.org, sourceforge and the internet for hints on how to fix this problem. I have checked that each select by itself does return data: sqlite3: 0x20045a0: Select InventoryId From Topics2InventoryXref Where TopicId = 18 rsXref.Count = 65 sqlite3: 0x168fe10: Select * From Inventory Where InventoryId In (300, 311, 322, 53451, 62520) rsInventory.Count = 5 rsInventory.Available = True rsInventory.Max = 4 I even changed the fields in the DB so that they are integers and have matching names for the same field in the two different tables. No luck. I tried using the "edit" version as well as the DB.substitution approach, but no luck. What say ye, oh great and wise ones? 2) GIVE THE FOLLOWING INFORMATION (if they are appropriate): Version: TRUNK or BRANCHES/2.0 or 2.22.0 Revision: r1234 (if you use a development version) Operating system: Linux / FreeBSD Distribution: Ubuntu / Fedora / ArchLinux / Gentoo ... Architecture: x86 / x86_64 / ARM GUI component: QT3 / QT4 / GTK+ Desktop used: Gnome / KDE ... 3) Provide a little project that reproduces the bug or the crash. See attached Test Bed project. 4) If your project needs a database, try to provide it, or part of it. See attached 5) Explain clearly how to reproduce the bug or the crash. Start program in IDE Wait till tables have been filled. Go to "Topics" tab. Double-Click on the "Book of Mormon" entry. Program will stop and console will show:" Kaaabooom! Kaaabooom! 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: ChurchLibraryInteger.sqlite 109 KB LibraryDatabaseProgram - New all integer DB --Test Bed.tar.bz2 129 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jun 26 01:28:03 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 25 Jun 2013 23:28:03 +0000 Subject: [Gambas-user] Issue 446 in gambas: Select statement returns no data In-Reply-To: <0-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Comment #1 on issue 446 by ea7... at ...626...: Select statement returns no data http://code.google.com/p/gambas/issues/detail?id=446 I think you have to get rid of single quotes in the nested query. Try this as: Select * From Inventory Where InventoryId In (Select InventoryId From Topics2InventoryXref Where TopicId = 18) Regards -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From paulwheeler at ...546... Wed Jun 26 03:18:15 2013 From: paulwheeler at ...546... (paulwheeler) Date: Tue, 25 Jun 2013 18:18:15 -0700 Subject: [Gambas-user] Issue 446 in gambas: Select statement returns no data In-Reply-To: References: <0-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Message-ID: <51CA4157.4020101@...546...> Thank you, That worked. However, when I uncommented the tvwInventory load code a few lines down, I now get a "Bad Row Index" message. Not sure how tvwInventory[iCounter, 0].Text with iCounter equal to 0 can be a bad row, but that is what it says! I took the exact same code from another section that is loading the exact same tableview, and it works perfectly fine! How is this possible? P On 06/25/2013 04:28 PM, gambas at ...2524... wrote: > Comment #1 on issue 446 by ea7... at ...626...: Select statement returns no > data > http://code.google.com/p/gambas/issues/detail?id=446 > > I think you have to get rid of single quotes in the nested query. Try this > as: > > Select * From Inventory Where InventoryId In (Select InventoryId From > Topics2InventoryXref Where TopicId = 18) > > Regards > > From taboege at ...626... Wed Jun 26 09:42:01 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 26 Jun 2013 09:42:01 +0200 Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <1372198211969-42276.post@...3046...> References: <1372198211969-42276.post@...3046...> Message-ID: <20130626074201.GA519@...2774...> On Tue, 25 Jun 2013, dr.diesel wrote: > Hello all, > > I'm trying to communicate to a Rigol spectrum analyzer, which is routed to > /dev/usbtmc0 once connected via USB. You can easily echo and cat serial > commands to usbtmc0 but I'd prefer to use a socket of some sort, any > suggestions on how to do this via gambas? > > usbtmc0 has no port speed or port number so don't think I can use gambas > sockets etc? > > Basically I'd like the same functionality as a standard serial port, without > the baud rate, parity, stop bits etc. > Maybe you mistake "port" as in "serial port" and "port" as in "tcp port". Actually /dev/usbtmc0 is a file. You cannot access it by sockets since it has nohting to do with networking. You should OPEN the device file and then PRINT and READ data just like echo and cat do (the code assumes that I/O of the device file is line-based): --- Dim hDevice As File ' No socket involved Dim sLine As String hDevice = Open "/dev/usbtmc0" For Input Output ' Write to it Print #hDevice, "Command" ' Read from it Line Input #hDevice, sLine --- Depending on your needs, you may want to add the WATCH flag (and an event name) to OPEN. Regards, Tobi From gambas at ...2524... Wed Jun 26 15:55:43 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 26 Jun 2013 13:55:43 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <3-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Comment #4 on issue 438 by francois... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 When i look in latest revision i don't see the fix in miniserver.class : For cCount = 1 to 100 step 1 cLen = Len(hBuffer[Bucle]) - InStr(hBuffer[Bucle], Chr(13) & Chr(10) & Chr(13) & Chr(10)) - 3 If cLen = hLen[Bucle] Then Break Wait 0.01 Next Instead i see a hs.begin ... hs.Send in the hError method. Benoit says that this is the way he implemented the fix... I don't understand the relation between those two fixes... The problem comes from the server which cannot handle multiple ip packets. Trying to make the client send the request in one packet cannot be a good solution because the message could exceed the ip packet size. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Wed Jun 26 22:00:59 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 26 Jun 2013 20:00:59 +0000 Subject: [Gambas-user] Issue 446 in gambas: Select statement returns no data In-Reply-To: <1-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> <0-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Comment #2 on issue 446 by BugCatch... at ...626...: Select statement returns no data http://code.google.com/p/gambas/issues/detail?id=446 Thank you. That solved the problem. Paul -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Wed Jun 26 23:28:37 2013 From: vuott at ...325... (Ru Vuott) Date: Wed, 26 Jun 2013 22:28:37 +0100 (BST) Subject: [Gambas-user] Error playing File Midi with libgstreamer new version Message-ID: <1372282117.32535.YahooMailBasic@...3066...> Hello, I made ??an application for listening to audio files as well as Midi files.With the previous version of the component "gb.media" Midi files could be performed and could be heard. Now, with the new version of the "gb.media", which uses the new version of GStreamer 1.0.6, if I want to play Midi files, inexplicably I get an error "cannot set status" to the function "Play ()" of MediaPlayer class element. I would like to know if the same problem happens to someone who has made and/or uses ??a similar application. Thanks Regards vuott From keithclark at ...2185... Wed Jun 26 23:17:56 2013 From: keithclark at ...2185... (Keith Clark) Date: Wed, 26 Jun 2013 17:17:56 -0400 Subject: [Gambas-user] read/data commands Message-ID: <51CB5A84.9040400@...2185...> Does Gambas support read/data commands like the following for loading a simple array with fixed values? for t=0 to 4 for x = 0 to 4 read v(t,x) next x next t data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... Maybe I'm just not finding it? From gambas at ...1... Thu Jun 27 00:46:03 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 27 Jun 2013 00:46:03 +0200 Subject: [Gambas-user] Error playing File Midi with libgstreamer new version In-Reply-To: <1372282117.32535.YahooMailBasic@...3066...> References: <1372282117.32535.YahooMailBasic@...3066...> Message-ID: <51CB6F2B.6060804@...1...> Le 26/06/2013 23:28, Ru Vuott a ?crit : > Hello, > > I made ??an application for listening to audio files as well as Midi files.With the previous version of the component "gb.media" Midi files could be performed and could be heard. > > Now, with the new version of the "gb.media", which uses the new version of GStreamer 1.0.6, if I want to play Midi files, inexplicably I get an error "cannot set status" to the function "Play ()" of MediaPlayer class element. > I would like to know if the same problem happens to someone who has made and/or uses ??a similar application. > > Thanks > Regards > vuott > Can you send me your midi file? Thanks! -- Beno?t Minisini From vuott at ...325... Thu Jun 27 03:08:06 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 27 Jun 2013 02:08:06 +0100 (BST) Subject: [Gambas-user] Error playing File Midi with libgstreamer new version In-Reply-To: <51CB6F2B.6060804@...1...> Message-ID: <1372295286.7221.YahooMailBasic@...3070...> Hello Beno?t, excuse me, but... do you want the "midi File" or my gb.media application ? ....I suppose my application. bye vuott -------------------------------------------- Gio 27/6/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Error playing File Midi with libgstreamer new version A: gambas-user at lists.sourceforge.net Data: Gioved? 27 giugno 2013, 00:46 Le 26/06/2013 23:28, Ru Vuott a ?crit : > Hello, > > I made ??an application for listening to audio files as well as Midi files.With the previous version of the component "gb.media" Midi files could be performed and could be heard. > > Now, with the new version of the "gb.media", which uses the new version of GStreamer 1.0.6, if I want to play Midi files, inexplicably I get an error "cannot set status" to the function "Play ()" of MediaPlayer class element. > I would like to know if the same problem happens to someone who has made and/or uses ??a similar application. > > Thanks > Regards > vuott > Can you send me your midi file? Thanks! -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sotema at ...626... Thu Jun 27 09:52:04 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 27 Jun 2013 09:52:04 +0200 Subject: [Gambas-user] Postgresql 9.x error with Blob field Message-ID: <1372319524.2504.20.camel@...2516...> Since version 9.0 of Postgresql server, DB.Postgresql component fails saving an image file to a blob field type. Maybe due a change in postgresql internals the escaping sequence produces a bad text. No error on Insert/Select statement, but when you try to load the image into a PictureBox you get the error 'Unable to load picture'. PictureDatabase example can be used to test it. With dumphex command on retrieved file you can note that is not a valid image file. Attached the first line output of hexdump -c of gambas logo and same image inserted into a blob field. -------------- next part -------------- A non-text attachment was scrubbed... Name: blob_field.tar.gz Type: application/x-compressed-tar Size: 229 bytes Desc: not available URL: From taboege at ...626... Thu Jun 27 11:34:33 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 27 Jun 2013 11:34:33 +0200 Subject: [Gambas-user] read/data commands In-Reply-To: <51CB5A84.9040400@...2185...> References: <51CB5A84.9040400@...2185...> Message-ID: <20130627093433.GA790@...2774...> On Wed, 26 Jun 2013, Keith Clark wrote: > Does Gambas support read/data commands like the following for loading a > simple array with fixed values? > > for t=0 to 4 > for x = 0 to 4 > read v(t,x) > next x > next t > > data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > > Maybe I'm just not finding it? > I don't know what you want to do, actually, and your snippet does not resemble Gambas at all... Maybe you want to access elements of a 2D array where t is the row and x is the column? So if v is an Integer[][], then you need to do: For t = 0 To 4 For x = 0 To 4 Print v[t][x] Next Next Regards, Tobi From gambas at ...1... Thu Jun 27 11:41:34 2013 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 27 Jun 2013 11:41:34 +0200 Subject: [Gambas-user] Error playing File Midi with libgstreamer new version In-Reply-To: <1372295286.7221.YahooMailBasic@...3070...> References: <1372295286.7221.YahooMailBasic@...3070...> Message-ID: <51CC08CE.1070506@...1...> Le 27/06/2013 03:08, Ru Vuott a ?crit : > Hello Beno?t, > > excuse me, but... do you want the "midi File" or my gb.media application ? > > ....I suppose my application. > > bye > vuott > No, the midi file: I want to play it with the MediaPlayer example to reproduce the problem. -- Beno?t Minisini From alberto.kavan at ...626... Thu Jun 27 12:03:42 2013 From: alberto.kavan at ...626... (Alberto Caballero) Date: Thu, 27 Jun 2013 12:03:42 +0200 Subject: [Gambas-user] Multiple charts using gb.chart Message-ID: Hi all, I am trying to show multiple charts inside a TabView. I managed to show only one chart. I only get compilation errors or the new chart is not displayed. I tried to find something to help me in the internet, and even in this mailing list, but I was unable to find anything. Would you provide me any reference or an example to have a look? Thanks in advance, Alberto From taboege at ...626... Thu Jun 27 12:08:33 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 27 Jun 2013 12:08:33 +0200 Subject: [Gambas-user] Draw fill styles with Paint class? Message-ID: <20130627100833.GC790@...2774...> Hi, I wonder if one could use the Draw.FillStyles (the Fill.* constants) together with the Paint class somehow (dropping any reference to the Draw class) - or do I have to do things like File.Dense6 myself with Paint? Is there maybe any PaintBrush magic involved? As I remember, the Draw class is now implemented on top of Paint but I couldn't find the sources (not even the definition of GB_DRAW)... Regards, Tobi From gambas at ...1... Thu Jun 27 12:17:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 27 Jun 2013 12:17:00 +0200 Subject: [Gambas-user] Draw fill styles with Paint class? In-Reply-To: <20130627100833.GC790@...2774...> References: <20130627100833.GC790@...2774...> Message-ID: <51CC111C.3000509@...1...> Le 27/06/2013 12:08, Tobias Boege a ?crit : > Hi, > > I wonder if one could use the Draw.FillStyles (the Fill.* constants) > together with the Paint class somehow (dropping any reference to the Draw > class) - or do I have to do things like File.Dense6 myself with Paint? Is > there maybe any PaintBrush magic involved? > > As I remember, the Draw class is now implemented on top of Paint but I > couldn't find the sources (not even the definition of GB_DRAW)... > > Regards, > Tobi > The Draw class source code is in the gb.gui.base component (/comp/src/gb.gui.base). -- Beno?t Minisini From taboege at ...626... Thu Jun 27 12:31:24 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 27 Jun 2013 12:31:24 +0200 Subject: [Gambas-user] Draw fill styles with Paint class? In-Reply-To: <51CC111C.3000509@...1...> References: <20130627100833.GC790@...2774...> <51CC111C.3000509@...1...> Message-ID: <20130627103124.GD790@...2774...> On Thu, 27 Jun 2013, Beno?t Minisini wrote: > Le 27/06/2013 12:08, Tobias Boege a ?crit : > > Hi, > > > > I wonder if one could use the Draw.FillStyles (the Fill.* constants) > > together with the Paint class somehow (dropping any reference to the Draw > > class) - or do I have to do things like File.Dense6 myself with Paint? Is > > there maybe any PaintBrush magic involved? > > > > As I remember, the Draw class is now implemented on top of Paint but I > > couldn't find the sources (not even the definition of GB_DRAW)... > > > > Regards, > > Tobi > > > > The Draw class source code is in the gb.gui.base component > (/comp/src/gb.gui.base). > Makes sense now that you said it. OK, got it. Thanks. Regards, Tobi From sotema at ...626... Thu Jun 27 14:12:55 2013 From: sotema at ...626... (Emanuele Sottocorno) Date: Thu, 27 Jun 2013 14:12:55 +0200 Subject: [Gambas-user] Postgresql 9.x error with Blob field Message-ID: <1372335175.2897.3.camel@...2516...> Hi Benoit, changing the parameter 'bytea_output' in postgresql.conf file from 'hex' to 'escape' fix the problem. I don't remember if that was the default value till 8.4 version. I'll check it this evening when i get back home. Thanks. Emanuele From vuott at ...325... Thu Jun 27 14:39:06 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 27 Jun 2013 13:39:06 +0100 (BST) Subject: [Gambas-user] Error playing File Midi with libgstreamer new version Message-ID: <1372336746.74810.YahooMailBasic@...3066...> Ah... Ok. No problem: Midi file attached here. I tried the midi file with MediaPlayer example, but at loading I get error: "GStreamer encountered a general stream error". In console: No decoder available for type 'audio/midi'. [*] Your GStreamer installation is missing a plug-in. [*] A audio/midi decoder plugin is required to play this stream, but not installed. [*] GStreamer encountered a general stream error. Bye vuott -------------------------------------------- Gio 27/6/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Error playing File Midi with libgstreamer new version A: "mailing list for gambas users" Data: Gioved? 27 giugno 2013, 11:41 Le 27/06/2013 03:08, Ru Vuott a ?crit : > Hello Beno?t, > > excuse me, but... do you want the "midi File" or my gb.media application ? > > ....I suppose my application. > > bye > vuott > No, the midi file: I want to play it with the MediaPlayer example to reproduce the problem. -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: 4bros.mid Type: audio/midi Size: 25088 bytes Desc: not available URL: From vuott at ...325... Thu Jun 27 15:41:08 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 27 Jun 2013 14:41:08 +0100 (BST) Subject: [Gambas-user] Error playing File Midi with libgstreamer... - BIS In-Reply-To: <1372336746.74810.YahooMailBasic@...3066...> Message-ID: <1372340468.23032.YahooMailBasic@...3054...> About my console results: [*] Your GStreamer installation is missing a plug-in. [*] A audio/midi decoder plugin is required to play this stream, but not installed. I want to add that I installed: libgstreamer-plugins-base1.0-dev -------------------------------------------- Gio 27/6/13, Ru Vuott ha scritto: Oggetto: Re: [Gambas-user] Error playing File Midi with libgstreamer new version A: "mailing list for gambas users" Data: Gioved? 27 giugno 2013, 14:39 Ah... Ok. No problem: Midi file attached here. I tried the midi file with MediaPlayer example, but at loading I get error: "GStreamer encountered a general stream error". In console: No decoder available for type 'audio/midi'. [*] Your GStreamer installation is missing a plug-in. [*] A audio/midi decoder plugin is required to play this stream, but not installed. [*] GStreamer encountered a general stream error. Bye vuott -------------------------------------------- Gio 27/6/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Error playing File Midi with libgstreamer new version A: "mailing list for gambas users" Data: Gioved? 27 giugno 2013, 11:41 Le 27/06/2013 03:08, Ru Vuott a ?crit : > Hello Beno?t, > > excuse me, but... do you want the "midi File" or my gb.media application ? > > ....I suppose my application. > > bye > vuott > No, the midi file: I want to play it with the MediaPlayer example to reproduce the problem. -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -----Segue allegato----- ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev -----Segue allegato----- _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Thu Jun 27 18:07:29 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 27 Jun 2013 17:07:29 +0100 (BST) Subject: [Gambas-user] Error playing File Midi with libgstreamer - TER In-Reply-To: <51CC08CE.1070506@...1...> Message-ID: <1372349249.56235.YahooMailBasic@...3054...> Hello Beno?t, I posted a question in GStreamer Mailing List about no-Playing Midi file with GStramer version 1.0.6. I had 2 answers, here: ----- There's a "wildmidi" plugin in -plugins-bad that may help? There's also "timidity", but it hasn't been ported to GStreamer 1.0 yet (and I can't figure out how to install the dependencies, but it may be easy to port). ------- -------- It should work in git master or the 1.1.1 development release. There's a new fluidsynth plugin. If you make a sample file available we can test it. Also see: https://bugzilla.gnome.org/show_bug.cgi?id=696041 https://bugzilla.gnome.org/show_bug.cgi?id=690892 I think "Midi support" in the FAQ means something else (more like sending midi data through the pipeline etc.) ------ Bye vuott -------------------------------------------- Gio 27/6/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] Error playing File Midi with libgstreamer new version A: "mailing list for gambas users" Data: Gioved? 27 giugno 2013, 11:41 Le 27/06/2013 03:08, Ru Vuott a ?crit : > Hello Beno?t, > > excuse me, but... do you want the "midi File" or my gb.media application ? > > ....I suppose my application. > > bye > vuott > No, the midi file: I want to play it with the MediaPlayer example to reproduce the problem. -- Beno?t Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Jun 27 20:00:16 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 27 Jun 2013 21:00:16 +0300 Subject: [Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error.... In-Reply-To: <1372195013.64702.YahooMailBasic@...3063...> References: <1372195013.64702.YahooMailBasic@...3063...> Message-ID: x \ y doesn't take floats (x / y however does), and exponent will return float instead of integer. Not sure this is what Benoit intended. I would expect automatic conversion, though that might lead to hidden unexpected behaviour which is worse. This should work: Print 16 \ cint(2 ^ 3) Jussi From vuott at ...325... Thu Jun 27 20:21:01 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 27 Jun 2013 19:21:01 +0100 (BST) Subject: [Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error.... In-Reply-To: Message-ID: <1372357261.95869.YahooMailBasic@...3066...> Well, so aritmetic operator \ doesn't accept float numbers. Thank you, Jussi bye vuottttt -------------------------------------------- Gio 27/6/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error.... A: "mailing list for gambas users" Cc: "Benoit" Data: Gioved? 27 giugno 2013, 20:00 x \ y doesn't take floats (x / y however does), and exponent will return float instead of integer. Not sure this is what Benoit intended. I would expect automatic conversion, though that might lead to hidden unexpected behaviour which is worse. This should work: Print 16 \ cint(2 ^ 3) Jussi ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From keithclark at ...2185... Thu Jun 27 21:55:30 2013 From: keithclark at ...2185... (Keith Clark) Date: Thu, 27 Jun 2013 15:55:30 -0400 Subject: [Gambas-user] read/data commands In-Reply-To: <20130627093433.GA790@...2774...> References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> Message-ID: <51CC98B2.6030202@...2185...> On 13-06-27 05:34 AM, Tobias Boege wrote: > On Wed, 26 Jun 2013, Keith Clark wrote: >> Does Gambas support read/data commands like the following for loading a >> simple array with fixed values? >> >> for t=0 to 4 >> for x = 0 to 4 >> read v(t,x) >> next x >> next t >> >> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >> >> Maybe I'm just not finding it? >> > I don't know what you want to do, actually, and your snippet does not > resemble Gambas at all... Maybe you want to access elements of a 2D array > where t is the row and x is the column? So if v is an Integer[][], then you > need to do: > > For t = 0 To 4 > For x = 0 To 4 > Print v[t][x] > Next > Next > > Regards, > Tobi > > Yeah, I posted that question rather quickly. I want to fill an array with a very simple, fixed dataset that will never change. The code I gave above is from an old dialect, but really just the curved brackets should have been square. for t=0 to 4 for x = 0 to 4 read v[t,x] next x next t data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... Would read into the array v the data in the 'data' statement v[0,0]=1 v[0,1]=2 and so on. For reference: http://www.antonis.de/qbebooks/gwbasman/read.html From gambas.fr at ...626... Thu Jun 27 22:19:15 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 27 Jun 2013 22:19:15 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: can you send me your project or a part of it that show the problem ? 2013/6/27 Alberto Caballero > Hi all, > > I am trying to show multiple charts inside a TabView. I managed to show > only one chart. I only get compilation errors or the new chart is not > displayed. I tried to find something to help me in the internet, and even > in this mailing list, but I was unable to find anything. > > Would you provide me any reference or an example to have a look? > > Thanks in advance, > > Alberto > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From jussi.lahtinen at ...626... Thu Jun 27 23:48:38 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 28 Jun 2013 00:48:38 +0300 Subject: [Gambas-user] read/data commands In-Reply-To: <51CC98B2.6030202@...2185...> References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> Message-ID: I don't quite understand usage of data... Will this do what you want? Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] Dim v As New Integer[] v = data.Copy() Or this: Dim ii As Integer, jj As Integer Dim data As New Integer[5, 5] For ii = 0 To 4 For jj = 0 To 4 data[ii, jj] = jj + 1 Next Next Jussi On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark wrote: > On 13-06-27 05:34 AM, Tobias Boege wrote: > > On Wed, 26 Jun 2013, Keith Clark wrote: > >> Does Gambas support read/data commands like the following for loading a > >> simple array with fixed values? > >> > >> for t=0 to 4 > >> for x = 0 to 4 > >> read v(t,x) > >> next x > >> next t > >> > >> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > >> > >> Maybe I'm just not finding it? > >> > > I don't know what you want to do, actually, and your snippet does not > > resemble Gambas at all... Maybe you want to access elements of a 2D array > > where t is the row and x is the column? So if v is an Integer[][], then > you > > need to do: > > > > For t = 0 To 4 > > For x = 0 To 4 > > Print v[t][x] > > Next > > Next > > > > Regards, > > Tobi > > > > > Yeah, I posted that question rather quickly. I want to fill an array > with a very simple, fixed dataset that will never change. The code I > gave above is from an old dialect, but really just the curved brackets > should have been square. > > for t=0 to 4 > for x = 0 to 4 > read v[t,x] > next x > next t > > data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > > Would read into the array v the data in the 'data' statement > > v[0,0]=1 > v[0,1]=2 > and so on. > > For reference: > http://www.antonis.de/qbebooks/gwbasman/read.html > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jun 27 23:49:30 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 28 Jun 2013 00:49:30 +0300 Subject: [Gambas-user] read/data commands In-Reply-To: References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> Message-ID: Sorry, with your correct variable names; Dim ii As Integer, jj As Integer Dim v As New Integer[5, 5] For ii = 0 To 4 For jj = 0 To 4 v[ii, jj] = jj + 1 Next Next On Fri, Jun 28, 2013 at 12:48 AM, Jussi Lahtinen wrote: > I don't quite understand usage of data... > > Will this do what you want? > > Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] > Dim v As New Integer[] > > v = data.Copy() > > > Or this: > > Dim ii As Integer, jj As Integer > Dim data As New Integer[5, 5] > > For ii = 0 To 4 > For jj = 0 To 4 > data[ii, jj] = jj + 1 > Next > Next > > > Jussi > > > > > > > > > On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark wrote: > >> On 13-06-27 05:34 AM, Tobias Boege wrote: >> > On Wed, 26 Jun 2013, Keith Clark wrote: >> >> Does Gambas support read/data commands like the following for loading a >> >> simple array with fixed values? >> >> >> >> for t=0 to 4 >> >> for x = 0 to 4 >> >> read v(t,x) >> >> next x >> >> next t >> >> >> >> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >> >> >> >> Maybe I'm just not finding it? >> >> >> > I don't know what you want to do, actually, and your snippet does not >> > resemble Gambas at all... Maybe you want to access elements of a 2D >> array >> > where t is the row and x is the column? So if v is an Integer[][], then >> you >> > need to do: >> > >> > For t = 0 To 4 >> > For x = 0 To 4 >> > Print v[t][x] >> > Next >> > Next >> > >> > Regards, >> > Tobi >> > >> > >> Yeah, I posted that question rather quickly. I want to fill an array >> with a very simple, fixed dataset that will never change. The code I >> gave above is from an old dialect, but really just the curved brackets >> should have been square. >> >> for t=0 to 4 >> for x = 0 to 4 >> read v[t,x] >> next x >> next t >> >> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >> >> Would read into the array v the data in the 'data' statement >> >> v[0,0]=1 >> v[0,1]=2 >> and so on. >> >> For reference: >> http://www.antonis.de/qbebooks/gwbasman/read.html >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From keithclark at ...2185... Thu Jun 27 23:54:35 2013 From: keithclark at ...2185... (Keith Clark) Date: Thu, 27 Jun 2013 17:54:35 -0400 Subject: [Gambas-user] read/data commands In-Reply-To: References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> Message-ID: <51CCB49B.3080108@...2185...> No, the data was just an example. What if it were to be 255 unrelated values? Did nobody else use BASIC from the 80s? Read/Data statments..... On 13-06-27 05:48 PM, Jussi Lahtinen wrote: > I don't quite understand usage of data... > > Will this do what you want? > > Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] > Dim v As New Integer[] > > v = data.Copy() > > > Or this: > > Dim ii As Integer, jj As Integer > Dim data As New Integer[5, 5] > > For ii = 0 To 4 > For jj = 0 To 4 > data[ii, jj] = jj + 1 > Next > Next > > > Jussi > > > > > > > > > On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark wrote: > >> On 13-06-27 05:34 AM, Tobias Boege wrote: >>> On Wed, 26 Jun 2013, Keith Clark wrote: >>>> Does Gambas support read/data commands like the following for loading a >>>> simple array with fixed values? >>>> >>>> for t=0 to 4 >>>> for x = 0 to 4 >>>> read v(t,x) >>>> next x >>>> next t >>>> >>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>>> >>>> Maybe I'm just not finding it? >>>> >>> I don't know what you want to do, actually, and your snippet does not >>> resemble Gambas at all... Maybe you want to access elements of a 2D array >>> where t is the row and x is the column? So if v is an Integer[][], then >> you >>> need to do: >>> >>> For t = 0 To 4 >>> For x = 0 To 4 >>> Print v[t][x] >>> Next >>> Next >>> >>> Regards, >>> Tobi >>> >>> >> Yeah, I posted that question rather quickly. I want to fill an array >> with a very simple, fixed dataset that will never change. The code I >> gave above is from an old dialect, but really just the curved brackets >> should have been square. >> >> for t=0 to 4 >> for x = 0 to 4 >> read v[t,x] >> next x >> next t >> >> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >> >> Would read into the array v the data in the 'data' statement >> >> v[0,0]=1 >> v[0,1]=2 >> and so on. >> >> For reference: >> http://www.antonis.de/qbebooks/gwbasman/read.html >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tom at ...3139... Fri Jun 28 00:03:11 2013 From: tom at ...3139... (Tom) Date: Thu, 27 Jun 2013 18:03:11 -0400 Subject: [Gambas-user] read/data commands In-Reply-To: <51CCB49B.3080108@...2185...> References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> <51CCB49B.3080108@...2185...> Message-ID: <51CCB69F.5040507@...3139...> The way I remember it was: (your second example) Dim data[5, 5] As Integer On 6/27/2013 5:54 PM, Keith Clark wrote: > No, the data was just an example. What if it were to be 255 unrelated > values? > > Did nobody else use BASIC from the 80s? > > Read/Data statments..... > > On 13-06-27 05:48 PM, Jussi Lahtinen wrote: >> I don't quite understand usage of data... >> >> Will this do what you want? >> >> Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] >> Dim v As New Integer[] >> >> v = data.Copy() >> >> >> Or this: >> >> Dim ii As Integer, jj As Integer >> Dim data As New Integer[5, 5] >> >> For ii = 0 To 4 >> For jj = 0 To 4 >> data[ii, jj] = jj + 1 >> Next >> Next >> >> >> Jussi >> >> >> >> >> >> >> >> >> On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark wrote: >> >>> On 13-06-27 05:34 AM, Tobias Boege wrote: >>>> On Wed, 26 Jun 2013, Keith Clark wrote: >>>>> Does Gambas support read/data commands like the following for loading a >>>>> simple array with fixed values? >>>>> >>>>> for t=0 to 4 >>>>> for x = 0 to 4 >>>>> read v(t,x) >>>>> next x >>>>> next t >>>>> >>>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>>>> >>>>> Maybe I'm just not finding it? >>>>> >>>> I don't know what you want to do, actually, and your snippet does not >>>> resemble Gambas at all... Maybe you want to access elements of a 2D array >>>> where t is the row and x is the column? So if v is an Integer[][], then >>> you >>>> need to do: >>>> >>>> For t = 0 To 4 >>>> For x = 0 To 4 >>>> Print v[t][x] >>>> Next >>>> Next >>>> >>>> Regards, >>>> Tobi >>>> >>>> >>> Yeah, I posted that question rather quickly. I want to fill an array >>> with a very simple, fixed dataset that will never change. The code I >>> gave above is from an old dialect, but really just the curved brackets >>> should have been square. >>> >>> for t=0 to 4 >>> for x = 0 to 4 >>> read v[t,x] >>> next x >>> next t >>> >>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>> >>> Would read into the array v the data in the 'data' statement >>> >>> v[0,0]=1 >>> v[0,1]=2 >>> and so on. >>> >>> For reference: >>> http://www.antonis.de/qbebooks/gwbasman/read.html >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Jun 28 00:22:25 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 28 Jun 2013 01:22:25 +0300 Subject: [Gambas-user] read/data commands In-Reply-To: <51CCB49B.3080108@...2185...> References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> <51CCB49B.3080108@...2185...> Message-ID: How about this? Dim data As New Integer[][] Dim v As New Integer[10, 10] data.Add([1, 2, 3, 4, 5]) data.Add([6, 7, 8, 9, 10, 11]) For ii = 0 To data.Max For jj = 0 To data[ii].Max v[ii, jj] = data[ii][jj] Next Next Or maybe you want to read the data from file? Jussi On Fri, Jun 28, 2013 at 12:54 AM, Keith Clark wrote: > No, the data was just an example. What if it were to be 255 unrelated > values? > > Did nobody else use BASIC from the 80s? > > Read/Data statments..... > > On 13-06-27 05:48 PM, Jussi Lahtinen wrote: > > I don't quite understand usage of data... > > > > Will this do what you want? > > > > Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] > > Dim v As New Integer[] > > > > v = data.Copy() > > > > > > Or this: > > > > Dim ii As Integer, jj As Integer > > Dim data As New Integer[5, 5] > > > > For ii = 0 To 4 > > For jj = 0 To 4 > > data[ii, jj] = jj + 1 > > Next > > Next > > > > > > Jussi > > > > > > > > > > > > > > > > > > On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark < > keithclark at ...2185...>wrote: > > > >> On 13-06-27 05:34 AM, Tobias Boege wrote: > >>> On Wed, 26 Jun 2013, Keith Clark wrote: > >>>> Does Gambas support read/data commands like the following for loading > a > >>>> simple array with fixed values? > >>>> > >>>> for t=0 to 4 > >>>> for x = 0 to 4 > >>>> read v(t,x) > >>>> next x > >>>> next t > >>>> > >>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > >>>> > >>>> Maybe I'm just not finding it? > >>>> > >>> I don't know what you want to do, actually, and your snippet does not > >>> resemble Gambas at all... Maybe you want to access elements of a 2D > array > >>> where t is the row and x is the column? So if v is an Integer[][], then > >> you > >>> need to do: > >>> > >>> For t = 0 To 4 > >>> For x = 0 To 4 > >>> Print v[t][x] > >>> Next > >>> Next > >>> > >>> Regards, > >>> Tobi > >>> > >>> > >> Yeah, I posted that question rather quickly. I want to fill an array > >> with a very simple, fixed dataset that will never change. The code I > >> gave above is from an old dialect, but really just the curved brackets > >> should have been square. > >> > >> for t=0 to 4 > >> for x = 0 to 4 > >> read v[t,x] > >> next x > >> next t > >> > >> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > >> > >> Would read into the array v the data in the 'data' statement > >> > >> v[0,0]=1 > >> v[0,1]=2 > >> and so on. > >> > >> For reference: > >> http://www.antonis.de/qbebooks/gwbasman/read.html > >> > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by Windows: > >> > >> Build for Windows Store. > >> > >> http://p.sf.net/sfu/windows-dev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jun 28 00:33:38 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 28 Jun 2013 00:33:38 +0200 Subject: [Gambas-user] Error playing File Midi with libgstreamer - TER In-Reply-To: <1372349249.56235.YahooMailBasic@...3054...> References: <1372349249.56235.YahooMailBasic@...3054...> Message-ID: <51CCBDC2.9020805@...1...> Le 27/06/2013 18:07, Ru Vuott a ?crit : > Hello Beno?t, > > I posted a question in GStreamer Mailing List about no-Playing Midi file with GStramer version 1.0.6. > > I had 2 answers, here: > ----- > There's a "wildmidi" plugin in -plugins-bad that may help? There's also > "timidity", but it hasn't been ported to GStreamer 1.0 yet (and I can't > figure out how to install the dependencies, but it may be easy to port). > ------- > > > -------- > It should work in git master or the 1.1.1 development release. There's a > new fluidsynth plugin. If you make a sample file available we can test it. > > Also see: > https://bugzilla.gnome.org/show_bug.cgi?id=696041 > https://bugzilla.gnome.org/show_bug.cgi?id=690892 > > I think "Midi support" in the FAQ means something else (more like > sending midi data through the pipeline etc.) > ------ > > Bye > vuott > No plugin has the word "midi" in it on the plugin list provided by http://gstreamer.freedesktop.org/documentation/ I think we must wait for the 1.2 version. :-/ -- Beno?t Minisini From keithclark at ...2185... Fri Jun 28 01:39:54 2013 From: keithclark at ...2185... (Keith Clark) Date: Thu, 27 Jun 2013 19:39:54 -0400 Subject: [Gambas-user] read/data commands In-Reply-To: References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> <51CCB49B.3080108@...2185...> Message-ID: <51CCCD4A.7010901@...2185...> Jussi I believe you have it there, thanks. I want to avoid a file for such a small, unchanging dataset. Thanks, Keith On 13-06-27 06:22 PM, Jussi Lahtinen wrote: > How about this? > > Dim data As New Integer[][] > Dim v As New Integer[10, 10] > > data.Add([1, 2, 3, 4, 5]) > data.Add([6, 7, 8, 9, 10, 11]) > > For ii = 0 To data.Max > For jj = 0 To data[ii].Max > v[ii, jj] = data[ii][jj] > Next > Next > > Or maybe you want to read the data from file? > > Jussi > > > > > > On Fri, Jun 28, 2013 at 12:54 AM, Keith Clark wrote: > >> No, the data was just an example. What if it were to be 255 unrelated >> values? >> >> Did nobody else use BASIC from the 80s? >> >> Read/Data statments..... >> >> On 13-06-27 05:48 PM, Jussi Lahtinen wrote: >>> I don't quite understand usage of data... >>> >>> Will this do what you want? >>> >>> Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] >>> Dim v As New Integer[] >>> >>> v = data.Copy() >>> >>> >>> Or this: >>> >>> Dim ii As Integer, jj As Integer >>> Dim data As New Integer[5, 5] >>> >>> For ii = 0 To 4 >>> For jj = 0 To 4 >>> data[ii, jj] = jj + 1 >>> Next >>> Next >>> >>> >>> Jussi >>> >>> >>> >>> >>> >>> >>> >>> >>> On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark < >> keithclark at ...2185...>wrote: >>>> On 13-06-27 05:34 AM, Tobias Boege wrote: >>>>> On Wed, 26 Jun 2013, Keith Clark wrote: >>>>>> Does Gambas support read/data commands like the following for loading >> a >>>>>> simple array with fixed values? >>>>>> >>>>>> for t=0 to 4 >>>>>> for x = 0 to 4 >>>>>> read v(t,x) >>>>>> next x >>>>>> next t >>>>>> >>>>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>>>>> >>>>>> Maybe I'm just not finding it? >>>>>> >>>>> I don't know what you want to do, actually, and your snippet does not >>>>> resemble Gambas at all... Maybe you want to access elements of a 2D >> array >>>>> where t is the row and x is the column? So if v is an Integer[][], then >>>> you >>>>> need to do: >>>>> >>>>> For t = 0 To 4 >>>>> For x = 0 To 4 >>>>> Print v[t][x] >>>>> Next >>>>> Next >>>>> >>>>> Regards, >>>>> Tobi >>>>> >>>>> >>>> Yeah, I posted that question rather quickly. I want to fill an array >>>> with a very simple, fixed dataset that will never change. The code I >>>> gave above is from an old dialect, but really just the curved brackets >>>> should have been square. >>>> >>>> for t=0 to 4 >>>> for x = 0 to 4 >>>> read v[t,x] >>>> next x >>>> next t >>>> >>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>>> >>>> Would read into the array v the data in the 'data' statement >>>> >>>> v[0,0]=1 >>>> v[0,1]=2 >>>> and so on. >>>> >>>> For reference: >>>> http://www.antonis.de/qbebooks/gwbasman/read.html >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Windows: >>>> >>>> Build for Windows Store. >>>> >>>> http://p.sf.net/sfu/windows-dev2dev >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Gambas at ...1950... Fri Jun 28 12:23:31 2013 From: Gambas at ...1950... (Caveat) Date: Fri, 28 Jun 2013 12:23:31 +0200 Subject: [Gambas-user] read/data commands In-Reply-To: <51CCB49B.3080108@...2185...> References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> <51CCB49B.3080108@...2185...> Message-ID: <51CD6423.2000103@...1950...> Think the rest of the list are pretending to be younger than they are! Of course I remember read/data statements, it was quite a popular way of getting a little (and sometimes not so little!) snippet of machine code into a basic program. I still have my Spectrum 48k, my ZX81, and my ZX80 :-D Kind regards, Caveat On 27/06/13 23:54, Keith Clark wrote: > No, the data was just an example. What if it were to be 255 unrelated > values? > > Did nobody else use BASIC from the 80s? > > Read/Data statments..... > > On 13-06-27 05:48 PM, Jussi Lahtinen wrote: >> I don't quite understand usage of data... >> >> Will this do what you want? >> >> Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] >> Dim v As New Integer[] >> >> v = data.Copy() >> >> >> Or this: >> >> Dim ii As Integer, jj As Integer >> Dim data As New Integer[5, 5] >> >> For ii = 0 To 4 >> For jj = 0 To 4 >> data[ii, jj] = jj + 1 >> Next >> Next >> >> >> Jussi >> >> >> >> >> >> >> >> >> On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark wrote: >> >>> On 13-06-27 05:34 AM, Tobias Boege wrote: >>>> On Wed, 26 Jun 2013, Keith Clark wrote: >>>>> Does Gambas support read/data commands like the following for loading a >>>>> simple array with fixed values? >>>>> >>>>> for t=0 to 4 >>>>> for x = 0 to 4 >>>>> read v(t,x) >>>>> next x >>>>> next t >>>>> >>>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>>>> >>>>> Maybe I'm just not finding it? >>>>> >>>> I don't know what you want to do, actually, and your snippet does not >>>> resemble Gambas at all... Maybe you want to access elements of a 2D array >>>> where t is the row and x is the column? So if v is an Integer[][], then >>> you >>>> need to do: >>>> >>>> For t = 0 To 4 >>>> For x = 0 To 4 >>>> Print v[t][x] >>>> Next >>>> Next >>>> >>>> Regards, >>>> Tobi >>>> >>>> >>> Yeah, I posted that question rather quickly. I want to fill an array >>> with a very simple, fixed dataset that will never change. The code I >>> gave above is from an old dialect, but really just the curved brackets >>> should have been square. >>> >>> for t=0 to 4 >>> for x = 0 to 4 >>> read v[t,x] >>> next x >>> next t >>> >>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... >>> >>> Would read into the array v the data in the 'data' statement >>> >>> v[0,0]=1 >>> v[0,1]=2 >>> and so on. >>> >>> For reference: >>> http://www.antonis.de/qbebooks/gwbasman/read.html >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Fri Jun 28 12:37:37 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 28 Jun 2013 13:37:37 +0300 Subject: [Gambas-user] read/data commands In-Reply-To: <51CD6423.2000103@...1950...> References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> <51CCB49B.3080108@...2185...> <51CD6423.2000103@...1950...> Message-ID: I remember read/data statements, but I never used them. There is inline assembler in C... Jussi On Fri, Jun 28, 2013 at 1:23 PM, Caveat wrote: > Think the rest of the list are pretending to be younger than they are! > > Of course I remember read/data statements, it was quite a popular way of > getting a little (and sometimes not so little!) snippet of machine code > into a basic program. > > I still have my Spectrum 48k, my ZX81, and my ZX80 :-D > > Kind regards, > Caveat > > On 27/06/13 23:54, Keith Clark wrote: > > No, the data was just an example. What if it were to be 255 unrelated > > values? > > > > Did nobody else use BASIC from the 80s? > > > > Read/Data statments..... > > > > On 13-06-27 05:48 PM, Jussi Lahtinen wrote: > >> I don't quite understand usage of data... > >> > >> Will this do what you want? > >> > >> Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] > >> Dim v As New Integer[] > >> > >> v = data.Copy() > >> > >> > >> Or this: > >> > >> Dim ii As Integer, jj As Integer > >> Dim data As New Integer[5, 5] > >> > >> For ii = 0 To 4 > >> For jj = 0 To 4 > >> data[ii, jj] = jj + 1 > >> Next > >> Next > >> > >> > >> Jussi > >> > >> > >> > >> > >> > >> > >> > >> > >> On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark < > keithclark at ...2185...>wrote: > >> > >>> On 13-06-27 05:34 AM, Tobias Boege wrote: > >>>> On Wed, 26 Jun 2013, Keith Clark wrote: > >>>>> Does Gambas support read/data commands like the following for > loading a > >>>>> simple array with fixed values? > >>>>> > >>>>> for t=0 to 4 > >>>>> for x = 0 to 4 > >>>>> read v(t,x) > >>>>> next x > >>>>> next t > >>>>> > >>>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > >>>>> > >>>>> Maybe I'm just not finding it? > >>>>> > >>>> I don't know what you want to do, actually, and your snippet does not > >>>> resemble Gambas at all... Maybe you want to access elements of a 2D > array > >>>> where t is the row and x is the column? So if v is an Integer[][], > then > >>> you > >>>> need to do: > >>>> > >>>> For t = 0 To 4 > >>>> For x = 0 To 4 > >>>> Print v[t][x] > >>>> Next > >>>> Next > >>>> > >>>> Regards, > >>>> Tobi > >>>> > >>>> > >>> Yeah, I posted that question rather quickly. I want to fill an array > >>> with a very simple, fixed dataset that will never change. The code I > >>> gave above is from an old dialect, but really just the curved brackets > >>> should have been square. > >>> > >>> for t=0 to 4 > >>> for x = 0 to 4 > >>> read v[t,x] > >>> next x > >>> next t > >>> > >>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > >>> > >>> Would read into the array v the data in the 'data' statement > >>> > >>> v[0,0]=1 > >>> v[0,1]=2 > >>> and so on. > >>> > >>> For reference: > >>> http://www.antonis.de/qbebooks/gwbasman/read.html > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> This SF.net email is sponsored by Windows: > >>> > >>> Build for Windows Store. > >>> > >>> http://p.sf.net/sfu/windows-dev2dev > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by Windows: > >> > >> Build for Windows Store. > >> > >> http://p.sf.net/sfu/windows-dev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From alberto.kavan at ...626... Fri Jun 28 12:54:00 2013 From: alberto.kavan at ...626... (Alberto Caballero) Date: Fri, 28 Jun 2013 12:54:00 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: Hi Fabien, Thanks for your support. Here you have the piece of code that manages the graph. For a new graph at a new DrawingArea, should I declare a new Chart variable? I think this did not work for me. Private Sub GenGraficaCaudales() Dim i As Integer Dim msg As String Dim titles As New String[365] Dim CaudalesArray As New Float[365] For i = 0 To 364 msg = Str$(i) titles[i] = msg Next CaudalesArray = pProyecto.GetCaudalesArray() ChartCaudales.Headers.Values = titles ChartCaudales.CountDataSets = 1 ChartCaudales[0].Text = "Caudales" ChartCaudales[0].Values = CaudalesArray ChartCaudales.Style = ChartStyle.Custom ChartCaudales.Colors.values = [Color.blue, Color.Yellow] ChartCaudales.Legend.Visible = True ChartCaudales.Legend.Title = "Leyenda" 'Titulo de la Gr?fica ChartCaudales.Title.Text = "Curva de Caudales Clasificados" ChartCaudales.XAxe.Step = 10 ChartCaudales.YAxe.MinValue = 0 ChartCaudales.YAxe.MaxValue = 15 ChartCaudales.Proportionnal = True 'Tipo de Gr?fica ChartCaudales.Type = ChartType.Lines End Public Sub DrawingArea1_Draw() If (DrawOk = True) Then ChartCaudales.Width = DrawingArea1.ClientHeight - 50 ChartCaudales.Height = DrawingArea1.ClientWidth - 50 ChartCaudales.Resize(880, 450) ChartCaudales.Draw 'Muestra la Grafica Endif End 2013/6/27 Fabien Bodard > can you send me your project or a part of it that show the problem ? > > > 2013/6/27 Alberto Caballero > > > Hi all, > > > > I am trying to show multiple charts inside a TabView. I managed to show > > only one chart. I only get compilation errors or the new chart is not > > displayed. I tried to find something to help me in the internet, and even > > in this mailing list, but I was unable to find anything. > > > > Would you provide me any reference or an example to have a look? > > > > Thanks in advance, > > > > Alberto > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 28 13:06:19 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 28 Jun 2013 13:06:19 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: I think I don'treally understand what you want to do ... One tabstrip ... Multiple tabs and one chart object with different set of data that change depend on the selected tab ? Le 28 juin 2013 12:54, "Alberto Caballero" a ?crit : > Hi Fabien, > > Thanks for your support. > > Here you have the piece of code that manages the graph. For a new graph at > a new DrawingArea, should I declare a new Chart variable? I think this did > not work for me. > > Private Sub GenGraficaCaudales() > > Dim i As Integer > Dim msg As String > Dim titles As New String[365] > Dim CaudalesArray As New Float[365] > > For i = 0 To 364 > msg = Str$(i) > titles[i] = msg > Next > > CaudalesArray = pProyecto.GetCaudalesArray() > ChartCaudales.Headers.Values = titles > ChartCaudales.CountDataSets = 1 > > ChartCaudales[0].Text = "Caudales" > ChartCaudales[0].Values = CaudalesArray > > ChartCaudales.Style = ChartStyle.Custom > ChartCaudales.Colors.values = [Color.blue, Color.Yellow] > ChartCaudales.Legend.Visible = True > ChartCaudales.Legend.Title = "Leyenda" > > 'Titulo de la Gr?fica > ChartCaudales.Title.Text = "Curva de Caudales Clasificados" > > ChartCaudales.XAxe.Step = 10 > ChartCaudales.YAxe.MinValue = 0 > ChartCaudales.YAxe.MaxValue = 15 > ChartCaudales.Proportionnal = True > > 'Tipo de Gr?fica > ChartCaudales.Type = ChartType.Lines > End > > Public Sub DrawingArea1_Draw() > > If (DrawOk = True) Then > ChartCaudales.Width = DrawingArea1.ClientHeight - 50 > ChartCaudales.Height = DrawingArea1.ClientWidth - 50 > ChartCaudales.Resize(880, 450) > ChartCaudales.Draw 'Muestra la Grafica > Endif > > > End > > > 2013/6/27 Fabien Bodard > > > can you send me your project or a part of it that show the problem ? > > > > > > 2013/6/27 Alberto Caballero > > > > > Hi all, > > > > > > I am trying to show multiple charts inside a TabView. I managed to show > > > only one chart. I only get compilation errors or the new chart is not > > > displayed. I tried to find something to help me in the internet, and > even > > > in this mailing list, but I was unable to find anything. > > > > > > Would you provide me any reference or an example to have a look? > > > > > > Thanks in advance, > > > > > > Alberto > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by Windows: > > > > > > Build for Windows Store. > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > > Fabien Bodard > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 28 13:09:04 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 28 Jun 2013 13:09:04 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: Never resize the drawing area in its draw event !!! Use the form resize event or better learn how to use gambas arrangement properties. The last allow to do what you want without any code line. Le 28 juin 2013 13:06, "Fabien Bodard" a ?crit : > I think I don'treally understand what you want to do ... > > One tabstrip ... Multiple tabs and one chart object with different set of > data that change depend on the selected tab ? > Le 28 juin 2013 12:54, "Alberto Caballero" a > ?crit : > >> Hi Fabien, >> >> Thanks for your support. >> >> Here you have the piece of code that manages the graph. For a new graph at >> a new DrawingArea, should I declare a new Chart variable? I think this did >> not work for me. >> >> Private Sub GenGraficaCaudales() >> >> Dim i As Integer >> Dim msg As String >> Dim titles As New String[365] >> Dim CaudalesArray As New Float[365] >> >> For i = 0 To 364 >> msg = Str$(i) >> titles[i] = msg >> Next >> >> CaudalesArray = pProyecto.GetCaudalesArray() >> ChartCaudales.Headers.Values = titles >> ChartCaudales.CountDataSets = 1 >> >> ChartCaudales[0].Text = "Caudales" >> ChartCaudales[0].Values = CaudalesArray >> >> ChartCaudales.Style = ChartStyle.Custom >> ChartCaudales.Colors.values = [Color.blue, Color.Yellow] >> ChartCaudales.Legend.Visible = True >> ChartCaudales.Legend.Title = "Leyenda" >> >> 'Titulo de la Gr?fica >> ChartCaudales.Title.Text = "Curva de Caudales Clasificados" >> >> ChartCaudales.XAxe.Step = 10 >> ChartCaudales.YAxe.MinValue = 0 >> ChartCaudales.YAxe.MaxValue = 15 >> ChartCaudales.Proportionnal = True >> >> 'Tipo de Gr?fica >> ChartCaudales.Type = ChartType.Lines >> End >> >> Public Sub DrawingArea1_Draw() >> >> If (DrawOk = True) Then >> ChartCaudales.Width = DrawingArea1.ClientHeight - 50 >> ChartCaudales.Height = DrawingArea1.ClientWidth - 50 >> ChartCaudales.Resize(880, 450) >> ChartCaudales.Draw 'Muestra la Grafica >> Endif >> >> >> End >> >> >> 2013/6/27 Fabien Bodard >> >> > can you send me your project or a part of it that show the problem ? >> > >> > >> > 2013/6/27 Alberto Caballero >> > >> > > Hi all, >> > > >> > > I am trying to show multiple charts inside a TabView. I managed to >> show >> > > only one chart. I only get compilation errors or the new chart is not >> > > displayed. I tried to find something to help me in the internet, and >> even >> > > in this mailing list, but I was unable to find anything. >> > > >> > > Would you provide me any reference or an example to have a look? >> > > >> > > Thanks in advance, >> > > >> > > Alberto >> > > >> > > >> > >> ------------------------------------------------------------------------------ >> > > This SF.net email is sponsored by Windows: >> > > >> > > Build for Windows Store. >> > > >> > > http://p.sf.net/sfu/windows-dev2dev >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > >> > >> > >> > -- >> > Fabien Bodard >> > >> > >> ------------------------------------------------------------------------------ >> > This SF.net email is sponsored by Windows: >> > >> > Build for Windows Store. >> > >> > http://p.sf.net/sfu/windows-dev2dev >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From alberto.kavan at ...626... Fri Jun 28 13:13:39 2013 From: alberto.kavan at ...626... (Alberto Caballero) Date: Fri, 28 Jun 2013 13:13:39 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: Ok Fabien, I will try all of this. What I want to do is to show different charts inside different tabs. Should I declare different Chart variables for each chart? I will update you ASAP. 2013/6/28 Fabien Bodard > Never resize the drawing area in its draw event !!! > > Use the form resize event or better learn how to use gambas arrangement > properties. The last allow to do what you want without any code line. > Le 28 juin 2013 13:06, "Fabien Bodard" a ?crit : > > > I think I don'treally understand what you want to do ... > > > > One tabstrip ... Multiple tabs and one chart object with different set of > > data that change depend on the selected tab ? > > Le 28 juin 2013 12:54, "Alberto Caballero" a > > ?crit : > > > >> Hi Fabien, > >> > >> Thanks for your support. > >> > >> Here you have the piece of code that manages the graph. For a new graph > at > >> a new DrawingArea, should I declare a new Chart variable? I think this > did > >> not work for me. > >> > >> Private Sub GenGraficaCaudales() > >> > >> Dim i As Integer > >> Dim msg As String > >> Dim titles As New String[365] > >> Dim CaudalesArray As New Float[365] > >> > >> For i = 0 To 364 > >> msg = Str$(i) > >> titles[i] = msg > >> Next > >> > >> CaudalesArray = pProyecto.GetCaudalesArray() > >> ChartCaudales.Headers.Values = titles > >> ChartCaudales.CountDataSets = 1 > >> > >> ChartCaudales[0].Text = "Caudales" > >> ChartCaudales[0].Values = CaudalesArray > >> > >> ChartCaudales.Style = ChartStyle.Custom > >> ChartCaudales.Colors.values = [Color.blue, Color.Yellow] > >> ChartCaudales.Legend.Visible = True > >> ChartCaudales.Legend.Title = "Leyenda" > >> > >> 'Titulo de la Gr?fica > >> ChartCaudales.Title.Text = "Curva de Caudales Clasificados" > >> > >> ChartCaudales.XAxe.Step = 10 > >> ChartCaudales.YAxe.MinValue = 0 > >> ChartCaudales.YAxe.MaxValue = 15 > >> ChartCaudales.Proportionnal = True > >> > >> 'Tipo de Gr?fica > >> ChartCaudales.Type = ChartType.Lines > >> End > >> > >> Public Sub DrawingArea1_Draw() > >> > >> If (DrawOk = True) Then > >> ChartCaudales.Width = DrawingArea1.ClientHeight - 50 > >> ChartCaudales.Height = DrawingArea1.ClientWidth - 50 > >> ChartCaudales.Resize(880, 450) > >> ChartCaudales.Draw 'Muestra la Grafica > >> Endif > >> > >> > >> End > >> > >> > >> 2013/6/27 Fabien Bodard > >> > >> > can you send me your project or a part of it that show the problem ? > >> > > >> > > >> > 2013/6/27 Alberto Caballero > >> > > >> > > Hi all, > >> > > > >> > > I am trying to show multiple charts inside a TabView. I managed to > >> show > >> > > only one chart. I only get compilation errors or the new chart is > not > >> > > displayed. I tried to find something to help me in the internet, and > >> even > >> > > in this mailing list, but I was unable to find anything. > >> > > > >> > > Would you provide me any reference or an example to have a look? > >> > > > >> > > Thanks in advance, > >> > > > >> > > Alberto > >> > > > >> > > > >> > > >> > ------------------------------------------------------------------------------ > >> > > This SF.net email is sponsored by Windows: > >> > > > >> > > Build for Windows Store. > >> > > > >> > > http://p.sf.net/sfu/windows-dev2dev > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > > >> > > >> > > >> > -- > >> > Fabien Bodard > >> > > >> > > >> > ------------------------------------------------------------------------------ > >> > This SF.net email is sponsored by Windows: > >> > > >> > Build for Windows Store. > >> > > >> > http://p.sf.net/sfu/windows-dev2dev > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by Windows: > >> > >> Build for Windows Store. > >> > >> http://p.sf.net/sfu/windows-dev2dev > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 28 13:21:20 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 28 Jun 2013 13:21:20 +0200 Subject: [Gambas-user] read/data commands In-Reply-To: References: <51CB5A84.9040400@...2185...> <20130627093433.GA790@...2774...> <51CC98B2.6030202@...2185...> <51CCB49B.3080108@...2185...> <51CD6423.2000103@...1950...> Message-ID: In gambas Dim grata as integer[][]=[[1,2,3,4][1,2,3,4][1,2,3,4][1,2,3,4]] But also an internal file in gambas can be used Dim a as integer[]=split(file.load("data")) For I =3 to 3 For j = 0 to 3 Adata[i][j]=a[I*j] Next Next Or a structure via gb.setting .. so many ways But for a short sequence the first is for me the better Le 28 juin 2013 12:38, "Jussi Lahtinen" a ?crit : > I remember read/data statements, but I never used them. > There is inline assembler in C... > > Jussi > > > On Fri, Jun 28, 2013 at 1:23 PM, Caveat wrote: > > > Think the rest of the list are pretending to be younger than they are! > > > > Of course I remember read/data statements, it was quite a popular way of > > getting a little (and sometimes not so little!) snippet of machine code > > into a basic program. > > > > I still have my Spectrum 48k, my ZX81, and my ZX80 :-D > > > > Kind regards, > > Caveat > > > > On 27/06/13 23:54, Keith Clark wrote: > > > No, the data was just an example. What if it were to be 255 unrelated > > > values? > > > > > > Did nobody else use BASIC from the 80s? > > > > > > Read/Data statments..... > > > > > > On 13-06-27 05:48 PM, Jussi Lahtinen wrote: > > >> I don't quite understand usage of data... > > >> > > >> Will this do what you want? > > >> > > >> Dim data As Integer[] = [1, 2, 3, 4, 5, 1, 2, 3, 4, 5] > > >> Dim v As New Integer[] > > >> > > >> v = data.Copy() > > >> > > >> > > >> Or this: > > >> > > >> Dim ii As Integer, jj As Integer > > >> Dim data As New Integer[5, 5] > > >> > > >> For ii = 0 To 4 > > >> For jj = 0 To 4 > > >> data[ii, jj] = jj + 1 > > >> Next > > >> Next > > >> > > >> > > >> Jussi > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark < > > keithclark at ...2185...>wrote: > > >> > > >>> On 13-06-27 05:34 AM, Tobias Boege wrote: > > >>>> On Wed, 26 Jun 2013, Keith Clark wrote: > > >>>>> Does Gambas support read/data commands like the following for > > loading a > > >>>>> simple array with fixed values? > > >>>>> > > >>>>> for t=0 to 4 > > >>>>> for x = 0 to 4 > > >>>>> read v(t,x) > > >>>>> next x > > >>>>> next t > > >>>>> > > >>>>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > > >>>>> > > >>>>> Maybe I'm just not finding it? > > >>>>> > > >>>> I don't know what you want to do, actually, and your snippet does > not > > >>>> resemble Gambas at all... Maybe you want to access elements of a 2D > > array > > >>>> where t is the row and x is the column? So if v is an Integer[][], > > then > > >>> you > > >>>> need to do: > > >>>> > > >>>> For t = 0 To 4 > > >>>> For x = 0 To 4 > > >>>> Print v[t][x] > > >>>> Next > > >>>> Next > > >>>> > > >>>> Regards, > > >>>> Tobi > > >>>> > > >>>> > > >>> Yeah, I posted that question rather quickly. I want to fill an array > > >>> with a very simple, fixed dataset that will never change. The code I > > >>> gave above is from an old dialect, but really just the curved > brackets > > >>> should have been square. > > >>> > > >>> for t=0 to 4 > > >>> for x = 0 to 4 > > >>> read v[t,x] > > >>> next x > > >>> next t > > >>> > > >>> data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5...... > > >>> > > >>> Would read into the array v the data in the 'data' statement > > >>> > > >>> v[0,0]=1 > > >>> v[0,1]=2 > > >>> and so on. > > >>> > > >>> For reference: > > >>> http://www.antonis.de/qbebooks/gwbasman/read.html > > >>> > > >>> > > >>> > > > ------------------------------------------------------------------------------ > > >>> This SF.net email is sponsored by Windows: > > >>> > > >>> Build for Windows Store. > > >>> > > >>> http://p.sf.net/sfu/windows-dev2dev > > >>> _______________________________________________ > > >>> Gambas-user mailing list > > >>> Gambas-user at lists.sourceforge.net > > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >>> > > >> > > > ------------------------------------------------------------------------------ > > >> This SF.net email is sponsored by Windows: > > >> > > >> Build for Windows Store. > > >> > > >> http://p.sf.net/sfu/windows-dev2dev > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by Windows: > > > > > > Build for Windows Store. > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jun 28 13:22:48 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 28 Jun 2013 13:22:48 +0200 Subject: [Gambas-user] Multiple charts using gb.chart In-Reply-To: References: Message-ID: It depend... If all the chart are on the same style ... One chart object in multiple drawing area pointing on one event handler Group Le 28 juin 2013 13:14, "Alberto Caballero" a ?crit : > Ok Fabien, > > I will try all of this. What I want to do is to show different charts > inside different tabs. Should I declare different Chart variables for each > chart? > > I will update you ASAP. > > > 2013/6/28 Fabien Bodard > > > Never resize the drawing area in its draw event !!! > > > > Use the form resize event or better learn how to use gambas arrangement > > properties. The last allow to do what you want without any code line. > > Le 28 juin 2013 13:06, "Fabien Bodard" a ?crit : > > > > > I think I don'treally understand what you want to do ... > > > > > > One tabstrip ... Multiple tabs and one chart object with different set > of > > > data that change depend on the selected tab ? > > > Le 28 juin 2013 12:54, "Alberto Caballero" a > > > ?crit : > > > > > >> Hi Fabien, > > >> > > >> Thanks for your support. > > >> > > >> Here you have the piece of code that manages the graph. For a new > graph > > at > > >> a new DrawingArea, should I declare a new Chart variable? I think this > > did > > >> not work for me. > > >> > > >> Private Sub GenGraficaCaudales() > > >> > > >> Dim i As Integer > > >> Dim msg As String > > >> Dim titles As New String[365] > > >> Dim CaudalesArray As New Float[365] > > >> > > >> For i = 0 To 364 > > >> msg = Str$(i) > > >> titles[i] = msg > > >> Next > > >> > > >> CaudalesArray = pProyecto.GetCaudalesArray() > > >> ChartCaudales.Headers.Values = titles > > >> ChartCaudales.CountDataSets = 1 > > >> > > >> ChartCaudales[0].Text = "Caudales" > > >> ChartCaudales[0].Values = CaudalesArray > > >> > > >> ChartCaudales.Style = ChartStyle.Custom > > >> ChartCaudales.Colors.values = [Color.blue, Color.Yellow] > > >> ChartCaudales.Legend.Visible = True > > >> ChartCaudales.Legend.Title = "Leyenda" > > >> > > >> 'Titulo de la Gr?fica > > >> ChartCaudales.Title.Text = "Curva de Caudales Clasificados" > > >> > > >> ChartCaudales.XAxe.Step = 10 > > >> ChartCaudales.YAxe.MinValue = 0 > > >> ChartCaudales.YAxe.MaxValue = 15 > > >> ChartCaudales.Proportionnal = True > > >> > > >> 'Tipo de Gr?fica > > >> ChartCaudales.Type = ChartType.Lines > > >> End > > >> > > >> Public Sub DrawingArea1_Draw() > > >> > > >> If (DrawOk = True) Then > > >> ChartCaudales.Width = DrawingArea1.ClientHeight - 50 > > >> ChartCaudales.Height = DrawingArea1.ClientWidth - 50 > > >> ChartCaudales.Resize(880, 450) > > >> ChartCaudales.Draw 'Muestra la Grafica > > >> Endif > > >> > > >> > > >> End > > >> > > >> > > >> 2013/6/27 Fabien Bodard > > >> > > >> > can you send me your project or a part of it that show the problem ? > > >> > > > >> > > > >> > 2013/6/27 Alberto Caballero > > >> > > > >> > > Hi all, > > >> > > > > >> > > I am trying to show multiple charts inside a TabView. I managed to > > >> show > > >> > > only one chart. I only get compilation errors or the new chart is > > not > > >> > > displayed. I tried to find something to help me in the internet, > and > > >> even > > >> > > in this mailing list, but I was unable to find anything. > > >> > > > > >> > > Would you provide me any reference or an example to have a look? > > >> > > > > >> > > Thanks in advance, > > >> > > > > >> > > Alberto > > >> > > > > >> > > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > > This SF.net email is sponsored by Windows: > > >> > > > > >> > > Build for Windows Store. > > >> > > > > >> > > http://p.sf.net/sfu/windows-dev2dev > > >> > > _______________________________________________ > > >> > > Gambas-user mailing list > > >> > > Gambas-user at lists.sourceforge.net > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > >> > > > >> > > > >> > > > >> > -- > > >> > Fabien Bodard > > >> > > > >> > > > >> > > > ------------------------------------------------------------------------------ > > >> > This SF.net email is sponsored by Windows: > > >> > > > >> > Build for Windows Store. > > >> > > > >> > http://p.sf.net/sfu/windows-dev2dev > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> > > >> > > > ------------------------------------------------------------------------------ > > >> This SF.net email is sponsored by Windows: > > >> > > >> Build for Windows Store. > > >> > > >> http://p.sf.net/sfu/windows-dev2dev > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dr.diesel at ...626... Fri Jun 28 20:00:17 2013 From: dr.diesel at ...626... (dr.diesel) Date: Fri, 28 Jun 2013 11:00:17 -0700 (PDT) Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <20130626074201.GA519@...2774...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> Message-ID: <1372442417901-42320.post@...3046...> Thanks for the help. That is basically what I've done, expect all I get: "System error #110: Connection Timed out" I get the same when I cat and echo, but I get the proper response then get the error: [root at ...2809... andy]# echo *IDN?>/dev/usbtmc0 [root at ...2809... andy]# cat /dev/usbtmc0 Rigol Technologies,DSA815,DSA8A151449181,00.01.06.00.05 ***10 second pause **** cat: /dev/usbtmc0: Connection timed out [root at ...2809... andy]# It appears that it is waiting for more, how to I read only what's there then exit? I've tried a simple Read #hDevice and a While not EOF: Public hDevice As File Public sLine As String Public Sub Form_Open() hDevice = Open "/dev/usbtmc0" For Input Output Watch End Public Sub File_Read() Dim iByte As Byte 'Read #hDevice, iByte 'Print "Got one byte: "; iByte ' While Not Eof(hDevice) Line Input #hDevice, sLine Print sLine Wend End Many thanks, any other suggestions? -- View this message in context: http://gambas.8142.n7.nabble.com/Help-binding-to-dev-usbtmc0-tp42276p42320.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sat Jun 29 18:34:23 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jun 2013 16:34:23 +0000 Subject: [Gambas-user] Issue 438 in gambas: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data In-Reply-To: <4-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> <0-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-16924913522877771443-gambas=googlecode.com@...2524...> Updates: Status: Started Labels: -Version Version-TRUNK Comment #5 on issue 438 by benoit.m... at ...626...: gb.xml.rpc sometimes doesn't parse data correctly due to incompleteness of received data http://code.google.com/p/gambas/issues/detail?id=438 I tried to understand the miniserver code... huch... I think the problem is what you told: calling ProcessQuery() before being sure that everything was read from the client. Instead of adding your loop, I call ProcessQuery() once the socket is closed without error. This is in revision #5713. Tell me if it works. If I cannot succeed in fixing the miniserver in a clean way, I will use your patch! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jun 29 18:35:22 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jun 2013 16:35:22 +0000 Subject: [Gambas-user] Issue 446 in gambas: Select statement returns no data In-Reply-To: <2-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> <0-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-9838962008381908090-gambas=googlecode.com@...2524...> Updates: Status: WontFix Labels: -Version Version-TRUNK Comment #3 on issue 446 by benoit.m... at ...626...: Select statement returns no data http://code.google.com/p/gambas/issues/detail?id=446 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jun 29 18:37:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jun 2013 16:37:33 +0000 Subject: [Gambas-user] Issue 445 in gambas: Project profiling setting not saved In-Reply-To: <0-6813199134517018827-2981516577960554164-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-2981516577960554164-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-2981516577960554164-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 445 by benoit.m... at ...626...: Project profiling setting not saved http://code.google.com/p/gambas/issues/detail?id=445 Thanks, fixed in revision #5714. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jun 29 18:40:43 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jun 2013 16:40:43 +0000 Subject: [Gambas-user] Issue 444 in gambas: Balloon location is wrong for a textbox In-Reply-To: <0-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #1 on issue 444 by benoit.m... at ...626...: Balloon location is wrong for a textbox http://code.google.com/p/gambas/issues/detail?id=444 Mmm... I cannot reproduce your problem. The balloon is in the right place there. But I use KDE (and so KWin). I will try with Unity and Gnome3 if I can. Can you try with KDE yourself? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jun 29 18:41:43 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jun 2013 16:41:43 +0000 Subject: [Gambas-user] Issue 444 in gambas: Balloon location is wrong for a textbox In-Reply-To: <1-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> <0-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Updates: Status: Accepted Comment #2 on issue 444 by benoit.m... at ...626...: Balloon location is wrong for a textbox http://code.google.com/p/gambas/issues/detail?id=444 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jun 29 19:02:56 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 29 Jun 2013 17:02:56 +0000 Subject: [Gambas-user] Issue 444 in gambas: Balloon location is wrong for a textbox In-Reply-To: <2-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> <0-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-4662149372359897761-gambas=googlecode.com@...2524...> Comment #3 on issue 444 by uAle... at ...626...: Balloon location is wrong for a textbox http://code.google.com/p/gambas/issues/detail?id=444 I tried with KDE on Ubuntu 13.04 and then the Balloon is in the RIGHT place. So it is a specific desktop issue ;-( I used the following procedure to install KDE next to Gnome and Unity: http://linuxg.net/kde-4-10-3-has-been-released-install-kde-4-10-3-on-ubuntu-13-04/ -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From adrien.prokopowicz at ...626... Sat Jun 29 19:10:17 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sat, 29 Jun 2013 19:10:17 +0200 Subject: [Gambas-user] Question about XML In-Reply-To: <1371727753.2378.31.camel@...40...> References: <1371727753.2378.31.camel@...40...> Message-ID: Le Thu, 20 Jun 2013 13:29:13 +0200, Charlie Reinl a ?crit: > Salut Adrien, > > "Article :\ngreen peppers\ntinned tomatoes" > > this text saved with > > xml.Attribute("Text", "Article :\ngreen peppers\ntinned tomatoes") > where xml is a XmlWriter > > the old XMLLib sorted thet > > Text="Article : green peppers tinned tomatoes" > > the new XMLLib saves it like > Text="Article : > green peppers > tinned tomatoes" > > Now my question: is it a bug, or was it a bug. > Just to know who makes the changes, you for all, or me in my project. > > Thanks anyway > > Hi Charlie, It is actually a bug inside gb.xml (a newline must be serialized to ), I will take a look at it. And sorry again for response time, I had tons of work these weeks. Regards, -- Adrien Prokopowicz From taboege at ...626... Sat Jun 29 20:03:29 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 29 Jun 2013 20:03:29 +0200 Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <1372442417901-42320.post@...3046...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> Message-ID: <20130629180329.GA524@...2774...> On Fri, 28 Jun 2013, dr.diesel wrote: > Thanks for the help. That is basically what I've done, expect all I get: > > "System error #110: Connection Timed out" > > I get the same when I cat and echo, but I get the proper response then get > the error: > > [root at ...2809... andy]# echo *IDN?>/dev/usbtmc0 > [root at ...2809... andy]# cat /dev/usbtmc0 > Rigol Technologies,DSA815,DSA8A151449181,00.01.06.00.05 > ***10 second pause **** > cat: /dev/usbtmc0: Connection timed out > [root at ...2809... andy]# > > It appears that it is waiting for more, how to I read only what's there then > exit? > > I've tried a simple Read #hDevice and a While not EOF: > > > Public hDevice As File > Public sLine As String > > > Public Sub Form_Open() > hDevice = Open "/dev/usbtmc0" For Input Output Watch > End > > Public Sub File_Read() > Dim iByte As Byte > > 'Read #hDevice, iByte > 'Print "Got one byte: "; iByte > ' > While Not Eof(hDevice) > Line Input #hDevice, sLine > Print sLine > Wend > End > > Many thanks, any other suggestions? > I have never seen this error with cat. At least we know for sure that this is not a Gambas problem. Did you read [0]? Regards, Tobi [0] http://www.spinics.net/lists/linux-usb/msg21894.html From rmorgan62 at ...626... Sat Jun 29 22:13:30 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Sat, 29 Jun 2013 13:13:30 -0700 Subject: [Gambas-user] Help binding to /dev/usbtmc0? In-Reply-To: <20130629180329.GA524@...2774...> References: <1372198211969-42276.post@...3046...> <20130626074201.GA519@...2774...> <1372442417901-42320.post@...3046...> <20130629180329.GA524@...2774...> Message-ID: Sorry to jump in here but I was wondering if this could be caused the mode the usb connection is opened in? The OS is not required to send the data to usb devices at the time your program talks to the usb port. The data is often cached for some time before being sent to the usb device. There is a usb mode know as interrupt mode. It is anything but a true interrupt mode. It does however ask the OS to ensure that the data is sent to the usb device within a particular time frame, 100ms for example. So using usb interrupt mode you can at least request that your data be sent with a certain time frame. But I have found that Windows 7 still does not always cooperate in interrupt mode. My work with CNC stepper controllers resulted in needing a polling routine and a buffer on the controller board. The controller board also had to be able to handle real-time errors which meant it had to deal with the sensors itself and simply report that status back to the PC software (EMC2 and MACH3). So in short, I wonder if you are using the USB port in standard mode or interrupt mode and are you taking into account the delay that the communications might experience? Just some thoughts On Sat, Jun 29, 2013 at 11:03 AM, Tobias Boege wrote: > On Fri, 28 Jun 2013, dr.diesel wrote: > > Thanks for the help. That is basically what I've done, expect all I get: > > > > "System error #110: Connection Timed out" > > > > I get the same when I cat and echo, but I get the proper response then > get > > the error: > > > > [root at ...2809... andy]# echo *IDN?>/dev/usbtmc0 > > [root at ...2809... andy]# cat /dev/usbtmc0 > > Rigol Technologies,DSA815,DSA8A151449181,00.01.06.00.05 > > ***10 second pause **** > > cat: /dev/usbtmc0: Connection timed out > > [root at ...2809... andy]# > > > > It appears that it is waiting for more, how to I read only what's there > then > > exit? > > > > I've tried a simple Read #hDevice and a While not EOF: > > > > > > Public hDevice As File > > Public sLine As String > > > > > > Public Sub Form_Open() > > hDevice = Open "/dev/usbtmc0" For Input Output Watch > > End > > > > Public Sub File_Read() > > Dim iByte As Byte > > > > 'Read #hDevice, iByte > > 'Print "Got one byte: "; iByte > > ' > > While Not Eof(hDevice) > > Line Input #hDevice, sLine > > Print sLine > > Wend > > End > > > > Many thanks, any other suggestions? > > > > I have never seen this error with cat. At least we know for sure that this > is not a Gambas problem. Did you read [0]? > > Regards, > Tobi > > [0] http://www.spinics.net/lists/linux-usb/msg21894.html > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From adrien.prokopowicz at ...626... Sun Jun 30 02:39:13 2013 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Sun, 30 Jun 2013 02:39:13 +0200 Subject: [Gambas-user] Question about XML In-Reply-To: <1371727753.2378.31.camel@...40...> References: <1371727753.2378.31.camel@...40...> Message-ID: Le Thu, 20 Jun 2013 13:29:13 +0200, Charlie Reinl a ?crit: > Salut Adrien, > > "Article :\ngreen peppers\ntinned tomatoes" > > this text saved with > > xml.Attribute("Text", "Article :\ngreen peppers\ntinned tomatoes") > where xml is a XmlWriter > > the old XMLLib sorted thet > > Text="Article : green peppers tinned tomatoes" > > the new XMLLib saves it like > Text="Article : > green peppers > tinned tomatoes" > > Now my question: is it a bug, or was it a bug. > Just to know who makes the changes, you for all, or me in my project. > > Thanks anyway > > Is this better with revision #5715 ? -- Adrien Prokopowicz From gambas at ...2524... Sun Jun 30 05:06:48 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jun 2013 03:06:48 +0000 Subject: [Gambas-user] Issue 447 in gambas: tab key hierarchy Message-ID: <0-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Other Arch-Any Desktop-Any GUI-Any New issue 447 by centurio... at ...626...: tab key hierarchy http://code.google.com/p/gambas/issues/detail?id=447 Hello! Greetings from Paraguay, Congratulations to Benoit for this wonderful project is excellent thank you very much! ... Sorry for my poor English is not my language; I want to report a bug in version 3.4.1 (the first time I make a bug report and I'm not sure how it is done) ... When you press TAB, the application does not respect the hierarchy, does not traverse the controls that I have configured on my form ... It happens on a clean form, without any code to control. The order is as follows within a frame as a container ... ValueBox -> ComboBox -> TextBox -> ComboBox -> ValueBox (date format) -> TextArea The "NoTabFocus" is FALSE, in all controls including the form and the container (frame). From ValBox to the ComboBox no problem, but from the combo (either) to the textbox or ValueBox not pass, it is as if you were making a "tab on KEY_PRESS STOP_EVENT". I tried without frame, with the same result. attached my form. I hope that the correct way to report a bug, I apologize if not. my system [System] OperatingSystem = Linux Kernel = 3.2.0-48-generic Architecture = x86_64 Distribution = Linux Mint 13 Maya = GNOME Desktop Theme = QGtk Language = es_AR.UTF-8 Memory = 2759M [Libraries] GStreamer libgstreamer-0.10.so.0.30.0 = GTK + = libgtk-x11-2.0.so.0.2400.10 Poppler = libpoppler.so.19.0.0 Qt4 = libQtCore.so.4.8.1 SDL = libSDL-1.2.so.0.11.3 Attachments: FAhorro.class 20 bytes FAhorro.form 5.5 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jun 30 05:22:10 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 30 Jun 2013 03:22:10 +0000 Subject: [Gambas-user] Issue 447 in gambas: tab key hierarchy In-Reply-To: <0-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11139320335715798953-gambas=googlecode.com@...2524...> Comment #1 on issue 447 by centurio... at ...626...: tab key hierarchy http://code.google.com/p/gambas/issues/detail?id=447 Please forgive me, I'm not a programmer, I am self taught and free software enthusiast and I'm doing a small project for personal use, I hastened to write without doing extensive testing, the error is because I needed to use the combobox property. tag as a String [], because you can not explicitly assign indexes; example, a PK field of the database, as an index of the combobox ... that's why I saw the need to do this trick ... I'm using cbo.tag [cbo.index] for the PK field value in my db. For being my first time Sorry, sorry, sorry ... My fault. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From Karl.Reinl at ...2345... Sun Jun 30 17:26:41 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 30 Jun 2013 17:26:41 +0200 Subject: [Gambas-user] Question about XML In-Reply-To: References: <1371727753.2378.31.camel@...40...> Message-ID: <1372606001.2567.2.camel@...40...> Am Sonntag, den 30.06.2013, 02:39 +0200 schrieb Adrien Prokopowicz: > Le Thu, 20 Jun 2013 13:29:13 +0200, Charlie Reinl > a ?crit: > > > Salut Adrien, > > > > "Article :\ngreen peppers\ntinned tomatoes" > > > > this text saved with > > > > xml.Attribute("Text", "Article :\ngreen peppers\ntinned tomatoes") > > where xml is a XmlWriter > > > > the old XMLLib sorted thet > > > > Text="Article : green peppers tinned tomatoes" > > > > the new XMLLib saves it like > > Text="Article : > > green peppers > > tinned tomatoes" > > > > Now my question: is it a bug, or was it a bug. > > Just to know who makes the changes, you for all, or me in my project. > > > > Thanks anyway > > > > > > Is this better with revision #5715 ? > Salut Adrien, i'v got #5716 and it works as expected now. -- Amicalement Charlie