From gambas at ...1... Sun Mar 1 16:15:45 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 1 Mar 2009 16:15:45 +0100 Subject: [Gambas-devel] Probable bug in Postgres db driver In-Reply-To: <200902270825.49633.ihaywood@...626...> References: <200902270825.49633.ihaywood@...626...> Message-ID: <200903011615.46190.gambas@...1...> > I found the core problem was the driver misreports the size of the blob so > about 10-20 bytes get truncated from the end. > This patch fixes it: > > Index: main/lib/db/main.c > =================================================================== > --- main/lib/db/main.c (revision 1885) > +++ main/lib/db/main.c (working copy) > @@ -427,7 +427,7 @@ > > int q_length(void) > { > - return GB.StringLength(_query); > + return GB.StringLength(_query)+_temp_len; > } > > void DB_SetDebug(int debug) Thaaaanks! The q_length() function is used at CConnection.c:511: query = make_query(THIS, q_get(), q_length(), GB.NParam(), arg); The q_get() function correctly dumps the temporary buffer into the _query variable. So *if* the compiler compiles the q_get() call before the q_length() call, everything works as expected. On the contrary, the query is truncated. And apparently it is what happened. Richard, please tell us if it fixes your problems with the postgresql driver! Regards, -- Beno?t From gambas at ...1... Sun Mar 1 16:56:55 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 1 Mar 2009 16:56:55 +0100 Subject: [Gambas-devel] Gambas Turkish Translation In-Reply-To: <200902082312.17256.ozgur@...625...> References: <200902082312.17256.ozgur@...625...> Message-ID: <200903011656.55350.gambas@...1...> > Hello, > I am writing from Turkey. I am Pardus[1] user. I started to translate > gambas help doc to Turkish. Now we are working two people for that. > > We want found Turkish Gambas User Group.I wrote some articels in > Ozgurlukicin.com[2] e-magazin. > > If possible, you can add turkish page to your web pages. We can manage it. > > Thanks a lot.. > ?zg?r Kuru > ozgur at ...625... > Hi, The turkish translation has been enabled on the wiki documentation. If you want an account to write them, please send me the password you want. Note that there are strings into the "doc.cgi" project in the gambas 3 sources that you must translate if you want a fully translated wiki. Regards, -- Beno?t From gambas at ...1... Sun Mar 1 17:01:22 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Sun, 1 Mar 2009 17:01:22 +0100 Subject: [Gambas-devel] Gambas and Sound ... In-Reply-To: <14488144.333651231940116345.JavaMail.root@...616...> References: <14488144.333651231940116345.JavaMail.root@...616...> Message-ID: <200903011701.22411.gambas@...1...> > Hi, > > Can anyone tell me whether there is an easy way to run gambas programs with > OSS emulation? > > I'm trying; > padsp gbr3 > > However padsp does not seem to be capturing /dev/dsp, i.e. the LD_PRELOAD > does not seem to be having any effect .. ?? > > Gareth. I think I have understood: the gambas interpreter overrides the LD_PRELOAD environment variable for its own needs. That can be disabled with the "-p" argument. Or, better, try to compile gambas with "./configure --disable-preloading". If I remember, I had to preload the gb.qt and gb.qt.kde components, otherwise gambas crashed on SuSE (but not on Mandriva, RedHat... Why? Mystery...) Regards, -- Beno?t From david_villalobos_c at ...7... Mon Mar 2 17:12:31 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 2 Mar 2009 08:12:31 -0800 (PST) Subject: [Gambas-devel] Error on Gambas 3 Message-ID: <240285.79053.qm@...587...> Hi, I got the following error when runnig my program with the las revision: This GDB was configured as ""... Using host libthread_db library "/lib64/libthread_db.so.1". (gdb) set args -p (gdb) run Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] [New process 6541] [New Thread 47937890091408 (LWP 6541)] Stock.LoadMap.43: #45: File or directory does not exist Program exited with code 01. (gdb) bt No stack. My system: Mandriva 2008.1 64 bits Kde Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: SMaRT-0.0.24.tar.gz Type: application/x-gzip Size: 176751 bytes Desc: not available URL: From david_villalobos_c at ...7... Mon Mar 2 17:44:34 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 2 Mar 2009 08:44:34 -0800 (PST) Subject: [Gambas-devel] Error in gb.qt.kde.html Message-ID: <581147.35023.qm@...556...> Hi I got this error when using gb.qt.kde.html revision 1893, Mandriva 2009.1 32 bits kde An error occurred while loading text.html: Could not start process Unable to create io-slave: klauncher said: Unknown protocol ''. . Regards -- David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.HTML-0.0.1.tar.gz Type: application/x-gzip Size: 8301 bytes Desc: not available URL: From david_villalobos_c at ...7... Wed Mar 4 15:13:25 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 4 Mar 2009 06:13:25 -0800 (PST) Subject: [Gambas-devel] Feature request Message-ID: <13767.55654.qm@...556...> Hi, It will be dificult to have an option to get an especific revision when creating a proyect hosted in a svn repository? I took a look in the Gambas code and it seems not so dificult. Any comments? :-) Regards -- David From gambasdeveloper at ...628... Fri Mar 6 16:41:41 2009 From: gambasdeveloper at ...628... (Lars Hoeger) Date: Fri, 06 Mar 2009 16:41:41 +0100 Subject: [Gambas-devel] Programming a component with gambas Message-ID: <49B14435.4070505@...628...> Hello, i try to program a virtual component (it is the first one) which connects to a Server and communicates with it. I allready read the dokumentation How To Program Components In Gambas an walked through all the code located in the /comp/src directory. The component has only three properties which should be set in the gambas-IDE as well as by code. Everything works fine: in the gambas ide you can place the new control on a form and the properties where shown as they should be. If I run the program it stops with "Not enough arguments". I think in comes from the _init() part. If I create a new Control in my Code: DIM CTItmp as new CTI(Fmain), it works, but without the default values. Can anyone explain me, what i did wrong? Here is the Code of the Control called CTI (its picture is named cti.png). It should just print the given values. The rest of the functionality will come later... ' Gambas class file EXPORT INHERITS UserControl EVENT CTIReady EVENT CTINotReady EVENT TELAlerting EVENT TELRinging(Anrufer AS String) EVENT TELInBound EVENT TELOutBound PROPERTY Port AS Integer PROPERTY Server AS String PROPERTY Nebenstelle AS Integer PUBLIC CONST _Properties AS String = "Port=12345,Server=192.168.0.1,Nebenstelle=100" PRIVATE INTport AS Integer PRIVATE STRserver AS String PRIVATE INTnebenstelle AS Integer PUBLIC SUB _new() PRINT "New:" PRINT STRserver PRINT INTport PRINT INTnebenstelle END STATIC PUBLIC SUB _init() PRINT "_init() :-)" END PUBLIC SUB Connect() PRINT "Will connect to " & STRserver END PRIVATE FUNCTION Port_Read() AS Integer RETURN INTport END PRIVATE SUB Port_Write(Value AS Integer) INTport = Value END PRIVATE FUNCTION Server_Read() AS String RETURN STRserver END PRIVATE SUB Server_Write(Value AS String) STRserver = Value END PRIVATE FUNCTION Nebenstelle_Read() AS Integer RETURN INTnebenstelle END PRIVATE SUB Nebenstelle_Write(Value AS Integer) INTnebenstelle = Value END Regards Lars Hoeger -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Fri Mar 6 20:32:57 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 6 Mar 2009 20:32:57 +0100 Subject: [Gambas-devel] Error on Gambas 3 In-Reply-To: <240285.79053.qm@...587...> References: <240285.79053.qm@...587...> Message-ID: <200903062032.57614.gambas@...1...> > Hi, I got the following error when runnig my program with the las revision: > > This GDB was configured as ""... > Using host libthread_db library "/lib64/libthread_db.so.1". > (gdb) set args -p > (gdb) run > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > [New process 6541] > [New Thread 47937890091408 (LWP 6541)] > Stock.LoadMap.43: #45: File or directory does not exist > > Program exited with code 01. > (gdb) bt > No stack. > > > > My system: Mandriva 2008.1 64 bits Kde > > Regards > > > -- > David Logically this error is impossible! Which desktop do you use? Can you try your program with a different desktop? -- Beno?t From gambas at ...1... Fri Mar 6 20:34:37 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 6 Mar 2009 20:34:37 +0100 Subject: [Gambas-devel] Error in gb.qt.kde.html In-Reply-To: <581147.35023.qm@...556...> References: <581147.35023.qm@...556...> Message-ID: <200903062034.37782.gambas@...1...> > Hi I got this error when using gb.qt.kde.html revision 1893, Mandriva > 2009.1 32 bits kde > > An error occurred while loading text.html: > Could not start process Unable to create io-slave: > klauncher said: Unknown protocol ''. > . > > Regards > > > -- > David KHTML cannot access files located inside a gambas archive. You must specify a full URL. Regards, -- Beno?t From gambas at ...1... Fri Mar 6 20:37:42 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 6 Mar 2009 20:37:42 +0100 Subject: [Gambas-devel] Feature request In-Reply-To: <13767.55654.qm@...556...> References: <13767.55654.qm@...556...> Message-ID: <200903062037.42269.gambas@...1...> > Hi, It will be dificult to have an option to get an especific revision when > creating a proyect hosted in a svn repository? > > I took a look in the Gambas code and it seems not so dificult. > > Any comments? :-) > > Regards > > > -- > David > > According to the svn command help, just add "@REV" after the repository URL, and you will get the revision REV. Regards, -- Beno?t From gambas at ...1... Fri Mar 6 20:38:33 2009 From: gambas at ...1... (=?iso-8859-1?q?Beno=EEt_Minisini?=) Date: Fri, 6 Mar 2009 20:38:33 +0100 Subject: [Gambas-devel] Programming a component with gambas In-Reply-To: <49B14435.4070505@...628...> References: <49B14435.4070505@...628...> Message-ID: <200903062038.33754.gambas@...1...> > Hello, > > i try to program a virtual component (it is the first one) which > connects to a Server and communicates with it. I allready read the > dokumentation How To Program Components In Gambas > an walked through all the > code located in the /comp/src directory. > The component has only three properties which should be set in the > gambas-IDE as well as by code. > > Everything works fine: in the gambas ide you can place the new control > on a form and the properties where shown as they should be. > > If I run the program it stops with "Not enough arguments". I think in > comes from the _init() part. > > If I create a new Control in my Code: > > DIM CTItmp as new CTI(Fmain), > > it works, but without the default values. Can anyone explain me, what i > did wrong? > > Here is the Code of the Control called CTI (its picture is named > cti.png). It should just print the given values. The rest of the > functionality will come later... > > > > ' Gambas class file > > EXPORT > > INHERITS UserControl > > EVENT CTIReady > EVENT CTINotReady > EVENT TELAlerting > EVENT TELRinging(Anrufer AS String) > EVENT TELInBound > EVENT TELOutBound > > PROPERTY Port AS Integer > PROPERTY Server AS String > PROPERTY Nebenstelle AS Integer > > PUBLIC CONST _Properties AS String = > "Port=12345,Server=192.168.0.1,Nebenstelle=100" > > PRIVATE INTport AS Integer > PRIVATE STRserver AS String > PRIVATE INTnebenstelle AS Integer > > > PUBLIC SUB _new() > > PRINT "New:" > PRINT STRserver > PRINT INTport > PRINT INTnebenstelle > > END > > STATIC PUBLIC SUB _init() > > PRINT "_init() :-)" > > END > > PUBLIC SUB Connect() > > PRINT "Will connect to " & STRserver > > END > > > PRIVATE FUNCTION Port_Read() AS Integer > > RETURN INTport > > END > > PRIVATE SUB Port_Write(Value AS Integer) > > INTport = Value > > END > > PRIVATE FUNCTION Server_Read() AS String > > RETURN STRserver > > END > > PRIVATE SUB Server_Write(Value AS String) > > STRserver = Value > > END > > PRIVATE FUNCTION Nebenstelle_Read() AS Integer > > RETURN INTnebenstelle > > END > > PRIVATE SUB Nebenstelle_Write(Value AS Integer) > > INTnebenstelle = Value > > END > > > Regards > > Lars Hoeger Can you provide the component project and the project that uses it? -- Beno?t From gambasdeveloper at ...628... Mon Mar 9 11:53:03 2009 From: gambasdeveloper at ...628... (Lars Hoeger) Date: Mon, 09 Mar 2009 11:53:03 +0100 Subject: [Gambas-devel] Programming a component with gambas In-Reply-To: <200903062038.33754.gambas@...1...> References: <49B14435.4070505@...628...> <200903062038.33754.gambas@...1...> Message-ID: <49B4F50F.6090705@...628...> Beno?t Minisini schrieb: >> Hello, >> >> i try to program a virtual component (it is the first one) which >> connects to a Server and communicates with it. I allready read the >> dokumentation How To Program Components In Gambas >> an walked through all the >> code located in the /comp/src directory. >> The component has only three properties which should be set in the >> gambas-IDE as well as by code. >> >> Everything works fine: in the gambas ide you can place the new control >> on a form and the properties where shown as they should be. >> >> If I run the program it stops with "Not enough arguments". I think in >> comes from the _init() part. >> >> If I create a new Control in my Code: >> >> DIM CTItmp as new CTI(Fmain), >> >> it works, but without the default values. Can anyone explain me, what i >> did wrong? >> >> Here is the Code of the Control called CTI (its picture is named >> cti.png). It should just print the given values. The rest of the >> functionality will come later... >> >> >> >> ' Gambas class file >> >> EXPORT >> >> INHERITS UserControl >> >> EVENT CTIReady >> EVENT CTINotReady >> EVENT TELAlerting >> EVENT TELRinging(Anrufer AS String) >> EVENT TELInBound >> EVENT TELOutBound >> >> PROPERTY Port AS Integer >> PROPERTY Server AS String >> PROPERTY Nebenstelle AS Integer >> >> PUBLIC CONST _Properties AS String = >> "Port=12345,Server=192.168.0.1,Nebenstelle=100" >> >> PRIVATE INTport AS Integer >> PRIVATE STRserver AS String >> PRIVATE INTnebenstelle AS Integer >> >> >> PUBLIC SUB _new() >> >> PRINT "New:" >> PRINT STRserver >> PRINT INTport >> PRINT INTnebenstelle >> >> END >> >> STATIC PUBLIC SUB _init() >> >> PRINT "_init() :-)" >> >> END >> >> PUBLIC SUB Connect() >> >> PRINT "Will connect to " & STRserver >> >> END >> >> >> PRIVATE FUNCTION Port_Read() AS Integer >> >> RETURN INTport >> >> END >> >> PRIVATE SUB Port_Write(Value AS Integer) >> >> INTport = Value >> >> END >> >> PRIVATE FUNCTION Server_Read() AS String >> >> RETURN STRserver >> >> END >> >> PRIVATE SUB Server_Write(Value AS String) >> >> STRserver = Value >> >> END >> >> PRIVATE FUNCTION Nebenstelle_Read() AS Integer >> >> RETURN INTnebenstelle >> >> END >> >> PRIVATE SUB Nebenstelle_Write(Value AS Integer) >> >> INTnebenstelle = Value >> >> END >> >> >> Regards >> >> Lars Hoeger >> > > Can you provide the component project and the project that uses it? > > Hi, i have attached the files. THX Lars Hoeger -------------- next part -------------- A non-text attachment was scrubbed... Name: CTI.tar.gz Type: application/x-gzip Size: 14219 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CTI_Test.tar.gz Type: application/x-gzip Size: 7731 bytes Desc: not available URL: From david_villalobos_c at ...7... Mon Mar 9 16:04:59 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 9 Mar 2009 08:04:59 -0700 (PDT) Subject: [Gambas-devel] Feature request References: <13767.55654.qm@...556...> <200903062037.42269.gambas@...1...> Message-ID: <366016.29145.qm@...556...> Great!!! but, I do this svn://mail.utn.ac.cr/var/svn/SMaRT at ...630... The project is downloaded just fine, the folder is created with the name: SMaRT, but Gambas try to open the folder SMaRT at ...630..., so it says that the project SMaRT at ...630... does not exists, is this an error I'm doing somethig wrong again? Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas developers Sent: Friday, March 6, 2009 1:37:42 PM Subject: Re: [Gambas-devel] Feature request > Hi, It will be dificult to have an option to get an especific revision when > creating a proyect hosted in a svn repository? > > I took a look in the Gambas code and it seems not so dificult. > > Any comments? :-) > > Regards > > > -- > David > > According to the svn command help, just add "@REV" after the repository URL, and you will get the revision REV. Regards, -- Beno?t ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Mon Mar 9 16:51:27 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 9 Mar 2009 08:51:27 -0700 (PDT) Subject: [Gambas-devel] Error in gb.qt.kde.html References: <581147.35023.qm@...556...> <200903062034.37782.gambas@...1...> Message-ID: <403089.20718.qm@...582...> Ok, tnks Regards -- David ----- Original Message ---- From: Beno?t Minisini To: mailing list for gambas developers Sent: Friday, March 6, 2009 1:34:37 PM Subject: Re: [Gambas-devel] Error in gb.qt.kde.html > Hi I got this error when using gb.qt.kde.html revision 1893, Mandriva > 2009.1 32 bits kde > > An error occurred while loading text.html: > Could not start process Unable to create io-slave: > klauncher said: Unknown protocol ''. > . > > Regards > > > -- > David KHTML cannot access files located inside a gambas archive. You must specify a full URL. Regards, -- Beno?t ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Thu Mar 12 17:26:08 2009 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Thu, 12 Mar 2009 09:26:08 -0700 (PDT) Subject: [Gambas-devel] Feature request in Menu class Message-ID: <941538.51259.qm@...588...> Hi, It will be possible to have something like: MainMenu.Children.Sort() 'To sort alphabetically the menus, it could be ascending or descending Regards -- David From gambas.fr at ...176... Fri Mar 27 15:22:21 2009 From: gambas.fr at ...176... (Fabien Bodard) Date: Fri, 27 Mar 2009 15:22:21 +0100 Subject: [Gambas-devel] Problem on gb.report Message-ID: <6324a42a0903270722k6940fbbah378462156d95bd3e@...178...> Hi Benoit, The component is working when I use it in ide But when i want to use the component in a new project i obtain that : Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: dialogue.png Type: image/png Size: 10665 bytes Desc: not available URL: