From hscast at ...407... Sun Jul 1 01:25:07 2007 From: hscast at ...407... (Scott Castaline) Date: Sat, 30 Jun 2007 19:25:07 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas Message-ID: <4686E653.7010705@...407...> Anyone familiar with this book, written by Dr. John W. Rittinghouse? I am having a problem with one of the examples in Chapter 4. The example creates a method for a button that is created in the forms sub. When running the code it'll come up with "button.hide is not static" and gives the option to stop or continue. Did I miss the boat or is there another typo in the book? I had already found one typo in this example. TIA From Karl.Reinl at ...9... Sun Jul 1 16:15:32 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 01 Jul 2007 16:15:32 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <4686E653.7010705@...407...> References: <4686E653.7010705@...407...> Message-ID: <1183299332.5238.3.camel@...40...> Salut, may be there are some more typo. But for your pb. Are you using Gambas 1.x (not 1.9.x) ? Amicalment Charlie Am Samstag, den 30.06.2007, 19:25 -0400 schrieb Scott Castaline: > Anyone familiar with this book, written by Dr. John W. Rittinghouse? I > am having a problem with one of the examples in Chapter 4. The example > creates a method for a button that is created in the forms sub. When > running the code it'll come up with "button.hide is not static" and > gives the option to stop or continue. Did I miss the boat or is there > another typo in the book? I had already found one typo in this example. > > TIA > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jul 1 17:05:17 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 1 Jul 2007 17:05:17 +0200 Subject: [Gambas-user] TextEdit or Editor control questions In-Reply-To: <4684D275.8040906@...221...> References: <4684D275.8040906@...221...> Message-ID: <200707011705.17318.gambas@...1...> On vendredi 29 juin 2007, Rolf-Werner Eilert wrote: > Does anyone here have experience with the TextEdit and the Editor controls? > > There are two different applications of mine which could be pimped by > one of the two. The first is a printing form editor which would profit > from being able to highlight commands and keywords, the second is a part > of the printing system I made enabling the user to type something into a > given text before it is printed. > You have two examples provided with the IDE: * TextEdit, which is an example based on the TextEdit control. * HighlightEditor, which is based on Editor, and that shows you how to highlight HTML text. > So I was looking into how these two are operated, but there are a couple > of questions left open: > > - When I want the Editor to highlight my commands instead of Gambas ones > (it's Custom, right?), where do I define my keywords etc. to highlight? Look in the HighlightEditor code. > > - In the TextEdit.Text, there is always the whole code delivered back > including HTML tags. Is there a way to get an extract of pure text? No, I don't think there is a method for doing that. Regards, -- Benoit Minisini From hscast at ...407... Sun Jul 1 18:23:32 2007 From: hscast at ...407... (Scott Castaline) Date: Sun, 01 Jul 2007 12:23:32 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <1183299332.5238.3.camel@...40...> References: <4686E653.7010705@...407...> <1183299332.5238.3.camel@...40...> Message-ID: <4687D504.4090502@...407...> Charlie Reinl wrote: > Salut, > > may be there are some more typo. > But for your pb. Are you using Gambas 1.x (not 1.9.x) ? > > Amicalment > Charlie > > Am Samstag, den 30.06.2007, 19:25 -0400 schrieb Scott Castaline: >> Anyone familiar with this book, written by Dr. John W. Rittinghouse? I >> am having a problem with one of the examples in Chapter 4. The example >> creates a method for a button that is created in the forms sub. When >> running the code it'll come up with "button.hide is not static" and >> gives the option to stop or continue. Did I miss the boat or is there >> another typo in the book? I had already found one typo in this example. >> >> TIA >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > FC6 repos have 1.0.17, which is where I got Gambas from. Installed from their rpm(s). If you have the book the particular example is on page 71. I found that the first typo was in the use of button1.hide should be button.hide, since that is what was created in the main sub. From timothy.marshal-nichols at ...247... Mon Jul 2 09:07:04 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Mon, 2 Jul 2007 08:07:04 +0100 Subject: [Gambas-user] PDF file In-Reply-To: <200706301253.41360.gambas@...1...> Message-ID: <000001c7bc77$9cdba940$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini > Sent: Saturday, 30 June 2007 11:54 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] PDF file > > On samedi 30 juin 2007, Steven Lobbezoo wrote: > > I dont get it. > > If I do this : > > > > FOR EACH tmp IN ToMails > > Ema.To.Add(tmp) > > NEXT > > > > Ema.From = MGlobal.U_Mail > > Ema.Subject = "Voici votre information concernant le bien " & > ME.Tag > > Ema.Host = "revimmo.com" > > Ema.Alternative = FALSE > > Ema.Add("Voici votre fichier pdf avec les donn?es principales sur > le > > bien " & ME.Tag & > > "\nNous sommes toujours a votre service pour des > > renseignements supplementaires" & > > "\n\nDe la part de " & MGlobal.U_Nom & " de " & > > MGlobal.U_AgenNom & > > "\n" & MGlobal.U_AgenStreet & > > "\n" & Mglobal.U_AgenPlz & " " & Mglobal.U_AgenVille & > > "\nTel.: " & MGlobal.U_AgenTel & " et Fax : " & > > MGlobal.U_AgenFax & > > "\n\nMon portable est : " & MGlobal.U_Cell) > > Ema.Add(file.Load(User.Home > > & "/request/work/tempfile.pdf"), "application/pdf", ME.Tag & ".pdf") > > > > Ema.Send > > message.Info("Vos message(s) sont envoy?es") > > > > > > I get a message with the text AND an attachement (pdf file) > > > > Works exactly correct with me > > > > Steven > > > > The final visual result depends on the mail reader. > > There is no difference between the body of the mail and attached files in > the > SMTP + MIME protocol. There are all parts of a 'multipart/mixed' MIME > message. The only difference is that the body is the first part, and that > it > is a 'text/plain' part. > > Regards, > > -- > Benoit Minisini > I was sending the mail on a Linux system (obviously) and reading it in (ugh spit) MS Outlook. So I tried reading the mail in Evolution. Still the same result. This is what I was using: PUBLIC SUB SendMoreMail() DIM simpleSmtpClient AS NEW SmtpClient WITH simpleSmtpClient .Host = "smtp.myserver.com" .From = "from mail address" .Subject = "Test du composant SMTP de Gambas - " & Str(Now) .To.Add("to mail address") .Add("Demo mail body", "text/plain") .Send() END WITH END Based on Benoit's example. It?s the same result with or without the mime type. By the way I am using Gambas 1.9.49 on an openSUSE 10.2 system. Thanks 8-{)} Timothy Marshal-Nichols From steven at ...1652... Mon Jul 2 09:25:19 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 2 Jul 2007 09:25:19 +0200 Subject: [Gambas-user] PDF file In-Reply-To: <000001c7bc77$9cdba940$6401a8c0@...1587...> References: <000001c7bc77$9cdba940$6401a8c0@...1587...> Message-ID: <200707020925.20265.steven@...1652...> Add .alternative = False before any text Donnot use a mime type parameter for the text. btw: I'm using the exact same configuration. Steven Le lundi 2 juillet 2007 09:07, timothy a ?crit?: > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > > bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini > > Sent: Saturday, 30 June 2007 11:54 AM > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] PDF file > > > > On samedi 30 juin 2007, Steven Lobbezoo wrote: > > > I dont get it. > > > If I do this : > > > > > > FOR EACH tmp IN ToMails > > > Ema.To.Add(tmp) > > > NEXT > > > > > > Ema.From = MGlobal.U_Mail > > > Ema.Subject = "Voici votre information concernant le bien " & > > > > ME.Tag > > > > > Ema.Host = "revimmo.com" > > > Ema.Alternative = FALSE > > > Ema.Add("Voici votre fichier pdf avec les donn?es principales > > sur > > > le > > > > > bien " & ME.Tag & > > > "\nNous sommes toujours a votre service pour des > > > renseignements supplementaires" & > > > "\n\nDe la part de " & MGlobal.U_Nom & " de " & > > > MGlobal.U_AgenNom & > > > "\n" & MGlobal.U_AgenStreet & > > > "\n" & Mglobal.U_AgenPlz & " " & Mglobal.U_AgenVille > > & > > > > "\nTel.: " & MGlobal.U_AgenTel & " et Fax : " & > > > MGlobal.U_AgenFax & > > > "\n\nMon portable est : " & MGlobal.U_Cell) > > > Ema.Add(file.Load(User.Home > > > & "/request/work/tempfile.pdf"), "application/pdf", ME.Tag & ".pdf") > > > > > > Ema.Send > > > message.Info("Vos message(s) sont envoy?es") > > > > > > > > > I get a message with the text AND an attachement (pdf file) > > > > > > Works exactly correct with me > > > > > > Steven > > > > The final visual result depends on the mail reader. > > > > There is no difference between the body of the mail and attached files > > in > > > the > > SMTP + MIME protocol. There are all parts of a 'multipart/mixed' MIME > > message. The only difference is that the body is the first part, and > > that > > > it > > is a 'text/plain' part. > > > > Regards, > > > > -- > > Benoit Minisini > > I was sending the mail on a Linux system (obviously) and reading it in > (ugh spit) MS Outlook. So I tried reading the mail in Evolution. Still > the same result. > > This is what I was using: > > PUBLIC SUB SendMoreMail() > DIM simpleSmtpClient AS NEW SmtpClient > WITH simpleSmtpClient > .Host = "smtp.myserver.com" > .From = "from mail address" > .Subject = "Test du composant SMTP de Gambas - " & Str(Now) > .To.Add("to mail address") > .Add("Demo mail body", "text/plain") > .Send() > END WITH > END > > Based on Benoit's example. It?s the same result with or without the mime > type. By the way I am using Gambas 1.9.49 on an openSUSE 10.2 system. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Mon Jul 2 09:49:04 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Mon, 2 Jul 2007 09:49:04 +0200 Subject: [Gambas-user] cannot install gambas on opensuse 10.2 In-Reply-To: <200706301022.43995.steven@...1652...> References: <200706281600.51493.steven@...1652...> <200706281230.13586.sourceforge-raindog2@...94...> <200706301022.43995.steven@...1652...> Message-ID: <200707020949.04362.steven@...1652...> Hi, I still have these problems, I completely re-installed qt3 (not 4 !) I checked that all libs are vavailable, make etc. In short all is there. Still cannot compile. So I looked a bit in moc_main.cpp in gb.qt/src The comment in it say's that it's for Qt 4.2.1 ! Are you sure i need to install all with Qt3 ? Steven From gambas at ...1... Mon Jul 2 09:56:33 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jul 2007 09:56:33 +0200 Subject: [Gambas-user] cannot install gambas on opensuse 10.2 In-Reply-To: <200707020949.04362.steven@...1652...> References: <200706281600.51493.steven@...1652...> <200706301022.43995.steven@...1652...> <200707020949.04362.steven@...1652...> Message-ID: <200707020956.33258.gambas@...1...> On lundi 02 juillet 2007, Steven Lobbezoo wrote: > Hi, > > I still have these problems, > I completely re-installed qt3 (not 4 !) > I checked that all libs are vavailable, > make etc. In short all is there. > Still cannot compile. > > So I looked a bit in moc_main.cpp in gb.qt/src > The comment in it say's that it's for Qt 4.2.1 ! > Are you sure i need to install all with Qt3 ? > > Steven > The moc_* files are generated, so you must remove them before recompiling, by doing a 'make clean' in the gb.qt/src directory and in other qt related components directories. The simplest for you is to do 'make clean' in the root directory of the package, and to recompile everything. Regards, -- Benoit Minisini From info.geex at ...626... Mon Jul 2 16:25:25 2007 From: info.geex at ...626... (Sergio A. Hernandez) Date: Mon, 2 Jul 2007 08:25:25 -0600 Subject: [Gambas-user] Gambas-user Digest, Vol 14, Issue 1 In-Reply-To: References: Message-ID: <705a68020707020725x356b20fdn6c2467eae50ac227@...627...> Steven Lobbezoo, Try this: ./reconf ./configure make su -c "make install" If this doesn't work, create a log file and send it to Benoit. He is the man. (./configure; make; make install) > output.txt 2>&1 Double check the README DOCUMENTATION on the http://gambas.sourceforge.net/ > ------------------------------ > Message: 8 > Date: Mon, 2 Jul 2007 09:49:04 +0200 > From: Steven Lobbezoo > Subject: Re: [Gambas-user] cannot install gambas on opensuse 10.2 > To: mailing list for gambas users > Message-ID: <200707020949.04362.steven at ...1652...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > I still have these problems, > I completely re-installed qt3 (not 4 !) > I checked that all libs are vavailable, > make etc. In short all is there. > Still cannot compile. > > So I looked a bit in moc_main.cpp in gb.qt/src > The comment in it say's that it's for Qt 4.2.1 ! > Are you sure i need to install all with Qt3 ? > > Steven > ------------------------------ From gareth at ...1689... Mon Jul 2 19:08:21 2007 From: gareth at ...1689... (Gareth Bult) Date: Mon, 2 Jul 2007 18:08:21 +0100 (BST) Subject: [Gambas-user] Re; Asterisk Message-ID: <15576274.1081183396101252.JavaMail.root@...1708...> Hi, Before I start re-inventing the wheel, has anyone done any work on a Gambas / Asterisk API ? Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, FWD: 753977, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From hscast at ...407... Mon Jul 2 22:52:59 2007 From: hscast at ...407... (Scott Castaline) Date: Mon, 02 Jul 2007 16:52:59 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <4687D504.4090502@...407...> References: <4686E653.7010705@...407...> <1183299332.5238.3.camel@...40...> <4687D504.4090502@...407...> Message-ID: <468965AB.1000209@...407...> Scott Castaline wrote: > Charlie Reinl wrote: >> Salut, >> >> may be there are some more typo. >> But for your pb. Are you using Gambas 1.x (not 1.9.x) ? >> >> Amicalment >> Charlie >> >> Am Samstag, den 30.06.2007, 19:25 -0400 schrieb Scott Castaline: >>> Anyone familiar with this book, written by Dr. John W. Rittinghouse? I >>> am having a problem with one of the examples in Chapter 4. The example >>> creates a method for a button that is created in the forms sub. When >>> running the code it'll come up with "button.hide is not static" and >>> gives the option to stop or continue. Did I miss the boat or is there >>> another typo in the book? I had already found one typo in this example. >>> >>> TIA >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> 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 DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > FC6 repos have 1.0.17, which is where I got Gambas from. Installed from > their rpm(s). If you have the book the particular example is on page 71. > I found that the first typo was in the use of button1.hide should be > button.hide, since that is what was created in the main sub. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > I still can't seem to figure out this example from the book. Here is the code as I have it: ' Gambas class file PUBLIC SUB Form_Open() DIM hButton AS Button hButton = NEW Button (ME) AS "hButton" hButton.X = 120 hButton.Y = 60 hButton.Width = 200 hButton.Height = 40 hButton.ForeColor = Color.Cyan hButton.BackColor = Color.Red hButton.Font.Bold = TRUE hButton.Enabled = TRUE hButton.Text = "Click or press ESC to Quit" hButton.ToolTip = "Hey! Back off!" hButton.Border = TRUE hButton.Default = TRUE hButton.Cancel = TRUE hButton.Show END PUBLIC SUB hButton_Click() Button.Hide Label.Text = "Hey! Watch that!" WAIT 2.0 Button.Show Label.Text = "Ahh! So good!" END When I click on the button created by the main sub I'll get the error of "Button.Hide is not static". I don't understand what it is trying to say. I thought that Button.Hide was a Method that actually make calls to built in Subs, or do I need to actually add in code for Hide and Show as subs from the hButton_Click sub? Or am I really out in left field? From lordheavym at ...626... Mon Jul 2 23:03:11 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Mon, 2 Jul 2007 23:03:11 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <468965AB.1000209@...407...> References: <4686E653.7010705@...407...> <4687D504.4090502@...407...> <468965AB.1000209@...407...> Message-ID: <200707022303.15400.lordheavym@...626...> On Monday 02 July 2007 22:52:59 Scott Castaline wrote: > Scott Castaline wrote: > > Charlie Reinl wrote: > >> Salut, > >> > >> may be there are some more typo. > >> But for your pb. Are you using Gambas 1.x (not 1.9.x) ? > >> > >> Amicalment > >> Charlie > >> > >> Am Samstag, den 30.06.2007, 19:25 -0400 schrieb Scott Castaline: > >>> Anyone familiar with this book, written by Dr. John W. Rittinghouse? I > >>> am having a problem with one of the examples in Chapter 4. The example > >>> creates a method for a button that is created in the forms sub. When > >>> running the code it'll come up with "button.hide is not static" and > >>> gives the option to stop or continue. Did I miss the boat or is there > >>> another typo in the book? I had already found one typo in this example. > >>> > >>> TIA > >>> > >>> ----------------------------------------------------------------------- > >>>-- This SF.net email is sponsored by DB2 Express > >>> Download DB2 Express C - the FREE version of DB2 express and take > >>> control of your XML. No limits. Just data. Click to get it now. > >>> http://sourceforge.net/powerbar/db2/ > >>> _______________________________________________ > >>> 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 DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > FC6 repos have 1.0.17, which is where I got Gambas from. Installed from > > their rpm(s). If you have the book the particular example is on page 71. > > I found that the first typo was in the use of button1.hide should be > > button.hide, since that is what was created in the main sub. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I still can't seem to figure out this example from the book. Here is the > code as I have it: > ' Gambas class file > > PUBLIC SUB Form_Open() > DIM hButton AS Button > hButton = NEW Button (ME) AS "hButton" > > hButton.X = 120 > hButton.Y = 60 > hButton.Width = 200 > hButton.Height = 40 > hButton.ForeColor = Color.Cyan > hButton.BackColor = Color.Red > hButton.Font.Bold = TRUE > hButton.Enabled = TRUE > hButton.Text = "Click or press ESC to Quit" > hButton.ToolTip = "Hey! Back off!" > hButton.Border = TRUE > hButton.Default = TRUE > hButton.Cancel = TRUE > hButton.Show > END > > PUBLIC SUB hButton_Click() > Button.Hide > Label.Text = "Hey! Watch that!" > WAIT 2.0 > Button.Show > Label.Text = "Ahh! So good!" > END > > When I click on the button created by the main sub I'll get the error of > "Button.Hide is not static". I don't understand what it is trying to > say. I thought that Button.Hide was a Method that actually make calls to > built in Subs, or do I need to actually add in code for Hide and Show as > subs from the hButton_Click sub? Or am I really out in left field? > Replace Button inside hButton_Click() event function with hButton or Last keyword. Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From ronstk at ...239... Mon Jul 2 23:05:01 2007 From: ronstk at ...239... (ron) Date: Mon, 2 Jul 2007 23:05:01 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <468965AB.1000209@...407...> References: <4686E653.7010705@...407...> <4687D504.4090502@...407...> <468965AB.1000209@...407...> Message-ID: <200707022305.02025.ronstk@...239...> On Monday 02 July 2007 22:52, Scott Castaline wrote: > PUBLIC SUB hButton_Click() > ? ?Button.Hide > ? ?Label.Text = "Hey! Watch that!" > ? ?WAIT 2.0 > ? ?Button.Show > ? ?Label.Text = "Ahh! So good!" > END > 'Button' is the type 'name' the controll object. You created it however with code as: hButton = NEW Button (ME) AS "hButton" How to difference eight buttons in code placed on the formt ? Now 'hButton' is your friend to act on. The sub routine should be where hButton is the symbolic name. PUBLIC SUB hButton_Click() hButton.Hide '<--- see the 'h' in front Label.Text = "Hey! Watch that!" WAIT 2.0 hButton.Show '<--- same Label.Text = "Ahh! So good!" END -- Ron From hscast at ...407... Mon Jul 2 23:25:20 2007 From: hscast at ...407... (Scott Castaline) Date: Mon, 02 Jul 2007 17:25:20 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707022305.02025.ronstk@...239...> References: <4686E653.7010705@...407...> <4687D504.4090502@...407...> <468965AB.1000209@...407...> <200707022305.02025.ronstk@...239...> Message-ID: <46896D40.2000700@...407...> ron wrote: > On Monday 02 July 2007 22:52, Scott Castaline wrote: >> PUBLIC SUB hButton_Click() >> Button.Hide >> Label.Text = "Hey! Watch that!" >> WAIT 2.0 >> Button.Show >> Label.Text = "Ahh! So good!" >> END >> > > 'Button' is the type 'name' the controll object. > > You created it however with code as: > hButton = NEW Button (ME) AS "hButton" > > How to difference eight buttons in code placed on the formt ? > > Now 'hButton' is your friend to act on. > The sub routine should be where hButton is the symbolic name. > > PUBLIC SUB hButton_Click() > hButton.Hide '<--- see the 'h' in front > Label.Text = "Hey! Watch that!" > WAIT 2.0 > hButton.Show '<--- same > Label.Text = "Ahh! So good!" > END > > -- > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > That's the way I had originally done it, and i got "Unknown identifier: hButton at line 24 in Form1.class." Originally the code in the book had Button1.Hide, which had generated the same error. So I knew that the main sub had button defined as hButton, so I had originally changed it to that and got the above message. I then got rid of that message when I changed it to what I had sent to the list. So now I'm totally confused. I thought that Button was a class object that had to be declared and referenced by someother name in the DIM statement.? From gambas at ...1... Mon Jul 2 23:23:45 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jul 2007 23:23:45 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <468965AB.1000209@...407...> References: <4686E653.7010705@...407...> <4687D504.4090502@...407...> <468965AB.1000209@...407...> Message-ID: <200707022323.45966.gambas@...1...> On lundi 02 juillet 2007, Scott Castaline wrote: > Scott Castaline wrote: > > Charlie Reinl wrote: > >> Salut, > >> > >> may be there are some more typo. > >> But for your pb. Are you using Gambas 1.x (not 1.9.x) ? > >> > >> Amicalment > >> Charlie > >> > >> Am Samstag, den 30.06.2007, 19:25 -0400 schrieb Scott Castaline: > >>> Anyone familiar with this book, written by Dr. John W. Rittinghouse? I > >>> am having a problem with one of the examples in Chapter 4. The example > >>> creates a method for a button that is created in the forms sub. When > >>> running the code it'll come up with "button.hide is not static" and > >>> gives the option to stop or continue. Did I miss the boat or is there > >>> another typo in the book? I had already found one typo in this example. > >>> > >>> TIA > >>> > >>> ----------------------------------------------------------------------- > >>>-- This SF.net email is sponsored by DB2 Express > >>> Download DB2 Express C - the FREE version of DB2 express and take > >>> control of your XML. No limits. Just data. Click to get it now. > >>> http://sourceforge.net/powerbar/db2/ > >>> _______________________________________________ > >>> 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 DB2 Express > >> Download DB2 Express C - the FREE version of DB2 express and take > >> control of your XML. No limits. Just data. Click to get it now. > >> http://sourceforge.net/powerbar/db2/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > FC6 repos have 1.0.17, which is where I got Gambas from. Installed from > > their rpm(s). If you have the book the particular example is on page 71. > > I found that the first typo was in the use of button1.hide should be > > button.hide, since that is what was created in the main sub. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I still can't seem to figure out this example from the book. Here is the > code as I have it: > ' Gambas class file > > PUBLIC SUB Form_Open() > DIM hButton AS Button > hButton = NEW Button (ME) AS "hButton" > > hButton.X = 120 > hButton.Y = 60 > hButton.Width = 200 > hButton.Height = 40 > hButton.ForeColor = Color.Cyan > hButton.BackColor = Color.Red > hButton.Font.Bold = TRUE > hButton.Enabled = TRUE > hButton.Text = "Click or press ESC to Quit" > hButton.ToolTip = "Hey! Back off!" > hButton.Border = TRUE > hButton.Default = TRUE > hButton.Cancel = TRUE > hButton.Show > END > > PUBLIC SUB hButton_Click() > Button.Hide --> hButton.Hide ' An 'h' was forgotten. > Label.Text = "Hey! Watch that!" > WAIT 2.0 > Button.Show --> hButton.Show ' There too. > Label.Text = "Ahh! So good!" > END > Regards, -- Benoit Minisini From ronstk at ...239... Tue Jul 3 01:30:39 2007 From: ronstk at ...239... (ron) Date: Tue, 3 Jul 2007 01:30:39 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707022323.45966.gambas@...1...> References: <4686E653.7010705@...407...> <468965AB.1000209@...407...> <200707022323.45966.gambas@...1...> Message-ID: <200707030130.40107.ronstk@...239...> On Monday 02 July 2007 23:23, Benoit Minisini wrote: > > PUBLIC SUB Form_Open() > > ? ? ?DIM hButton AS Button > > ? ? ?hButton = NEW Button (ME) AS "hButton" > in top of your form do instead the FormOpen. PRIVATE hButton AS Button PUBLIC SUB Form_Open() ' DIM hButton AS Button '<----- Rem this line. hButton = NEW Button (ME) AS "hButton" The fact is the hButton must be global in the form class. It is now local in the Form_Open() For the line in the Form_open meaning: hButton : the variable to hold the handle to the object = NEW : create new instance of the object Button : the type of object (ME) : where to place AS "hButton" : the 'name' part for event descriptors : as hButton_Click On the events it goes to this sub routine starting with this name The object properties however are available on the handle variable and not the used name. i.e. PUBLIC hButton as Button PUBLIC SUB Form_Open() hButton = NEW Button (ME) AS "MyFancyButton" .... PUBLIC SUB MyFancyButton_Click() hButton.caption = "Im the fancy button" -- Ron From ronstk at ...239... Tue Jul 3 01:39:33 2007 From: ronstk at ...239... (ron) Date: Tue, 3 Jul 2007 01:39:33 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707030130.40107.ronstk@...239...> References: <4686E653.7010705@...407...> <200707022323.45966.gambas@...1...> <200707030130.40107.ronstk@...239...> Message-ID: <200707030139.33913.ronstk@...239...> On Tuesday 03 July 2007 01:30, ron wrote: > On Monday 02 July 2007 23:23, Benoit Minisini wrote: Sorry, this was for Scott Castaline. I do not have to tell you how your own wonderfull product works :) :) -- Ron From hscast at ...407... Tue Jul 3 01:48:45 2007 From: hscast at ...407... (Scott Castaline) Date: Mon, 02 Jul 2007 19:48:45 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707030130.40107.ronstk@...239...> References: <4686E653.7010705@...407...> <468965AB.1000209@...407...> <200707022323.45966.gambas@...1...> <200707030130.40107.ronstk@...239...> Message-ID: <46898EDD.8060907@...407...> ron wrote: > On Monday 02 July 2007 23:23, Benoit Minisini wrote: >>> PUBLIC SUB Form_Open() >>> DIM hButton AS Button >>> hButton = NEW Button (ME) AS "hButton" > > > in top of your form do instead the FormOpen. > PRIVATE hButton AS Button > > PUBLIC SUB Form_Open() > ' DIM hButton AS Button '<----- Rem this line. > hButton = NEW Button (ME) AS "hButton" > > The fact is the hButton must be global in the form class. > It is now local in the Form_Open() > > For the line in the Form_open meaning: > hButton : the variable to hold the handle to the object > = > NEW : create new instance of the object > Button : the type of object > (ME) : where to place > AS > "hButton" : the 'name' part for event descriptors > : as hButton_Click > > On the events it goes to this sub routine starting with this name > The object properties however are available on the handle variable > and not the used name. > > > i.e. > PUBLIC hButton as Button > > PUBLIC SUB Form_Open() > hButton = NEW Button (ME) AS "MyFancyButton" > .... > > > PUBLIC SUB MyFancyButton_Click() > hButton.caption = "Im the fancy button" > > > -- > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Now I get "Null Object" and the hButton.Hide is hi-lighted. From timothy.marshal-nichols at ...247... Tue Jul 3 07:49:21 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Tue, 3 Jul 2007 06:49:21 +0100 Subject: [Gambas-user] PDF file In-Reply-To: <200707020925.20265.steven@...1652...> Message-ID: <000901c7bd35$e9036a60$6401a8c0@...1587...> > Add .alternative = False before any text > Donnot use a mime type parameter for the text. > > btw: I'm using the exact same configuration. > > Steven > > I changed the example to: PUBLIC SUB SendMoreMail() DIM simpleSmtpClient AS NEW SmtpClient WITH simpleSmtpClient .Host = "smtp.myserver.com" .From = "from mail address" .Subject = "Test du composant SMTP de Gambas - " & Str(Now) .Alternative = FALSE .To.Add("to mail address") .Add("Demo mail body") .Send() END WITH END However it made no difference. I still see the message body as an attachment. Both in MS Outlook and Evolution. According to the help the default value of Alternative is FALSE anyway. So this line should not be needed. I had already tried it without the mime type. Thanks 8-{)} Timothy Marshal-Nichols From david_villalobos_c at ...43... Tue Jul 3 17:32:34 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 3 Jul 2007 08:32:34 -0700 (PDT) Subject: [Gambas-user] Non terminated string in for definition Message-ID: <253248.39462.qm@...1655...> Hi all, I have a project in gambas 1.9.25 and when I open it in gambas 1.9.49, at compilation time it says: Non terminated string in form definition, how can I solve it, I don't want to re-write my program Best regards... David ____________________________________________________________________________________ Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. http://new.toolbar.yahoo.com/toolbar/features/norton/index.php From david_villalobos_c at ...43... Tue Jul 3 18:18:10 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Tue, 3 Jul 2007 09:18:10 -0700 (PDT) Subject: [Gambas-user] Gambas users in Costa Rica Message-ID: <887594.33061.qm@...1678...> Hi all, I want to be contacted by all Gambas users living in Costa Rica (seems I'm the only one) becuase I'm planing a meeting. So, if you live in Costa Rica, please send me a mail..... Best regards... David ____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 From gambas at ...1... Tue Jul 3 20:33:04 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jul 2007 20:33:04 +0200 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <253248.39462.qm@...1655...> References: <253248.39462.qm@...1655...> Message-ID: <200707032033.05033.gambas@...1...> On mardi 03 juillet 2007, David Villalobos Cambronero wrote: > Hi all, > > I have a project in gambas 1.9.25 and when I open it in gambas 1.9.49, > at compilation time it says: > > Non terminated string in form definition, how can I solve it, I don't > want to re-write my program > > Best regards... > > David > Try that: * Note the name of the form that raises the compilation error. * Open the form in the editor. * Modify something in the form not important, for example move a control, and move it back, so that the form is modified for the editor. * Save the form. Normally, the form will be automatically fixed. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Jul 3 21:25:57 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 3 Jul 2007 15:25:57 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <46898EDD.8060907@...407...> References: <4686E653.7010705@...407...> <200707030130.40107.ronstk@...239...> <46898EDD.8060907@...407...> Message-ID: <200707031525.57834.sourceforge-raindog2@...94...> On Monday 02 July 2007, Scott Castaline wrote: > Now I get "Null Object" and the hButton.Hide is hi-lighted. Works fine for me.... here's what I did. How does it differ from what you did? Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: CastalineExample-0.0.1.tar.gz Type: application/x-tgz Size: 763 bytes Desc: not available URL: From hscast at ...407... Tue Jul 3 21:33:48 2007 From: hscast at ...407... (Scott Castaline) Date: Tue, 03 Jul 2007 15:33:48 -0400 Subject: [Gambas-user] More A Beginner's Guide to Gambas Message-ID: <468AA49C.8080504@...407...> I hate to be a PITA but, I'm obviously missing out on something. When I do these examples I keep getting NULL OBJECT. Is something different between 1.0.17 and the version that the book is based on? Is the author assuming something that I'm not getting? Sorry for being a pest, but I'm a little frustrated, and usually I can figure things out for myself, but I'm getting no where fast with this. TIA Scott From hscast at ...407... Tue Jul 3 21:49:56 2007 From: hscast at ...407... (Scott Castaline) Date: Tue, 03 Jul 2007 15:49:56 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707031525.57834.sourceforge-raindog2@...94...> References: <4686E653.7010705@...407...> <200707030130.40107.ronstk@...239...> <46898EDD.8060907@...407...> <200707031525.57834.sourceforge-raindog2@...94...> Message-ID: <468AA864.9010300@...407...> Rob wrote: > On Monday 02 July 2007, Scott Castaline wrote: >> Now I get "Null Object" and the hButton.Hide is hi-lighted. > > Works fine for me.... here's what I did. How does it differ from what > you did? > > Rob > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Your modifications worked. I noticed that you don't have the DIM hButton AS Button statement. Is that because of the PUBLIC statement in the main routine itself? (PUBLIC hButton AS Button?) I think I'm miss understanding something, because I'm beginning to feel like the lights are on but no one is home. Must be the new medication my doctor put me on. From sourceforge-raindog2 at ...94... Tue Jul 3 22:01:17 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 3 Jul 2007 16:01:17 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <468AA864.9010300@...407...> References: <4686E653.7010705@...407...> <200707031525.57834.sourceforge-raindog2@...94...> <468AA864.9010300@...407...> Message-ID: <200707031601.17404.sourceforge-raindog2@...94...> On Tuesday 03 July 2007, Scott Castaline wrote: > Your modifications worked. I noticed that you don't have the DIM > hButton AS Button statement. Is that because of the PUBLIC > statement in the main routine itself? (PUBLIC hButton AS Button?) Yes, it is. If you have a PUBLIC variable declaration, and then declare that same variable with DIM in a subroutine, anything you do to that variable is lost when the subroutine finishes. In the context of that one form, think of the PUBLIC one as being a global variable, whereas any DIM variable is a local variable. Anything that needs to last longer than a subroutine should be declared with PUBLIC (or PRIVATE, if you don't need to access it in other forms or modules) and anything temporary like a loop variable should be declared using DIM. Other than that, it's up to your discretion, but declaring it both ways can cause some confusion as you can see. In one of Ron Onstenk's replies to your posts, he actually suggested commenting out the DIM line for this same reason. But the replies were going back and forth pretty fast, so it wouldn't surprise me if you missed that one. Rob From ronstk at ...239... Wed Jul 4 01:49:15 2007 From: ronstk at ...239... (ron) Date: Wed, 4 Jul 2007 01:49:15 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707031601.17404.sourceforge-raindog2@...94...> References: <4686E653.7010705@...407...> <468AA864.9010300@...407...> <200707031601.17404.sourceforge-raindog2@...94...> Message-ID: <200707040149.15605.ronstk@...239...> On Tuesday 03 July 2007 22:01, Rob wrote: > In one of Ron Onstenk's replies to your posts, he actually suggested > commenting out the DIM line for this same reason. ?But the replies > were going back and forth pretty fast, so it wouldn't surprise me if > you missed that one. > > Rob > LOL I did mistaken reply to Benoit message instead his one. BTW, I did not suggested but required it to be commented. Only the way how I did. As far I know (locally dutch) we use many times the message like _'<----- Rem this line_ to say comment this line. REM stands for the good old BASICs REM statement which is short for REMARK (or COMMENT) and also well known as the character ' or using in bash as character # :) For Scott: > Your modifications worked. I noticed that you don't have the DIM hButton > AS Button statement. Is that because of the PUBLIC statement in the main >? routine itself? (PUBLIC hButton AS Button?) I think I'm miss In fact the head of the class file where the PUBLIC statement is, is not 'the main routine' but the 'global' part of the class (or module) file. Also in this place, the global and what is written, it are declarations. Variable declared in this global part are available in every FUNCTION and SUB in the class/module. PRIVATE tells these are only inside this class/module available and when PUBLIC you can use them in case of modules inside an other class/module by prefix the name with the name of the orginal module where the declaration is. module: MyGlobal.module PUBLIC MyPubVar AS Integer ' anyone may use this PRIVATE MyPriVar AS Integer ' only code in me may use this Form: MyForm.form SUB XYZ() PRINT MyGlobal.MyPubVar ' works PRINT MyGlobal.MyPriVar ' does not work END Have fun with gambas and the guide as is :) -- Ron From hscast at ...407... Wed Jul 4 02:00:55 2007 From: hscast at ...407... (Scott Castaline) Date: Tue, 03 Jul 2007 20:00:55 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200707040149.15605.ronstk@...239...> References: <4686E653.7010705@...407...> <468AA864.9010300@...407...> <200707031601.17404.sourceforge-raindog2@...94...> <200707040149.15605.ronstk@...239...> Message-ID: <468AE337.6080500@...407...> ron wrote: > On Tuesday 03 July 2007 22:01, Rob wrote: >> In one of Ron Onstenk's replies to your posts, he actually suggested >> commenting out the DIM line for this same reason. But the replies >> were going back and forth pretty fast, so it wouldn't surprise me if >> you missed that one. >> >> Rob >> > > LOL > > I did mistaken reply to Benoit message instead his one. > BTW, I did not suggested but required it to be commented. > > Only the way how I did. As far I know (locally dutch) we use many > times the message like _'<----- Rem this line_ to say comment this line. > > REM stands for the good old BASICs REM statement which is short > for REMARK (or COMMENT) and also well known as the character ' > or using in bash as character # :) > > For Scott: >> Your modifications worked. I noticed that you don't have the DIM hButton >> AS Button statement. Is that because of the PUBLIC statement in the main >> routine itself? (PUBLIC hButton AS Button?) I think I'm miss > > In fact the head of the class file where the PUBLIC statement is, is not > 'the main routine' but the 'global' part of the class (or module) file. > Also in this place, the global and what is written, it are declarations. > > Variable declared in this global part are available in every FUNCTION > and SUB in the class/module. > > PRIVATE tells these are only inside this class/module available and > when PUBLIC you can use them in case of modules inside an other > class/module by prefix the name with the name of the orginal module > where the declaration is. > > module: MyGlobal.module > > PUBLIC MyPubVar AS Integer ' anyone may use this > PRIVATE MyPriVar AS Integer ' only code in me may use this > > Form: MyForm.form > > SUB XYZ() > PRINT MyGlobal.MyPubVar ' works > PRINT MyGlobal.MyPriVar ' does not work > END > > Have fun with gambas and the guide as is :) > > -- > Ron > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Yes to both of you Rob & Ron. That did the trick. I think it's starting to make sense now, since you put it that way Rob. (I'd knock on wood, but I have a headache)\;=> From ronstk at ...239... Wed Jul 4 01:59:57 2007 From: ronstk at ...239... (ron) Date: Wed, 4 Jul 2007 01:59:57 +0200 Subject: [Gambas-user] More A Beginner's Guide to Gambas In-Reply-To: <468AA49C.8080504@...407...> References: <468AA49C.8080504@...407...> Message-ID: <200707040159.57673.ronstk@...239...> On Tuesday 03 July 2007 21:33, Scott Castaline wrote: > I hate to be a PITA but, I'm obviously missing out on something. When I > do these examples I keep getting NULL OBJECT. Is something different > between 1.0.17 and the version that the book is based on? Is the author > assuming something that I'm not getting? > > Sorry for being a pest, but I'm a little frustrated, and usually I can > figure things out for myself, but I'm getting no where fast with this. > > TIA > Scott > You are correct. The version described in the book is not the latest 1.0.17 one. The guide is around one year old and there have been major updates in gambas between the release of the guide and now. So you are not PITA, pest, or something like that. :) The only thing you do not got till now is the difference in release dates. The guide is made/released 2005-10-16, gambas 1.0.17 is from 2007 The feeling of frustrated, I know but no need for it, keep head up :) -- Ron From hscast at ...407... Wed Jul 4 03:15:30 2007 From: hscast at ...407... (Scott Castaline) Date: Tue, 03 Jul 2007 21:15:30 -0400 Subject: [Gambas-user] More A Beginner's Guide to Gambas In-Reply-To: <200707040159.57673.ronstk@...239...> References: <468AA49C.8080504@...407...> <200707040159.57673.ronstk@...239...> Message-ID: <468AF4B2.3070303@...407...> ron wrote: > On Tuesday 03 July 2007 21:33, Scott Castaline wrote: >> I hate to be a PITA but, I'm obviously missing out on something. When I >> do these examples I keep getting NULL OBJECT. Is something different >> between 1.0.17 and the version that the book is based on? Is the author >> assuming something that I'm not getting? >> >> Sorry for being a pest, but I'm a little frustrated, and usually I can >> figure things out for myself, but I'm getting no where fast with this. >> >> TIA >> Scott >> > > You are correct. > The version described in the book is not the latest 1.0.17 one. > The guide is around one year old and there have been major updates > in gambas between the release of the guide and now. > > So you are not PITA, pest, or something like that. :) > The only thing you do not got till now is the difference in release dates. > The guide is made/released 2005-10-16, gambas 1.0.17 is from 2007 > > The feeling of frustrated, I know but no need for it, keep head up :) > > -- > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Any suggestions on how I can adapt the text to the current version of Gambas? I'm just trying to get a feel for the environment/language as I haven't written code in many many years, and some of it is there and other just fly's right past me. I have looked at the change logs and that doesn't seem to help. From obductor at ...626... Wed Jul 4 21:49:23 2007 From: obductor at ...626... (Roberto Estevam) Date: Wed, 4 Jul 2007 19:49:23 +0000 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> Message-ID: <13c329a90707041249v3a54efd4n69815b4fbb486025@...627...> Hello again, i need work to gambas database manager.. :( ""Error This application has raised an unexpected and must abort" "[2] Connot load class "Cserver": Unable you load class file Fmain.RefreshServer.151" I write ./reconf-all and ./configure - C and does not function:" On 24/06/07, Roberto Estevam wrote: > > when i click database manager give me an error: "Error This > application has raised an unexpected and must abort" "[2] Connot load > class "Cserver": Unable you load class file Fmain.RefreshServer.151" I > write ./reconf-all and ./configure - C and does not function: ( and > don't work :( > From gambas at ...1... Wed Jul 4 21:53:28 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jul 2007 21:53:28 +0200 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <13c329a90707041249v3a54efd4n69815b4fbb486025@...627...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> <13c329a90707041249v3a54efd4n69815b4fbb486025@...627...> Message-ID: <200707042153.28952.gambas@...1...> On mercredi 04 juillet 2007, Roberto Estevam wrote: > Hello again, i need work to gambas database manager.. :( > ""Error This application has raised an unexpected and must abort" "[2] > Connot load > class "Cserver": Unable you load class file Fmain.RefreshServer.151" I > write ./reconf-all and ./configure - C and does not function:" > > On 24/06/07, Roberto Estevam wrote: > > when i click database manager give me an error: "Error This > > application has raised an unexpected and must abort" "[2] Connot load > > class "Cserver": Unable you load class file Fmain.RefreshServer.151" I > > write ./reconf-all and ./configure - C and does not function: ( and > > don't work :( > Which version of Gambas do you use? -- Benoit Minisini From obductor at ...626... Wed Jul 4 21:57:03 2007 From: obductor at ...626... (Roberto Estevam) Date: Wed, 4 Jul 2007 19:57:03 +0000 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <200707042153.28952.gambas@...1...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> <13c329a90707041249v3a54efd4n69815b4fbb486025@...627...> <200707042153.28952.gambas@...1...> Message-ID: <13c329a90707041257j32272f84m7b14aa3be2157af0@...627...> I use svn up (1.9.49) On 04/07/07, Benoit Minisini wrote: > > On mercredi 04 juillet 2007, Roberto Estevam wrote: > > Hello again, i need work to gambas database manager.. :( > > ""Error This application has raised an unexpected and must abort" "[2] > > Connot load > > class "Cserver": Unable you load class file Fmain.RefreshServer.151" I > > write ./reconf-all and ./configure - C and does not function:" > > > > On 24/06/07, Roberto Estevam wrote: > > > when i click database manager give me an error: "Error This > > > application has raised an unexpected and must abort" "[2] Connot load > > > class "Cserver": Unable you load class file Fmain.RefreshServer.151" I > > > write ./reconf-all and ./configure - C and does not function: ( and > > > don't work :( > > > > Which version of Gambas do you use? > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jul 4 22:33:45 2007 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jul 2007 22:33:45 +0200 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <13c329a90707041257j32272f84m7b14aa3be2157af0@...627...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> <200707042153.28952.gambas@...1...> <13c329a90707041257j32272f84m7b14aa3be2157af0@...627...> Message-ID: <200707042233.45932.gambas@...1...> On mercredi 04 juillet 2007, Roberto Estevam wrote: > I use svn up (1.9.49) > If you use the current svn version, you must switch the database manager to gb.qt (it uses gb.gtk at the moment for debugging purpose), and recompile it. Sorry for the inconvenience! Regards, -- Benoit Minisini From obductor at ...626... Wed Jul 4 22:48:22 2007 From: obductor at ...626... (Roberto Estevam) Date: Wed, 4 Jul 2007 20:48:22 +0000 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <200707042233.45932.gambas@...1...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> <200707042153.28952.gambas@...1...> <13c329a90707041257j32272f84m7b14aa3be2157af0@...627...> <200707042233.45932.gambas@...1...> Message-ID: <13c329a90707041348q6e6fd73bje26ad3ca0b7c54ea@...627...> i have gb.qt and don't work :( i try: - cd trunk - ./configure -C ; make ; sudo make install - ./reconf-all On 04/07/07, Benoit Minisini wrote: > > On mercredi 04 juillet 2007, Roberto Estevam wrote: > > I use svn up (1.9.49) > > > > If you use the current svn version, you must switch the database manager > to > gb.qt (it uses gb.gtk at the moment for debugging purpose), and recompile > it. > > Sorry for the inconvenience! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Thu Jul 5 02:25:14 2007 From: ronstk at ...239... (ron) Date: Thu, 5 Jul 2007 02:25:14 +0200 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <200707042233.45932.gambas@...1...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> <13c329a90707041257j32272f84m7b14aa3be2157af0@...627...> <200707042233.45932.gambas@...1...> Message-ID: <200707050225.14646.ronstk@...239...> On Wednesday 04 July 2007 22:33, Benoit Minisini wrote: > On mercredi 04 juillet 2007, Roberto Estevam wrote: > > I use svn up (1.9.49) > > > > If you use the current svn version, you must switch the database manager to > gb.qt (it uses gb.gtk at the moment for debugging purpose), and recompile it. > > Sorry for the inconvenience! > > Regards, > hmmm, you forget something. Roberto must start gambas and go to the source tree and open the database manager as project. (trunk/gambas-1.9.4x?/src/apps/src) There he can change gb.gtk to gb.qt in the project properties. When done he must do the 'make install' again to update the installed database-manager. -- Ron From ronstk at ...239... Thu Jul 5 02:32:48 2007 From: ronstk at ...239... (ron) Date: Thu, 5 Jul 2007 02:32:48 +0200 Subject: [Gambas-user] gambas-database-manager In-Reply-To: <13c329a90707041348q6e6fd73bje26ad3ca0b7c54ea@...627...> References: <13c329a90706240330k47fe3ac8w6dfc14e51a5feca5@...627...> <200707042233.45932.gambas@...1...> <13c329a90707041348q6e6fd73bje26ad3ca0b7c54ea@...627...> Message-ID: <200707050232.48770.ronstk@...239...> On Wednesday 04 July 2007 22:48, Roberto Estevam wrote: > i have gb.qt and don't work :( > i try: > - cd trunk > - ./configure -C ; make ; sudo make install > - ./reconf-all > Just reverse the operatin a bit cd trunk ./reconf-all <-------- this must be doen first !!! ./configure -C ; make ; sudo make install perhaps you can edit in src/apps/src/database-manager the project file and search for the gb.gtk in the library section and change it to gb.qt This must be done before the make-install!!! A safe method I do use is make a copy of the database-manager source code part to my private source path and open it with gambas to edit the project. then the compile and use the result database-manager instead of the original installed version. -- Ron From juergen at ...1725... Thu Jul 5 07:36:15 2007 From: juergen at ...1725... (=?iso-8859-1?q?J=FCrgen_Zdero?=) Date: Thu, 5 Jul 2007 07:36:15 +0200 Subject: [Gambas-user] EXEC TO Message-ID: <200707050736.15740.juergen@...1725...> May anybody confirm that the following example-code works with gambas 1.0.18 or gambas2, please ? Example: ' Get the contents of a directory into a string DIM sOutput AS String EXEC [ "ls", "-la", "/tmp" ] TO sOutput I found this at http://www.gambasdoc.org/help/lang/exec but it does not work for me. Any hints how to do it without the process_read sub ? regas Juergen From rospolosco at ...152... Thu Jul 5 09:56:01 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 5 Jul 2007 09:56:01 +0200 Subject: [Gambas-user] EXEC TO In-Reply-To: <200707050736.15740.juergen@...1725...> References: <200707050736.15740.juergen@...1725...> Message-ID: <200707050956.01999.rospolosco@...152...> Alle 07:36, gioved? 5 luglio 2007, J?rgen Zdero ha scritto: > DIM sOutput AS String > EXEC [ "ls", "-la", "/tmp" ] TO sOutput It works in gambas2 I don't think you can use EXEC ... TO or SHELL ... TO in gambas 1.0.x. Stefano From gareth at ...1689... Thu Jul 5 12:37:25 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 5 Jul 2007 11:37:25 +0100 (BST) Subject: [Gambas-user] Re; EXEC / Embed Message-ID: <14367013.4751183631845542.JavaMail.root@...1708...> Hi, I used to be able to embed an RDP session within a window using the "EMBED" module. (on 1.9.49, earlier SVN) Although I can still do this with ssh, rdesktop seems to have stopped working (?) DIM cmd = string[] = ["rdesktop","-g","1024x768","-a","8","-T","desktop",address] EXEC cmd WAIT 3 id = Desktop.Find("rdesktop") ' this succeeds! embed.embed(id) ' this succeeds too! .. I get the screen apparently starting and then console then shows "connection reset by peer" .. Happens on all the machines I try to rdesktop to .. If I comment out the embed command things work fine. (I just get rdesktop in it's own window) Anyone any ideas ? tia Gareth/ -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, FWD: 753977, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From audiossis at ...867... Thu Jul 5 13:58:48 2007 From: audiossis at ...867... (audiossis) Date: Thu, 5 Jul 2007 21:58:48 +1000 Subject: [Gambas-user] More Problems with SHELL (possible BUG). Message-ID: <200707052158.48665.audiossis@...867...> Hello, I have noticed a problem with using the "SHELL" command to execute console functions and then return the output of those functions to a "Process_read" sub. For the most part this seems to work quite well. When "rm" to remove files or when using "cp" to copy files using the code: PUBLIC SUB something() SHELL "cp -var /some/directory/some/file /another/directory/another/place" WAIT FOR READ END PUBLIC SUB Process_read() DIM sOut AS String hStream = OPEN "/path/to/log/file" FOR APPEND READ #LAST, sOUT, -256 PRINT #hStream, sOUT END The output of "cp" is returned and printed to the log file. However this is not the case when using "mkdir" with the following code: PUBLIC SUB something() SHELL "mkdir -v /new/directory" WAIT FOR READ END PUBLIC SUB Process_read() DIM sOut AS String hStream = OPEN "/path/to/log/file" FOR APPEND READ #LAST, sOUT, -256 PRINT #hStream, sOUT END This produces absolutely no output to the log file whatsoever. but if I remove the "FOR READ" argument I can clearly see the output of the "mkdir" in the GAMBAS console. The same can be said for using the "cpio" command to create backup archives in the same manner. The command executes but "READ" does not receive the output from the command therefore no output is made to the log file. I have also noticed that using "cd" or "pushd" to traverse filesystems is difficult at best from within GAMBAS. For example, if I use this code: SHELL "pushd /directory" SHELL "find ./ | cpio -vco | gzip > /path/to/archive/file" Then the only files I get into my archive, are the GAMBAS files from the directory where GAMBAS itself was executed. Unless you use these commands within the same "SHELL" statement as another command like this: SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file" You cannot traverse the filesystem to another directory. It seems that any effect had by "pushd" or "cd" is undone as soon as the current "SHELL" statement is finished and your current filesystem location returns to the GAMBAS execution directory. I must say that this is most frustrating when combined with the other problems outlined above. Does anyone have any ideas about how to get around any of these issues? Oh and by the way "EXEC" does not seem to return ANY command output at all to the "FOR READ" argument, regardless of which command is executed on the console. Any help or work suggestions at all would be greatly appreciated! Ben Phillips audiossis at ...867... ------------------------------------------------------- From rospolosco at ...152... Thu Jul 5 14:22:23 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 5 Jul 2007 14:22:23 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707052158.48665.audiossis@...867...> References: <200707052158.48665.audiossis@...867...> Message-ID: <200707051422.23963.rospolosco@...152...> Alle 13:58, gioved? 5 luglio 2007, audiossis ha scritto: > Hello, > > I have noticed a problem with using the "SHELL" command to execute console > functions and then return the output of those functions to a "Process_read" > sub. > For the most part this seems to work quite well. When "rm" to remove files > or when using "cp" to copy files using the code: > > PUBLIC SUB something() > > SHELL "cp -var /some/directory/some/file /another/directory/another/place" > WAIT FOR READ > > END > > PUBLIC SUB Process_read() > > DIM sOut AS String > hStream = OPEN "/path/to/log/file" FOR APPEND > > READ #LAST, sOUT, -256 > PRINT #hStream, sOUT > > END > > > The output of "cp" is returned and printed to the log file. However this is > not the case when using "mkdir" with the following code: > > > PUBLIC SUB something() > > SHELL "mkdir -v /new/directory" WAIT FOR READ > > END > > PUBLIC SUB Process_read() > > DIM sOut AS String > hStream = OPEN "/path/to/log/file" FOR APPEND > > READ #LAST, sOUT, -256 > PRINT #hStream, sOUT > > END > > > This produces absolutely no output to the log file whatsoever. but if I > remove the "FOR READ" argument I can clearly see the output of the "mkdir" > in the GAMBAS console. The same can be said for using the "cpio" command to > create backup archives in the same manner. The command executes but "READ" > does not receive the output from the command therefore no output is made to > the log file. > > I have also noticed that using "cd" or "pushd" to traverse filesystems is > difficult at best from within GAMBAS. For example, if I use this code: > > SHELL "pushd /directory" > SHELL "find ./ | cpio -vco | gzip > /path/to/archive/file" > > Then the only files I get into my archive, are the GAMBAS files from the > directory where GAMBAS itself was executed. > > Unless you use these commands within the same "SHELL" statement as another > command like this: > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > > /path/to/archive/file" > > You cannot traverse the filesystem to another directory. It seems that any > effect had by "pushd" or "cd" is undone as soon as the current "SHELL" > statement is finished and your current filesystem location returns to the > GAMBAS execution directory. I must say that this is most frustrating when > combined with the other problems outlined above. > > > > Does anyone have any ideas about how to get around any of these issues? > > Oh and by the way "EXEC" does not seem to return ANY command output > at all to the "FOR READ" argument, regardless of which command is executed > on the console. > > > Any help or work suggestions at all would be greatly appreciated! > > Ben Phillips > audiossis at ...867... > Hi. it seems that mkdir doensn't print messages on standard output try SHELL "mkdir -v /new/directory >&1" WAIT FOR READ and see if it works. Stefano > > ------------------------------------------------------- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Thu Jul 5 16:27:22 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 5 Jul 2007 16:27:22 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707052158.48665.audiossis@...867...> References: <200707052158.48665.audiossis@...867...> Message-ID: <200707051627.22868.rospolosco@...152...> Alle 13:58, gioved? 5 luglio 2007, audiossis ha scritto: > Hello, > > I have noticed a problem with using the "SHELL" command to execute console > functions and then return the output of those functions to a "Process_read" > sub. > For the most part this seems to work quite well. When "rm" to remove files > or when using "cp" to copy files using the code: > > PUBLIC SUB something() > > SHELL "cp -var /some/directory/some/file /another/directory/another/place" > WAIT FOR READ > > END > > PUBLIC SUB Process_read() > > DIM sOut AS String > hStream = OPEN "/path/to/log/file" FOR APPEND > > READ #LAST, sOUT, -256 > PRINT #hStream, sOUT > > END > > > The output of "cp" is returned and printed to the log file. However this is > not the case when using "mkdir" with the following code: > > > PUBLIC SUB something() > > SHELL "mkdir -v /new/directory" WAIT FOR READ > > END > > PUBLIC SUB Process_read() > > DIM sOut AS String > hStream = OPEN "/path/to/log/file" FOR APPEND > > READ #LAST, sOUT, -256 > PRINT #hStream, sOUT > > END > > > This produces absolutely no output to the log file whatsoever. but if I > remove the "FOR READ" argument I can clearly see the output of the "mkdir" > in the GAMBAS console. The same can be said for using the "cpio" command to > create backup archives in the same manner. The command executes but "READ" > does not receive the output from the command therefore no output is made to > the log file. > > I have also noticed that using "cd" or "pushd" to traverse filesystems is > difficult at best from within GAMBAS. For example, if I use this code: > > SHELL "pushd /directory" > SHELL "find ./ | cpio -vco | gzip > /path/to/archive/file" you have to do: SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file " From steven at ...1652... Thu Jul 5 17:37:25 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Thu, 5 Jul 2007 17:37:25 +0200 Subject: [Gambas-user] cannot install gambas on opensuse 10.2 In-Reply-To: <200707020956.33258.gambas@...1...> References: <200706281600.51493.steven@...1652...> <200707020949.04362.steven@...1652...> <200707020956.33258.gambas@...1...> Message-ID: <200707051737.25544.steven@...1652...> Worked perfect. Thanks Benoit, Steven Le lundi 2 juillet 2007 09:56, Benoit Minisini a ?crit?: > On lundi 02 juillet 2007, Steven Lobbezoo wrote: > > Hi, > > > > I still have these problems, > > I completely re-installed qt3 (not 4 !) > > I checked that all libs are vavailable, > > make etc. In short all is there. > > Still cannot compile. > > > > So I looked a bit in moc_main.cpp in gb.qt/src > > The comment in it say's that it's for Qt 4.2.1 ! > > Are you sure i need to install all with Qt3 ? > > > > Steven > > The moc_* files are generated, so you must remove them before recompiling, > by doing a 'make clean' in the gb.qt/src directory and in other qt related > components directories. > > The simplest for you is to do 'make clean' in the root directory of the > package, and to recompile everything. > > Regards, From david_villalobos_c at ...43... Thu Jul 5 23:08:29 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 5 Jul 2007 14:08:29 -0700 (PDT) Subject: [Gambas-user] Non terminated string in for definition Message-ID: <551949.69721.qm@...1671...> I tried, but it didn?t work, but I think I found a clue, I have the problem when I use TextArea, and put tab carcaters into it. For example: David Villalobos C david_villalobos_c at ...43... The TextArea handles new line caracter (intro) but don't support tab caracters. ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Tuesday, July 3, 2007 12:33:04 PM Subject: Re: [Gambas-user] Non terminated string in for definition On mardi 03 juillet 2007, David Villalobos Cambronero wrote: > Hi all, > > I have a project in gambas 1.9.25 and when I open it in gambas 1.9.49, > at compilation time it says: > > Non terminated string in form definition, how can I solve it, I don't > want to re-write my program > > Best regards... > > David > Try that: * Note the name of the form that raises the compilation error. * Open the form in the editor. * Modify something in the form not important, for example move a control, and move it back, so that the form is modified for the editor. * Save the form. Normally, the form will be automatically fixed. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ From joe1962 at ...626... Fri Jul 6 03:19:38 2007 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 5 Jul 2007 22:19:38 -0300 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <551949.69721.qm@...1671...> References: <551949.69721.qm@...1671...> Message-ID: <6c208f950707051819w742850e4obd763d020a304d8@...627...> This sounds similar to the problem from my recent "Non terminated string in form definition error in 1.9.49 opening a 1.9.47 project" thread. I never got an answer to my last post there, so I will assume it got lost and paste it again here: Finally figured out that the problem lies in the html text string in the TextLabel components. It was working ok in 1.9.47. Here's an example, hoping for some feedback as to what changed: Text = ("

You have 3 choices:

\n\n
    \n
  • Full-automatic install: Our easiest install yet; choose this option if you want to use your entire hard disk for VL. Your system will be automatically set up, partitions and all. WARNING: this option will DELETE everything on your hard disk, or offer a choice if there are multiple disks. There will of course be a confirmation dialog in case you selected this option by mistake.
  • \n
  • Semi-automatic install: With this option, you manually partition your drives with gparted, but the rest of the setup will be pretty automatic.
  • \n
  • Advanced install: For the technically savvy user that must do everything by hand. You can control most aspects of the install. However, there will be assisted options available all the way through, so this is a very flexible install.
  • \n
\n")
See anything in that html that is now unsupported? Regards, Joe1962 On 7/5/07, David Villalobos Cambronero wrote: > I tried, but it didn?t work, but I think I found a clue, I have the problem when I use TextArea, and put tab carcaters into it. For example: > > David Villalobos C > david_villalobos_c at ...43... > > The TextArea handles new line caracter (intro) but don't support tab caracters. > > ----- Original Message ---- > From: Benoit Minisini > To: mailing list for gambas users > Sent: Tuesday, July 3, 2007 12:33:04 PM > Subject: Re: [Gambas-user] Non terminated string in for definition > > On mardi 03 juillet 2007, David Villalobos Cambronero wrote: > > Hi all, > > > > I have a project in gambas 1.9.25 and when I open it in gambas 1.9.49, > > at compilation time it says: > > > > Non terminated string in form definition, how can I solve it, I don't > > want to re-write my program > > > > Best regards... > > > > David > > > > Try that: > * Note the name of the form that raises the compilation error. > * Open the form in the editor. > * Modify something in the form not important, for example move a control, and > move it back, so that the form is modified for the editor. > * Save the form. > > Normally, the form will be automatically fixed. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ____________________________________________________________________________________ > It's here! Your new message! > Get new email alerts with the free Yahoo! Toolbar. > http://tools.search.yahoo.com/toolbar/features/mail/ > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ronstk at ...239... Fri Jul 6 03:38:02 2007 From: ronstk at ...239... (ron) Date: Fri, 6 Jul 2007 03:38:02 +0200 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <6c208f950707051819w742850e4obd763d020a304d8@...627...> References: <551949.69721.qm@...1671...> <6c208f950707051819w742850e4obd763d020a304d8@...627...> Message-ID: <200707060338.02721.ronstk@...239...> On Friday 06 July 2007 03:19, Jose J. Rodriguez wrote: > color=\"#FF0000\">WARNING: this option will DELETE everything on your > Looks good to me however I would try: color='#FF0000'>WARNING: this option will DELETE everything on your And technically savvy user that must do everything by hand. You can to technically savy ??? -- Ron From joe1962 at ...626... Fri Jul 6 05:54:07 2007 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Fri, 6 Jul 2007 00:54:07 -0300 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <200707060338.02721.ronstk@...239...> References: <551949.69721.qm@...1671...> <6c208f950707051819w742850e4obd763d020a304d8@...627...> <200707060338.02721.ronstk@...239...> Message-ID: <6c208f950707052054q4ba63fe7ubef3cc02d8aec3c6@...627...> On 7/5/07, ron wrote: > On Friday 06 July 2007 03:19, Jose J. Rodriguez wrote: > > color=\"#FF0000\">WARNING: this option will DELETE everything on your > > > > Looks good to me however I would try: > color='#FF0000'>WARNING: this option will DELETE everything on your > I'll try that. The html messages were all done in bluefish, IIRC. > And > technically savvy user that must do everything by hand. You can > to > technically savy ??? > No: http://wordnet.princeton.edu/perl/webwn?s=savvy Regards, Joe1962 From juergen at ...1725... Fri Jul 6 08:10:51 2007 From: juergen at ...1725... (=?utf-8?q?J=C3=BCrgen_Zdero?=) Date: Fri, 6 Jul 2007 08:10:51 +0200 Subject: [Gambas-user] open project form gambas2 Message-ID: <200707060810.52019.juergen@...1725...> I have a problem with Open-project-form with gambas2 1.9.49 but not with gambas 1! On start i choose "open project" and get a form with a treeview in the right. But its impossible to resize the window vertically and it is too large that i may reach the "OK" or "CANCEL" button in the lower, not visible, area of the . I use a 2 Monitor Desktop with 2048 x 768 on opensuse 10.2 How can i start gambas2 with smaller windows, alternate resolution or make the open-project-Window vertically resizeable ? cheers Juergen From audiossis at ...867... Fri Jul 6 09:18:08 2007 From: audiossis at ...867... (audiossis) Date: Fri, 6 Jul 2007 17:18:08 +1000 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: References: Message-ID: <200707061718.08188.audiossis@...867...> On Friday 06 July 2007 00:27:21 gambas-user-request at lists.sourceforge.net wrote: > Message: 8 > Date: Thu, 5 Jul 2007 14:22:23 +0200 > From: Stefano Palmeri > Subject: Re: [Gambas-user] More Problems with SHELL (possible BUG). > To: mailing list for gambas users > Message-ID: <200707051422.23963.rospolosco at ...152...> > Content-Type: text/plain; ?charset="iso-8859-1" > > Alle 13:58, gioved? 5 luglio 2007, audiossis ha scritto: > > Hello, > > > > I have noticed a problem with using the "SHELL" command to execute console > > functions and then return the output of those functions to a "Process_read" > > sub. > > For the most part this seems to work quite well. When "rm" to remove files > > or when using "cp" to copy files using the code: > > > > PUBLIC SUB something() > > > > SHELL "cp -var /some/directory/some/file /another/directory/another/place" > > WAIT FOR READ > > > > END > > > > PUBLIC SUB Process_read() > > > > DIM sOut AS String > > hStream = OPEN "/path/to/log/file" FOR APPEND > > > > READ #LAST, sOUT, -256 > > PRINT #hStream, sOUT > > > > END > > > > > > The output of "cp" is returned and printed to the log file. However this is > > not the case when using "mkdir" with the following code: > > > > > > PUBLIC SUB something() > > > > SHELL "mkdir -v /new/directory" WAIT FOR READ > > > > END > > > > PUBLIC SUB Process_read() > > > > DIM sOut AS String > > hStream = OPEN "/path/to/log/file" FOR APPEND > > > > READ #LAST, sOUT, -256 > > PRINT #hStream, sOUT > > > > END > > > > > > This produces absolutely no output to the log file whatsoever. but if I > > remove the "FOR READ" argument I can clearly see the output of the "mkdir" > > in the GAMBAS console. The same can be said for using the "cpio" command to > > create backup archives in the same manner. The command executes but "READ" > > does not receive the output from the command therefore no output is made to > > the log file. > > > > I have also noticed that using "cd" or "pushd" to traverse filesystems is > > difficult at best from within GAMBAS. For example, if I use this code: > > > > SHELL "pushd /directory" > > SHELL "find ./ | cpio -vco | gzip > /path/to/archive/file" > > > > Then the only files I get into my archive, are the GAMBAS files from the > > directory where GAMBAS itself was executed. > > > > Unless you use these commands within the same "SHELL" statement as another > > command like this: > > > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > > > /path/to/archive/file" > > > > You cannot traverse the filesystem to another directory. It seems that any > > effect had by "pushd" or "cd" is undone as soon as the current "SHELL" > > statement is finished and your current filesystem location returns to the > > GAMBAS execution directory. I must say that this is most frustrating when > > combined with the other problems outlined above. > > > > > > > > Does anyone have any ideas about how to get around any of these issues? > > > > Oh and by the way "EXEC" does not seem to return ANY command output > > at all to the "FOR READ" argument, regardless of which command is executed > > on the console. > > > > > > Any help or work suggestions at all would be greatly appreciated! > > > > Ben Phillips > > audiossis at ...867... > > > > Hi. > > it seems that mkdir doensn't print messages on standard output > > try SHELL "mkdir -v /new/directory >&1" WAIT FOR READ > > and see if it works. > > Stefano Thanks Stefano for your suggestion but unfortunately I have to report that it made no difference. I should at this point mention that I have tried re-directing the output of both "mkdir" and "cpio" by using code like: SHELL "mkdir -v /new/directory >/dev/stdout" WAIT FOR READ and SHELL "mkdir -v /new/directory >/dev/console" WAIT FOR READ Your suggestion made sense but I don't think that the problem lies with the direction (or lack thereof) of output from the shell programs but rather the content of their returns. I wonder if the output of these programs begins with a null character (or other non-printable character) that is confusing the "READ" argument? or if there is a timing problem that prevents "READ" from acquiring the first byte of returned data? Incidentally, > you have to do: > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file " Acheives nothing. Leaving a space at the end of the string appears to have no effect whatsoever. The command works wether the white space is there or not, but doing: SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file " WAIT FOR READ only returns the output from "pushd" and not "cpio". Mind you I can't get the output from "cpio" at any time wether it is preceded with the "pushd" command or not. :-) Ben From rospolosco at ...152... Fri Jul 6 09:56:23 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 6 Jul 2007 09:56:23 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707061718.08188.audiossis@...867...> References: <200707061718.08188.audiossis@...867...> Message-ID: <200707060956.23576.rospolosco@...152...> Alle 09:18, venerd? 6 luglio 2007, audiossis ha scritto: > Thanks Stefano for your suggestion but unfortunately I have to report that > it made no difference. I should at this point mention that I have tried > re-directing the output of both "mkdir" and "cpio" by using code like: > > SHELL "mkdir -v /new/directory >/dev/stdout" WAIT FOR READ > > and > > SHELL "mkdir -v /new/directory >/dev/console" WAIT FOR READ > > > Your suggestion made sense but I don't think that the problem lies with the > direction (or lack thereof) of output from the shell programs but rather > the content of their returns. I wonder if the output of these programs > begins with a null character (or other non-printable character) that is > confusing the "READ" argument? or if there is a timing problem that > prevents "READ" from acquiring the first byte of returned data? > > Ben You're right. I don't know. I tried with gambas 1.9.49: PUBLIC SUB _new() SHELL "mkdir -v hello >&1 | head -c5" END 'head' doesn't work. Also PUBLIC SUB _new() DIM sOutput AS String SHELL "mkdir -v hello >&1" TO sOutput PRINT sOutput END sOutput is blank. Very strange. Probably a bug(?). Stefano From gambas at ...1... Fri Jul 6 10:02:29 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jul 2007 10:02:29 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707061718.08188.audiossis@...867...> References: <200707061718.08188.audiossis@...867...> Message-ID: <200707061002.29711.gambas@...1...> On vendredi 06 juillet 2007, audiossis wrote: > Incidentally, > > > you have to do: > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > > > /path/to/archive/file " > > Acheives nothing. Leaving a space at the end of the string appears to have > no effect whatsoever. The command works wether the white space is there or > not, but doing: > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file > " WAIT FOR READ > > only returns the output from "pushd" and not "cpio". Mind you I can't get > the output from "cpio" at any time wether it is preceded with the "pushd" > command or not. :-) > > > Ben > You must do: SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file 2>&1" WAIT FOR READ If you don't add "2>&1" to each shell command, so that the standard error output is redirected to the standard output, then you won't get the standard error output data in the 'Read' event handler. Or you can use the 'Error' event to catch the standard error output directly. Regards, -- Benoit Minisini From gambas at ...1... Fri Jul 6 10:10:18 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jul 2007 10:10:18 +0200 Subject: [Gambas-user] open project form gambas2 In-Reply-To: <200707060810.52019.juergen@...1725...> References: <200707060810.52019.juergen@...1725...> Message-ID: <200707061010.18732.gambas@...1...> On vendredi 06 juillet 2007, J?rgen Zdero wrote: > I have a problem with Open-project-form with gambas2 1.9.49 > but not with gambas 1! > > On start i choose "open project" and get a form with a treeview in the > right. But its impossible to resize the window vertically and it is too > large that i may reach the "OK" or "CANCEL" button in the lower, not > visible, area of the . > > I use a 2 Monitor Desktop with 2048 x 768 on opensuse 10.2 > > How can i start gambas2 with smaller windows, alternate resolution or > make the open-project-Window vertically resizeable ? > > cheers Juergen > The open project window is 632 pixels high with a 10 point default font. So if you don't see it with a 2048 x 768 resolution, I think you use a bigger default font on you desktop. Do you? I will make a bit smaller anyway by default. Regards, -- Benoit Minisini From juergen at ...1725... Fri Jul 6 10:24:53 2007 From: juergen at ...1725... (=?iso-8859-1?q?J=FCrgen_Zdero?=) Date: Fri, 6 Jul 2007 10:24:53 +0200 Subject: [Gambas-user] open project form gambas2 In-Reply-To: <200707061010.18732.gambas@...1...> References: <200707060810.52019.juergen@...1725...> <200707061010.18732.gambas@...1...> Message-ID: <200707061024.54143.juergen@...1725...> Hi Benoit, Yes, sorry, i forgot to mention that i have to use a very big default font size cheers Juergen On Friday 06 July 2007 10:10 Benoit Minisini wrote: > On vendredi 06 juillet 2007, J?rgen Zdero wrote: > > I have a problem with Open-project-form with gambas2 1.9.49 > > but not with gambas 1! > > > > On start i choose "open project" and get a form with a treeview in the > > right. But its impossible to resize the window vertically and it is too > > large that i may reach the "OK" or "CANCEL" button in the lower, not > > visible, area of the . > > > > I use a 2 Monitor Desktop with 2048 x 768 on opensuse 10.2 > > > > How can i start gambas2 with smaller windows, alternate resolution or > > make the open-project-Window vertically resizeable ? > > > > cheers Juergen > > The open project window is 632 pixels high with a 10 point default font. So > if you don't see it with a 2048 x 768 resolution, I think you use a bigger > default font on you desktop. Do you? > > I will make a bit smaller anyway by default. > > Regards, From audiossis at ...867... Fri Jul 6 11:05:47 2007 From: audiossis at ...867... (audiossis) Date: Fri, 6 Jul 2007 19:05:47 +1000 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: References: Message-ID: <200707061905.47245.audiossis@...867...> On Friday 06 July 2007 17:56:13 gambas-user-request at lists.sourceforge.net wrote: > Message: 8 > Date: Fri, 6 Jul 2007 09:56:23 +0200 > From: Stefano Palmeri > Subject: Re: [Gambas-user] More Problems with SHELL (possible BUG). > To: mailing list for gambas users > Message-ID: <200707060956.23576.rospolosco at ...152...> > Content-Type: text/plain; ?charset="iso-8859-1" > > Alle 09:18, venerd? 6 luglio 2007, audiossis ha scritto: > > Thanks Stefano for your suggestion but unfortunately I have to report that > > it made no difference. I should at this point mention that I have tried > > re-directing the output ?of both "mkdir" and "cpio" by using code like: > > > > SHELL "mkdir -v /new/directory >/dev/stdout" WAIT FOR READ > > > > and > > > > SHELL "mkdir -v /new/directory >/dev/console" WAIT FOR READ > > > > > > Your suggestion made sense but I don't think that the problem lies with the > > direction (or lack thereof) of output from the shell programs but rather > > the content of their returns. I wonder if the output of these programs > > begins with a null character (or other non-printable character) that is > > confusing the "READ" argument? or if there is a timing problem that > > prevents "READ" from acquiring the first byte of returned data? > > > > Ben > > You're right. I don't know. I tried with gambas 1.9.49: > > PUBLIC SUB _new() > ? > ? SHELL "mkdir -v hello >&1 | head -c5" > ? ? ? > END > > 'head' doesn't work. Also > > PUBLIC SUB _new() > ? > ? DIM sOutput AS String > ? > ? SHELL "mkdir -v hello >&1" TO sOutput > ? PRINT sOutput > ? ? ? > END > ? > sOutput is blank. > > Very strange. Probably a bug(?). > > Stefano I too am using 1.9.49 and have it installed on a dual head Fedora Core 6 setup (I don't know that that makes any difference). Unfortunately I don't know how to program in C, otherwise I'd have a go at fixing it myself... I guess I just wait to see if it is fixed next version......? :-| Thanks for your time Stefano :-) BTW... I'm still open to suggestions! Ben From rospolosco at ...152... Fri Jul 6 12:16:33 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 6 Jul 2007 12:16:33 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707061905.47245.audiossis@...867...> References: <200707061905.47245.audiossis@...867...> Message-ID: <200707061216.33572.rospolosco@...152...> Alle 11:05, venerd? 6 luglio 2007, audiossis ha scritto: > On Friday 06 July 2007 17:56:13 gambas-user-request at lists.sourceforge.net wrote: > > Message: 8 > > Date: Fri, 6 Jul 2007 09:56:23 +0200 > > From: Stefano Palmeri > > Subject: Re: [Gambas-user] More Problems with SHELL (possible BUG). > > To: mailing list for gambas users > > Message-ID: <200707060956.23576.rospolosco at ...152...> > > Content-Type: text/plain; ?charset="iso-8859-1" > > > > Alle 09:18, venerd? 6 luglio 2007, audiossis ha scritto: > > > Thanks Stefano for your suggestion but unfortunately I have to report > > > that it made no difference. I should at this point mention that I have > > > tried re-directing the output ?of both "mkdir" and "cpio" by using code > > > like: > > > > > > SHELL "mkdir -v /new/directory >/dev/stdout" WAIT FOR READ > > > > > > and > > > > > > SHELL "mkdir -v /new/directory >/dev/console" WAIT FOR READ > > > > > > > > > Your suggestion made sense but I don't think that the problem lies with > > > the direction (or lack thereof) of output from the shell programs but > > > rather the content of their returns. I wonder if the output of these > > > programs begins with a null character (or other non-printable > > > character) that is confusing the "READ" argument? or if there is a > > > timing problem that prevents "READ" from acquiring the first byte of > > > returned data? > > > > > > Ben > > > > You're right. I don't know. I tried with gambas 1.9.49: > > > > PUBLIC SUB _new() > > ? > > ? SHELL "mkdir -v hello >&1 | head -c5" > > ? ? ? > > END > > > > 'head' doesn't work. Also > > > > PUBLIC SUB _new() > > ? > > ? DIM sOutput AS String > > ? > > ? SHELL "mkdir -v hello >&1" TO sOutput > > ? PRINT sOutput > > ? ? ? > > END > > ? > > sOutput is blank. > > > > Very strange. Probably a bug(?). > > > > Stefano > > I too am using 1.9.49 and have it installed on a dual head Fedora Core 6 > setup (I don't know that that makes any difference). Unfortunately I don't > know how to program in C, otherwise I'd have a go at fixing it myself... I > guess I just wait to see if it is fixed next version......? :-| > > Thanks for your time Stefano :-) > > BTW... I'm still open to suggestions! > > Ben > Benoit solved the question (look at his previous mail). Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Fri Jul 6 12:53:28 2007 From: ronstk at ...239... (ron) Date: Fri, 6 Jul 2007 12:53:28 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707061718.08188.audiossis@...867...> References: <200707061718.08188.audiossis@...867...> Message-ID: <200707061253.29037.ronstk@...239...> On Friday 06 July 2007 09:18, audiossis wrote: > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file " WAIT FOR READ > > only returns the output from "pushd" and not "cpio". Mind you I can't get the output from "cpio" at any time wether it is > preceded with the "pushd" command or not. :-) > One more suggestion: > SHELL "(pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file )" WAIT FOR READ The () mean to handle the inside content as one process by group the commands together. -- Ron From audiossis at ...867... Fri Jul 6 13:30:27 2007 From: audiossis at ...867... (audiossis) Date: Fri, 6 Jul 2007 21:30:27 +1000 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707061905.47245.audiossis@...867...> References: <200707061905.47245.audiossis@...867...> Message-ID: <200707062130.27795.audiossis@...867...> On Friday 06 July 2007 19:05:47 audiossis wrote: > On Friday 06 July 2007 17:56:13 gambas-user-request at lists.sourceforge.net wrote: > > Message: 8 > > Date: Fri, 6 Jul 2007 09:56:23 +0200 > > From: Stefano Palmeri > > Subject: Re: [Gambas-user] More Problems with SHELL (possible BUG). > > To: mailing list for gambas users > > Message-ID: <200707060956.23576.rospolosco at ...152...> > > Content-Type: text/plain; ?charset="iso-8859-1" > > > > Alle 09:18, venerd? 6 luglio 2007, audiossis ha scritto: > > > Thanks Stefano for your suggestion but unfortunately I have to report that > > > it made no difference. I should at this point mention that I have tried > > > re-directing the output ?of both "mkdir" and "cpio" by using code like: > > > > > > SHELL "mkdir -v /new/directory >/dev/stdout" WAIT FOR READ > > > > > > and > > > > > > SHELL "mkdir -v /new/directory >/dev/console" WAIT FOR READ > > > > > > > > > Your suggestion made sense but I don't think that the problem lies with the > > > direction (or lack thereof) of output from the shell programs but rather > > > the content of their returns. I wonder if the output of these programs > > > begins with a null character (or other non-printable character) that is > > > confusing the "READ" argument? or if there is a timing problem that > > > prevents "READ" from acquiring the first byte of returned data? > > > > > > Ben > > > > You're right. I don't know. I tried with gambas 1.9.49: > > > > PUBLIC SUB _new() > > ? > > ? SHELL "mkdir -v hello >&1 | head -c5" > > ? ? ? > > END > > > > 'head' doesn't work. Also > > > > PUBLIC SUB _new() > > ? > > ? DIM sOutput AS String > > ? > > ? SHELL "mkdir -v hello >&1" TO sOutput > > ? PRINT sOutput > > ? ? ? > > END > > ? > > sOutput is blank. > > > > Very strange. Probably a bug(?). > > > > Stefano > > > I too am using 1.9.49 and have it installed on a dual head Fedora Core 6 setup (I don't know that that makes any difference). > Unfortunately I don't know how to program in C, otherwise I'd have a go at fixing it myself... > I guess I just wait to see if it is fixed next version......? :-| > > Thanks for your time Stefano :-) > > BTW... I'm still open to suggestions! > > Ben > HA! I've figured out at least part of the problem!! It's not a bug with GAMBAS, rather you were right Stefano! "mkdir" is NOT returning it's output to stdout. I've found that doing this works: PUBLIC SUB something() SHELL "mkdir -v /new/directory 2> /dev/stdout" WAIT FOR READ END PUBLIC SUB Process_read() DIM sOut AS String hStream = OPEN "/path/to/log/file" FOR APPEND READ #LAST, sOUT, -256 PRINT #hStream, sOUT END Unfortunately though this doesn't work for "cpio" but it's a good start!! Thanks for the nudge in the right direction! ;-) Now to figure out what's going on with "cpio"................. From audiossis at ...867... Fri Jul 6 14:03:24 2007 From: audiossis at ...867... (audiossis) Date: Fri, 6 Jul 2007 22:03:24 +1000 Subject: [Gambas-user] More Problems with SHELL (possible BUG). Message-ID: <200707062203.24968.audiossis@...867...> On Friday 06 July 2007 09:18, audiossis wrote: >> SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file " WAIT FOR READ >> >> only returns the output from "pushd" and not "cpio". Mind you I can't get the output from "cpio" at any time wether it is >> preceded with the "pushd" command or not. :-) >> > >One more suggestion: >> SHELL "(pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file )" WAIT FOR READ > >The () mean to handle the inside content as one process by group the commands together. > >-- >Ron Thanks Ron, it appears that you were half right!! The other half was filled in by Stefano. I found that doing this works: PUBLIC SUB something() SHELL "(pushd /directory; find ./ | cpio -vco | gzip -v > /path/to/archive/file) 2> /dev/stdout" WAIT FOR READ END PUBLIC SUB Process_read() DIM sOut AS String hStream = OPEN "/path/to/log/file" FOR APPEND READ #LAST, sOUT, -256 PRINT #hStream, sOUT END I must say it's such a please to find pleasant and intelligent people who are will to share their knowledge! Keep it up guys!! We're two for two now! Thanks again! Ben :-) From audiossis at ...867... Fri Jul 6 14:15:41 2007 From: audiossis at ...867... (audiossis) Date: Fri, 6 Jul 2007 22:15:41 +1000 Subject: [Gambas-user] Gambas-user Digest, Vol 14, Issue 7 In-Reply-To: References: Message-ID: <200707062215.41557.audiossis@...867...> On Friday 06 July 2007 22:02:31 gambas-user-request at lists.sourceforge.net wrote: > Message: 1 > Date: Fri, 6 Jul 2007 10:02:29 +0200 > From: Benoit Minisini > Subject: Re: [Gambas-user] More Problems with SHELL (possible BUG). > To: mailing list for gambas users > Message-ID: <200707061002.29711.gambas at ...1...> > Content-Type: text/plain; ?charset="iso-8859-1" > > On vendredi 06 juillet 2007, audiossis wrote: > > Incidentally, > > > > > you have to do: > > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > > > > /path/to/archive/file " > > > > Acheives nothing. Leaving a space at the end of the string appears to have > > no effect whatsoever. The command works wether the white space is there or > > not, but doing: > > > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file > > " WAIT FOR READ > > > > only returns the output from "pushd" and not "cpio". Mind you I can't get > > the output from "cpio" at any time wether it is preceded with the "pushd" > > command or not. :-) > > > > > > Ben > > > > You must do: > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file > 2>&1" WAIT FOR READ > > If you don't add "2>&1" to each shell command, so that the standard error > output is redirected to the standard output, then you won't get the standard > error output data in the 'Read' event handler. > > Or you can use the 'Error' event to catch the standard error output directly. > > Regards, > > -- > Benoit Minisini That's very interesting. It seems that there is definitely more than one way to skin this cat! Ron just showed me different method which also works. I won't post it here as I've already replied to his message, but thankyou all the same. I'll try what you have suggested to see which way appears to work the best and I'll keep you posted!! Thanks again! Ben From ronstk at ...239... Fri Jul 6 14:55:33 2007 From: ronstk at ...239... (ron) Date: Fri, 6 Jul 2007 14:55:33 +0200 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707062203.24968.audiossis@...867...> References: <200707062203.24968.audiossis@...867...> Message-ID: <200707061455.33967.ronstk@...239...> On Friday 06 July 2007 14:03, audiossis wrote: > Thanks Ron, it appears that you were half right!! The other half was filled in by Stefano. > It was a supprise for me mkdir send output to error channel too. Example from Benoit: SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file 2>&1" WAIT FOR READ When i'm correct it does the 2>&1 here only for gzip. BTW The trick with () comes from my usage in the past of 4DOS as command.com replacement for ms-DOS :) It has many similarities to bash. Original from http://www.jpsoft.com and now free available via http://www.4dos.hit.bg Glad I could help a bit. :) -- Ron From audiossis at ...867... Fri Jul 6 16:12:20 2007 From: audiossis at ...867... (audiossis) Date: Sat, 7 Jul 2007 00:12:20 +1000 Subject: [Gambas-user] More Problems with SHELL (possible BUG). In-Reply-To: <200707062215.41557.audiossis@...867...> References: <200707062215.41557.audiossis@...867...> Message-ID: <200707070012.20958.audiossis@...867...> On Friday 06 July 2007 22:15:41 you wrote: > On Friday 06 July 2007 22:02:31 gambas-user-request at lists.sourceforge.net wrote: > > Message: 1 > > Date: Fri, 6 Jul 2007 10:02:29 +0200 > > From: Benoit Minisini > > Subject: Re: [Gambas-user] More Problems with SHELL (possible BUG). > > To: mailing list for gambas users > > Message-ID: <200707061002.29711.gambas at ...1...> > > Content-Type: text/plain; ?charset="iso-8859-1" > > > > On vendredi 06 juillet 2007, audiossis wrote: > > > Incidentally, > > > > > > > you have to do: > > > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > > > > > /path/to/archive/file " > > > > > > Acheives nothing. Leaving a space at the end of the string appears to have > > > no effect whatsoever. The command works wether the white space is there or > > > not, but doing: > > > > > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file > > > " WAIT FOR READ > > > > > > only returns the output from "pushd" and not "cpio". Mind you I can't get > > > the output from "cpio" at any time wether it is preceded with the "pushd" > > > command or not. :-) > > > > > > > > > Ben > > > > > > > You must do: > > > > SHELL "pushd /directory; find ./ | cpio -vco | gzip > /path/to/archive/file > > 2>&1" WAIT FOR READ > > > > If you don't add "2>&1" to each shell command, so that the standard error > > output is redirected to the standard output, then you won't get the standard > > error output data in the 'Read' event handler. > > > > Or you can use the 'Error' event to catch the standard error output directly. > > > > Regards, > > > > -- > > Benoit Minisini > > That's very interesting. It seems that there is definitely more than one way to skin this cat! > > Ron just showed me different method which also works. I won't post it here as I've already replied to his message, but thankyou all the same. > I'll try what you have suggested to see which way appears to work the best and I'll keep you posted!! > > Thanks again! > > Ben OK, so in the end point this is definitely NOT a bug. Taking something from each suggestion that was made, I think I have come up with the most efficient solution to my problem. The code below is an abridged version (heavily abridged) of what I am actually using but it clearly demonstrates the principals we've discussed and it works. 'Declare global variables however you choose to do so PUBLIC hStream AS Stream PUBLIC sOut AS String PUBLIC SUB Button1_Click() SHELL "mkdir -v /working/directory 2>&1" WAIT FOR READ SHELL "cp -var /some/file1 /working/directory" WAIT FOR READ SHELL "cp -var /some/file2 /working/directory" WAIT FOR READ SHELL "(pushd /working/directory; find ./ | cpio -vco | gzip -v > /path/to/archive/file) 2>&1" WAIT FOR READ SHELL "rm -vr /working/directory" WAIT FOR READ CLOSE #hStream END PUBLIC SUB Process_Read() IF EXIST "/path/to/log/file" THEN hStream = OPEN "/path/to/log/file" FOR APPEND ELSE hStream = OPEN "/path/to/log/file" FOR CREATE ENDIF READ #LAST, sOut, 1 IF sOUT = "\n" then PRINT #hStream, "\n" & Now & " "; ELSE PRINT #hStream, sOUT; ENDIF END In addition to performing the shell functions it produces a log file of it's activities that looks something like this: 07/06/2007 22:48:58.07 mkdir: created directory `/working/directory' 07/06/2007 22:48:58.112 `/some/file1' -> `/working/directory/file1' 07/06/2007 22:48:58.233 `/some/file2' -> `/working/directory/file2' 07/06/2007 22:48:58.235 /current/directory /working/directory 07/06/2007 22:48:58.237 ./ 07/06/2007 22:48:58.238 ./file1 07/06/2007 22:48:58.239 ./file2 07/06/2007 22:48:58.241 20 blocks 07/06/2007 22:48:58.242 62.5% 07/06/2007 22:48:58.245 removed directory: `/working/directory' 07/06/2007 22:48:58.247 Notes: I chose to grab only 1 byte from the "#LAST" stream at a time because the returning data varied in length and this was the simplest way I could find of preventing text corruption in the log file, while maintaining the date/time stamp at the beginning of each new line. It probably sacrifices efficiency but at least the log file is readable. Many thanks to Stefano, Ron and Benoit for their invaluable advice and guidance. Keep up the good work! Talk to you soon....... :) Ben From steven at ...1652... Sat Jul 7 12:16:22 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 7 Jul 2007 12:16:22 +0200 Subject: [Gambas-user] Compiling problems ? Message-ID: <200707071216.22452.steven@...1652...> Hi, After the advice of Benoit, gambas compiled well on the use 10.2 box. However, I can still not use it. If I start it comes back with : ---------------------------- brigitte:/home/brigitte/request # ./request.gambas /usr/bin/iceauth: ?creating new authority file /root/.ICEauthority kbuildsycoca running... FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be preloaded: ignore ? ? ? ? ? ? ? d. ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be preloaded: igno ? ? ? ? ? ? ? red. ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be preloaded: ignore ? ? ? ? ? ? ? d. ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be preloaded: ignored ? ? ? ? ? ? ? . ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be preloaded: ignored. KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? akode: Guessed format: xiph KNotify::playTimeout KNotify::playTimeout brigitte:/home/brigitte/request # arguments to dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file dbus-m essage.c line 1074. This is normally a bug in some application using the D-Bus library. ICE default IO error handler doing an exit(), pid = 5609, errno = 0 brigitte:/home/brigitte/request # ------------------------------------------------------ Anybody had the same problem ? I donnot have any ideas about what's going on here. Thanks in advance, Steven From rospolosco at ...152... Sat Jul 7 12:21:12 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 7 Jul 2007 12:21:12 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071216.22452.steven@...1652...> References: <200707071216.22452.steven@...1652...> Message-ID: <200707071221.13064.rospolosco@...152...> Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > Hi, > > After the advice of Benoit, gambas compiled well on the use 10.2 box. > However, I can still not use it. If I start it comes back with : > ---------------------------- > brigitte:/home/brigitte/request # ./request.gambas > /usr/bin/iceauth: ?creating new authority file /root/.ICEauthority > kbuildsycoca running... > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > preloaded: ignore ? ? ? ? ? ? ? d. > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be > preloaded: igno ? ? ? ? ? ? ? red. > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > preloaded: ignore ? ? ? ? ? ? ? d. > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be preloaded: > ignored ? ? ? ? ? ? ? . > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be preloaded: > ignored. > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > akode: Guessed format: xiph > KNotify::playTimeout > KNotify::playTimeout > brigitte:/home/brigitte/request # arguments to > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, assertion > "_dbus_check_is_valid_path (path)" failed in file dbus-m > essage.c line 1074. > This is normally a bug in some application using the D-Bus library. > ICE default IO error handler doing an exit(), pid = 5609, errno = 0 > brigitte:/home/brigitte/request # > > ------------------------------------------------------ > Anybody had the same problem ? > I donnot have any ideas about what's going on here. > > Thanks in advance, > Steven > Which version of gambas? Which command do you use to run gambas? What is "./request.gambas"? Stefano > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Sat Jul 7 12:28:56 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 7 Jul 2007 12:28:56 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071221.13064.rospolosco@...152...> References: <200707071216.22452.steven@...1652...> <200707071221.13064.rospolosco@...152...> Message-ID: <200707071228.56613.steven@...1652...> Stefano, The answehrs are in the text below. Steven Le samedi 7 juillet 2007 12:21, Stefano Palmeri a ?crit?: > Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > Hi, > > > > After the advice of Benoit, gambas compiled well on the use 10.2 box. > > However, I can still not use it. If I start it comes back with : > > ---------------------------- > > brigitte:/home/brigitte/request # ./request.gambas > > /usr/bin/iceauth: ?creating new authority file /root/.ICEauthority > > kbuildsycoca running... > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > preloaded: ignore ? ? ? ? ? ? ? d. > > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be > > preloaded: igno ? ? ? ? ? ? ? red. > > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > > preloaded: ignore ? ? ? ? ? ? ? d. > > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be preloaded: > > ignored ? ? ? ? ? ? ? . > > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be preloaded: > > ignored. > > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > > akode: Guessed format: xiph > > KNotify::playTimeout > > KNotify::playTimeout > > brigitte:/home/brigitte/request # arguments to > > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, assertion > > "_dbus_check_is_valid_path (path)" failed in file dbus-m > > essage.c line 1074. > > This is normally a bug in some application using the D-Bus library. > > ICE default IO error handler doing an exit(), pid = 5609, errno = 0 > > brigitte:/home/brigitte/request # > > > > ------------------------------------------------------ > > Anybody had the same problem ? > > I donnot have any ideas about what's going on here. > > > > Thanks in advance, > > Steven > > Which version of gambas? Latest TRUNK (1.9.49) > > Which command do you use to run gambas? gambas2 > > What is "./request.gambas"? An application I made, it runs quite well on 4 other systems with the same (?) configuration > > Stefano > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Sat Jul 7 12:38:49 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 7 Jul 2007 12:38:49 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071228.56613.steven@...1652...> References: <200707071216.22452.steven@...1652...> <200707071221.13064.rospolosco@...152...> <200707071228.56613.steven@...1652...> Message-ID: <200707071238.49204.rospolosco@...152...> Alle 12:28, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: 2 stupid questions: Do you have the same problem if you run ./request.gambas as normal user, instead of root user? If you run your app in the Gambas2 IDE, what does happen? Stefano > Stefano, > > The answehrs are in the text below. > Steven > > Le samedi 7 juillet 2007 12:21, Stefano Palmeri a ?crit?: > > Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > Hi, > > > > > > After the advice of Benoit, gambas compiled well on the use 10.2 box. > > > However, I can still not use it. If I start it comes back with : > > > ---------------------------- > > > brigitte:/home/brigitte/request # ./request.gambas > > > /usr/bin/iceauth: ?creating new authority file /root/.ICEauthority > > > kbuildsycoca running... > > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be > > > preloaded: igno ? ? ? ? ? ? ? red. > > > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be > > > preloaded: ignored ? ? ? ? ? ? ? . > > > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be preloaded: > > > ignored. > > > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > > > akode: Guessed format: xiph > > > KNotify::playTimeout > > > KNotify::playTimeout > > > brigitte:/home/brigitte/request # arguments to > > > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, assertion > > > "_dbus_check_is_valid_path (path)" failed in file dbus-m > > > essage.c line 1074. > > > This is normally a bug in some application using the D-Bus library. > > > ICE default IO error handler doing an exit(), pid = 5609, errno = 0 > > > brigitte:/home/brigitte/request # > > > > > > ------------------------------------------------------ > > > Anybody had the same problem ? > > > I donnot have any ideas about what's going on here. > > > > > > Thanks in advance, > > > Steven > > > > Which version of gambas? > > Latest TRUNK (1.9.49) > > > Which command do you use to run gambas? > > gambas2 > > > What is "./request.gambas"? > > An application I made, it runs quite well on 4 other systems with the same > (?) configuration > > > Stefano > > > > > ----------------------------------------------------------------------- > > >-- This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Sat Jul 7 12:41:12 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 7 Jul 2007 12:41:12 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071238.49204.rospolosco@...152...> References: <200707071216.22452.steven@...1652...> <200707071228.56613.steven@...1652...> <200707071238.49204.rospolosco@...152...> Message-ID: <200707071241.12571.steven@...1652...> Le samedi 7 juillet 2007 12:38, Stefano Palmeri a ?crit?: > Alle 12:28, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > 2 stupid questions: Do you have the same problem if you run Not so stupid, I think ;-) > ./request.gambas as normal user, instead of root user? Yes > > If you run your app in the Gambas2 IDE, what does happen? Same problem, the IDE does not start at all. Same type of messages > > Stefano > > > Stefano, > > > > The answehrs are in the text below. > > Steven > > > > Le samedi 7 juillet 2007 12:21, Stefano Palmeri a ?crit?: > > > Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > Hi, > > > > > > > > After the advice of Benoit, gambas compiled well on the use 10.2 box. > > > > However, I can still not use it. If I start it comes back with : > > > > ---------------------------- > > > > brigitte:/home/brigitte/request # ./request.gambas > > > > /usr/bin/iceauth: ?creating new authority file /root/.ICEauthority > > > > kbuildsycoca running... > > > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > > > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be > > > > preloaded: igno ? ? ? ? ? ? ? red. > > > > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be > > > > preloaded: ignored ? ? ? ? ? ? ? . > > > > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be > > > > preloaded: ignored. > > > > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > > > > akode: Guessed format: xiph > > > > KNotify::playTimeout > > > > KNotify::playTimeout > > > > brigitte:/home/brigitte/request # arguments to > > > > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, > > > > assertion "_dbus_check_is_valid_path (path)" failed in file dbus-m > > > > essage.c line 1074. > > > > This is normally a bug in some application using the D-Bus library. > > > > ICE default IO error handler doing an exit(), pid = 5609, errno = 0 > > > > brigitte:/home/brigitte/request # > > > > > > > > ------------------------------------------------------ > > > > Anybody had the same problem ? > > > > I donnot have any ideas about what's going on here. > > > > > > > > Thanks in advance, > > > > Steven > > > > > > Which version of gambas? > > > > Latest TRUNK (1.9.49) > > > > > Which command do you use to run gambas? > > > > gambas2 > > > > > What is "./request.gambas"? > > > > An application I made, it runs quite well on 4 other systems with the > > same (?) configuration > > > > > Stefano > > > > > > > --------------------------------------------------------------------- > > > >-- -- This SF.net email is sponsored by DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > _______________________________________________ > > > > 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 DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Sat Jul 7 12:48:26 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 7 Jul 2007 12:48:26 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071241.12571.steven@...1652...> References: <200707071216.22452.steven@...1652...> <200707071238.49204.rospolosco@...152...> <200707071241.12571.steven@...1652...> Message-ID: <200707071248.26666.rospolosco@...152...> Alle 12:41, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: I have a little stupid suggestion. Unistall completely your Gambas2. Then remove the source directory of gambas2 and re-download a fresh new Gambas2 source. It seems the only way to solve the problem. Stefano > Le samedi 7 juillet 2007 12:38, Stefano Palmeri a ?crit?: > > Alle 12:28, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > 2 stupid questions: Do you have the same problem if you run > > Not so stupid, I think ;-) > > > ./request.gambas as normal user, instead of root user? > > Yes > > > If you run your app in the Gambas2 IDE, what does happen? > > Same problem, the IDE does not start at all. > Same type of messages > > > Stefano > > > > > Stefano, > > > > > > The answehrs are in the text below. > > > Steven > > > > > > Le samedi 7 juillet 2007 12:21, Stefano Palmeri a ?crit?: > > > > Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > > Hi, > > > > > > > > > > After the advice of Benoit, gambas compiled well on the use 10.2 > > > > > box. However, I can still not use it. If I start it comes back with > > > > > : ---------------------------- > > > > > brigitte:/home/brigitte/request # ./request.gambas > > > > > /usr/bin/iceauth: ?creating new authority file /root/.ICEauthority > > > > > kbuildsycoca running... > > > > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > > > > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be > > > > > preloaded: igno ? ? ? ? ? ? ? red. > > > > > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be > > > > > preloaded: ignored ? ? ? ? ? ? ? . > > > > > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be > > > > > preloaded: ignored. > > > > > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > > > > > akode: Guessed format: xiph > > > > > KNotify::playTimeout > > > > > KNotify::playTimeout > > > > > brigitte:/home/brigitte/request # arguments to > > > > > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, > > > > > assertion "_dbus_check_is_valid_path (path)" failed in file dbus-m > > > > > essage.c line 1074. > > > > > This is normally a bug in some application using the D-Bus library. > > > > > ICE default IO error handler doing an exit(), pid = 5609, errno = 0 > > > > > brigitte:/home/brigitte/request # > > > > > > > > > > ------------------------------------------------------ > > > > > Anybody had the same problem ? > > > > > I donnot have any ideas about what's going on here. > > > > > > > > > > Thanks in advance, > > > > > Steven > > > > > > > > Which version of gambas? > > > > > > Latest TRUNK (1.9.49) > > > > > > > Which command do you use to run gambas? > > > > > > gambas2 > > > > > > > What is "./request.gambas"? > > > > > > An application I made, it runs quite well on 4 other systems with the > > > same (?) configuration > > > > > > > Stefano > > > > > > > > > ------------------------------------------------------------------- > > > > >-- -- -- This SF.net email is sponsored by DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > _______________________________________________ > > > > > 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 DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > _______________________________________________ > > > > 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 DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Sat Jul 7 12:54:11 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Sat, 7 Jul 2007 12:54:11 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071248.26666.rospolosco@...152...> References: <200707071216.22452.steven@...1652...> <200707071241.12571.steven@...1652...> <200707071248.26666.rospolosco@...152...> Message-ID: <200707071254.11775.steven@...1652...> I allready tried that, same result. Steven Le samedi 7 juillet 2007 12:48, Stefano Palmeri a ?crit?: > Alle 12:41, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > I have a little stupid suggestion. Unistall completely your Gambas2. Then > remove the source directory of gambas2 and re-download a fresh new Gambas2 > source. It seems the only way to solve the problem. > > Stefano > > > Le samedi 7 juillet 2007 12:38, Stefano Palmeri a ?crit?: > > > Alle 12:28, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > > > 2 stupid questions: Do you have the same problem if you run > > > > Not so stupid, I think ;-) > > > > > ./request.gambas as normal user, instead of root user? > > > > Yes > > > > > If you run your app in the Gambas2 IDE, what does happen? > > > > Same problem, the IDE does not start at all. > > Same type of messages > > > > > Stefano > > > > > > > Stefano, > > > > > > > > The answehrs are in the text below. > > > > Steven > > > > > > > > Le samedi 7 juillet 2007 12:21, Stefano Palmeri a ?crit?: > > > > > Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > > > Hi, > > > > > > > > > > > > After the advice of Benoit, gambas compiled well on the use 10.2 > > > > > > box. However, I can still not use it. If I start it comes back > > > > > > with > > > > > > > > > > > > : ---------------------------- > > > > > > > > > > > > brigitte:/home/brigitte/request # ./request.gambas > > > > > > /usr/bin/iceauth: ?creating new authority file > > > > > > /root/.ICEauthority kbuildsycoca running... > > > > > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > > > > > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > > > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot be > > > > > > preloaded: igno ? ? ? ? ? ? ? red. > > > > > > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > > > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > > > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be > > > > > > preloaded: ignored ? ? ? ? ? ? ? . > > > > > > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be > > > > > > preloaded: ignored. > > > > > > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > > > > > > akode: Guessed format: xiph > > > > > > KNotify::playTimeout > > > > > > KNotify::playTimeout > > > > > > brigitte:/home/brigitte/request # arguments to > > > > > > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, > > > > > > assertion "_dbus_check_is_valid_path (path)" failed in file > > > > > > dbus-m essage.c line 1074. > > > > > > This is normally a bug in some application using the D-Bus > > > > > > library. ICE default IO error handler doing an exit(), pid = > > > > > > 5609, errno = 0 brigitte:/home/brigitte/request # > > > > > > > > > > > > ------------------------------------------------------ > > > > > > Anybody had the same problem ? > > > > > > I donnot have any ideas about what's going on here. > > > > > > > > > > > > Thanks in advance, > > > > > > Steven > > > > > > > > > > Which version of gambas? > > > > > > > > Latest TRUNK (1.9.49) > > > > > > > > > Which command do you use to run gambas? > > > > > > > > gambas2 > > > > > > > > > What is "./request.gambas"? > > > > > > > > An application I made, it runs quite well on 4 other systems with the > > > > same (?) configuration > > > > > > > > > Stefano > > > > > > > > > > > ----------------------------------------------------------------- > > > > > >-- -- -- -- This SF.net email is sponsored by DB2 Express > > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > _______________________________________________ > > > > > > 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 DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > _______________________________________________ > > > > > 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 DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > _______________________________________________ > > > > 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 DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rospolosco at ...152... Sat Jul 7 13:45:48 2007 From: rospolosco at ...152... (Stefano Palmeri) Date: Sat, 7 Jul 2007 13:45:48 +0200 Subject: [Gambas-user] Compiling problems ? In-Reply-To: <200707071254.11775.steven@...1652...> References: <200707071216.22452.steven@...1652...> <200707071248.26666.rospolosco@...152...> <200707071254.11775.steven@...1652...> Message-ID: <200707071345.49112.rospolosco@...152...> Alle 12:54, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > I allready tried that, > same result. > Steven Ok. Last chance. It seems that some libs are missing or not registered. Try locate libqt-mt.so.3 locate libkdecore.so.4 et cetera. If you have all installed, then try to run as *root*: ldconfig then try again the IDE. Stefano > > Le samedi 7 juillet 2007 12:48, Stefano Palmeri a ?crit?: > > Alle 12:41, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > I have a little stupid suggestion. Unistall completely your Gambas2. Then > > remove the source directory of gambas2 and re-download a fresh new > > Gambas2 source. It seems the only way to solve the problem. > > > > Stefano > > > > > Le samedi 7 juillet 2007 12:38, Stefano Palmeri a ?crit?: > > > > Alle 12:28, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > > > > > 2 stupid questions: Do you have the same problem if you run > > > > > > Not so stupid, I think ;-) > > > > > > > ./request.gambas as normal user, instead of root user? > > > > > > Yes > > > > > > > If you run your app in the Gambas2 IDE, what does happen? > > > > > > Same problem, the IDE does not start at all. > > > Same type of messages > > > > > > > Stefano > > > > > > > > > Stefano, > > > > > > > > > > The answehrs are in the text below. > > > > > Steven > > > > > > > > > > Le samedi 7 juillet 2007 12:21, Stefano Palmeri a ?crit?: > > > > > > Alle 12:16, sabato 7 luglio 2007, Steven Lobbezoo ha scritto: > > > > > > > Hi, > > > > > > > > > > > > > > After the advice of Benoit, gambas compiled well on the use > > > > > > > 10.2 box. However, I can still not use it. If I start it comes > > > > > > > back with > > > > > > > > > > > > > > : ---------------------------- > > > > > > > > > > > > > > brigitte:/home/brigitte/request # ./request.gambas > > > > > > > /usr/bin/iceauth: ?creating new authority file > > > > > > > /root/.ICEauthority kbuildsycoca running... > > > > > > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > > > > > > ERROR: ld.so: object 'libqt-mt.so.3' from LD_PRELOAD cannot be > > > > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > > > > ERROR: ld.so: object 'libkdecore.so.4' from LD_PRELOAD cannot > > > > > > > be preloaded: igno ? ? ? ? ? ? ? red. > > > > > > > ERROR: ld.so: object 'libkdeui.so.4' from LD_PRELOAD cannot be > > > > > > > preloaded: ignore ? ? ? ? ? ? ? d. > > > > > > > ERROR: ld.so: object 'libDCOP.so.4' from LD_PRELOAD cannot be > > > > > > > preloaded: ignored ? ? ? ? ? ? ? . > > > > > > > ERROR: ld.so: object 'libkio.so.4' from LD_PRELOAD cannot be > > > > > > > preloaded: ignored. > > > > > > > KWrited - ?coute le p?riph?rique ? /dev/pts/3 ? > > > > > > > akode: Guessed format: xiph > > > > > > > KNotify::playTimeout > > > > > > > KNotify::playTimeout > > > > > > > brigitte:/home/brigitte/request # arguments to > > > > > > > dbus_message_new_method_call() we ? ? ? ? ? ? ? re incorrect, > > > > > > > assertion "_dbus_check_is_valid_path (path)" failed in file > > > > > > > dbus-m essage.c line 1074. > > > > > > > This is normally a bug in some application using the D-Bus > > > > > > > library. ICE default IO error handler doing an exit(), pid = > > > > > > > 5609, errno = 0 brigitte:/home/brigitte/request # > > > > > > > > > > > > > > ------------------------------------------------------ > > > > > > > Anybody had the same problem ? > > > > > > > I donnot have any ideas about what's going on here. > > > > > > > > > > > > > > Thanks in advance, > > > > > > > Steven > > > > > > > > > > > > Which version of gambas? > > > > > > > > > > Latest TRUNK (1.9.49) > > > > > > > > > > > Which command do you use to run gambas? > > > > > > > > > > gambas2 > > > > > > > > > > > What is "./request.gambas"? > > > > > > > > > > An application I made, it runs quite well on 4 other systems with > > > > > the same (?) configuration > > > > > > > > > > > Stefano > > > > > > > > > > > > > --------------------------------------------------------------- > > > > > > >-- -- -- -- -- This SF.net email is sponsored by DB2 Express > > > > > > > Download DB2 Express C - the FREE version of DB2 express and > > > > > > > take control of your XML. No limits. Just data. Click to get it > > > > > > > now. http://sourceforge.net/powerbar/db2/ > > > > > > > _______________________________________________ > > > > > > > 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 DB2 Express > > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > > http://sourceforge.net/powerbar/db2/ > > > > > > _______________________________________________ > > > > > > 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 DB2 Express > > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > > control of your XML. No limits. Just data. Click to get it now. > > > > > http://sourceforge.net/powerbar/db2/ > > > > > _______________________________________________ > > > > > 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 DB2 Express > > > > Download DB2 Express C - the FREE version of DB2 express and take > > > > control of your XML. No limits. Just data. Click to get it now. > > > > http://sourceforge.net/powerbar/db2/ > > > > _______________________________________________ > > > > 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 DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ifrbose at ...626... Sun Jul 8 14:15:23 2007 From: ifrbose at ...626... (Francis Bosco) Date: Sun, 8 Jul 2007 17:45:23 +0530 Subject: [Gambas-user] Packaging problem in Gambas Message-ID: When I making installation packages at the last step, After I pressed make package it's showing process like Creating package for debian Initializing ~/RPM directory Creating source package Creating .spec file Creating RPM package Then it is showing error message box like This application has raised an unexpected error and must abort [-1] error: File /home/francis/RPM/sources/Agenda-&1.&20.20.tar.bz2: No such file or directory. Package.Makepackage.440 After I click ok, its quits Can anyone here can help me? -- Regards Bose. Registered Linux User #441045 (counter.li.org) Passion - Some people climb mountains - others write Free software. Don't ask why - the reason is the same. From jredrejo at ...626... Sun Jul 8 17:02:17 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 8 Jul 2007 17:02:17 +0200 Subject: [Gambas-user] Packaging problem in Gambas In-Reply-To: References: Message-ID: <8eb28a500707080802r38ba36a5k4e47becb0f0c7711@...627...> can yo send me a copy of the project that fails? 2007/7/8, Francis Bosco : > > When I making installation packages at the last step, After I pressed make > package it's showing process like > > Creating package for debian > Initializing ~/RPM directory > Creating source package > Creating .spec file > Creating RPM package > > Then it is showing error message box like > > This application has raised an unexpected error and must abort > [-1] error: File /home/francis/RPM/sources/Agenda-&1.&20.20.tar.bz2: No > such > file or directory. > Package.Makepackage.440 > > After I click ok, its quits > > Can anyone here can help me? > > -- > Regards > Bose. > Registered Linux User #441045 (counter.li.org) > Passion - Some people climb mountains - others write Free software. > Don't ask why - the reason is the same. > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jul 8 20:20:17 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 8 Jul 2007 20:20:17 +0200 Subject: [Gambas-user] Packaging problem in Gambas In-Reply-To: References: Message-ID: <200707082020.17573.gambas@...1...> On dimanche 08 juillet 2007, Francis Bosco wrote: > When I making installation packages at the last step, After I pressed make > package it's showing process like > > Creating package for debian > Initializing ~/RPM directory > Creating source package > Creating .spec file > Creating RPM package > > Then it is showing error message box like > > This application has raised an unexpected error and must abort > [-1] error: File /home/francis/RPM/sources/Agenda-&1.&20.20.tar.bz2: No > such file or directory. > Package.Makepackage.440 > > After I click ok, its quits > > Can anyone here can help me? You must tell which version of Gambas you use! -- Benoit Minisini From juergen at ...1725... Mon Jul 9 18:45:04 2007 From: juergen at ...1725... (=?iso-8859-1?q?J=FCrgen_Zdero?=) Date: Mon, 9 Jul 2007 18:45:04 +0200 Subject: [Gambas-user] open project form gambas2 In-Reply-To: <200707061010.18732.gambas@...1...> References: <200707060810.52019.juergen@...1725...> <200707061010.18732.gambas@...1...> Message-ID: <200707091845.05019.juergen@...1725...> Hi Benoit, It would be enough help to place a "keystroke" to &Open and Can&cel, and maybe a default focus on OPEN cheers Juergen > > I will make a bit smaller anyway by default. > On Friday 06 July 2007 10:10 Benoit Minisini wrote: > On vendredi 06 juillet 2007, J?rgen Zdero wrote: > > I have a problem with Open-project-form with gambas2 1.9.49 > > but not with gambas 1! > > > > On start i choose "open project" and get a form with a treeview in the > > right. But its impossible to resize the window vertically and it is too > > large that i may reach the "OK" or "CANCEL" button in the lower, not > > visible, area of the . > > > > I use a 2 Monitor Desktop with 2048 x 768 on opensuse 10.2 > > > > How can i start gambas2 with smaller windows, alternate resolution or > > make the open-project-Window vertically resizeable ? > > > > cheers Juergen > > The open project window is 632 pixels high with a 10 point default font. So > if you don't see it with a 2048 x 768 resolution, I think you use a bigger > default font on you desktop. Do you? > > I will make a bit smaller anyway by default. > > Regards, From gambas at ...1... Mon Jul 9 18:53:21 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Jul 2007 18:53:21 +0200 Subject: [Gambas-user] open project form gambas2 In-Reply-To: <200707091845.05019.juergen@...1725...> References: <200707060810.52019.juergen@...1725...> <200707061010.18732.gambas@...1...> <200707091845.05019.juergen@...1725...> Message-ID: <200707091853.21163.gambas@...1...> On lundi 09 juillet 2007, J?rgen Zdero wrote: > Hi Benoit, > > It would be enough help to place a "keystroke" to > &Open and Can&cel, and maybe a default focus on OPEN > > > cheers Juergen > The shortcut of Open is the RETURN key (look at the Button.Default property), and the shortcut of Cancel is the ESCAPE key (look at the Button.Cancel property). Regards, -- Benoit Minisini From capodastro at ...626... Tue Jul 10 20:21:50 2007 From: capodastro at ...626... (Capodastro) Date: Tue, 10 Jul 2007 20:21:50 +0200 Subject: [Gambas-user] (no subject) Message-ID: I use suse 10.2 64 bit on Turion64 and (helas!) ATI graphic. Six mounts ago, I discovered gambas: very nice for fast writing, really like Vb6. However, I can't use the windows api and pointers...:) But how to install it !? None of the official and unofficial "HowTo" was working, may be they refer to a 32 bit environnement. i speak many tongs and there was no trouble by inspecting also german, spanish, italian, french or polish forums and so on. Everywere the same: desperate questions and generic answers :). By the way, gambas1 wasn't a problem. Hier I also need to add that I am not very fond in linux. Well, hunting around the net I found somewere a package called gambas-1.9.23-13.i586.rpm. It was very easy to satisfy the missing dependencies and I got it installed after discovering that it likes -32bit.devel packages. After a couple of attempts I also discovered that i can override it by compiling on top gambas2-1.9.46a getting as consequence this build working. Unfortunately this trick doesn't work with later builds. Now my question: is there an orthodox way to install gambas2 on suse 10.2 64 bit? I don't add as attachment my output for gambas2-1.9.49.tar.bz2. The size is excessive and I don't understand what is relevant or not. Thanks in advance for what you can or can't do... ben capodastro at ...626... From capodastro at ...626... Tue Jul 10 20:24:34 2007 From: capodastro at ...626... (Capodastro) Date: Tue, 10 Jul 2007 20:24:34 +0200 Subject: [Gambas-user] gambas2 on suse 10.2 64 bit Message-ID: I use suse 10.2 64 bit on Turion64 and (helas!) ATI graphic. Six mounts ago, I discovered gambas: very nice for fast writing, really like Vb6. However, I can't use the windows api and pointers...:) But how to install it !? None of the official and unofficial "HowTo" was working, may be they refer to a 32 bit environnement. i speak many tongs and there was no trouble by inspecting also german, spanish, italian, french or polish forums and so on. Everywere the same: desperate questions and generic answers :). By the way, gambas1 wasn't a problem. Hier I also need to add that I am not very fond in linux. Well, hunting around the net I found somewere a package called gambas-1.9.23-13.i586.rpm. It was very easy to satisfy the missing dependencies and I got it installed after discovering that it likes -32bit.devel packages. After a couple of attempts I also discovered that i can override it by compiling on top gambas2-1.9.46a getting as consequence this build working. Unfortunately this trick doesn't work with later builds. Now my question: is there an orthodox way to install gambas2 on suse 10.2 64 bit? I don't add as attachment my output for gambas2-1.9.49.tar.bz2. The size is excessive and I don't understand what is relevant or not. Thanks in advance for what you can or can't do... ben capodastro at ...626... From jredrejo at ...626... Tue Jul 10 21:13:06 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Tue, 10 Jul 2007 21:13:06 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <8eb28a500707101213w68b587dch81d57eece5a48f50@...627...> Hi Capodastro: Gambas doesn't work yet on 64 bits platforms. That's something has been said many times in this list. If you search about it you'll find Beno?t reasons (as an example: http://sourceforge.net/mailarchive/message.php?msg_id=200704190812.45041.gambas%40users.sourceforge.net). That won't change, at least, before gambas 2.0 is released. Regards. 2007/7/10, Capodastro : > > I use suse 10.2 64 bit on Turion64 and (helas!) ATI graphic. Six > mounts ago, I discovered gambas: very nice for fast writing, really > like Vb6. However, I can't use the windows api and pointers...:) > > But how to install it !? None of the official and unofficial "HowTo" > was working, may be they refer to a 32 bit environnement. i speak many > tongs and there was no trouble by inspecting also german, spanish, > italian, french or polish forums and so on. Everywere the same: > desperate questions and generic answers :). > By the way, gambas1 wasn't a problem. Hier I also need to add that I > am not very fond in linux. > > Well, hunting around the net I found somewere a package called > gambas-1.9.23-13.i586.rpm. > It was very easy to satisfy the missing dependencies and I got it > installed after discovering that it likes -32bit.devel packages. > > After a couple of attempts I also discovered that i can override it by > compiling on top gambas2-1.9.46a getting as consequence this build > working. Unfortunately this trick doesn't work with later builds. > > Now my question: is there an orthodox way to install gambas2 on suse > 10.2 64 bit? > I don't add as attachment my output for gambas2-1.9.49.tar.bz2. > The size is excessive and I don't understand what is relevant or not. > Thanks in advance for what you can or can't do... > ben > capodastro at ...626... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From capodastro at ...626... Tue Jul 10 21:25:54 2007 From: capodastro at ...626... (Capodastro) Date: Tue, 10 Jul 2007 21:25:54 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <8eb28a500707101213w68b587dch81d57eece5a48f50@...627...> References: <8eb28a500707101213w68b587dch81d57eece5a48f50@...627...> Message-ID: ola jose luis, estoy cocinando spaghetti para mi mujer, voy a escribirte nas tarde, te toda manera a mi me funciona...:) hasta luego gracias, ben On 7/10/07, Jos? Luis Redrejo wrote: > Hi Capodastro: Gambas doesn't work yet on 64 bits platforms. That's > something has been said many times in this list. If you search about it > you'll find Beno?t reasons (as an example: > http://sourceforge.net/mailarchive/message.php?msg_id=200704190812.45041.gambas%40users.sourceforge.net). > That won't change, at least, before gambas > 2.0 is released. > > Regards. > > 2007/7/10, Capodastro : > > > > I use suse 10.2 64 bit on Turion64 and (helas!) ATI graphic. Six > > mounts ago, I discovered gambas: very nice for fast writing, really > > like Vb6. However, I can't use the windows api and pointers...:) > > > > But how to install it !? None of the official and unofficial "HowTo" > > was working, may be they refer to a 32 bit environnement. i speak many > > tongs and there was no trouble by inspecting also german, spanish, > > italian, french or polish forums and so on. Everywere the same: > > desperate questions and generic answers :). > > By the way, gambas1 wasn't a problem. Hier I also need to add that I > > am not very fond in linux. > > > > Well, hunting around the net I found somewere a package called > > gambas-1.9.23-13.i586.rpm. > > It was very easy to satisfy the missing dependencies and I got it > > installed after discovering that it likes -32bit.devel packages. > > > > After a couple of attempts I also discovered that i can override it by > > compiling on top gambas2-1.9.46a getting as consequence this build > > working. Unfortunately this trick doesn't work with later builds. > > > > Now my question: is there an orthodox way to install gambas2 on suse > > 10.2 64 bit? > > I don't add as attachment my output for gambas2-1.9.49.tar.bz2. > > The size is excessive and I don't understand what is relevant or not. > > Thanks in advance for what you can or can't do... > > ben > > capodastro at ...626... > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > 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 DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Tue Jul 10 22:59:29 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 10 Jul 2007 22:59:29 +0200 Subject: [Gambas-user] Problem retreiving Headers with HttpClient Message-ID: <200707102259.33420.lordheavym@...626...> I'm delepping some kind of file downloader and i need to retreive the header of the file i try to download if i want to guess the size of the file (currently tagged with 'Content - Length:') Unfortunatly i don't succeed :-/, the header i retreive is empty or garbaged. I don't know if i've made a mistake or if it's a bug. The same url give a correct header with hhtpget example. The code : PUBLIC _Download AS NEW HttpClient AS "_Download" PRIVATE downloadBuffer AS String PRIVATE sTempFile AS String ' Destination file PRIVATE sDestFile AS String PRIVATE oDestFile AS Stream PRIVATE iDestFileSize AS Integer PRIVATE iDestFileCurrentSize AS Integer PUBLIC SUB run(URL AS String) downloadBuffer = "" WITH _Download .URL = URL .UserAgent = "Gambas Http/1.0" .Get() END WITH END PUBLIC SUB _Download_Connect() PRINT "Connection found " & _download.URL SLEEP 2 END PUBLIC SUB _Download_Read() DIM buffer AS String DIM size AS Integer DIM myLoop AS Integer size = iDestFileSize ' Check for the size of the downloaded file IF (size = 0) FOR myLoop = 0 TO _Download.Headers.Count - 1 IF (InStr(_Download.Headers[MyLoop], "Content - Length:") > 0) THEN PRINT "length found" NEXT ENDIF IF Lof(LAST) iDestFileCurrentSize = iDestFileCurrentSize + Lof(LAST) IF (size = 0) THEN size = iDestFileCurrentSize READ #LAST, buffer, Lof(LAST) downloadBuffer &= buffer PRINT iDestFileCurrentSize & " Downnload on " & size ENDIF END PUBLIC SUB _Download_Error() PRINT "Error " & _download.Status & " downloading " & _download.URL END PUBLIC SUB _Download_Finished() FOR myLoop = 0 TO _Download.Headers.Count - 1 PRINT _Download.Headers[MyLoop] NEXT PRINT "finished" END Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From capodastro at ...626... Tue Jul 10 23:55:42 2007 From: capodastro at ...626... (Capodastro) Date: Tue, 10 Jul 2007 23:55:42 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: <8eb28a500707101213w68b587dch81d57eece5a48f50@...627...> Message-ID: ok, compilar gambas2-1.9.46a.tar.bz2 sobre el otro no es bien, quasi no hay clases que funcionan. Por contrario, instalando gambas-1.9.23-13.i586.rpm de forma limpia, la gran mayoria de los ejemplos arranca bien. No mire todo como los ejemplos son muchos: lo que de momento no funciona es kate, sound y databases. Me parece un problema de dependiencias. He escribido un pequeno programa disfrutando el ejemplo "console", lo he compilado y "testado": tambien los runtimes estan bien. El rpm en question esta echo por vosotros. Asi que os envio mis dobles felicitaciones: la primera por gambas y sin embargo la secunda por la suerte, te ajorro la expresion en italiano. abrazos, ben On 7/10/07, Capodastro wrote: > ola jose luis, estoy cocinando spaghetti para mi mujer, voy a > escribirte nas tarde, te toda manera a mi me funciona...:) > hasta luego > gracias, > ben > > On 7/10/07, Jos? Luis Redrejo wrote: > > Hi Capodastro: Gambas doesn't work yet on 64 bits platforms. That's > > something has been said many times in this list. If you search about it > > you'll find Beno?t reasons (as an example: > > > http://sourceforge.net/mailarchive/message.php?msg_id=200704190812.45041.gambas%40users.sourceforge.net). > > That won't change, at least, before gambas > > 2.0 is released. > > > > Regards. > > > > 2007/7/10, Capodastro : > > > > > > I use suse 10.2 64 bit on Turion64 and (helas!) ATI graphic. Six > > > mounts ago, I discovered gambas: very nice for fast writing, really > > > like Vb6. However, I can't use the windows api and pointers...:) > > > > > > But how to install it !? None of the official and unofficial "HowTo" > > > was working, may be they refer to a 32 bit environnement. i speak many > > > tongs and there was no trouble by inspecting also german, spanish, > > > italian, french or polish forums and so on. Everywere the same: > > > desperate questions and generic answers :). > > > By the way, gambas1 wasn't a problem. Hier I also need to add that I > > > am not very fond in linux. > > > > > > Well, hunting around the net I found somewere a package called > > > gambas-1.9.23-13.i586.rpm. > > > It was very easy to satisfy the missing dependencies and I got it > > > installed after discovering that it likes -32bit.devel packages. > > > > > > After a couple of attempts I also discovered that i can override it by > > > compiling on top gambas2-1.9.46a getting as consequence this build > > > working. Unfortunately this trick doesn't work with later builds. > > > > > > Now my question: is there an orthodox way to install gambas2 on suse > > > 10.2 64 bit? > > > I don't add as attachment my output for gambas2-1.9.49.tar.bz2. > > > The size is excessive and I don't understand what is relevant or not. > > > Thanks in advance for what you can or can't do... > > > ben > > > capodastro at ...626... > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Tue Jul 10 23:58:58 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jul 2007 23:58:58 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <200707102358.58584.gambas@...1...> On mardi 10 juillet 2007, Capodastro wrote: > ok, > compilar gambas2-1.9.46a.tar.bz2 sobre el otro no es bien, quasi no > hay clases que funcionan. Por contrario, instalando > gambas-1.9.23-13.i586.rpm de forma limpia, la gran mayoria de los > ejemplos arranca bien. No mire todo como los ejemplos son muchos: lo > que de momento no funciona es kate, sound y databases. Me parece un > problema de dependiencias. He escribido un pequeno programa > disfrutando el ejemplo "console", lo he compilado y "testado": tambien > los runtimes estan bien. El rpm en question esta echo por vosotros. > Asi que os envio mis dobles felicitaciones: la primera por gambas y > sin embargo la secunda por la suerte, te ajorro la expresion en > italiano. > abrazos, > ben Please use the spanish mailing-list if you want to talk in spanish. Otherwise I will write in suburbs' french slang :-) -- Benoit Minisini From lordheavym at ...626... Wed Jul 11 00:13:20 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 11 Jul 2007 00:13:20 +0200 Subject: [Gambas-user] Problem retreiving Headers with HttpClient In-Reply-To: <200707102259.33420.lordheavym@...626...> References: <200707102259.33420.lordheavym@...626...> Message-ID: <200707110013.24762.lordheavym@...626...> On Tuesday 10 July 2007 22:59:29 Laurent Carlier wrote: > I'm delepping some kind of file downloader and i need to retreive the > header of the file i try to download if i want to guess the size of the > file (currently tagged with 'Content - Length:') > > Unfortunatly i don't succeed :-/, the header i retreive is empty or > garbaged. I don't know if i've made a mistake or if it's a bug. The same > url give a correct header with hhtpget example. > > The code : > PUBLIC _Download AS NEW HttpClient AS "_Download" > > PRIVATE downloadBuffer AS String > PRIVATE sTempFile AS String > > ' Destination file > PRIVATE sDestFile AS String > PRIVATE oDestFile AS Stream > PRIVATE iDestFileSize AS Integer > PRIVATE iDestFileCurrentSize AS Integer > > PUBLIC SUB run(URL AS String) > > downloadBuffer = "" > > WITH _Download > .URL = URL > .UserAgent = "Gambas Http/1.0" > .Get() > END WITH > > END > > PUBLIC SUB _Download_Connect() > > PRINT "Connection found " & _download.URL > SLEEP 2 > END > > PUBLIC SUB _Download_Read() > > DIM buffer AS String > DIM size AS Integer > DIM myLoop AS Integer > > size = iDestFileSize > > ' Check for the size of the downloaded file > IF (size = 0) > FOR myLoop = 0 TO _Download.Headers.Count - 1 > IF (InStr(_Download.Headers[MyLoop], "Content - Length:") > 0) THEN > PRINT "length found" > NEXT > ENDIF > > IF Lof(LAST) > iDestFileCurrentSize = iDestFileCurrentSize + Lof(LAST) > IF (size = 0) THEN size = iDestFileCurrentSize > READ #LAST, buffer, Lof(LAST) > downloadBuffer &= buffer > PRINT iDestFileCurrentSize & " Downnload on " & size > ENDIF > > END > > PUBLIC SUB _Download_Error() > > PRINT "Error " & _download.Status & " downloading " & _download.URL > > END > > PUBLIC SUB _Download_Finished() > > FOR myLoop = 0 TO _Download.Headers.Count - 1 > PRINT _Download.Headers[MyLoop] > NEXT > > PRINT "finished" > > END > > > Regards, Ok, i've found an error (no spaces in Context-Length: string :-/ But there is still an error : unable to print the strings in the console, the string is correctly printed in debugging mode. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From capodastro at ...626... Wed Jul 11 00:15:38 2007 From: capodastro at ...626... (Capodastro) Date: Wed, 11 Jul 2007 00:15:38 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <200707102358.58584.gambas@...1...> References: <200707102358.58584.gambas@...1...> Message-ID: Benoit, je suis desole. En adressant la comunication a quelcun qui s'appelle Jose Luis, j'avais bien pense que l'espagnol serait plus natural. Depuis la je m'exprimerais en stricte anglais. Encore une fois mes felicitations. ben On 7/10/07, Benoit Minisini wrote: > On mardi 10 juillet 2007, Capodastro wrote: > > ok, > > compilar gambas2-1.9.46a.tar.bz2 sobre el otro no es bien, quasi no > > hay clases que funcionan. Por contrario, instalando > > gambas-1.9.23-13.i586.rpm de forma limpia, la gran mayoria de los > > ejemplos arranca bien. No mire todo como los ejemplos son muchos: lo > > que de momento no funciona es kate, sound y databases. Me parece un > > problema de dependiencias. He escribido un pequeno programa > > disfrutando el ejemplo "console", lo he compilado y "testado": tambien > > los runtimes estan bien. El rpm en question esta echo por vosotros. > > Asi que os envio mis dobles felicitaciones: la primera por gambas y > > sin embargo la secunda por la suerte, te ajorro la expresion en > > italiano. > > abrazos, > > ben > > Please use the spanish mailing-list if you want to talk in spanish. > Otherwise > I will write in suburbs' french slang :-) > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From capodastro at ...626... Wed Jul 11 00:39:54 2007 From: capodastro at ...626... (Capodastro) Date: Wed, 11 Jul 2007 00:39:54 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: <200707102358.58584.gambas@...1...> Message-ID: By missunderstanding the installing instructions I attempted to install gambas 1 and 2 under OpenSuse 10.2, 64 bit. It turns out that the package gambas-1.9.23-13.i586.rpm installs with no problem and if I am not wrong also gambas 1. A fiew modules are still not working and I assume by reason of some still missed dependencies. I have right now vacation time and consequently the opportunity to take care for this story. I will write a more solid report after conclusion. ben On 7/11/07, Capodastro wrote: > Benoit, je suis desole. En adressant la comunication a quelcun qui > s'appelle Jose Luis, j'avais bien pense que l'espagnol serait plus > natural. Depuis la je m'exprimerais en stricte anglais. Encore une > fois mes felicitations. > ben > > > On 7/10/07, Benoit Minisini wrote: > > On mardi 10 juillet 2007, Capodastro wrote: > > > ok, > > > compilar gambas2-1.9.46a.tar.bz2 sobre el otro no es bien, quasi no > > > hay clases que funcionan. Por contrario, instalando > > > gambas-1.9.23-13.i586.rpm de forma limpia, la gran mayoria de los > > > ejemplos arranca bien. No mire todo como los ejemplos son muchos: lo > > > que de momento no funciona es kate, sound y databases. Me parece un > > > problema de dependiencias. He escribido un pequeno programa > > > disfrutando el ejemplo "console", lo he compilado y "testado": tambien > > > los runtimes estan bien. El rpm en question esta echo por vosotros. > > > Asi que os envio mis dobles felicitaciones: la primera por gambas y > > > sin embargo la secunda por la suerte, te ajorro la expresion en > > > italiano. > > > abrazos, > > > ben > > > > Please use the spanish mailing-list if you want to talk in spanish. > > Otherwise > > I will write in suburbs' french slang :-) > > > > -- > > Benoit Minisini > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gareth at ...1689... Thu Jul 12 02:49:59 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 12 Jul 2007 01:49:59 +0100 (BST) Subject: [Gambas-user] Image handling ... Message-ID: <23737941.5141184201399434.JavaMail.root@...1708...> Hi, I'm working on a CCTV application using AXIS IP cameras and I've managed to display a moving video feed from the camera in a Gambas application. I have two questions if anyone can help; a. Is there any way of getting a chunk of data acquired off the network into an image without doing; File.Save("/tmp/temp") obj.Picture.Flush obj.Picture = Picture["/tmp/temp"] (i.e. directly) b. If I display the picture in the root of a Window, it's perfect. If I display the image in a PictureBox or a Button, if flickers very badly. Is there a trick to double buffering objects inside a window so they don't flicker on update ? (if it helps I'm running @ 5fps) tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Thu Jul 12 10:15:43 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Jul 2007 10:15:43 +0200 Subject: [Gambas-user] Image handling ... In-Reply-To: <23737941.5141184201399434.JavaMail.root@...1708...> References: <23737941.5141184201399434.JavaMail.root@...1708...> Message-ID: <200707121015.43746.gambas@...1...> On jeudi 12 juillet 2007, Gareth Bult wrote: > Hi, > > I'm working on a CCTV application using AXIS IP cameras and I've managed to > display a moving video feed from the camera in a Gambas application. > > I have two questions if anyone can help; > > a. Is there any way of getting a chunk of data acquired off the network > into an image without doing; File.Save("/tmp/temp") > obj.Picture.Flush > obj.Picture = Picture["/tmp/temp"] > (i.e. directly) > > b. If I display the picture in the root of a Window, it's perfect. > If I display the image in a PictureBox or a Button, if flickers very badly. > Is there a trick to double buffering objects inside a window so they don't > flicker on update ? > > (if it helps I'm running @ 5fps) > > tia > Gareth. Which version of Gambas do you use? -- Benoit Minisini From gareth at ...1689... Thu Jul 12 11:39:41 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 12 Jul 2007 10:39:41 +0100 (BST) Subject: [Gambas-user] Image handling ... In-Reply-To: <200707121015.43746.gambas@...1...> Message-ID: <4255922.5431184233181838.JavaMail.root@...1708...> Sorry, SVN .. recompiled this week ... -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 12, 2007 9:15:43 AM (GMT) Europe/London Subject: Re: [Gambas-user] Image handling ... On jeudi 12 juillet 2007, Gareth Bult wrote: > Hi, > > I'm working on a CCTV application using AXIS IP cameras and I've managed to > display a moving video feed from the camera in a Gambas application. > > I have two questions if anyone can help; > > a. Is there any way of getting a chunk of data acquired off the network > into an image without doing; File.Save("/tmp/temp") > obj.Picture.Flush > obj.Picture = Picture["/tmp/temp"] > (i.e. directly) > > b. If I display the picture in the root of a Window, it's perfect. > If I display the image in a PictureBox or a Button, if flickers very badly. > Is there a trick to double buffering objects inside a window so they don't > flicker on update ? > > (if it helps I'm running @ 5fps) > > tia > Gareth. Which version of Gambas do you use? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From capodastro at ...626... Thu Jul 12 12:12:06 2007 From: capodastro at ...626... (Capodastro) Date: Thu, 12 Jul 2007 12:12:06 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: <200707102358.58584.gambas@...1...> Message-ID: the package gambas-1.9.23-13.i586.rpm installs well under openSUSE 10.2: it was packaged by openSUSE self. The next openSUSE package is 10.1 specific and doesn't work under 10.2. The last openSUSE package doesn't work at all. Reverting to gambas-1.9.23-13: many classes are still not implemented but the package is still usefull. On 7/11/07, Capodastro wrote: > By missunderstanding the installing instructions I attempted to > install gambas 1 and 2 under OpenSuse 10.2, 64 bit. It turns out that > the package gambas-1.9.23-13.i586.rpm installs with no problem and if > I am not wrong also gambas 1. A fiew modules are still not working and > I assume by reason of some still missed dependencies. I have right now > vacation time and consequently the opportunity to take care for this > story. I will write a more solid report after conclusion. > ben > > On 7/11/07, Capodastro wrote: > > Benoit, je suis desole. En adressant la comunication a quelcun qui > > s'appelle Jose Luis, j'avais bien pense que l'espagnol serait plus > > natural. Depuis la je m'exprimerais en stricte anglais. Encore une > > fois mes felicitations. > > ben > > > > > > On 7/10/07, Benoit Minisini wrote: > > > On mardi 10 juillet 2007, Capodastro wrote: > > > > ok, > > > > compilar gambas2-1.9.46a.tar.bz2 sobre el otro no es bien, quasi no > > > > hay clases que funcionan. Por contrario, instalando > > > > gambas-1.9.23-13.i586.rpm de forma limpia, la gran mayoria de los > > > > ejemplos arranca bien. No mire todo como los ejemplos son muchos: lo > > > > que de momento no funciona es kate, sound y databases. Me parece un > > > > problema de dependiencias. He escribido un pequeno programa > > > > disfrutando el ejemplo "console", lo he compilado y "testado": tambien > > > > los runtimes estan bien. El rpm en question esta echo por vosotros. > > > > Asi que os envio mis dobles felicitaciones: la primera por gambas y > > > > sin embargo la secunda por la suerte, te ajorro la expresion en > > > > italiano. > > > > abrazos, > > > > ben > > > > > > Please use the spanish mailing-list if you want to talk in spanish. > > > Otherwise > > > I will write in suburbs' french slang :-) > > > > > > -- > > > Benoit Minisini > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > From capodastro at ...626... Thu Jul 12 12:35:06 2007 From: capodastro at ...626... (Capodastro) Date: Thu, 12 Jul 2007 12:35:06 +0200 Subject: [Gambas-user] SendKeys for gambas2 ? Message-ID: Is SendKeys possible under Linux? Hier a complete set of modules for every language and more, written and compiled in Java. http://sourceforge.net/project/showfiles.php?group_id=9364&package_id=9434&release_id=428656 The alternative is dealing with the 6.000 pages of X11 reference, :) Who knows? Perhaps a day that would be also possible in gambas !? From jredrejo at ...626... Thu Jul 12 14:41:27 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Thu, 12 Jul 2007 14:41:27 +0200 Subject: [Gambas-user] SendKeys for gambas2 ? In-Reply-To: References: Message-ID: <8eb28a500707120541n7a4d51c0v2ac38c2fcc6f8477@...627...> It's possible. A present for you: this small c program send "Caps Lock" when it is on to assure that caps lock is not active. I don't remember the details of the functions, as it's something I used almost 3 years, ago. But you won't need to deal with 6000 linex of X11 reference, just look for the functions I use here : #include #include #include /*Para compilarlo: gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o xresetcapslock xresetcapslock.c-lX11 -lXtst */ int main(void) { unsigned int states; Display* disp = XOpenDisplay( NULL ); if( disp == NULL ) return 1; if (XkbGetIndicatorState (disp, XkbUseCoreKbd, &states) != Success) return 2; // printf("%i \n",states); if (states == -31 || states == 1) { XTestFakeKeyEvent( disp, XKeysymToKeycode( disp, XK_Caps_Lock), True, CurrentTime ); XTestFakeKeyEvent( disp, XKeysymToKeycode( disp, XK_Caps_Lock), False, CurrentTime ); } XCloseDisplay( disp ); return 0; } //End of the program Cheers Jos? L. 2007/7/12, Capodastro : > > Is SendKeys possible under Linux? > Hier a complete set of modules for every language and more, written > and compiled in Java. > > http://sourceforge.net/project/showfiles.php?group_id=9364&package_id=9434&release_id=428656 > > The alternative is dealing with the 6.000 pages of X11 reference, :) > Who knows? Perhaps a day that would be also possible in gambas !? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Jul 12 22:31:20 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Jul 2007 22:31:20 +0200 Subject: [Gambas-user] Image handling ... In-Reply-To: <4255922.5431184233181838.JavaMail.root@...1708...> References: <4255922.5431184233181838.JavaMail.root@...1708...> Message-ID: <200707122231.20377.gambas@...1...> On jeudi 12 juillet 2007, Gareth Bult wrote: > Sorry, SVN .. recompiled this week ... > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Sent: Thursday, July 12, 2007 9:15:43 AM (GMT) Europe/London > Subject: Re: [Gambas-user] Image handling ... > > On jeudi 12 juillet 2007, Gareth Bult wrote: > > Hi, > > > > I'm working on a CCTV application using AXIS IP cameras and I've managed > > to display a moving video feed from the camera in a Gambas application. > > > > I have two questions if anyone can help; > > > > a. Is there any way of getting a chunk of data acquired off the network > > into an image without doing; File.Save("/tmp/temp") > > obj.Picture.Flush > > obj.Picture = Picture["/tmp/temp"] > > (i.e. directly) Not at the moment. But you should do it this way: DIM hPict AS Picture File.Save("/tmp/xxxx") hPict = Picture.Load("/tmp/xxxx") By using "/tmp", and a tmpfs system file, you don't lose too much time writing a file and read it back. > > > > b. If I display the picture in the root of a Window, it's perfect. > > If I display the image in a PictureBox or a Button, if flickers very > > badly. Is there a trick to double buffering objects inside a window so > > they don't flicker on update ? Don't put a big picture inside a Button: the Button actually stores two versions of the picture you set: one normal, and one for the disabled version of the normal picture. The PictureBox will flicker less if its alignment property is set to TopLeft. But the ideal is using a DrawingArea with Cached = FALSE, and drawing the picture in the Draw event. Or with Cached = TRUE if your picture is not too big. > > > > (if it helps I'm running @ 5fps) Tell me if you can do better with my advices. Regards, -- Benoit Minisini From gareth at ...1689... Fri Jul 13 01:55:27 2007 From: gareth at ...1689... (Gareth Bult) Date: Fri, 13 Jul 2007 00:55:27 +0100 (BST) Subject: [Gambas-user] Image handling ... In-Reply-To: <200707122231.20377.gambas@...1...> Message-ID: <21768758.6201184284527077.JavaMail.root@...1708...> Hi, Ok the drawing area cracked it .. :-) On another note .. I'm using a Httpclient connection .. This opens a connection to a web server which streams video shots ... works great. I've yet to discover how to close the channel tho'. If I do http.Close, then exit back to the ide, the program is still running. (I'm assuming the http port is still active hence holding the program open) How do I force a close of the http connection from the client end ? Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 12, 2007 9:31:20 PM (GMT) Europe/London Subject: Re: [Gambas-user] Image handling ... On jeudi 12 juillet 2007, Gareth Bult wrote: > Sorry, SVN .. recompiled this week ... > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Sent: Thursday, July 12, 2007 9:15:43 AM (GMT) Europe/London > Subject: Re: [Gambas-user] Image handling ... > > On jeudi 12 juillet 2007, Gareth Bult wrote: > > Hi, > > > > I'm working on a CCTV application using AXIS IP cameras and I've managed > > to display a moving video feed from the camera in a Gambas application. > > > > I have two questions if anyone can help; > > > > a. Is there any way of getting a chunk of data acquired off the network > > into an image without doing; File.Save("/tmp/temp") > > obj.Picture.Flush > > obj.Picture = Picture["/tmp/temp"] > > (i.e. directly) Not at the moment. But you should do it this way: DIM hPict AS Picture File.Save("/tmp/xxxx") hPict = Picture.Load("/tmp/xxxx") By using "/tmp", and a tmpfs system file, you don't lose too much time writing a file and read it back. > > > > b. If I display the picture in the root of a Window, it's perfect. > > If I display the image in a PictureBox or a Button, if flickers very > > badly. Is there a trick to double buffering objects inside a window so > > they don't flicker on update ? Don't put a big picture inside a Button: the Button actually stores two versions of the picture you set: one normal, and one for the disabled version of the normal picture. The PictureBox will flicker less if its alignment property is set to TopLeft. But the ideal is using a DrawingArea with Cached = FALSE, and drawing the picture in the Draw event. Or with Cached = TRUE if your picture is not too big. > > > > (if it helps I'm running @ 5fps) Tell me if you can do better with my advices. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From obductor at ...626... Fri Jul 13 02:22:41 2007 From: obductor at ...626... (Roberto Estevam) Date: Fri, 13 Jul 2007 00:22:41 +0000 Subject: [Gambas-user] the help gambas Message-ID: <13c329a90707121722j5cf486dfh65ca530d236378e6@...627...> the help(F1) is not complete :( i need information about XML Thanks. From obductor at ...626... Fri Jul 13 03:09:15 2007 From: obductor at ...626... (Roberto Estevam) Date: Fri, 13 Jul 2007 01:09:15 +0000 Subject: [Gambas-user] gb.form.dialog Message-ID: <13c329a90707121809t3cd49ef1l47d86acc1ec1c8d2@...627...> ghostdog at ...1726...:~/trunk$ svn up Na revis?o 437. ghostdog at ...1726...:~/trunk$ gambas2 ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file From sourceforge-raindog2 at ...94... Fri Jul 13 03:52:50 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 12 Jul 2007 21:52:50 -0400 Subject: [Gambas-user] SendKeys for gambas2 ? In-Reply-To: <8eb28a500707120541n7a4d51c0v2ac38c2fcc6f8477@...627...> References: <8eb28a500707120541n7a4d51c0v2ac38c2fcc6f8477@...627...> Message-ID: <200707122153.08220.sourceforge-raindog2@...94...> On Thursday 12 July 2007, Jos? Luis Redrejo wrote: > It's possible. A present for you: this small c program send "Caps > Lock" when it is on to assure that caps lock is not active. I don't I forgot all about the XTest extension. It would be pretty easy to wrap that in a Gambas component (though I'm not sure about mapping whatever keycodes Gambas uses to X keycodes, if they're different) and if no one's done it by when I have coding time available, probably early September, I'll do it myself. Do all X servers pretty much have the XTest extension turned on by default? Mandriva has theirs turned on and it looks like Ubuntu does too, but I don't know whether it's standard enough to make a "gb.sendkeys" component. Rob From lordheavym at ...626... Fri Jul 13 08:18:37 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 13 Jul 2007 08:18:37 +0200 Subject: [Gambas-user] Image handling ... In-Reply-To: <21768758.6201184284527077.JavaMail.root@...1708...> References: <21768758.6201184284527077.JavaMail.root@...1708...> Message-ID: <200707130818.41757.lordheavym@...626...> On Friday 13 July 2007 01:55:27 Gareth Bult wrote: > Hi, > > Ok the drawing area cracked it .. :-) > > On another note .. I'm using a Httpclient connection .. > This opens a connection to a web server which streams video shots ... works > great. > > I've yet to discover how to close the channel tho'. > > If I do http.Close, then exit back to the ide, the program is still > running. (I'm assuming the http port is still active hence holding the > program open) > > How do I force a close of the http connection from the client end ? > > Gareth. > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Sent: Thursday, July 12, 2007 9:31:20 PM (GMT) Europe/London > Subject: Re: [Gambas-user] Image handling ... > > On jeudi 12 juillet 2007, Gareth Bult wrote: > > Sorry, SVN .. recompiled this week ... > > > > -- > > Gareth Bult, Encryptec Limited > > Tel: 0845 25 77033, Mob: 07891 389657 > > Email: gareth at ...1689... > > Statements made are at all times subject to Encryptec's Terms and > > Conditions of Business, which are available upon request. > > > > ----- Original Message ----- > > From: "Benoit Minisini" > > To: "mailing list for gambas users" > > Sent: Thursday, July 12, 2007 9:15:43 AM (GMT) Europe/London > > Subject: Re: [Gambas-user] Image handling ... > > > > On jeudi 12 juillet 2007, Gareth Bult wrote: > > > Hi, > > > > > > I'm working on a CCTV application using AXIS IP cameras and I've > > > managed to display a moving video feed from the camera in a Gambas > > > application. > > > > > > I have two questions if anyone can help; > > > > > > a. Is there any way of getting a chunk of data acquired off the network > > > into an image without doing; File.Save("/tmp/temp") > > > obj.Picture.Flush > > > obj.Picture = Picture["/tmp/temp"] > > > (i.e. directly) > > Not at the moment. But you should do it this way: > > DIM hPict AS Picture > > File.Save("/tmp/xxxx") > hPict = Picture.Load("/tmp/xxxx") > > By using "/tmp", and a tmpfs system file, you don't lose too much time > writing a file and read it back. > > > > b. If I display the picture in the root of a Window, it's perfect. > > > If I display the image in a PictureBox or a Button, if flickers very > > > badly. Is there a trick to double buffering objects inside a window so > > > they don't flicker on update ? > > Don't put a big picture inside a Button: the Button actually stores two > versions of the picture you set: one normal, and one for the disabled > version of the normal picture. > > The PictureBox will flicker less if its alignment property is set to > TopLeft. > > But the ideal is using a DrawingArea with Cached = FALSE, and drawing the > picture in the Draw event. Or with Cached = TRUE if your picture is not too > big. > > > > (if it helps I'm running @ 5fps) > > Tell me if you can do better with my advices. > > Regards, I just fixed the problem and commit in the svn see http://svn.sourceforge.net/gambas/?rev=436&view=rev Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From Mike at ...680... Fri Jul 13 09:18:59 2007 From: Mike at ...680... (Mike Keehan) Date: Fri, 13 Jul 2007 08:18:59 +0100 Subject: [Gambas-user] the help gambas In-Reply-To: <13c329a90707121722j5cf486dfh65ca530d236378e6@...627...> References: <13c329a90707121722j5cf486dfh65ca530d236378e6@...627...> Message-ID: <46972763.1060700@...680...> Roberto Estevam wrote: > the help(F1) is not complete :( i need information about XML Thanks. I found some Gambas XML example programs using Google - XMLtest and xmlviewer. Mike. -------------- next part -------------- A non-text attachment was scrubbed... Name: Mike.vcf Type: text/x-vcard Size: 172 bytes Desc: not available URL: From capodastro at ...626... Fri Jul 13 09:52:05 2007 From: capodastro at ...626... (Capodastro) Date: Fri, 13 Jul 2007 09:52:05 +0200 Subject: [Gambas-user] SendKeys for gambas2 ? In-Reply-To: <200707122153.08220.sourceforge-raindog2@...94...> References: <8eb28a500707120541n7a4d51c0v2ac38c2fcc6f8477@...627...> <200707122153.08220.sourceforge-raindog2@...94...> Message-ID: somebody reports that the XTest extension is turned on by default in the most distributions. ben On 7/13/07, Rob wrote: > On Thursday 12 July 2007, Jos? Luis Redrejo wrote: > > It's possible. A present for you: this small c program send "Caps > > Lock" when it is on to assure that caps lock is not active. I don't > > I forgot all about the XTest extension. It would be pretty easy to > wrap that in a Gambas component (though I'm not sure about mapping > whatever keycodes Gambas uses to X keycodes, if they're different) > and if no one's done it by when I have coding time available, > probably early September, I'll do it myself. > > Do all X servers pretty much have the XTest extension turned on by > default? Mandriva has theirs turned on and it looks like Ubuntu does > too, but I don't know whether it's standard enough to make > a "gb.sendkeys" component. > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Fri Jul 13 10:03:05 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 13 Jul 2007 10:03:05 +0200 Subject: [Gambas-user] SendKeys for gambas2 ? In-Reply-To: <200707122153.08220.sourceforge-raindog2@...94...> References: <8eb28a500707120541n7a4d51c0v2ac38c2fcc6f8477@...627...> <200707122153.08220.sourceforge-raindog2@...94...> Message-ID: <200707131003.09531.lordheavym@...626...> On Friday 13 July 2007 03:52:50 Rob wrote: > On Thursday 12 July 2007, Jos? Luis Redrejo wrote: > > It's possible. A present for you: this small c program send "Caps > > Lock" when it is on to assure that caps lock is not active. I don't > > I forgot all about the XTest extension. It would be pretty easy to > wrap that in a Gambas component (though I'm not sure about mapping > whatever keycodes Gambas uses to X keycodes, if they're different) > and if no one's done it by when I have coding time available, > probably early September, I'll do it myself. > > Do all X servers pretty much have the XTest extension turned on by > default? Mandriva has theirs turned on and it looks like Ubuntu does > too, but I don't know whether it's standard enough to make > a "gb.sendkeys" component. > > Rob > There is some functions to translate key string to keysym : http://tronche.com/gui/x/xlib/utilities/keyboard/XStringToKeysym.html A good to way to add this should be through Application.SendKey() :-) Last word is for Benoit ;-p Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gareth at ...1689... Fri Jul 13 10:43:22 2007 From: gareth at ...1689... (Gareth Bult) Date: Fri, 13 Jul 2007 09:43:22 +0100 (BST) Subject: [Gambas-user] Ahhhhhhhhhh! Message-ID: <17812132.6341184316202732.JavaMail.root@...1708...> I've just updated my SVN and rebuilt .. (reconf-all) When I now try to run "gambas2" I get; ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file Help! -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From lordheavym at ...626... Fri Jul 13 10:59:43 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 13 Jul 2007 10:59:43 +0200 Subject: [Gambas-user] Ahhhhhhhhhh! In-Reply-To: <17812132.6341184316202732.JavaMail.root@...1708...> References: <17812132.6341184316202732.JavaMail.root@...1708...> Message-ID: <200707131059.47007.lordheavym@...626...> On Friday 13 July 2007 10:43:22 Gareth Bult wrote: > I've just updated my SVN and rebuilt .. (reconf-all) > > When I now try to run "gambas2" I get; > > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > file > > Help! #437 is broken, do a 'svn up -r 436' to reverse to previous released until the bug is fixed. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From lordheavym at ...626... Fri Jul 13 11:00:08 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 13 Jul 2007 11:00:08 +0200 Subject: [Gambas-user] gb.form.dialog In-Reply-To: <13c329a90707121809t3cd49ef1l47d86acc1ec1c8d2@...627...> References: <13c329a90707121809t3cd49ef1l47d86acc1ec1c8d2@...627...> Message-ID: <200707131100.11822.lordheavym@...626...> On Friday 13 July 2007 03:09:15 Roberto Estevam wrote: > ghostdog at ...1726...:~/trunk$ svn up > Na revis?o 437. > ghostdog at ...1726...:~/trunk$ gambas2 > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > file > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user #437 is broken, do a 'svn up -r 436' to reverse to previous released until the bug is fixed. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From obductor at ...626... Fri Jul 13 11:02:08 2007 From: obductor at ...626... (Roberto Estevam) Date: Fri, 13 Jul 2007 09:02:08 +0000 Subject: [Gambas-user] gb.form.dialog In-Reply-To: <200707131100.11822.lordheavym@...626...> References: <13c329a90707121809t3cd49ef1l47d86acc1ec1c8d2@...627...> <200707131100.11822.lordheavym@...626...> Message-ID: <13c329a90707130202i1bbdd7fel60ed8cd6c5d5b3eb@...627...> Thank u :) On 13/07/07, Laurent Carlier wrote: > > On Friday 13 July 2007 03:09:15 Roberto Estevam wrote: > > ghostdog at ...1726...:~/trunk$ svn up > > Na revis?o 437. > > ghostdog at ...1726...:~/trunk$ gambas2 > > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > > file > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > #437 is broken, do a 'svn up -r 436' to reverse to previous released until > the > bug is fixed. > > Regards, > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas at ...1... Fri Jul 13 11:26:43 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jul 2007 11:26:43 +0200 Subject: [Gambas-user] SendKeys for gambas2 ? In-Reply-To: <200707131003.09531.lordheavym@...626...> References: <200707122153.08220.sourceforge-raindog2@...94...> <200707131003.09531.lordheavym@...626...> Message-ID: <200707131126.43678.gambas@...1...> On vendredi 13 juillet 2007, Laurent Carlier wrote: > On Friday 13 July 2007 03:52:50 Rob wrote: > > On Thursday 12 July 2007, Jos? Luis Redrejo wrote: > > > It's possible. A present for you: this small c program send "Caps > > > Lock" when it is on to assure that caps lock is not active. I don't > > > > I forgot all about the XTest extension. It would be pretty easy to > > wrap that in a Gambas component (though I'm not sure about mapping > > whatever keycodes Gambas uses to X keycodes, if they're different) > > and if no one's done it by when I have coding time available, > > probably early September, I'll do it myself. > > > > Do all X servers pretty much have the XTest extension turned on by > > default? Mandriva has theirs turned on and it looks like Ubuntu does > > too, but I don't know whether it's standard enough to make > > a "gb.sendkeys" component. > > > > Rob > > There is some functions to translate key string to keysym : > http://tronche.com/gui/x/xlib/utilities/keyboard/XStringToKeysym.html > > A good to way to add this should be through Application.SendKey() :-) > > Last word is for Benoit ;-p > > Regards, 1) I suggest Desktop.SendKey(s). This is the class for desktop related things. 2) You must test that the XTEST extension is available. There is a X API for that, but I don't remember which one. 3) No need for a new component. You can put the code in gb.qt. I will put it in gb.gtk too. In the future, maybe all desktop related things should be put in gb.desktop - At the moment it is written in Gambas, so this is just a matter of creating a C component and put the Gambas part in it. Regards, -- Benoit Minisini From gambas at ...1... Fri Jul 13 11:28:20 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jul 2007 11:28:20 +0200 Subject: [Gambas-user] gb.form.dialog In-Reply-To: <13c329a90707130202i1bbdd7fel60ed8cd6c5d5b3eb@...627...> References: <13c329a90707121809t3cd49ef1l47d86acc1ec1c8d2@...627...> <200707131100.11822.lordheavym@...626...> <13c329a90707130202i1bbdd7fel60ed8cd6c5d5b3eb@...627...> Message-ID: <200707131128.20598.gambas@...1...> On vendredi 13 juillet 2007, Roberto Estevam wrote: > Thank u :) > > On 13/07/07, Laurent Carlier wrote: > > On Friday 13 July 2007 03:09:15 Roberto Estevam wrote: > > > ghostdog at ...1726...:~/trunk$ svn up > > > Na revis?o 437. > > > ghostdog at ...1726...:~/trunk$ gambas2 > > > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > > > file > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > #437 is broken, do a 'svn up -r 436' to reverse to previous released > > until the > > bug is fixed. > > > > Regards, > > > > I committed some missing files in a new revision - maybe this will help. Regards, -- Benoit Minisini From gareth at ...1689... Fri Jul 13 11:47:42 2007 From: gareth at ...1689... (Gareth Bult) Date: Fri, 13 Jul 2007 10:47:42 +0100 (BST) Subject: [Gambas-user] Ahhhhhhhhhh! In-Reply-To: <200707131059.47007.lordheavym@...626...> Message-ID: <33523922.6681184320062553.JavaMail.root@...1708...> Ok, thanks, I'm back up. The httpclient fix works .. although it took me a second that I needed to do a httpclient.stop, as opposed to a close ... Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Friday, July 13, 2007 9:59:43 AM (GMT) Europe/London Subject: Re: [Gambas-user] Ahhhhhhhhhh! On Friday 13 July 2007 10:43:22 Gareth Bult wrote: > I've just updated my SVN and rebuilt .. (reconf-all) > > When I now try to run "gambas2" I get; > > ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > file > > Help! #437 is broken, do a 'svn up -r 436' to reverse to previous released until the bug is fixed. Regards, From gareth at ...1689... Fri Jul 13 11:50:47 2007 From: gareth at ...1689... (Gareth Bult) Date: Fri, 13 Jul 2007 10:50:47 +0100 (BST) Subject: [Gambas-user] Image handling ... In-Reply-To: <200707122231.20377.gambas@...1...> Message-ID: <13345066.6711184320247041.JavaMail.root@...1708...> Ok, It might be worth a little review here ... This works fine; File.Save("/tmp/temp", buffer) $pic.Flush $pic = Picture["/tmp/temp"] canvas.Refresh PUBLIC SUB canvas_Draw() draw.Picture($pic, 0, 0, 320, 240) END This does *not*; File.Save("/tmp/temp", buffer) '$pic.Flush $pic = Picture["/tmp/temp"] canvas.Refresh Neither does this; File.Save("/tmp/temp", buffer) $pic.Flush $pic.Load("/tmp/temp") canvas.Refresh It "looks" like something is caching the image somewhere - which is probably great for general performance, but ain't so good for moving images ... Regards, Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 12, 2007 9:31:20 PM (GMT) Europe/London Subject: Re: [Gambas-user] Image handling ... On jeudi 12 juillet 2007, Gareth Bult wrote: > Sorry, SVN .. recompiled this week ... > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Sent: Thursday, July 12, 2007 9:15:43 AM (GMT) Europe/London > Subject: Re: [Gambas-user] Image handling ... > > On jeudi 12 juillet 2007, Gareth Bult wrote: > > Hi, > > > > I'm working on a CCTV application using AXIS IP cameras and I've managed > > to display a moving video feed from the camera in a Gambas application. > > > > I have two questions if anyone can help; > > > > a. Is there any way of getting a chunk of data acquired off the network > > into an image without doing; File.Save("/tmp/temp") > > obj.Picture.Flush > > obj.Picture = Picture["/tmp/temp"] > > (i.e. directly) Not at the moment. But you should do it this way: DIM hPict AS Picture File.Save("/tmp/xxxx") hPict = Picture.Load("/tmp/xxxx") By using "/tmp", and a tmpfs system file, you don't lose too much time writing a file and read it back. > > > > b. If I display the picture in the root of a Window, it's perfect. > > If I display the image in a PictureBox or a Button, if flickers very > > badly. Is there a trick to double buffering objects inside a window so > > they don't flicker on update ? Don't put a big picture inside a Button: the Button actually stores two versions of the picture you set: one normal, and one for the disabled version of the normal picture. The PictureBox will flicker less if its alignment property is set to TopLeft. But the ideal is using a DrawingArea with Cached = FALSE, and drawing the picture in the Draw event. Or with Cached = TRUE if your picture is not too big. > > > > (if it helps I'm running @ 5fps) Tell me if you can do better with my advices. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jul 13 12:12:41 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jul 2007 12:12:41 +0200 Subject: [Gambas-user] Image handling ... In-Reply-To: <13345066.6711184320247041.JavaMail.root@...1708...> References: <13345066.6711184320247041.JavaMail.root@...1708...> Message-ID: <200707131212.41524.gambas@...1...> On vendredi 13 juillet 2007, Gareth Bult wrote: > Ok, > > It might be worth a little review here ... > > This works fine; > > File.Save("/tmp/temp", buffer) > $pic.Flush > $pic = Picture["/tmp/temp"] I told you not to do that, byt $pic = Picture.Load("/tmp/temp") > canvas.Refresh > > PUBLIC SUB canvas_Draw() > draw.Picture($pic, 0, 0, 320, 240) > END > > This does *not*; > > File.Save("/tmp/temp", buffer) > '$pic.Flush > $pic = Picture["/tmp/temp"] > canvas.Refresh > > Neither does this; > > File.Save("/tmp/temp", buffer) > $pic.Flush > $pic.Load("/tmp/temp") This syntax works in Gambas 1.0, not in Gambas 1.9.x. Regards, -- Benoit Minisini From gareth at ...1689... Fri Jul 13 12:18:45 2007 From: gareth at ...1689... (Gareth Bult) Date: Fri, 13 Jul 2007 11:18:45 +0100 (BST) Subject: [Gambas-user] Image handling ... In-Reply-To: <200707131212.41524.gambas@...1...> Message-ID: <5202485.6741184321925836.JavaMail.root@...1708...> Ok, thanks ... I didn't spot the difference initially between; $pic.Load and $pic = Picture.Load $pic = Picture.Load works ok .. It's a bit confusing having $pic.Load available, not work and not give an error tho' ... Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Friday, July 13, 2007 11:12:41 AM (GMT) Europe/London Subject: Re: [Gambas-user] Image handling ... On vendredi 13 juillet 2007, Gareth Bult wrote: > Ok, > > It might be worth a little review here ... > > This works fine; > > File.Save("/tmp/temp", buffer) > $pic.Flush > $pic = Picture["/tmp/temp"] I told you not to do that, byt $pic = Picture.Load("/tmp/temp") > canvas.Refresh > > PUBLIC SUB canvas_Draw() > draw.Picture($pic, 0, 0, 320, 240) > END > > This does *not*; > > File.Save("/tmp/temp", buffer) > '$pic.Flush > $pic = Picture["/tmp/temp"] > canvas.Refresh > > Neither does this; > > File.Save("/tmp/temp", buffer) > $pic.Flush > $pic.Load("/tmp/temp") This syntax works in Gambas 1.0, not in Gambas 1.9.x. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From steven at ...1652... Fri Jul 13 12:55:44 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 13 Jul 2007 12:55:44 +0200 Subject: [Gambas-user] Startup problems on suse 10.2 Message-ID: <200707131255.45362.steven@...1652...> Hi, As I wrote before, I managed (with a little help from Benoit ;-) ) to install the gambas trunk on a new opensuse 10.2 box. When I do gambas2 it works just fine. However, when I start my application (running well on the development computer and some other suse 10.2 boxes) i get the following : FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' What could i do about that ? Thanks, Steven From capodastro at ...626... Fri Jul 13 13:09:28 2007 From: capodastro at ...626... (Capodastro) Date: Fri, 13 Jul 2007 13:09:28 +0200 Subject: [Gambas-user] SendKeys for gambas2 ? In-Reply-To: <200707131126.43678.gambas@...1...> References: <200707122153.08220.sourceforge-raindog2@...94...> <200707131003.09531.lordheavym@...626...> <200707131126.43678.gambas@...1...> Message-ID: ok, guys I see at this point only one option: learn the whole linux related stuff plus gambas. "Great program and great people", so, what else? I learn by analysing blocks of code and subsequently changing them: the references later. With exclusion of some DB examples I didn't find around code examples. Also the sorceforge examples were impossible to see or download. I will visit again the couple of forums, perhaps now there are more posts. I am especially interested for declares and calling directly system libraries. Please, let me know about links with GB related stuff. now let me build a 32 bit vm and install the last GB version... Thanks you all Ben On 7/13/07, Benoit Minisini wrote: > On vendredi 13 juillet 2007, Laurent Carlier wrote: > > On Friday 13 July 2007 03:52:50 Rob wrote: > > > On Thursday 12 July 2007, Jos? Luis Redrejo wrote: > > > > It's possible. A present for you: this small c program send "Caps > > > > Lock" when it is on to assure that caps lock is not active. I don't > > > > > > I forgot all about the XTest extension. It would be pretty easy to > > > wrap that in a Gambas component (though I'm not sure about mapping > > > whatever keycodes Gambas uses to X keycodes, if they're different) > > > and if no one's done it by when I have coding time available, > > > probably early September, I'll do it myself. > > > > > > Do all X servers pretty much have the XTest extension turned on by > > > default? Mandriva has theirs turned on and it looks like Ubuntu does > > > too, but I don't know whether it's standard enough to make > > > a "gb.sendkeys" component. > > > > > > Rob > > > > There is some functions to translate key string to keysym : > > http://tronche.com/gui/x/xlib/utilities/keyboard/XStringToKeysym.html > > > > A good to way to add this should be through Application.SendKey() :-) > > > > Last word is for Benoit ;-p > > > > Regards, > > 1) I suggest Desktop.SendKey(s). This is the class for desktop related > things. > > 2) You must test that the XTEST extension is available. There is a X API for > that, but I don't remember which one. > > 3) No need for a new component. You can put the code in gb.qt. I will put it > in gb.gtk too. In the future, maybe all desktop related things should be put > in gb.desktop - At the moment it is written in Gambas, so this is just a > matter of creating a C component and put the Gambas part in it. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbblick at ...770... Fri Jul 13 17:07:43 2007 From: bbblick at ...770... (Bob Blick) Date: Fri, 13 Jul 2007 08:07:43 -0700 Subject: [Gambas-user] Image handling ... In-Reply-To: <200707122231.20377.gambas@...1...> References: <4255922.5431184233181838.JavaMail.root@...1708...> <200707122231.20377.gambas@...1...> Message-ID: <4697953F.9020001@...770...> Benoit Minisini wrote: > But the ideal is using a DrawingArea with Cached = FALSE, and drawing the > picture in the Draw event. Or with Cached = TRUE if your picture is not too > big. How does a DrawingArea work with a Picture object, such as one gets from a VideoDevice? Thanks, Bob From gambas at ...1... Fri Jul 13 17:18:06 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jul 2007 17:18:06 +0200 Subject: [Gambas-user] Startup problems on suse 10.2 In-Reply-To: <200707131255.45362.steven@...1652...> References: <200707131255.45362.steven@...1652...> Message-ID: <200707131718.06853.gambas@...1...> On vendredi 13 juillet 2007, Steven Lobbezoo wrote: > Hi, > > As I wrote before, I managed (with a little help from Benoit ;-) ) to > install the gambas trunk on a new opensuse 10.2 box. When I do gambas2 it > works just fine. > > However, when I start my application (running well on the development > computer and some other suse 10.2 boxes) i get the following : > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > What could i do about that ? > > Thanks, > Steven > Try to open the FMain form in the IDE, change it, save it back, and recompile. This will remove the reference to the AutoResize property that has been removed since you made your program. Regards, -- Benoit Minisini From steven at ...1652... Fri Jul 13 17:42:03 2007 From: steven at ...1652... (Steven Lobbezoo) Date: Fri, 13 Jul 2007 17:42:03 +0200 Subject: [Gambas-user] Startup problems on suse 10.2 In-Reply-To: <200707131718.06853.gambas@...1...> References: <200707131255.45362.steven@...1652...> <200707131718.06853.gambas@...1...> Message-ID: <200707131742.03319.steven@...1652...> Thanks Benoit, Le vendredi 13 juillet 2007 17:18, Benoit Minisini a ?crit?: > On vendredi 13 juillet 2007, Steven Lobbezoo wrote: > > Hi, > > > > As I wrote before, I managed (with a little help from Benoit ;-) ) to > > install the gambas trunk on a new opensuse 10.2 box. When I do gambas2 it > > works just fine. > > > > However, when I start my application (running well on the development > > computer and some other suse 10.2 boxes) i get the following : > > > > FMain.?.0: #11: Unknown symbol 'AutoResize' in class 'FMain' > > > > What could i do about that ? > > > > Thanks, > > Steven > > Try to open the FMain form in the IDE, change it, save it back, and > recompile. This will remove the reference to the AutoResize property that > has been removed since you made your program. > > Regards, From lordheavym at ...626... Fri Jul 13 17:45:17 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 13 Jul 2007 17:45:17 +0200 Subject: [Gambas-user] autotools base installer for gambas2 projects Message-ID: <200707131745.21980.lordheavym@...626...> I've done some work with autotools for a personnal project, here is some results. Theses files allow you to build your gambas project with the classic ./configure, make, make install, make dist, make uninstall. The currents limitations are : - doesn't support gambas component building (not really hard to add) - support only one project. The scripts will add automaticly project name and version to the package created with make dist. Components needed for the build are detected (perhaps not perfectly). Gambas2 utilities are detected too (gba2 and gbc2) this simple configure.ac do the trick : dnl ---- Initialization AC_INIT(configure.ac) GB_INIT_PROJECT(myproject) dnl ---- Create makefiles AC_OUTPUT( \ Makefile \ ) the output : lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ ./reconf /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gambas2 binaries... Ok checking for gb.qt component... Ok checking for gb.net component... Ok checking for gb.net.curl component... Ok configure: creating ./config.status config.status: creating Makefile lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ make Compiling GameOnLinux... OK lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ sudo make install make[1]: entrant dans le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? Installing GameOnLinux.gambas file in /usr/local/bin... make[1]: Rien ? faire pour ? install-data-am ?. make[1]: quittant le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ sudo make uninstall Removing GameOnLinux.gambas file... lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ make dist { test ! -d GameOnLinux-0.0.1 || { find GameOnLinux-0.0.1 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr GameOnLinux-0.0.1; }; } mkdir GameOnLinux-0.0.1 make \ top_distdir="GameOnLinux-0.0.1" distdir="GameOnLinux-0.0.1" \ dist-hook make[1]: entrant dans le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? make[1]: quittant le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? find GameOnLinux-0.0.1 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec /bin/bash /home/lordh/gbSVN/gameonlinuxHome/trunk/install-sh -c -m a+r {} {} \; \ || chmod -R a+r GameOnLinux-0.0.1 tardir=GameOnLinux-0.0.1 && /bin/bash /home/lordh/gbSVN/gameonlinuxHome/trunk/missing --run tar chof - "$tardir" | GZIP=--best gzip -c >GameOnLinux-0.0.1.tar.gz { test ! -d GameOnLinux-0.0.1 || { find GameOnLinux-0.0.1 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr GameOnLinux-0.0.1; }; } Have fun ! -------------- next part -------------- ####################################################################################### ## ## GB_FIND() macro is part of gambas2 project ## by Benoit Minisini ## others are from me (Laurent Carlier) ## ####################################################################################### ## --------------------------------------------------------------------------- ## GB_INIT_PROJECT ## Initialization and checking for gambas things ## ## $1 = gambas2 project to build ## --------------------------------------------------------------------------- AC_DEFUN([GB_INIT_PROJECT], [ if !(test -e $1/.project); then AC_MSG_ERROR(Cannot find .project file for $1 !) fi AM_INIT_AUTOMAKE(`cat $1/.project | grep Title | sed s/"Title="//g`, `cat $1/.project | grep Version | sed s/"Version="//g`) ## List of needed components COMPONENTS=`cat $1/.project | grep Library | sed s/"Library="//g` AC_MSG_CHECKING(for gambas2 binaries) GB_FIND(gbc2 gba2,/usr /usr/local, bin sbin) if test "$gb_val" != "no"; then AC_MSG_RESULT(Ok) gb_path=$gb_val AC_SUBST(gb_path) else AC_MSG_RESULT(No) AC_MSG_ERROR(Failed to find gbc2 and gba2 utilities, check your gambas2 installation !) fi for comp in $COMPONENTS; do AC_MSG_CHECKING(for $comp component) GB_FIND(${comp}.component, /usr /usr/local, lib/gambas2) if test "$gb_val" != "no"; then AC_MSG_RESULT(Ok) else AC_MSG_RESULT(No) AC_MSG_ERROR(Failed to find $comp component !) fi done ]) ## --------------------------------------------------------------------------- ## GB_FIND ## Find files in directories ## ## $1 = Files to search ## $2 = Directories ## $3 = Sub-directories patterns ## ## Returns a path list in $gb_val ## --------------------------------------------------------------------------- AC_DEFUN([GB_FIND], [ dnl echo "Searching $1, $2, $3" gb_val="" gb_save=`pwd` gb_file_list="$1" for gb_main_dir in $2; do if test -d $gb_main_dir; then cd $gb_main_dir for gb_search_dir in $3; do for gb_dir in $gb_search_dir/ $gb_search_dir/*/ $gb_search_dir/*/*/; do gb_new_file_list="" gb_find_dir="" for gb_file in $gb_file_list; do gb_find=no if test -r "$gb_main_dir/$gb_dir/$gb_file" || test -d "$gb_main_dir/$gb_dir/$gb_file"; then ifelse($4,[], gb_find=yes, for gb_test in $4; do gb_output=`ls -la $gb_main_dir/$gb_dir/$gb_file | grep "$gb_test"` if test "x$gb_output" != "x"; then gb_find=yes fi done ) fi if test "$gb_find" = "yes"; then if test "x$gb_find_dir" = "x"; then if test "x$gb_val" = "x"; then gb_val="$gb_main_dir/$gb_dir" else gb_val="$gb_val $gb_main_dir/$gb_dir" fi fi gb_find_dir=yes else gb_new_file_list="$gb_new_file_list $gb_file" fi done gb_file_list=$gb_new_file_list if test "x$gb_file_list" = "x " || test "x$gb_file_list" = "x"; then break 3 fi done done fi done if test "x$gb_file_list" != "x " && test "x$gb_file_list" != "x"; then gb_val=no fi cd $gb_save ]) -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf Type: application/x-shellscript Size: 82 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.am Type: text/x-makefile Size: 609 bytes Desc: not available URL: -------------- next part -------------- dnl ---- Initialization AC_INIT(configure.ac) GB_INIT_PROJECT(GameOnLinux) dnl ---- Create makefiles AC_OUTPUT( \ Makefile \ ) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From sourceforge-raindog2 at ...94... Fri Jul 13 19:23:07 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 13 Jul 2007 13:23:07 -0400 Subject: [Gambas-user] autotools base installer for gambas2 projects In-Reply-To: <200707131745.21980.lordheavym@...626...> References: <200707131745.21980.lordheavym@...626...> Message-ID: <200707131323.08225.sourceforge-raindog2@...94...> On Friday 13 July 2007, Laurent Carlier wrote: > Theses files allow you to build your gambas project with the > classic ./configure, make, make install, make dist, make uninstall. Thank you! At least from an RPM standpoint, I think this will make packaging of Gambas projects a lot easier and more standard. I think the same will be true of .deb packages. Rob From gambas at ...1... Sat Jul 14 23:02:17 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jul 2007 23:02:17 +0200 Subject: [Gambas-user] About the revision #443 Message-ID: <200707142302.18110.gambas@...1...> For those who compile the last trunk version: With this last revison, you will have to reconfigure and recompile everything, (./reconf; ./configure -C; make) otherwise you will have crashes. Regards, -- Benoit Minisini From gambas at ...1... Sat Jul 14 23:04:03 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jul 2007 23:04:03 +0200 Subject: [Gambas-user] autotools base installer for gambas2 projects In-Reply-To: <200707131745.21980.lordheavym@...626...> References: <200707131745.21980.lordheavym@...626...> Message-ID: <200707142304.03291.gambas@...1...> On vendredi 13 juillet 2007, Laurent Carlier wrote: > I've done some work with autotools for a personnal project, here is some > results. > > Theses files allow you to build your gambas project with the > classic ./configure, make, make install, make dist, make uninstall. The > currents limitations are : > - doesn't support gambas component building (not really hard to add) > - support only one project. > > The scripts will add automaticly project name and version to the package > created with make dist. Components needed for the build are detected > (perhaps not perfectly). Gambas2 utilities are detected too (gba2 and gbc2) > > this simple configure.ac do the trick : > dnl ---- Initialization > > AC_INIT(configure.ac) > GB_INIT_PROJECT(myproject) > > dnl ---- Create makefiles > > AC_OUTPUT( \ > Makefile \ > ) > > the output : > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ ./reconf > /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of > AM_PATH_SMPEG > run info '(automake)Extending aclocal' > or see http://sources.redhat.com/automake/automake.html#Extending-aclocal > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking for gambas2 binaries... Ok > checking for gb.qt component... Ok > checking for gb.net component... Ok > checking for gb.net.curl component... Ok > configure: creating ./config.status > config.status: creating Makefile > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ make > Compiling GameOnLinux... > OK > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ sudo make install > make[1]: entrant dans le > r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? > Installing GameOnLinux.gambas file in /usr/local/bin... > make[1]: Rien ? faire pour ? install-data-am ?. > make[1]: quittant le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ sudo make uninstall > Removing GameOnLinux.gambas file... > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ make dist > { test ! -d GameOnLinux-0.0.1 || { find GameOnLinux-0.0.1 -type > d ! -perm -200 -exec chmod u+w {} ';' && rm -fr GameOnLinux-0.0.1; }; } > mkdir GameOnLinux-0.0.1 > make \ > top_distdir="GameOnLinux-0.0.1" distdir="GameOnLinux-0.0.1" \ > dist-hook > make[1]: entrant dans le > r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? > make[1]: quittant le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? > find GameOnLinux-0.0.1 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ > ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ > ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ > ! -type > d ! -perm -444 -exec /bin/bash > /home/lordh/gbSVN/gameonlinuxHome/trunk/install-sh -c -m a+r {} {} \; \ > > || chmod -R a+r GameOnLinux-0.0.1 > > tardir=GameOnLinux-0.0.1 > && /bin/bash /home/lordh/gbSVN/gameonlinuxHome/trunk/missing --run tar > chof - "$tardir" | GZIP=--best gzip -c >GameOnLinux-0.0.1.tar.gz > { test ! -d GameOnLinux-0.0.1 || { find GameOnLinux-0.0.1 -type > d ! -perm -200 -exec chmod u+w {} ';' && rm -fr GameOnLinux-0.0.1; }; } > > > > Have fun ! Is it possible that you put that inside the IDE? In a clean way of course :-) -- Benoit Minisini From gambas at ...1... Sat Jul 14 23:11:48 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jul 2007 23:11:48 +0200 Subject: [Gambas-user] Re; EXEC / Embed In-Reply-To: <14367013.4751183631845542.JavaMail.root@...1708...> References: <14367013.4751183631845542.JavaMail.root@...1708...> Message-ID: <200707142311.48717.gambas@...1...> On jeudi 05 juillet 2007, Gareth Bult wrote: > Hi, > > I used to be able to embed an RDP session within a window using the "EMBED" > module. (on 1.9.49, earlier SVN) Although I can still do this with ssh, > rdesktop seems to have stopped working (?) > > DIM cmd = string[] = > ["rdesktop","-g","1024x768","-a","8","-T","desktop",address] > > EXEC cmd > WAIT 3 > id = Desktop.Find("rdesktop") ' this succeeds! > embed.embed(id) ' this succeeds too! > > .. > I get the screen apparently starting and then console then shows > "connection reset by peer" .. > > Happens on all the machines I try to rdesktop to .. > > If I comment out the embed command things work fine. (I just get rdesktop > in it's own window) > > Anyone any ideas ? > > tia > Gareth/ Does it work if you use the Embedder example to embed rdesktop? -- Benoit Minisini From lordheavym at ...626... Sun Jul 15 00:15:40 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Sun, 15 Jul 2007 00:15:40 +0200 Subject: [Gambas-user] autotools base installer for gambas2 projects In-Reply-To: <200707142304.03291.gambas@...1...> References: <200707131745.21980.lordheavym@...626...> <200707142304.03291.gambas@...1...> Message-ID: <200707150015.44080.lordheavym@...626...> On Saturday 14 July 2007 23:04:03 Benoit Minisini wrote: > On vendredi 13 juillet 2007, Laurent Carlier wrote: > > I've done some work with autotools for a personnal project, here is some > > results. > > > > Theses files allow you to build your gambas project with the > > classic ./configure, make, make install, make dist, make uninstall. The > > currents limitations are : > > - doesn't support gambas component building (not really hard to add) > > - support only one project. > > > > The scripts will add automaticly project name and version to the package > > created with make dist. Components needed for the build are detected > > (perhaps not perfectly). Gambas2 utilities are detected too (gba2 and > > gbc2) > > > > this simple configure.ac do the trick : > > dnl ---- Initialization > > > > AC_INIT(configure.ac) > > GB_INIT_PROJECT(myproject) > > > > dnl ---- Create makefiles > > > > AC_OUTPUT( \ > > Makefile \ > > ) > > > > the output : > > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ ./reconf > > /usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of > > AM_PATH_SMPEG > > run info '(automake)Extending aclocal' > > or see > > http://sources.redhat.com/automake/automake.html#Extending-aclocal > > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ ./configure > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for gawk... gawk > > checking whether make sets $(MAKE)... yes > > checking for gambas2 binaries... Ok > > checking for gb.qt component... Ok > > checking for gb.net component... Ok > > checking for gb.net.curl component... Ok > > configure: creating ./config.status > > config.status: creating Makefile > > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ make > > Compiling GameOnLinux... > > OK > > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ sudo make install > > make[1]: entrant dans le > > r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? > > Installing GameOnLinux.gambas file in /usr/local/bin... > > make[1]: Rien ? faire pour ? install-data-am ?. > > make[1]: quittant le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk > > ? lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ sudo make uninstall > > Removing GameOnLinux.gambas file... > > lordh at ...1728...:~/gbSVN/gameonlinuxHome/trunk$ make dist > > { test ! -d GameOnLinux-0.0.1 || { find GameOnLinux-0.0.1 -type > > d ! -perm -200 -exec chmod u+w {} ';' && rm -fr GameOnLinux-0.0.1; }; } > > mkdir GameOnLinux-0.0.1 > > make \ > > top_distdir="GameOnLinux-0.0.1" distdir="GameOnLinux-0.0.1" \ > > dist-hook > > make[1]: entrant dans le > > r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk ? > > make[1]: quittant le r?pertoire ? /home/lordh/gbSVN/gameonlinuxHome/trunk > > ? find GameOnLinux-0.0.1 -type d ! -perm -777 -exec chmod a+rwx {} \; -o > > \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! > > -perm -400 -exec chmod a+r {} \; -o \ > > ! -type > > d ! -perm -444 -exec /bin/bash > > /home/lordh/gbSVN/gameonlinuxHome/trunk/install-sh -c -m a+r {} {} \; \ > > > > || chmod -R a+r GameOnLinux-0.0.1 > > > > tardir=GameOnLinux-0.0.1 > > && /bin/bash /home/lordh/gbSVN/gameonlinuxHome/trunk/missing --run tar > > chof - "$tardir" | GZIP=--best gzip -c >GameOnLinux-0.0.1.tar.gz > > { test ! -d GameOnLinux-0.0.1 || { find GameOnLinux-0.0.1 -type > > d ! -perm -200 -exec chmod u+w {} ';' && rm -fr GameOnLinux-0.0.1; }; } > > > > > > > > Have fun ! > > Is it possible that you put that inside the IDE? In a clean way of course > :-) I guess it should be possible, even in a clean way ;-p. Will take a look as soon as possible and send you the changes for review. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From timothy.marshal-nichols at ...247... Sun Jul 15 11:03:17 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 15 Jul 2007 10:03:17 +0100 Subject: [Gambas-user] ListBox numeric sorting Message-ID: <000901c7c6be$fd881bb0$6401a8c0@...1587...> Hello, I wanted to sort some numbers in a ListBox by setting the Sorted property to true. Alas I am having some trouble getting usable results. Example 1: Take the numbers: "1", "45", "234", "1234" This will be sorted (correctly) in the ListBox according to the ASCII sort order. But it is not that useful when you want to display a long list of numbers. Example 2: Take the numbers: "0001", "0045", "0234", "1234" This will be sorted (correctly) according to the ASCII sort order. Numbers will be in the correct order. But it is not very readable. Example 3: Take the numbers: " 1", " 45", " 234", "1234" This is the one I want. Numbers have been padded with spaces. But it gives the same sort order as example 1!!! They are NOT in the correct ASCII sort order! The spaces appear to have been removed before sorting. Example 4: Take the numbers: "...1", "..45", ".234", "1234" Oddly gives the same sort order as example 1. The same goes for any other non alphanumeric characters e.g.: /#&.= Example 5: Take the numbers: "AAA1", "AA45", "A234", "1234" This gives the correct ASCII sort order. (Obviously not in the numeric sort order.) But, of course, it is not very useful. It's almost as if all non alphanumeric characters are removed from the strings before sorting. This makes it almost impossible to sort numbers readably. And it can give odd results when sorting other strings in a ListBox. Also I have had the same problems with the ColumnView. Thanks 8-{)} Timothy Marshal-Nichols From gambas at ...1... Sun Jul 15 11:08:25 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 15 Jul 2007 11:08:25 +0200 Subject: [Gambas-user] ListBox numeric sorting In-Reply-To: <000901c7c6be$fd881bb0$6401a8c0@...1587...> References: <000901c7c6be$fd881bb0$6401a8c0@...1587...> Message-ID: <200707151108.25573.gambas@...1...> On dimanche 15 juillet 2007, timothy wrote: > Hello, > > I wanted to sort some numbers in a ListBox by setting the Sorted > property to true. Alas I am having some trouble getting usable results. > > Example 1: > Take the numbers: "1", "45", "234", "1234" > This will be sorted (correctly) in the ListBox according to the ASCII > sort order. But it is not that useful when you want to display a long > list of numbers. > > Example 2: > Take the numbers: "0001", "0045", "0234", "1234" > This will be sorted (correctly) according to the ASCII sort order. > Numbers will be in the correct order. But it is not very readable. > > Example 3: > Take the numbers: " 1", " 45", " 234", "1234" > This is the one I want. Numbers have been padded with spaces. But it > gives the same sort order as example 1!!! They are NOT in the correct > ASCII sort order! The spaces appear to have been removed before sorting. > > Example 4: > Take the numbers: "...1", "..45", ".234", "1234" > Oddly gives the same sort order as example 1. The same goes for any > other non alphanumeric characters e.g.: /#&.= > > Example 5: > Take the numbers: "AAA1", "AA45", "A234", "1234" > This gives the correct ASCII sort order. (Obviously not in the numeric > sort order.) But, of course, it is not very useful. > > It's almost as if all non alphanumeric characters are removed from the > strings before sorting. This makes it almost impossible to sort numbers > readably. And it can give odd results when sorting other strings in a > ListBox. > > Also I have had the same problems with the ColumnView. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > Sorting is done by a QT algorithm, and I think it is suitable only for alphabetic strings. In other words, you must do it by hand. You have two solutions: 1) Sort your integers before inserting them in a unsorted ListBox. 2) Use a ColumnView with Sorted = True and its Compare event, that is raised each time the ColumnView needs to compare two elements, so that you can override the default sort. Regards, -- Benoit Minisini From timothy.marshal-nichols at ...247... Sun Jul 15 12:11:27 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 15 Jul 2007 11:11:27 +0100 Subject: [Gambas-user] ListBox numeric sorting In-Reply-To: <200707151108.25573.gambas@...1...> Message-ID: <000a01c7c6c8$85cc3520$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini > Sent: Sunday, 15 July 2007 10:08 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] ListBox numeric sorting > > On dimanche 15 juillet 2007, timothy wrote: > > Hello, > > > > I wanted to sort some numbers in a ListBox by setting the Sorted > > property to true. Alas I am having some trouble getting usable results. > > > > Example 1: > > Take the numbers: "1", "45", "234", "1234" > > This will be sorted (correctly) in the ListBox according to the ASCII > > sort order. But it is not that useful when you want to display a long > > list of numbers. > > > > Example 2: > > Take the numbers: "0001", "0045", "0234", "1234" > > This will be sorted (correctly) according to the ASCII sort order. > > Numbers will be in the correct order. But it is not very readable. > > > > Example 3: > > Take the numbers: " 1", " 45", " 234", "1234" > > This is the one I want. Numbers have been padded with spaces. But it > > gives the same sort order as example 1!!! They are NOT in the correct > > ASCII sort order! The spaces appear to have been removed before sorting. > > > > Example 4: > > Take the numbers: "...1", "..45", ".234", "1234" > > Oddly gives the same sort order as example 1. The same goes for any > > other non alphanumeric characters e.g.: /#&.= > > > > Example 5: > > Take the numbers: "AAA1", "AA45", "A234", "1234" > > This gives the correct ASCII sort order. (Obviously not in the numeric > > sort order.) But, of course, it is not very useful. > > > > It's almost as if all non alphanumeric characters are removed from the > > strings before sorting. This makes it almost impossible to sort numbers > > readably. And it can give odd results when sorting other strings in a > > ListBox. > > > > Also I have had the same problems with the ColumnView. > > > > Thanks > > > > 8-{)} Timothy Marshal-Nichols > > > > > > Sorting is done by a QT algorithm, and I think it is suitable only for > alphabetic strings. > > In other words, you must do it by hand. > > You have two solutions: > > 1) Sort your integers before inserting them in a unsorted ListBox. > > 2) Use a ColumnView with Sorted = True and its Compare event, that is > raised > each time the ColumnView needs to compare two elements, so that you can > override the default sort. > > Regards, > > -- > Benoit Minisini > Thanks. That was an amazingly fast reply. I did not know about the Compare event on the ColumnView. I have ended up using a ColumnView with a single column. Setting the Sorted property to True and adding this event: PUBLIC SUB ColumnViewPorts_Compare(Key AS String, OtherKey AS String) DIM Key1 AS Integer DIM Key2 AS Integer Key1 = CInt(Key) Key2 = CInt(OtherKey) IF Key1 > Key2 THEN ColumnViewPorts.Compare = If(ColumnViewPorts.Columns.Ascending, 1, -1) ELSE IF Key1 < Key2 THEN ColumnViewPorts.Compare = If(ColumnViewPorts.Columns.Ascending, -1, 1) ELSE ColumnViewPorts.Compare = 0 END IF END This works fine (so long as my one column only has numbers in it). And you do not need any padding on the numbers. The If(...) is needed handle the ascending and descending sort order. Thanks 8-{)} Timothy Marshal-Nichols From gambas at ...1... Sun Jul 15 14:59:20 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 15 Jul 2007 14:59:20 +0200 Subject: [Gambas-user] ListBox numeric sorting In-Reply-To: <000a01c7c6c8$85cc3520$6401a8c0@...1587...> References: <000a01c7c6c8$85cc3520$6401a8c0@...1587...> Message-ID: <200707151459.20460.gambas@...1...> On dimanche 15 juillet 2007, timothy wrote: > > -----Original Message----- > > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > > bounces at lists.sourceforge.net] On Behalf Of Benoit Minisini > > Sent: Sunday, 15 July 2007 10:08 AM > > To: mailing list for gambas users > > Subject: Re: [Gambas-user] ListBox numeric sorting > > > > On dimanche 15 juillet 2007, timothy wrote: > > > Hello, > > > > > > I wanted to sort some numbers in a ListBox by setting the Sorted > > > property to true. Alas I am having some trouble getting usable > > results. > > > > Example 1: > > > Take the numbers: "1", "45", "234", "1234" > > > This will be sorted (correctly) in the ListBox according to the > > ASCII > > > > sort order. But it is not that useful when you want to display a > > long > > > > list of numbers. > > > > > > Example 2: > > > Take the numbers: "0001", "0045", "0234", "1234" > > > This will be sorted (correctly) according to the ASCII sort order. > > > Numbers will be in the correct order. But it is not very readable. > > > > > > Example 3: > > > Take the numbers: " 1", " 45", " 234", "1234" > > > This is the one I want. Numbers have been padded with spaces. But it > > > gives the same sort order as example 1!!! They are NOT in the > > correct > > > > ASCII sort order! The spaces appear to have been removed before > > sorting. > > > > Example 4: > > > Take the numbers: "...1", "..45", ".234", "1234" > > > Oddly gives the same sort order as example 1. The same goes for any > > > other non alphanumeric characters e.g.: /#&.= > > > > > > Example 5: > > > Take the numbers: "AAA1", "AA45", "A234", "1234" > > > This gives the correct ASCII sort order. (Obviously not in the > > numeric > > > > sort order.) But, of course, it is not very useful. > > > > > > It's almost as if all non alphanumeric characters are removed from > > the > > > > strings before sorting. This makes it almost impossible to sort > > numbers > > > > readably. And it can give odd results when sorting other strings in > > a > > > > ListBox. > > > > > > Also I have had the same problems with the ColumnView. > > > > > > Thanks > > > > > > 8-{)} Timothy Marshal-Nichols > > > > > > > Sorting is done by a QT algorithm, and I think it is suitable only for > > alphabetic strings. > > > > In other words, you must do it by hand. > > > > You have two solutions: > > > > 1) Sort your integers before inserting them in a unsorted ListBox. > > > > 2) Use a ColumnView with Sorted = True and its Compare event, that is > > raised > > each time the ColumnView needs to compare two elements, so that you > > can > > > override the default sort. > > > > Regards, > > > > -- > > Benoit Minisini > > Thanks. That was an amazingly fast reply. I did not know about the > Compare event on the ColumnView. > > I have ended up using a ColumnView with a single column. Setting the > Sorted property to True and adding this event: > > PUBLIC SUB ColumnViewPorts_Compare(Key AS String, OtherKey AS String) > DIM Key1 AS Integer > DIM Key2 AS Integer > Key1 = CInt(Key) > Key2 = CInt(OtherKey) > IF Key1 > Key2 THEN > ColumnViewPorts.Compare = If(ColumnViewPorts.Columns.Ascending, 1, > -1) > ELSE IF Key1 < Key2 THEN > ColumnViewPorts.Compare = If(ColumnViewPorts.Columns.Ascending, -1, > 1) > ELSE > ColumnViewPorts.Compare = 0 > END IF > END > > This works fine (so long as my one column only has numbers in it). And > you do not need any padding on the numbers. The If(...) is needed handle > the ascending and descending sort order. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > Actually you found a bug: Normally, you don't have to manage the Ascending property, it is done by the control. The Compare event handler just have to set the Compare property to 1 if Key > OtherKey, -1 if Key < OtherKey, or 0 if Key = OtherKey. I will fix that in the next release. Regards, -- Benoit Minisini From gareth at ...1689... Sun Jul 15 21:54:39 2007 From: gareth at ...1689... (Gareth Bult) Date: Sun, 15 Jul 2007 20:54:39 +0100 (BST) Subject: [Gambas-user] Image handling ... In-Reply-To: <4697953F.9020001@...770...> Message-ID: <60671.8001184529279175.JavaMail.root@...1708...> What I'm doing is; PRIVATE $pic as Picture Every time an image comes in I call; File.Save("/tmp/temp",buffer) $pic = Picture.Load("/tmp/temp") canvas.refresh Where buffer comes in from the camera over a httpclient connection. (and 'canvas' is my drawing area) Then I have; PUBLIC SUB canvas_Draw() draw.Picture($pic,0,0,320,240) END .. this works like a charm .. (I have buffer = FALSE by the way) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Bob Blick" To: "mailing list for gambas users" Sent: Friday, July 13, 2007 4:07:43 PM (GMT) Europe/London Subject: Re: [Gambas-user] Image handling ... Benoit Minisini wrote: > But the ideal is using a DrawingArea with Cached = FALSE, and drawing the > picture in the Draw event. Or with Cached = TRUE if your picture is not too > big. How does a DrawingArea work with a Picture object, such as one gets from a VideoDevice? Thanks, Bob ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Sun Jul 15 21:58:10 2007 From: gareth at ...1689... (Gareth Bult) Date: Sun, 15 Jul 2007 20:58:10 +0100 (BST) Subject: [Gambas-user] Re; EXEC / Embed In-Reply-To: <200707142311.48717.gambas@...1...> Message-ID: <25818003.8031184529490531.JavaMail.root@...1708...> Urm, good point .. yes .. I'll try to do a comparison .. Thanks, Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Saturday, July 14, 2007 10:11:48 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; EXEC / Embed On jeudi 05 juillet 2007, Gareth Bult wrote: > Hi, > > I used to be able to embed an RDP session within a window using the "EMBED" > module. (on 1.9.49, earlier SVN) Although I can still do this with ssh, > rdesktop seems to have stopped working (?) > > DIM cmd = string[] = > ["rdesktop","-g","1024x768","-a","8","-T","desktop",address] > > EXEC cmd > WAIT 3 > id = Desktop.Find("rdesktop") ' this succeeds! > embed.embed(id) ' this succeeds too! > > .. > I get the screen apparently starting and then console then shows > "connection reset by peer" .. > > Happens on all the machines I try to rdesktop to .. > > If I comment out the embed command things work fine. (I just get rdesktop > in it's own window) > > Anyone any ideas ? > > tia > Gareth/ Does it work if you use the Embedder example to embed rdesktop? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From bbblick at ...770... Sun Jul 15 23:29:42 2007 From: bbblick at ...770... (Bob Blick) Date: Sun, 15 Jul 2007 14:29:42 -0700 Subject: [Gambas-user] Image handling ... In-Reply-To: <60671.8001184529279175.JavaMail.root@...1708...> References: <60671.8001184529279175.JavaMail.root@...1708...> Message-ID: <469A91C6.6010308@...770...> Gareth Bult wrote: > What I'm doing is; > > PRIVATE $pic as Picture > > Every time an image comes in I call; > > File.Save("/tmp/temp",buffer) > $pic = Picture.Load("/tmp/temp") > canvas.refresh > > Where buffer comes in from the camera over a httpclient connection. > (and 'canvas' is my drawing area) > > Then I have; > > PUBLIC SUB canvas_Draw() > > draw.Picture($pic,0,0,320,240) > > END > > .. this works like a charm .. > (I have buffer = FALSE by the way) Thanks, I look forward to de-flickering! Cheerful regards, Bob From gambas at ...1... Mon Jul 16 11:58:30 2007 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jul 2007 11:58:30 +0200 Subject: [Gambas-user] Release of Gambas 1.0.19 Message-ID: <200707161158.31069.gambas@...1...> Hi, This release mainly adds a Russian translation to Gambas. This translation has been made by ?????? ?????? (Serguey Irupin). I fixed a little bug in the interpreter, and a memory leak in the mysql database driver too. Regards, -- Benoit Minisini From capodastro at ...626... Mon Jul 16 13:23:51 2007 From: capodastro at ...626... (Capodastro) Date: Mon, 16 Jul 2007 13:23:51 +0200 Subject: [Gambas-user] Install on suse 10.2 Message-ID: After building a virtual machine with suse 10.2 i386 and making all updates I installed the last gambas2. It was really easy, but... ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.db.firebird - gb.db.odbc - gb.gtk.svg - gb.net.curl - gb.qte ************************************************************ Well, I don't know what kind of limitations imposes the absence of qte, for the rest I feel quite content, with the firebird by Stravinsky ready to be listened. However, I am wondering about the 5 modules with missed dependencies. Is there some secret repository for gambas adepts? :) Is there some preferred distro? How to distribute programs and sleep quietly over night? After the last updates on suse 10.2 64bit, gb2 still starts but the modules work no longer. I will take a look. ben From gareth at ...1689... Tue Jul 17 00:04:33 2007 From: gareth at ...1689... (Gareth Bult) Date: Mon, 16 Jul 2007 23:04:33 +0100 (BST) Subject: [Gambas-user] Re; MySQL "timestamp" Message-ID: <19918994.9461184623473114.JavaMail.root@...1708...> Hi, Is there a trick to using a MySQL "timestamp" field from inside Gambas ? It seems to recognise a timestamp as a date type, but reads it looks totally corrupt. Using; $resultSet = connection.Exec("SELECT id,camera,event,image,stamp FROM cache WHERE id = &1",id) In the debugger I see (for example); $resultSet!stamp gives 01/01/-4801 -276:-2:-37 (as opposed to 16-07-2007 17:55:40) .. "Date" fields seem to work fine .. ?? tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Tue Jul 17 14:12:00 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 13:12:00 +0100 (BST) Subject: [Gambas-user] Gambas on a 64bit platform ... Message-ID: <10081232.9721184674320684.JavaMail.root@...1708...> Hi, Anyone got any tips re; an easy way to get a gambas application running on a 64bit machine .. possibly using "linux32". I have a console app (no gui) that I need to get going and I'm trying to avoid having to install a complete 64 bit environment. tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From lordheavym at ...626... Tue Jul 17 14:23:13 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 17 Jul 2007 14:23:13 +0200 Subject: [Gambas-user] update of autotools base installer for gambas2 Message-ID: <200707171423.19490.lordheavym@...626...> Here is an update version of the autotools installer : - Now components can be installed (only with admin rights, not for normal user yet) I've start to add support for autotools based source archive for gambas. It should be through the 'Make source archive' shortcut (see the screenshots) Have fun :p -------------- next part -------------- ####################################################################################### ## ## GB_FIND() macro is part of gambas2 project ## by Benoit Minisini ## others are from me (Laurent Carlier) ## ####################################################################################### ## --------------------------------------------------------------------------- ## GB_INIT_PROJECT ## Initialization and checking for gambas things ## ## $1 = gambas2 project to build ## --------------------------------------------------------------------------- AC_DEFUN([GB_INIT_PROJECT], [ if !(test -e $1/.project); then AC_MSG_ERROR(Cannot find .project file for $1 !) fi AM_INIT_AUTOMAKE($1, `cat $1/.project | grep "Version=" | sed s/"Version="//g`) ## List of needed components COMPONENTS=`cat $1/.project | grep "Library=" | sed s/"Library="//g` ## Check if the project is a component COMPONENT_build=`cat $1/.project | grep "MakeComponent=" | sed s/"MakeComponent="//g` AC_SUBST(COMPONENT_build) AC_MSG_CHECKING(for gambas2 binaries) GB_FIND(gbi2 gbc2 gba2,/usr /usr/local, bin sbin) if test "$gb_val" != "no"; then AC_MSG_RESULT(Ok) gb_path=$gb_val AC_SUBST(gb_path) else AC_MSG_RESULT(No) AC_MSG_ERROR(Failed to find gambas2 utilities, check your gambas2 installation !) fi ## Find component library path GB_FIND(gb.component, /usr /usr/local, lib/gambas2) if test "$gb_val" = "no"; then AC_MSG_ERROR(Failed to find gambas2 library path !) else GBLIBRARY_path=$gb_val AC_SUBST(GBLIBRARY_path) fi ## Find component info path GB_FIND(gb.info, /usr /usr/local, share/gambas2/info) if test "$gb_val" = "no"; then AC_MSG_ERROR(Failed to find gambas2 info path !) else GBINFO_path=$gb_val AC_SUBST(GBINFO_path) fi for comp in $COMPONENTS; do if test "$comp" = "$1"; then continue; fi AC_MSG_CHECKING(for $comp component) GB_FIND(${comp}.component, $GBLIBRARY_path, ./) if test "$gb_val" != "no"; then AC_MSG_RESULT(Ok) else AC_MSG_RESULT(No) AC_MSG_ERROR(Failed to find $comp component !) fi done ]) ## --------------------------------------------------------------------------- ## GB_FIND ## Find files in directories ## ## $1 = Files to search ## $2 = Directories ## $3 = Sub-directories patterns ## ## Returns a path list in $gb_val ## --------------------------------------------------------------------------- AC_DEFUN([GB_FIND], [ dnl echo "Searching $1, $2, $3" gb_val="" gb_save=`pwd` gb_file_list="$1" for gb_main_dir in $2; do if test -d $gb_main_dir; then cd $gb_main_dir for gb_search_dir in $3; do for gb_dir in $gb_search_dir/ $gb_search_dir/*/ $gb_search_dir/*/*/; do gb_new_file_list="" gb_find_dir="" for gb_file in $gb_file_list; do gb_find=no if test -r "$gb_main_dir/$gb_dir/$gb_file" || test -d "$gb_main_dir/$gb_dir/$gb_file"; then ifelse($4,[], gb_find=yes, for gb_test in $4; do gb_output=`ls -la $gb_main_dir/$gb_dir/$gb_file | grep "$gb_test"` if test "x$gb_output" != "x"; then gb_find=yes fi done ) fi if test "$gb_find" = "yes"; then if test "x$gb_find_dir" = "x"; then if test "x$gb_val" = "x"; then gb_val="$gb_main_dir/$gb_dir" else gb_val="$gb_val $gb_main_dir/$gb_dir" fi fi gb_find_dir=yes else gb_new_file_list="$gb_new_file_list $gb_file" fi done gb_file_list=$gb_new_file_list if test "x$gb_file_list" = "x " || test "x$gb_file_list" = "x"; then break 3 fi done done fi done if test "x$gb_file_list" != "x " && test "x$gb_file_list" != "x"; then gb_val=no fi cd $gb_save ]) -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.am Type: text/x-makefile Size: 1720 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: p4.png Type: image/png Size: 30664 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gambas at ...1... Tue Jul 17 15:36:20 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jul 2007 15:36:20 +0200 Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <19918994.9461184623473114.JavaMail.root@...1708...> References: <19918994.9461184623473114.JavaMail.root@...1708...> Message-ID: <200707171536.20361.gambas@...1...> On mardi 17 juillet 2007, Gareth Bult wrote: > Hi, > > Is there a trick to using a MySQL "timestamp" field from inside Gambas ? > > It seems to recognise a timestamp as a date type, but reads it looks > totally corrupt. > > Using; > $resultSet = connection.Exec("SELECT id,camera,event,image,stamp FROM cache > WHERE id = &1",id) > > In the debugger I see (for example); > > $resultSet!stamp gives 01/01/-4801 -276:-2:-37 > (as opposed to 16-07-2007 17:55:40) > > .. "Date" fields seem to work fine .. > > ?? > > tia > Gareth. According to the source code, the "timestamp" are managed, as the other date/time MySQL datatypes. Can you send me your database, or at least the table with just the offending record, in SQL text dump format? Thanks in advance. -- Benoit Minisini From gambas at ...1... Tue Jul 17 15:36:58 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jul 2007 15:36:58 +0200 Subject: [Gambas-user] Ahhhhhhhhhh! In-Reply-To: <33523922.6681184320062553.JavaMail.root@...1708...> References: <33523922.6681184320062553.JavaMail.root@...1708...> Message-ID: <200707171536.58088.gambas@...1...> On vendredi 13 juillet 2007, Gareth Bult wrote: > Ok, thanks, I'm back up. > > The httpclient fix works .. although it took me a second that I needed to > do a httpclient.stop, as opposed to a close ... > > Gareth. Shouldn't HttpClient.Close() do an automatic HttpClient.Stop()? -- Benoit Minisini From jredrejo at ...626... Tue Jul 17 15:38:35 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Tue, 17 Jul 2007 15:38:35 +0200 Subject: [Gambas-user] update of autotools base installer for gambas2 In-Reply-To: <200707171423.19490.lordheavym@...626...> References: <200707171423.19490.lordheavym@...626...> Message-ID: <8eb28a500707170638j556a2a99r94bcd134d77e036a@...627...> wow, I want more ;-) Seriously, some time ago I thought this would be useful to "normalize" the way packages are built from the gambas ide. Using autotools, all the packages only have to execute ./configure --prefix=/usr, make & make install to build the applications, instead of worrying of doing all the stuff from the packager. 2007/7/17, Laurent Carlier : > > Here is an update version of the autotools installer : > - Now components can be installed (only with admin rights, not for normal > user > yet) > > I've start to add support for autotools based source archive for gambas. > It > should be through the 'Make source archive' shortcut > (see the screenshots) > > Have fun :p > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gareth at ...1689... Tue Jul 17 16:10:13 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 15:10:13 +0100 (BST) Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <200707171536.20361.gambas@...1...> Message-ID: <30733853.9811184681413369.JavaMail.root@...1708...> Hi, Here goes .. (it's pretty basic) -- MySQL dump 10.11 -- -- Host: localhost Database: axis -- ------------------------------------------------------ -- Server version 5.0.38-Ubuntu_0ubuntu1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `cache` -- DROP TABLE IF EXISTS `cache`; CREATE TABLE `cache` ( `id` int(11) NOT NULL, `camera` tinyint(1) NOT NULL, `stamp` timestamp NULL default NULL, `event` enum('End','Start') default NULL, `image` mediumblob, KEY `event` (`event`) ) ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; ---- Table structure for table `frames` -- DROP TABLE IF EXISTS `frames`; CREATE TABLE `frames` ( `id` int(11) NOT NULL auto_increment, `camera` tinyint(1) NOT NULL, `stamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `event` enum('End','Start') default NULL, `image` mediumblob, PRIMARY KEY (`id`), KEY `event` (`event`)) ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; ---- Dumping data for table `frames` --LOCK TABLES `frames` WRITE; /*!40000 ALTER TABLE `frames` DISABLE KEYS */; INSERT INTO `frames` VALUES (1,0,'2007-07-16 16:55:40',NULL,NULL) /*!40000 ALTER TABLE `frames` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2007-07-17 14:04:45 -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, July 17, 2007 2:36:20 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; MySQL "timestamp" On mardi 17 juillet 2007, Gareth Bult wrote: > Hi, > > Is there a trick to using a MySQL "timestamp" field from inside Gambas ? > > It seems to recognise a timestamp as a date type, but reads it looks > totally corrupt. > > Using; > $resultSet = connection.Exec("SELECT id,camera,event,image,stamp FROM cache > WHERE id = &1",id) > > In the debugger I see (for example); > > $resultSet!stamp gives 01/01/-4801 -276:-2:-37 > (as opposed to 16-07-2007 17:55:40) > > .. "Date" fields seem to work fine .. > > ?? > > tia > Gareth. According to the source code, the "timestamp" are managed, as the other date/time MySQL datatypes. Can you send me your database, or at least the table with just the offending record, in SQL text dump format? Thanks in advance. -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jul 17 16:10:30 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jul 2007 16:10:30 +0200 Subject: [Gambas-user] update of autotools base installer for gambas2 In-Reply-To: <8eb28a500707170638j556a2a99r94bcd134d77e036a@...627...> References: <200707171423.19490.lordheavym@...626...> <8eb28a500707170638j556a2a99r94bcd134d77e036a@...627...> Message-ID: <200707171610.30472.gambas@...1...> On mardi 17 juillet 2007, Jos? Luis Redrejo wrote: > wow, I want more ;-) > Seriously, some time ago I thought this would be useful to "normalize" the > way packages are built from the gambas ide. Using autotools, all the > packages only have to execute ./configure --prefix=/usr, make & make > install to build the applications, instead of worrying of doing all the > stuff from the packager. > Using autotools for installing gambas project is a good idea, but it breaks package managers - They don't see such installations. So there will be always the need of making gambas project binary packages. Regards, -- Benoit Minisini From gareth at ...1689... Tue Jul 17 16:13:55 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 15:13:55 +0100 (BST) Subject: [Gambas-user] Ahhhhhhhhhh! In-Reply-To: <200707171536.58088.gambas@...1...> Message-ID: <29372089.9841184681635556.JavaMail.root@...1708...> Mmm.. I had expected it to ... :-) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, July 17, 2007 2:36:58 PM (GMT) Europe/London Subject: Re: [Gambas-user] Ahhhhhhhhhh! On vendredi 13 juillet 2007, Gareth Bult wrote: > Ok, thanks, I'm back up. > > The httpclient fix works .. although it took me a second that I needed to > do a httpclient.stop, as opposed to a close ... > > Gareth. Shouldn't HttpClient.Close() do an automatic HttpClient.Stop()? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jul 17 17:02:38 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jul 2007 17:02:38 +0200 Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <30733853.9811184681413369.JavaMail.root@...1708...> References: <30733853.9811184681413369.JavaMail.root@...1708...> Message-ID: <200707171702.38271.gambas@...1...> On mardi 17 juillet 2007, Gareth Bult wrote: > -- MySQL dump 10.11 > -- > -- Host: localhost ? ?Database: axis > -- ------------------------------------------------------ > -- Server version ? ? ? 5.0.38-Ubuntu_0ubuntu1-log > > /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; > /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; > /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; > /*!40101 SET NAMES utf8 */; > /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; > /*!40103 SET TIME_ZONE='+00:00' */; > /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; > /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, > FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, > SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET > @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; > > -- > -- Table structure for table `cache` > -- > > DROP TABLE IF EXISTS `cache`; > CREATE TABLE `cache` ( > ? `id` int(11) NOT NULL, > ? `camera` tinyint(1) NOT NULL, > ? `stamp` timestamp NULL default NULL, > ? `event` enum('End','Start') default NULL, > ? `image` mediumblob, > ? KEY `event` (`event`) > ) ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; > > ---- Table structure for table `frames` > -- > DROP TABLE IF EXISTS `frames`; > CREATE TABLE `frames` ( ?`id` int(11) NOT NULL auto_increment, ?`camera` > tinyint(1) NOT NULL, ?`stamp` timestamp NOT NULL default CURRENT_TIMESTAMP > on update CURRENT_TIMESTAMP, ?`event` enum('End','Start') default NULL, > ?`image` mediumblob, ?PRIMARY KEY ?(`id`), ?KEY `event` (`event`)) > ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; > > ---- Dumping data for table `frames` ? ? ? ? > --LOCK TABLES `frames` WRITE; > /*!40000 ALTER TABLE `frames` DISABLE KEYS */; > INSERT INTO `frames` VALUES (1,0,'2007-07-16 16:55:40',NULL,NULL) > /*!40000 ALTER TABLE `frames` ENABLE KEYS */; > UNLOCK TABLES; > /*!40103 SET TIME_ZONE=@...1729... */; > /*!40101 SET SQL_MODE=@...1730... */; > /*!40014 SET FOREIGN_KEY_CHECKS=@...1731... */; > /*!40014 SET UNIQUE_CHECKS=@...1732... */; > /*!40101 SET CHARACTER_SET_CLIENT=@...1733... */; > /*!40101 SET CHARACTER_SET_RESULTS=@...1734... */; > /*!40101 SET COLLATION_CONNECTION=@...1735... */; > /*!40111 SET SQL_NOTES=@...1736... */; > -- Dump completed on 2007-07-17 14:04:45 This is syntactically incorrect, and it took me a quarter to fix it, because mysql error messages are worse than the g++ ones (yes, it is possible). A ';' was missing, and spaces were replaced by "other" space characters that mysql didn't like. Next time, please send the dump as a file attachment! Regards, -- Benoit Minisini From jredrejo at ...626... Tue Jul 17 17:06:25 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Tue, 17 Jul 2007 17:06:25 +0200 Subject: [Gambas-user] update of autotools base installer for gambas2 In-Reply-To: <200707171610.30472.gambas@...1...> References: <200707171423.19490.lordheavym@...626...> <8eb28a500707170638j556a2a99r94bcd134d77e036a@...627...> <200707171610.30472.gambas@...1...> Message-ID: <8eb28a500707170806ne5ed51bnebff13521de6338a@...627...> No, no, what I mean is using the autotools configure and Makefile to build the package manager. I don't know how rpm or slackware works, but for Debian, when building the package I have to options in the debian/rules file: - use it as a Makefile and write every action: gbc, gba, cp files, etc. - use it to call the Makefile of the application So, the deb would be built from the "autotoolized" project. I don't mean avoid the package manager, but use autotools to build the package. Which, on the other hand, is the usual way to do it. When I package gambas for Debian, I use the configure & Makefiles you include in gambas source. Hope, it's clearer now. Regards. 2007/7/17, Benoit Minisini : > > On mardi 17 juillet 2007, Jos? Luis Redrejo wrote: > > wow, I want more ;-) > > Seriously, some time ago I thought this would be useful to "normalize" > the > > way packages are built from the gambas ide. Using autotools, all the > > packages only have to execute ./configure --prefix=/usr, make & make > > install to build the applications, instead of worrying of doing all the > > stuff from the packager. > > > > Using autotools for installing gambas project is a good idea, but it > breaks > package managers - They don't see such installations. > > So there will be always the need of making gambas project binary packages. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From horechuk at ...981... Tue Jul 17 17:11:41 2007 From: horechuk at ...981... (Paul Horechuk) Date: Tue, 17 Jul 2007 11:11:41 -0400 Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <30733853.9811184681413369.JavaMail.root@...1708...> References: <30733853.9811184681413369.JavaMail.root@...1708...> Message-ID: <200707171111.41672.horechuk@...981...> On July 17, 2007, Gareth Bult wrote: > Hi, > > Here goes .. (it's pretty basic) > > -- MySQL dump 10.11 > -- > -- Host: localhost Database: axis > -- ------------------------------------------------------ > -- Server version 5.0.38-Ubuntu_0ubuntu1-log > > /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; > /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; > /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; > /*!40101 SET NAMES utf8 */; > /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; > /*!40103 SET TIME_ZONE='+00:00' */; > /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; > /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, > FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, > SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET > @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; > > -- > -- Table structure for table `cache` > -- > > DROP TABLE IF EXISTS `cache`; > CREATE TABLE `cache` ( > `id` int(11) NOT NULL, > `camera` tinyint(1) NOT NULL, > `stamp` timestamp NULL default NULL, > `event` enum('End','Start') default NULL, > `image` mediumblob, > KEY `event` (`event`) > ) ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; > > ---- Table structure for table `frames` > -- > DROP TABLE IF EXISTS `frames`; > CREATE TABLE `frames` ( `id` int(11) NOT NULL auto_increment, `camera` > tinyint(1) NOT NULL, `stamp` timestamp NOT NULL default > CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `event` > enum('End','Start') default NULL, `image` mediumblob, PRIMARY KEY > (`id`), KEY `event` (`event`)) ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT > CHARSET=latin1; > > ---- Dumping data for table `frames` > --LOCK TABLES `frames` WRITE; > /*!40000 ALTER TABLE `frames` DISABLE KEYS */; > INSERT INTO `frames` VALUES (1,0,'2007-07-16 16:55:40',NULL,NULL) > /*!40000 ALTER TABLE `frames` ENABLE KEYS */; > UNLOCK TABLES; > /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; > /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; > /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; > /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; > /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; > /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; > /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; > /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; > -- Dump completed on 2007-07-17 14:04:45 > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Benoit Minisini" > To: "mailing list for gambas users" > Sent: Tuesday, July 17, 2007 2:36:20 PM (GMT) Europe/London > Subject: Re: [Gambas-user] Re; MySQL "timestamp" > > On mardi 17 juillet 2007, Gareth Bult wrote: > > Hi, > > > > Is there a trick to using a MySQL "timestamp" field from inside Gambas Pardon me for jumping in here, but aren't timestamps supposed to be returned as longint? They should like something like 1184670240 = Jul 17, 2007 @ 11:04:00. Whenever I worked with timestamps, I had to write a class to convert either way. I understand mysql can convert as a sql command. I found this on the web: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html which has a number of functions dealing with conversions. > > ? > > > > It seems to recognise a timestamp as a date type, but reads it looks > > totally corrupt. > > > > Using; > > $resultSet = connection.Exec("SELECT id,camera,event,image,stamp FROM > > cache WHERE id = &1",id) > > > > In the debugger I see (for example); > > > > $resultSet!stamp gives 01/01/-4801 -276:-2:-37 > > (as opposed to 16-07-2007 17:55:40) > > > > .. "Date" fields seem to work fine .. > > > > ?? > > > > tia > > Gareth. > > According to the source code, the "timestamp" are managed, as the other > date/time MySQL datatypes. > > Can you send me your database, or at least the table with just the > offending record, in SQL text dump format? > > Thanks in advance. -- Paul Horechuk Think Free Use Open Source Software From gareth at ...1689... Tue Jul 17 17:10:48 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 16:10:48 +0100 (BST) Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <200707171702.38271.gambas@...1...> Message-ID: <32648767.9921184685048834.JavaMail.root@...1708...> Sorry, I wasn't expecting you to import it into a real database .. I get the same problem on any timestamp field .. I don't believe the problem is specific to this table ... (My means of testing is to add a 'timestamp' field to a table, read a row, then stop it in the debugger ..) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, July 17, 2007 4:02:38 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; MySQL "timestamp" On mardi 17 juillet 2007, Gareth Bult wrote: > -- MySQL dump 10.11 > -- > -- Host: localhost Database: axis > -- ------------------------------------------------------ > -- Server version 5.0.38-Ubuntu_0ubuntu1-log > > /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; > /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; > /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; > /*!40101 SET NAMES utf8 */; > /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; > /*!40103 SET TIME_ZONE='+00:00' */; > /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; > /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, > FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, > SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET > @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; > > -- > -- Table structure for table `cache` > -- > > DROP TABLE IF EXISTS `cache`; > CREATE TABLE `cache` ( > `id` int(11) NOT NULL, > `camera` tinyint(1) NOT NULL, > `stamp` timestamp NULL default NULL, > `event` enum('End','Start') default NULL, > `image` mediumblob, > KEY `event` (`event`) > ) ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; > > ---- Table structure for table `frames` > -- > DROP TABLE IF EXISTS `frames`; > CREATE TABLE `frames` ( `id` int(11) NOT NULL auto_increment, `camera` > tinyint(1) NOT NULL, `stamp` timestamp NOT NULL default CURRENT_TIMESTAMP > on update CURRENT_TIMESTAMP, `event` enum('End','Start') default NULL, > `image` mediumblob, PRIMARY KEY (`id`), KEY `event` (`event`)) > ENGINE=MyISAM AUTO_INCREMENT=712 DEFAULT CHARSET=latin1; > > ---- Dumping data for table `frames` > --LOCK TABLES `frames` WRITE; > /*!40000 ALTER TABLE `frames` DISABLE KEYS */; > INSERT INTO `frames` VALUES (1,0,'2007-07-16 16:55:40',NULL,NULL) > /*!40000 ALTER TABLE `frames` ENABLE KEYS */; > UNLOCK TABLES; > /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; > /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; > /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; > /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; > /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; > /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; > /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; > /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; > -- Dump completed on 2007-07-17 14:04:45 This is syntactically incorrect, and it took me a quarter to fix it, because mysql error messages are worse than the g++ ones (yes, it is possible). A ';' was missing, and spaces were replaced by "other" space characters that mysql didn't like. Next time, please send the dump as a file attachment! Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Jul 17 17:14:10 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jul 2007 17:14:10 +0200 Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <32648767.9921184685048834.JavaMail.root@...1708...> References: <32648767.9921184685048834.JavaMail.root@...1708...> Message-ID: <200707171714.10884.gambas@...1...> On mardi 17 juillet 2007, Gareth Bult wrote: > Sorry, > > I wasn't expecting you to import it into a real database .. I get the same > problem on any timestamp field .. I don't believe the problem is specific > to this table ... > > (My means of testing is to add a 'timestamp' field to a table, read a row, > then stop it in the debugger ..) > > Gareth. > I found the problem. Timestamp displays differently since MySQL 4.1, and so the current code is broken. I will fix that! :-) -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Jul 17 17:14:39 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 17 Jul 2007 11:14:39 -0400 Subject: [Gambas-user] update of autotools base installer for gambas2 In-Reply-To: <200707171610.30472.gambas@...1...> References: <200707171423.19490.lordheavym@...626...> <8eb28a500707170638j556a2a99r94bcd134d77e036a@...627...> <200707171610.30472.gambas@...1...> Message-ID: <200707171114.39066.sourceforge-raindog2@...94...> On Tuesday 17 July 2007, Benoit Minisini wrote: > Using autotools for installing gambas project is a good idea, but > it breaks package managers - They don't see such installations. > So there will be always the need of making gambas project binary > packages. Still, with a properly configured autotools setup -- one that will use the DESTDIR environment variable if present, and respects make install options as well -- it'll be easy to make binary packages from *outside* the IDE, which should make it easier for people who don't use Gambas and don't read this list to make their own packages. Then I should be able to put out a skeleton .spec file that lets any Mandriva user package any Gambas project by just changing the name and description and building it, and users of other distros can do the same. Rob From gareth at ...1689... Tue Jul 17 17:30:35 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 16:30:35 +0100 (BST) Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <200707171714.10884.gambas@...1...> Message-ID: <28471024.10011184686235571.JavaMail.root@...1708...> :-) tvm. I'm starting to build up quite a collection of applications .. I guess I'll find all the bugs eventually .. ;) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, July 17, 2007 4:14:10 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; MySQL "timestamp" On mardi 17 juillet 2007, Gareth Bult wrote: > Sorry, > > I wasn't expecting you to import it into a real database .. I get the same > problem on any timestamp field .. I don't believe the problem is specific > to this table ... > > (My means of testing is to add a 'timestamp' field to a table, read a row, > then stop it in the debugger ..) > > Gareth. > I found the problem. Timestamp displays differently since MySQL 4.1, and so the current code is broken. I will fix that! :-) -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From pvera at ...729... Tue Jul 17 17:42:37 2007 From: pvera at ...729... (Pablo Vera) Date: Tue, 17 Jul 2007 10:42:37 -0500 Subject: [Gambas-user] Re; MySQL "timestamp" In-Reply-To: <200707171714.10884.gambas@...1...> References: <32648767.9921184685048834.JavaMail.root@...1708...> <200707171714.10884.gambas@...1...> Message-ID: <469CE36D.5030806@...729...> Sorry to jump in, but I guess your new code will check the MySQL version, so that timestamp conversions will work no matter the version of MySQL being used. Pablo _____________________________________________________________________ Benoit Minisini wrote: > On mardi 17 juillet 2007, Gareth Bult wrote: >> Sorry, >> >> I wasn't expecting you to import it into a real database .. I get the same >> problem on any timestamp field .. I don't believe the problem is specific >> to this table ... >> >> (My means of testing is to add a 'timestamp' field to a table, read a row, >> then stop it in the debugger ..) >> >> Gareth. >> > > I found the problem. Timestamp displays differently since MySQL 4.1, and so > the current code is broken. I will fix that! :-) > From gareth at ...1689... Tue Jul 17 18:22:42 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 17:22:42 +0100 (BST) Subject: [Gambas-user] Re; Console applications .. Message-ID: <22237424.10071184689362019.JavaMail.root@...1708...> Hi, Is there a "proper" way to background a gambas console application ... I'm currently doing; application >/dev/null 2>&1 & I'm conscious that it's not closing stdin, but it "seems" to be working ok .. Any recommendations ? Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Jul 17 18:51:23 2007 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jul 2007 18:51:23 +0200 Subject: [Gambas-user] Re; Console applications .. In-Reply-To: <22237424.10071184689362019.JavaMail.root@...1708...> References: <22237424.10071184689362019.JavaMail.root@...1708...> Message-ID: <200707171851.23670.gambas@...1...> On mardi 17 juillet 2007, Gareth Bult wrote: > Hi, > > Is there a "proper" way to background a gambas console application ... > > I'm currently doing; > > application >/dev/null 2>&1 & > > I'm conscious that it's not closing stdin, but it "seems" to be working ok > .. > > Any recommendations ? > > Gareth. You can daemonize it now, by setting Application.Daemon to TRUE. When daemonized, thr application forks, the parent fork terminates, so that there is no connection with the initial application parent process, and the child fork closes its standard output, input, error output, and sets its current directory to "/". You cannot return to the "non-daemonized" state of course. The name of this property may change if I (or somebody else) find a better name. Regards, -- Benoit Minisini From lordheavym at ...626... Tue Jul 17 18:59:17 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Tue, 17 Jul 2007 18:59:17 +0200 Subject: [Gambas-user] Re; Console applications .. In-Reply-To: <200707171851.23670.gambas@...1...> References: <22237424.10071184689362019.JavaMail.root@...1708...> <200707171851.23670.gambas@...1...> Message-ID: <200707171859.21602.lordheavym@...626...> On Tuesday 17 July 2007 18:51:23 Benoit Minisini wrote: > On mardi 17 juillet 2007, Gareth Bult wrote: > > Hi, > > > > Is there a "proper" way to background a gambas console application ... > > > > I'm currently doing; > > > > application >/dev/null 2>&1 & > > > > I'm conscious that it's not closing stdin, but it "seems" to be working > > ok .. > > > > Any recommendations ? > > > > Gareth. > > You can daemonize it now, by setting Application.Daemon to TRUE. > > When daemonized, thr application forks, the parent fork terminates, so that > there is no connection with the initial application parent process, and the > child fork closes its standard output, input, error output, and sets its > current directory to "/". > > You cannot return to the "non-daemonized" state of course. > > The name of this property may change if I (or somebody else) find a better > name. > > Regards, No, it's really the better name. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gareth at ...1689... Tue Jul 17 19:29:19 2007 From: gareth at ...1689... (Gareth Bult) Date: Tue, 17 Jul 2007 18:29:19 +0100 (BST) Subject: [Gambas-user] Re; Console applications .. In-Reply-To: <200707171851.23670.gambas@...1...> Message-ID: <9770917.10251184693359380.JavaMail.root@...1708...> Ok, fantastic news .. However! I don't appear to have "Application.Daemon" (!) Or indeed any property of "Application" that looks remotely like "Daemon" ... Help! -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Tuesday, July 17, 2007 5:51:23 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Console applications .. On mardi 17 juillet 2007, Gareth Bult wrote: > Hi, > > Is there a "proper" way to background a gambas console application ... > > I'm currently doing; > > application >/dev/null 2>&1 & > > I'm conscious that it's not closing stdin, but it "seems" to be working ok > .. > > Any recommendations ? > > Gareth. You can daemonize it now, by setting Application.Daemon to TRUE. When daemonized, thr application forks, the parent fork terminates, so that there is no connection with the initial application parent process, and the child fork closes its standard output, input, error output, and sets its current directory to "/". You cannot return to the "non-daemonized" state of course. The name of this property may change if I (or somebody else) find a better name. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Tue Jul 17 20:04:08 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 17 Jul 2007 14:04:08 -0400 Subject: [Gambas-user] Re; Console applications .. In-Reply-To: <9770917.10251184693359380.JavaMail.root@...1708...> References: <9770917.10251184693359380.JavaMail.root@...1708...> Message-ID: <200707171404.08503.sourceforge-raindog2@...94...> On Tuesday 17 July 2007, Gareth Bult wrote: > I don't appear to have "Application.Daemon" (!) > > Or indeed any property of "Application" that looks remotely like > "Daemon" ... It was only added to the SVN version of Gambas yesterday. You'll need to check out a fresh copy of the source and build that. If you're using an older version of Gambas and don't want to update it, I think that adding "echo -n |" in front of what you're already using, or maybe " References: <10081232.9721184674320684.JavaMail.root@...1708...> Message-ID: hmm, - if your cpu is 64bit then you should be able to run a virtual 64 machine. - somebody on sourceforge made a 64bit linux emulator, so, for 32bit cpu, but I don't remember the link name. - until now I was unable to get working under 64bit the last gb2 versions. - for the moment I keep gb2 on e virtual machine but it can't be for ever. auch tja ben On 7/17/07, Gareth Bult wrote: > Hi, > > Anyone got any tips re; an easy way to get a gambas application running on a > 64bit machine .. possibly using "linux32". > > I have a console app (no gui) that I need to get going and I'm trying to > avoid having to install a complete 64 bit environment. > > tia > Gareth. > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions > of Business, which are available upon request. > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gareth at ...1689... Wed Jul 18 01:38:13 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 00:38:13 +0100 (BST) Subject: [Gambas-user] Re; Console applications .. In-Reply-To: <200707171404.08503.sourceforge-raindog2@...94...> Message-ID: <9693458.10411184715493641.JavaMail.root@...1708...> Heh, now they tell me ... :) thanks, Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Rob" To: gambas-user at lists.sourceforge.net Sent: Tuesday, July 17, 2007 7:04:08 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Console applications .. On Tuesday 17 July 2007, Gareth Bult wrote: > I don't appear to have "Application.Daemon" (!) > > Or indeed any property of "Application" that looks remotely like > "Daemon" ... It was only added to the SVN version of Gambas yesterday. You'll need to check out a fresh copy of the source and build that. If you're using an older version of Gambas and don't want to update it, I think that adding "echo -n |" in front of what you're already using, or maybe " References: <30733853.9811184681413369.JavaMail.root@...1708...> <200707171111.41672.horechuk@...981...> Message-ID: <200707180921.42195.rolf.frogs@...221...> Hi Paul Horechuk, > Pardon me for jumping in here, but aren't timestamps supposed to be > returned as longint? They should like something like 1184670240 = Jul 17, > 2007 @ 11:04:00. Whenever I worked with timestamps, I had to write a class > to convert either way. Be careful, databases should be able to handle date and time outsite of the UNIX-timestamp period - i.e. before 1.1.1970 and x.x.2035(?). So the internal representation is typically not the well known UNIX-timestamp. Therefor the database usually expects correctly formed date and time values for a timestamp entry and give back a date/time pair as the result of a query. > I understand mysql can convert as a sql command. I found this on the web: > http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html > which has a number of functions dealing with conversions. Also PostgrSQL have such functions, which should be used to extract (which is the name of the function) parts of a timestamp - for example the year or the month... Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From gareth at ...1689... Wed Jul 18 10:07:10 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 09:07:10 +0100 (BST) Subject: [Gambas-user] Gambas on a 64bit platform ... In-Reply-To: Message-ID: <6110203.10681184746030047.JavaMail.root@...1708...> >if your cpu is 64bit then you should be able to run a virtual 64 machine. Mmm, Ok, I'm hoping you're kidding .. (!) I did manage to get the application partially running using "linux32" but still had a problem with one or two of the modules .. for now I'm running it inside a 32-bit chroot with linux32 - this seems to run fine .. albeit it does require the waste of a few hundred Mb of space .. :) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Capodastro" To: "mailing list for gambas users" Sent: Tuesday, July 17, 2007 8:55:45 PM (GMT) Europe/London Subject: Re: [Gambas-user] Gambas on a 64bit platform ... hmm, - if your cpu is 64bit then you should be able to run a virtual 64 machine. - somebody on sourceforge made a 64bit linux emulator, so, for 32bit cpu, but I don't remember the link name. - until now I was unable to get working under 64bit the last gb2 versions. - for the moment I keep gb2 on e virtual machine but it can't be for ever. auch tja ben On 7/17/07, Gareth Bult wrote: > Hi, > > Anyone got any tips re; an easy way to get a gambas application running on a > 64bit machine .. possibly using "linux32". > > I have a console app (no gui) that I need to get going and I'm trying to > avoid having to install a complete 64 bit environment. > > tia > Gareth. > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions > of Business, which are available upon request. > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Wed Jul 18 10:27:39 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 09:27:39 +0100 (BST) Subject: [Gambas-user] SVN broken ... Message-ID: <16751722.10711184747259964.JavaMail.root@...1708...> Hi, When doing a reconf-all I get; gb.qt.am:3: `%'-style pattern rules are a GNU make extension src/Makefile.am:3: `gb.qt.am' included from here which seems to lead to "configure" failing with; checking for QT meta-object compiler... /usr/bin/ ./configure: line 22346: syntax error near unexpected token `QT' ./configure: line 22346: ` AC_MSG_WARNING(QT moc compiler not found. Try --with-moc option.)' configure: error: ./configure failed for gb.qt Help! -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Wed Jul 18 10:46:31 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 09:46:31 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <16751722.10711184747259964.JavaMail.root@...1708...> Message-ID: <26914314.10741184748391768.JavaMail.root@...1708...> Mmm, I've tried hacking a couple of makefiles, it looks like all the "configure" scripts are generated incorrectly for qt graphical components .. (qt, qte, kde,sdl etc..) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Gareth Bult" To: "Gambas User list Mailing List" Sent: Wednesday, July 18, 2007 9:27:39 AM (GMT) Europe/London Subject: [Gambas-user] SVN broken ... Hi, When doing a reconf-all I get; gb.qt.am:3: `%'-style pattern rules are a GNU make extension src/Makefile.am:3: `gb.qt.am' included from here which seems to lead to "configure" failing with; checking for QT meta-object compiler... /usr/bin/ ./configure: line 22346: syntax error near unexpected token `QT' ./configure: line 22346: ` AC_MSG_WARNING(QT moc compiler not found. Try --with-moc option.)' configure: error: ./configure failed for gb.qt Help! -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Wed Jul 18 11:06:03 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 18 Jul 2007 11:06:03 +0200 Subject: [Gambas-user] SVN broken ... In-Reply-To: <26914314.10741184748391768.JavaMail.root@...1708...> References: <26914314.10741184748391768.JavaMail.root@...1708...> Message-ID: <200707181106.07748.lordheavym@...626...> On Wednesday 18 July 2007 10:46:31 Gareth Bult wrote: > Mmm, > > I've tried hacking a couple of makefiles, it looks like all the "configure" > scripts are generated incorrectly for qt graphical components .. (qt, qte, > kde,sdl etc..) > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Gareth Bult" > To: "Gambas User list Mailing List" > Sent: Wednesday, July 18, 2007 9:27:39 AM (GMT) Europe/London > Subject: [Gambas-user] SVN broken ... > > Hi, > > When doing a reconf-all I get; > > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/Makefile.am:3: `gb.qt.am' included from here > > which seems to lead to "configure" failing with; > > checking for QT meta-object compiler... /usr/bin/ > ./configure: line 22346: syntax error near unexpected token `QT' > ./configure: line 22346: ` AC_MSG_WARNING(QT moc compiler not found. Try > --with-moc option.)' configure: error: ./configure failed for gb.qt > > > Help! Ok fix in the svn release 450. Thanks for the report ! Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gareth at ...1689... Wed Jul 18 11:08:31 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 10:08:31 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <200707181106.07748.lordheavym@...626...> Message-ID: <9081457.10841184749711025.JavaMail.root@...1708...> Is it possible also that gb.sdl/Makefile.in has escaped from SVN ? -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Wednesday, July 18, 2007 10:06:03 AM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... On Wednesday 18 July 2007 10:46:31 Gareth Bult wrote: > Mmm, > > I've tried hacking a couple of makefiles, it looks like all the "configure" > scripts are generated incorrectly for qt graphical components .. (qt, qte, > kde,sdl etc..) > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Gareth Bult" > To: "Gambas User list Mailing List" > Sent: Wednesday, July 18, 2007 9:27:39 AM (GMT) Europe/London > Subject: [Gambas-user] SVN broken ... > > Hi, > > When doing a reconf-all I get; > > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/Makefile.am:3: `gb.qt.am' included from here > > which seems to lead to "configure" failing with; > > checking for QT meta-object compiler... /usr/bin/ > ./configure: line 22346: syntax error near unexpected token `QT' > ./configure: line 22346: ` AC_MSG_WARNING(QT moc compiler not found. Try > --with-moc option.)' configure: error: ./configure failed for gb.qt > > > Help! Ok fix in the svn release 450. Thanks for the report ! Regards, From lordheavym at ...626... Wed Jul 18 11:13:38 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 18 Jul 2007 11:13:38 +0200 Subject: [Gambas-user] SVN broken ... In-Reply-To: <9081457.10841184749711025.JavaMail.root@...1708...> References: <9081457.10841184749711025.JavaMail.root@...1708...> Message-ID: <200707181113.40996.lordheavym@...626...> On Wednesday 18 July 2007 11:08:31 Gareth Bult wrote: > Is it possible also that gb.sdl/Makefile.in has escaped from SVN ? > escaped from svn ? i don't understand :-/ Makefile.in files are build through the automake process with the reconf/reconf-all step. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gareth at ...1689... Wed Jul 18 11:24:23 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 10:24:23 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <200707181113.40996.lordheavym@...626...> Message-ID: <3334434.10901184750663179.JavaMail.root@...1708...> Ok, here's what I've just done; svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/2.0/trunk/ cd trunk svn up ./reconf-all ./configure -C And I get; checking for SDL headers... /usr/include/SDL/ checking for SDL libraries... /usr/lib/ configure: updating cache ../config.cache configure: creating ./config.status config.status: creating Makefile config.status: error: cannot find input file: src/Makefile.in configure: error: ./configure failed for gb.sdl ... -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Wednesday, July 18, 2007 10:13:38 AM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... On Wednesday 18 July 2007 11:08:31 Gareth Bult wrote: > Is it possible also that gb.sdl/Makefile.in has escaped from SVN ? > escaped from svn ? i don't understand :-/ Makefile.in files are build through the automake process with the reconf/reconf-all step. Regards, From lordheavym at ...626... Wed Jul 18 11:37:44 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 18 Jul 2007 11:37:44 +0200 Subject: [Gambas-user] SVN broken ... In-Reply-To: <3334434.10901184750663179.JavaMail.root@...1708...> References: <3334434.10901184750663179.JavaMail.root@...1708...> Message-ID: <200707181137.48693.lordheavym@...626...> On Wednesday 18 July 2007 11:24:23 Gareth Bult wrote: > Ok, here's what I've just done; > > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/2.0/trunk/ > cd trunk > svn up > ./reconf-all > ./configure -C > > And I get; > > checking for SDL headers... /usr/include/SDL/ > checking for SDL libraries... /usr/lib/ > configure: updating cache ../config.cache > configure: creating ./config.status > config.status: creating Makefile > config.status: error: cannot find input file: src/Makefile.in > configure: error: ./configure failed for gb.sdl > > ... > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Laurent Carlier" > To: "mailing list for gambas users" > Sent: Wednesday, July 18, 2007 10:13:38 AM (GMT) Europe/London > Subject: Re: [Gambas-user] SVN broken ... > > On Wednesday 18 July 2007 11:08:31 Gareth Bult wrote: > > Is it possible also that gb.sdl/Makefile.in has escaped from SVN ? > > escaped from svn ? i don't understand :-/ > > Makefile.in files are build through the automake process with the > reconf/reconf-all step. > > Regards, > Ok, i've just going to fix this. configure.ac was lacking of AC_PROG_LIBTOOL check. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gareth at ...1689... Wed Jul 18 11:44:32 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 10:44:32 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <200707181137.48693.lordheavym@...626...> Message-ID: <6374619.11061184751872013.JavaMail.root@...1708...> Ok, tvm. I did try backtracking a few versions but ran into trouble there too .. :( -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Wednesday, July 18, 2007 10:37:44 AM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... On Wednesday 18 July 2007 11:24:23 Gareth Bult wrote: > Ok, here's what I've just done; > > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/2.0/trunk/ > cd trunk > svn up > ./reconf-all > ./configure -C > > And I get; > > checking for SDL headers... /usr/include/SDL/ > checking for SDL libraries... /usr/lib/ > configure: updating cache ../config.cache > configure: creating ./config.status > config.status: creating Makefile > config.status: error: cannot find input file: src/Makefile.in > configure: error: ./configure failed for gb.sdl > > ... > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Laurent Carlier" > To: "mailing list for gambas users" > Sent: Wednesday, July 18, 2007 10:13:38 AM (GMT) Europe/London > Subject: Re: [Gambas-user] SVN broken ... > > On Wednesday 18 July 2007 11:08:31 Gareth Bult wrote: > > Is it possible also that gb.sdl/Makefile.in has escaped from SVN ? > > escaped from svn ? i don't understand :-/ > > Makefile.in files are build through the automake process with the > reconf/reconf-all step. > > Regards, > Ok, i've just going to fix this. configure.ac was lacking of AC_PROG_LIBTOOL check. Regards, From gareth at ...1689... Wed Jul 18 12:33:30 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 11:33:30 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <6374619.11061184751872013.JavaMail.root@...1708...> Message-ID: <15788035.11131184754810104.JavaMail.root@...1708...> I just saw #451 go up .. that didn't fix it .. :( -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas users" Sent: Wednesday, July 18, 2007 10:44:32 AM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... Ok, tvm. I did try backtracking a few versions but ran into trouble there too .. :( -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Wednesday, July 18, 2007 10:37:44 AM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... On Wednesday 18 July 2007 11:24:23 Gareth Bult wrote: > Ok, here's what I've just done; > > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/2.0/trunk/ > cd trunk > svn up > ./reconf-all > ./configure -C > > And I get; > > checking for SDL headers... /usr/include/SDL/ > checking for SDL libraries... /usr/lib/ > configure: updating cache ../config.cache > configure: creating ./config.status > config.status: creating Makefile > config.status: error: cannot find input file: src/Makefile.in > configure: error: ./configure failed for gb.sdl > > ... > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Laurent Carlier" > To: "mailing list for gambas users" > Sent: Wednesday, July 18, 2007 10:13:38 AM (GMT) Europe/London > Subject: Re: [Gambas-user] SVN broken ... > > On Wednesday 18 July 2007 11:08:31 Gareth Bult wrote: > > Is it possible also that gb.sdl/Makefile.in has escaped from SVN ? > > escaped from svn ? i don't understand :-/ > > Makefile.in files are build through the automake process with the > reconf/reconf-all step. > > Regards, > Ok, i've just going to fix this. configure.ac was lacking of AC_PROG_LIBTOOL check. Regards, ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From lordheavym at ...626... Wed Jul 18 14:01:21 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Wed, 18 Jul 2007 14:01:21 +0200 Subject: [Gambas-user] SVN broken ... In-Reply-To: <15788035.11131184754810104.JavaMail.root@...1708...> References: <15788035.11131184754810104.JavaMail.root@...1708...> Message-ID: <200707181401.24897.lordheavym@...626...> On Wednesday 18 July 2007 12:33:30 Gareth Bult wrote: > I just saw #451 go up .. that didn't fix it .. :( > Thks, just going to commit a fix for gb.sdl.sound too. Sorry for the delay. Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gareth at ...1689... Wed Jul 18 16:38:47 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 15:38:47 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <200707181401.24897.lordheavym@...626...> Message-ID: <1838983.11731184769527883.JavaMail.root@...1708...> Ok, That looks like it worked ... However, issues I'm still seeing; gb.qt.am:3: `%'-style pattern rules are a GNU make extension src/Makefile.am:3: `gb.qt.am' included from here gb.qt.am:3: `%'-style pattern rules are a GNU make extension src/ext/Makefile.am:3: `gb.qt.am' included from here gb.qt.am:3: `%'-style pattern rules are a GNU make extension src/opengl/Makefile.am:3: `gb.qt.am' included from here Also, for each module; acinclude.m4:845: the serial number must appear before any macro definition And one of; gbc/Makefile.am:32: compiling `gb_error.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac' -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Wednesday, July 18, 2007 1:01:21 PM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... On Wednesday 18 July 2007 12:33:30 Gareth Bult wrote: > I just saw #451 go up .. that didn't fix it .. :( > Thks, just going to commit a fix for gb.sdl.sound too. Sorry for the delay. Regards, From gareth at ...1689... Wed Jul 18 17:06:30 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 16:06:30 +0100 (BST) Subject: [Gambas-user] Re; Bad hair day ... Message-ID: <9813817.11791184771190031.JavaMail.root@...1708...> Ok, Now I have compilation problems .. :( make[4]: Entering directory `/root/trunk/gb.desktop/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o main.c:27:17: error: x11.h: No such file or directory main.c:28:21: error: desktop.h: No such file or directory main.c:35: error: 'CDesktopDesc' undeclared here (not in a function) main.c: In function 'GB_EXIT': main.c:46: warning: implicit declaration of function 'X11_exit' make[4]: *** [main.lo] Error 1 make[4]: Leaving directory `/root/trunk/gb.desktop/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/trunk/gb.desktop' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/trunk/gb.desktop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/trunk' make: *** [all] Error 2 ?? -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Wed Jul 18 17:21:37 2007 From: gareth at ...1689... (Gareth Bult) Date: Wed, 18 Jul 2007 16:21:37 +0100 (BST) Subject: [Gambas-user] Re; Bad hair day ... In-Reply-To: <9813817.11791184771190031.JavaMail.root@...1708...> Message-ID: <18019103.11821184772097031.JavaMail.root@...1708...> Ok, Up and running, needed to use; ./configure --disable-desktop make Everything else looks Ok, although it didn't detect qte .. (not sure what this is ?) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Gareth Bult" To: "Gambas User list Mailing List" Sent: Wednesday, July 18, 2007 4:06:30 PM (GMT) Europe/London Subject: [Gambas-user] Re; Bad hair day ... Ok, Now I have compilation problems .. :( make[4]: Entering directory `/root/trunk/gb.desktop/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o main.c:27:17: error: x11.h: No such file or directory main.c:28:21: error: desktop.h: No such file or directory main.c:35: error: 'CDesktopDesc' undeclared here (not in a function) main.c: In function 'GB_EXIT': main.c:46: warning: implicit declaration of function 'X11_exit' make[4]: *** [main.lo] Error 1 make[4]: Leaving directory `/root/trunk/gb.desktop/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/trunk/gb.desktop' make[2]: *** [all] Error 2 make[2]: Leaving directory `/root/trunk/gb.desktop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/trunk' make: *** [all] Error 2 ?? -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Wed Jul 18 21:35:37 2007 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 18 Jul 2007 21:35:37 +0200 Subject: [Gambas-user] Re; Bad hair day ... In-Reply-To: <18019103.11821184772097031.JavaMail.root@...1708...> References: <18019103.11821184772097031.JavaMail.root@...1708...> Message-ID: <1184787337.5398.0.camel@...40...> Am Mittwoch, den 18.07.2007, 16:21 +0100 schrieb Gareth Bult: > Ok, > > Up and running, needed to use; > ./configure --disable-desktop > make > > Everything else looks Ok, although it didn't detect qte .. (not sure what this is ?) thats qt for embedded systems > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Gareth Bult" > To: "Gambas User list Mailing List" > Sent: Wednesday, July 18, 2007 4:06:30 PM (GMT) Europe/London > Subject: [Gambas-user] Re; Bad hair day ... > > Ok, > > Now I have compilation problems .. :( > > make[4]: Entering directory `/root/trunk/gb.desktop/src' > /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.c > gcc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o > main.c:27:17: error: x11.h: No such file or directory > main.c:28:21: error: desktop.h: No such file or directory > main.c:35: error: 'CDesktopDesc' undeclared here (not in a function) > main.c: In function 'GB_EXIT': > main.c:46: warning: implicit declaration of function 'X11_exit' > make[4]: *** [main.lo] Error 1 > make[4]: Leaving directory `/root/trunk/gb.desktop/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/root/trunk/gb.desktop' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/root/trunk/gb.desktop' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/root/trunk' > make: *** [all] Error 2 > > ?? From wspinto at ...1405... Wed Jul 18 20:08:05 2007 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 18 Jul 2007 15:08:05 -0300 Subject: [Gambas-user] Questions about string In-Reply-To: <1181340138.4669d1ea33d46@...1540...> References: <1181340138.4669d1ea33d46@...1540...> Message-ID: <1184782085.469e570508673@...1539...> Hi Benoit! I'm using gambas2-49 and in my program have one function: private function myfunc(optional aItem as variant = null) as boolean if isnull(aitem) then return true else return false endif end The call: print myfunc() -> true print myfunc("") -> true print myfunc("1") -> false Question: "" is equal NULL???? tks, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From rohnny at ...1248... Thu Jul 19 10:44:21 2007 From: rohnny at ...1248... (R. Stormo) Date: Thu, 19 Jul 2007 01:44:21 -0700 (PDT) Subject: [Gambas-user] SVN broken ... In-Reply-To: <16751722.10711184747259964.JavaMail.root@...1708...> References: <16751722.10711184747259964.JavaMail.root@...1708...> Message-ID: <11684647.post@...1379...> When I tried revision 352 I got configure to work. But another error when I tried to make. --snip gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o main.c:27:17: error: x11.h: No such file or directory main.c:28:21: error: desktop.h: No such file or directory main.c:35: error: 'CDesktopDesc' undeclared here (not in a function) main.c: In function 'GB_EXIT': main.c:46: warning: implicit declaration of function 'X11_exit' make[4]: *** [main.lo] Error 1 --snap Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/SVN-broken-...-tf4101834.html#a11684647 Sent from the gambas-user mailing list archive at Nabble.com. From gareth at ...1689... Thu Jul 19 11:17:13 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 10:17:13 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <11684647.post@...1379...> Message-ID: <944710.12111184836633212.JavaMail.root@...1708...> Hi, Yup, this is broken in CVS (as far as I can see) and I had the same problem. My fix was to add --disable-desktop to "configure" - that worked for me. (unless of course you're using this module ...) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "R. Stormo" To: gambas-user at lists.sourceforge.net Sent: Thursday, July 19, 2007 9:44:21 AM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... When I tried revision 352 I got configure to work. But another error when I tried to make. --snip gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -pipe -Wall -Wno-unused-value -fvisibility=hidden -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o main.c:27:17: error: x11.h: No such file or directory main.c:28:21: error: desktop.h: No such file or directory main.c:35: error: 'CDesktopDesc' undeclared here (not in a function) main.c: In function 'GB_EXIT': main.c:46: warning: implicit declaration of function 'X11_exit' make[4]: *** [main.lo] Error 1 --snap Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/SVN-broken-...-tf4101834.html#a11684647 Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jul 19 13:38:35 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jul 2007 13:38:35 +0200 Subject: [Gambas-user] Questions about string In-Reply-To: <1184782085.469e570508673@...1539...> References: <1181340138.4669d1ea33d46@...1540...> <1184782085.469e570508673@...1539...> Message-ID: <200707191338.35582.gambas@...1...> On mercredi 18 juillet 2007, Wellington de Souza Pinto wrote: > Hi Benoit! > > I'm using gambas2-49 and in my program have one function: > > private function myfunc(optional aItem as variant = null) as boolean > if isnull(aitem) then > return true > else > return false > endif > end > > The call: > > print myfunc() -> true > print myfunc("") -> true > print myfunc("1") -> false > > Question: > > "" is equal NULL???? > > tks, > > Souza, Wellington Yes. In Gambas, NULL and the void string are exactly the same thing. If you can write some code that can make the difference between them, then it is a bug! Regards, -- Benoit Minisini From gareth at ...1689... Thu Jul 19 13:43:14 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 12:43:14 +0100 (BST) Subject: [Gambas-user] Features ... Message-ID: <32774470.12181184845394251.JavaMail.root@...1708...> Hi, Can anyone tell me if there's; a. An interface to "syslog" that's readily available b. A way to bind a ServerSocket to a specific address .. 0.0.0.0 appears to be the only option .. ? tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Thu Jul 19 13:57:21 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 12:57:21 +0100 (BST) Subject: [Gambas-user] Re; Documentation error Message-ID: <29489867.12211184846241185.JavaMail.root@...1708...> Hi, I just found a very small issue in the documentation which threw me a little .. on the gb.db -> Connection -> Edit page. It says; $hConn.Begin hResult = $hConn.Edit("tblDEFAULT", sCriteria, iParameter) ' Set field value hResult!Name = "Mr Smith" ' Update the value $hConn.Update $hConn.Commit For anyone new to databases this could be a show stopper ... (it sort of was for me, I've been using "EXEC" because I thought the DB stuff was broken) I think the last but one line should read; hResult.Update .. :) Now working for me ... -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Thu Jul 19 14:08:32 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jul 2007 14:08:32 +0200 Subject: [Gambas-user] Re; Documentation error In-Reply-To: <29489867.12211184846241185.JavaMail.root@...1708...> References: <29489867.12211184846241185.JavaMail.root@...1708...> Message-ID: <200707191408.32805.gambas@...1...> On jeudi 19 juillet 2007, Gareth Bult wrote: > Hi, > > I just found a very small issue in the documentation which threw me a > little .. on the gb.db -> Connection -> Edit page. It says; > > $hConn.Begin > hResult = $hConn.Edit("tblDEFAULT", sCriteria, iParameter) > ' Set field value > hResult!Name = "Mr Smith" > ' Update the value > $hConn.Update > $hConn.Commit For anyone new to databases this could be a show stopper ... > (it sort of was for me, I've been using "EXEC" because I thought the DB > stuff was broken) > > I think the last but one line should read; > > hResult.Update > > .. > > :) > > Now working for me ... Thanks, fixed. -- Benoit Minisini From gareth at ...1689... Thu Jul 19 14:23:10 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 13:23:10 +0100 (BST) Subject: [Gambas-user] Re; Error handling Message-ID: <4353736.12241184847790446.JavaMail.root@...1708...> Hi, (me again!) I'm trying to do some database error trapping .. it seems that Error.Text is very reliable .. However "Error.Code" always seems to return "-1" .. (for example if the database connection has "gone away") Is this normal ? Is there another variable that holds the real error code ? tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From lordheavym at ...626... Thu Jul 19 14:25:41 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 19 Jul 2007 14:25:41 +0200 Subject: [Gambas-user] SVN broken ... In-Reply-To: <1838983.11731184769527883.JavaMail.root@...1708...> References: <1838983.11731184769527883.JavaMail.root@...1708...> Message-ID: <200707191425.46240.lordheavym@...626...> On Wednesday 18 July 2007 16:38:47 Gareth Bult wrote: > Ok, > > That looks like it worked ... > > However, issues I'm still seeing; > > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/Makefile.am:3: `gb.qt.am' included from here > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/ext/Makefile.am:3: `gb.qt.am' included from here > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/opengl/Makefile.am:3: `gb.qt.am' included from here > > Also, for each module; > acinclude.m4:845: the serial number must appear before any macro definition > > And one of; > gbc/Makefile.am:32: compiling `gb_error.c' with per-target flags requires > `AM_PROG_CC_C_O' in `configure.ac' > Warning are due to automake 1.10 (tested on debian 64 sid) :-) "New in 1.10: .... * Miscellaneous changes: .... - `-Wportability' has finally been turned on by default for `gnu' and `gnits' strictness. This means, automake will complain about %-rules or $(GNU Make functions) unless you switch to `foreign' strictness or use `-Wno-portability'. ....." Regards, -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From gambas at ...1... Thu Jul 19 14:55:32 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jul 2007 14:55:32 +0200 Subject: [Gambas-user] Re; Error handling In-Reply-To: <4353736.12241184847790446.JavaMail.root@...1708...> References: <4353736.12241184847790446.JavaMail.root@...1708...> Message-ID: <200707191455.33055.gambas@...1...> On jeudi 19 juillet 2007, Gareth Bult wrote: > Hi, (me again!) > > I'm trying to do some database error trapping .. it seems that Error.Text > is very reliable .. However "Error.Code" always seems to return "-1" .. > (for example if the database connection has "gone away") > > Is this normal ? > Is there another variable that holds the real error code ? > > tia > Gareth. There is no error code for components, only for the native language. Regards, -- Benoit Minisini From gareth at ...1689... Thu Jul 19 14:55:28 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 13:55:28 +0100 (BST) Subject: [Gambas-user] SVN broken ... In-Reply-To: <200707191425.46240.lordheavym@...626...> Message-ID: <15903623.12291184849728749.JavaMail.root@...1708...> Ahhh, ok .. :) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Laurent Carlier" To: "mailing list for gambas users" Sent: Thursday, July 19, 2007 1:25:41 PM (GMT) Europe/London Subject: Re: [Gambas-user] SVN broken ... On Wednesday 18 July 2007 16:38:47 Gareth Bult wrote: > Ok, > > That looks like it worked ... > > However, issues I'm still seeing; > > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/Makefile.am:3: `gb.qt.am' included from here > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/ext/Makefile.am:3: `gb.qt.am' included from here > gb.qt.am:3: `%'-style pattern rules are a GNU make extension > src/opengl/Makefile.am:3: `gb.qt.am' included from here > > Also, for each module; > acinclude.m4:845: the serial number must appear before any macro definition > > And one of; > gbc/Makefile.am:32: compiling `gb_error.c' with per-target flags requires > `AM_PROG_CC_C_O' in `configure.ac' > Warning are due to automake 1.10 (tested on debian 64 sid) :-) "New in 1.10: .... * Miscellaneous changes: .... - `-Wportability' has finally been turned on by default for `gnu' and `gnits' strictness. This means, automake will complain about %-rules or $(GNU Make functions) unless you switch to `foreign' strictness or use `-Wno-portability'. ....." Regards, From gareth at ...1689... Thu Jul 19 15:22:19 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 14:22:19 +0100 (BST) Subject: [Gambas-user] Re; Error handling In-Reply-To: <200707191455.33055.gambas@...1...> Message-ID: <17117358.12321184851339740.JavaMail.root@...1708...> Ok, So ... I need to distinguish between program errors (in which case I display an error message) and database disconnections (im which case I auto-reconnect) .. reading the text of the error message is such a bad solution on sooooo many levels ... Is there an alternative ? Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 19, 2007 1:55:32 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Error handling On jeudi 19 juillet 2007, Gareth Bult wrote: > Hi, (me again!) > > I'm trying to do some database error trapping .. it seems that Error.Text > is very reliable .. However "Error.Code" always seems to return "-1" .. > (for example if the database connection has "gone away") > > Is this normal ? > Is there another variable that holds the real error code ? > > tia > Gareth. There is no error code for components, only for the native language. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Thu Jul 19 18:53:51 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 17:53:51 +0100 (BST) Subject: [Gambas-user] Re; Database interface Message-ID: <2760086.12471184864031575.JavaMail.root@...1708...> Hi, I'm using the Connection class to create new tables and indexes, seems work well, however .. Whereas I can create fields of type gb.integer, I can't use gb.byte or gb.short ... (so I can't get at smalling or tinyint) Is there any support for short integer variables ? (or enum's for that matter?) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From david_villalobos_c at ...43... Thu Jul 19 19:35:25 2007 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 19 Jul 2007 10:35:25 -0700 (PDT) Subject: [Gambas-user] Re; Database interface Message-ID: <234840.61210.qm@...1672...> If you have problems with Gambas data types, you can create an script containing all the SQL structures and execute it with EXEC and create the database, tables and so on..... ----- Original Message ---- From: Gareth Bult To: Gambas User list Mailing List Sent: Thursday, July 19, 2007 10:53:51 AM Subject: [Gambas-user] Re; Database interface Hi, I'm using the Connection class to create new tables and indexes, seems work well, however .. Whereas I can create fields of type gb.integer, I can't use gb.byte or gb.short ... (so I can't get at smalling or tinyint) Is there any support for short integer variables ? (or enum's for that matter?) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 From gareth at ...1689... Thu Jul 19 22:00:31 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 19 Jul 2007 21:00:31 +0100 (BST) Subject: [Gambas-user] Re; Database interface In-Reply-To: <234840.61210.qm@...1672...> Message-ID: <9783230.12551184875231043.JavaMail.root@...1708...> Hi, I certainly can .. indeed this is what I'm doing at the moment. However, as a MySQL user, it means I'm creating MySQL specific applications. It would be nice to use Gambas' features to create applications that will run on any SQL server (?) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "David Villalobos Cambronero" To: "mailing list for gambas users" Sent: Thursday, July 19, 2007 6:35:25 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Database interface If you have problems with Gambas data types, you can create an script containing all the SQL structures and execute it with EXEC and create the database, tables and so on..... ----- Original Message ---- From: Gareth Bult To: Gambas User list Mailing List Sent: Thursday, July 19, 2007 10:53:51 AM Subject: [Gambas-user] Re; Database interface Hi, I'm using the Connection class to create new tables and indexes, seems work well, however .. Whereas I can create fields of type gb.integer, I can't use gb.byte or gb.short ... (so I can't get at smalling or tinyint) Is there any support for short integer variables ? (or enum's for that matter?) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rohnny at ...1248... Fri Jul 20 09:40:13 2007 From: rohnny at ...1248... (R. Stormo) Date: Fri, 20 Jul 2007 00:40:13 -0700 (PDT) Subject: [Gambas-user] SVN broken ... In-Reply-To: <16751722.10711184747259964.JavaMail.root@...1708...> References: <16751722.10711184747259964.JavaMail.root@...1708...> Message-ID: <11703550.post@...1379...> Still not working with revision 453. Now I get this error. --snip Making all in gb.desktop make[2]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop' make all-recursive make[3]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop' Making all in src make[4]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop/src' make[4]: *** No rule to make target `desktop.lo', needed by `gb.desktop.la'. Stop. make[4]: Leaving directory `/home/rohnny/gambas3/trunk/gb.desktop/src' --snap I have done reconf-all configure and this came when I did make. Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/SVN-broken-...-tf4101834.html#a11703550 Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jul 20 10:07:18 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jul 2007 10:07:18 +0200 Subject: [Gambas-user] SVN broken ... In-Reply-To: <11703550.post@...1379...> References: <16751722.10711184747259964.JavaMail.root@...1708...> <11703550.post@...1379...> Message-ID: <200707201007.18768.gambas@...1...> On vendredi 20 juillet 2007, R. Stormo wrote: > Still not working with revision 453. Now I get this error. > --snip > Making all in gb.desktop > make[2]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop' > make all-recursive > make[3]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop' > Making all in src > make[4]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop/src' > make[4]: *** No rule to make target `desktop.lo', needed by > `gb.desktop.la'. Stop. > make[4]: Leaving directory `/home/rohnny/gambas3/trunk/gb.desktop/src' > --snap > I have done reconf-all configure and this came when I did make. > > > Regards Rohnny > > > My Gambas Community http://gambasforum.tk Sorry again, I forgotten a file again :-/ Try the revision 454... Regards, -- Benoit Minisini From rohnny at ...1248... Fri Jul 20 11:20:04 2007 From: rohnny at ...1248... (R. Stormo) Date: Fri, 20 Jul 2007 02:20:04 -0700 (PDT) Subject: [Gambas-user] SVN broken ... In-Reply-To: <200707201007.18768.gambas@...1...> References: <16751722.10711184747259964.JavaMail.root@...1708...> <11703550.post@...1379...> <200707201007.18768.gambas@...1...> Message-ID: <11704885.post@...1379...> Benoit Minisini wrote: > > On vendredi 20 juillet 2007, R. Stormo wrote: >> Still not working with revision 453. Now I get this error. >> --snip >> Making all in gb.desktop >> make[2]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop' >> make all-recursive >> make[3]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop' >> Making all in src >> make[4]: Entering directory `/home/rohnny/gambas3/trunk/gb.desktop/src' >> make[4]: *** No rule to make target `desktop.lo', needed by >> `gb.desktop.la'. Stop. >> make[4]: Leaving directory `/home/rohnny/gambas3/trunk/gb.desktop/src' >> --snap >> I have done reconf-all configure and this came when I did make. >> >> >> Regards Rohnny >> >> >> My Gambas Community http://gambasforum.tk > > Sorry again, I forgotten a file again :-/ > > Try the revision 454... > > Regards, > > -- > Benoit Minisini > > > Now it workes again, thanks. :D Regards Rohnny My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/SVN-broken-...-tf4101834.html#a11704885 Sent from the gambas-user mailing list archive at Nabble.com. From wspinto at ...1405... Fri Jul 20 12:23:12 2007 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Fri, 20 Jul 2007 07:23:12 -0300 Subject: [Gambas-user] SVN broken in 454 In-Reply-To: References: Message-ID: <1184926992.46a08d102d0e1@...1547...> Hi! In SVN 454: svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/2.0/trunk/ cd trunk ./reconf-all ./configure -C make ... then mv -f ".deps/gtextarea.Tpo" ".deps/gtextarea.Plo"; else rm -f ".deps/gtextarea.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I../share -pipe -Wall -fno-exceptions -Wno-unused-value -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT gtextarea.lo -MD -MP -MF .deps/gtextarea.Tpo -c gtextarea.cpp -fPIC -DPIC -o .libs/gtextarea.o gtextarea.cpp: In member function 'bool gTextArea::isSelected()': gtextarea.cpp:349: error: 'gtk_text_buffer_get_has_selection' was not declared in this scope make[4]: ** [gtextarea.lo] Erro 1 make[4]: Saindo do diret?rio `/home/kurumin/trunk/gb.gtk/src' make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diret?rio `/home/kurumin/trunk/gb.gtk' make[2]: ** [all] Erro 2 make[2]: Saindo do diret?rio `/home/kurumin/trunk/gb.gtk' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diret?rio `/home/kurumin/trunk' make: ** [all] Erro 2 ????????????????????? Reguards, Souza, Wellington ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Fri Jul 20 12:59:44 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 20 Jul 2007 12:59:44 +0200 Subject: [Gambas-user] SVN broken in 454 In-Reply-To: <1184926992.46a08d102d0e1@...1547...> References: <1184926992.46a08d102d0e1@...1547...> Message-ID: <200707201259.44436.gambas@...1...> On vendredi 20 juillet 2007, Wellington de Souza Pinto wrote: > Hi! > In SVN 454: > > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/2.0/trunk/ > cd trunk > ./reconf-all > ./configure -C > make > > ... > then mv -f ".deps/gtextarea.Tpo" ".deps/gtextarea.Plo"; else rm -f > ".deps/gtextarea.Tpo"; exit 1; fi > g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo > -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 > -I/usr/include/libpng12 -I../share -pipe -Wall -fno-exceptions > -Wno-unused-value -fvisibility=hidden -g -Os > -fno-omit-frame-pointer -MT gtextarea.lo -MD -MP -MF .deps/gtextarea.Tpo -c > gtextarea.cpp -fPIC -DPIC -o .libs/gtextarea.o > gtextarea.cpp: In member function 'bool gTextArea::isSelected()': > gtextarea.cpp:349: error: 'gtk_text_buffer_get_has_selection' was not > declared in this scope > make[4]: ** [gtextarea.lo] Erro 1 > make[4]: Saindo do diret?rio `/home/kurumin/trunk/gb.gtk/src' > make[3]: ** [all-recursive] Erro 1 > make[3]: Saindo do diret?rio `/home/kurumin/trunk/gb.gtk' > make[2]: ** [all] Erro 2 > make[2]: Saindo do diret?rio `/home/kurumin/trunk/gb.gtk' > make[1]: ** [all-recursive] Erro 1 > make[1]: Saindo do diret?rio `/home/kurumin/trunk' > make: ** [all] Erro 2 > > ????????????????????? > > Reguards, > > Souza, Wellington It is a problem with the GTK+ library version. Which version is installed on your system? -- Benoit Minisini From obductor at ...626... Sat Jul 21 23:21:14 2007 From: obductor at ...626... (Roberto Estevam) Date: Sat, 21 Jul 2007 21:21:14 +0000 Subject: [Gambas-user] About Channel #Gambas Message-ID: <13c329a90707211421n4d7328f2tc8fbfbe012bd7f3b@...627...> hello everybody, i am a frequent user of channel #gambas ( made by Fabien Bodard) in Freenode.org server. as it has a average of 13 daily users i configured one robot (bot) that he is on 24H to the channel. Soon, If possible somebody can make a TCL of the news of gambas? When benoit to launch the news for the site, the TCL detects the news automatically and passes automatically for the channel. Thanks From joe1962 at ...626... Sat Jul 21 23:53:35 2007 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sat, 21 Jul 2007 18:53:35 -0300 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <6c208f950707052054q4ba63fe7ubef3cc02d8aec3c6@...627...> References: <551949.69721.qm@...1671...> <6c208f950707051819w742850e4obd763d020a304d8@...627...> <200707060338.02721.ronstk@...239...> <6c208f950707052054q4ba63fe7ubef3cc02d8aec3c6@...627...> Message-ID: <6c208f950707211453l6a7ce872wd9fb01cb3ce325de@...627...> OK, so I finally had a chance to pursue this further. The problem lay in the tabs used for indenting the html. Once removed, it works ok. This begs the question, why did it work in 1.9.47? Or maybe it should be, why aren't tabs supported in 1.9.49 or above? Regards, Joe1962 On 7/6/07, Jose J. Rodriguez wrote: > On 7/5/07, ron wrote: > > On Friday 06 July 2007 03:19, Jose J. Rodriguez wrote: > > > color=\"#FF0000\">WARNING: this option will DELETE everything on your > > > > > > > Looks good to me however I would try: > > color='#FF0000'>WARNING: this option will DELETE everything on your > > > > I'll try that. The html messages were all done in bluefish, IIRC. > > > And > > technically savvy user that must do everything by hand. You can > > to > > technically savy ??? > > > > No: http://wordnet.princeton.edu/perl/webwn?s=savvy > > Regards, > Joe1962 > From gambas at ...1... Sat Jul 21 23:56:47 2007 From: gambas at ...1... (Benoit Minisini) Date: Sat, 21 Jul 2007 23:56:47 +0200 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <6c208f950707211453l6a7ce872wd9fb01cb3ce325de@...627...> References: <551949.69721.qm@...1671...> <6c208f950707052054q4ba63fe7ubef3cc02d8aec3c6@...627...> <6c208f950707211453l6a7ce872wd9fb01cb3ce325de@...627...> Message-ID: <200707212356.47590.gambas@...1...> On samedi 21 juillet 2007, Jose J. Rodriguez wrote: > OK, so I finally had a chance to pursue this further. The problem lay > in the tabs used for indenting the html. Once removed, it works ok. > This begs the question, why did it work in 1.9.47? Or maybe it should > be, why aren't tabs supported in 1.9.49 or above? > > Regards, > Joe1962 > Please send me a project having the bug! Regards, -- Benoit Minisini From joe1962 at ...626... Sat Jul 21 23:57:59 2007 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sat, 21 Jul 2007 18:57:59 -0300 Subject: [Gambas-user] Non terminated string in form definition error in 1.9.49 opening a 1.9.47 project In-Reply-To: <6c208f950706241322i6fca8079s76335b4416296092@...627...> References: <6c208f950705302221x6288a5fdkc8d9627add10e4b8@...627...> <200706031133.23750.gambas@...1...> <6c208f950706031233s470ec12al5d8fff25e19039dd@...627...> <6c208f950706241322i6fca8079s76335b4416296092@...627...> Message-ID: <6c208f950707211457w701bcc9v75da374a2bc9a857@...627...> I posted the answer to this on another thread, but thought I should close this one in case someone was following it: OK, so I finally had a chance to pursue this further. The problem lay in the tabs used for indenting the html. Once removed, it works ok. This begs the question, why did it work in 1.9.47? Or maybe it should be, why aren't tabs supported in 1.9.49 or above? Regards, Joe1962 On 6/24/07, Jose J. Rodriguez wrote: > Finally figured out that the problem lies in the html text string in > the TextLabel components. It was working ok in 1.9.47. Here's an > example, hoping for some feedback as to what changed: > > Text = ("

You have 3 > choices:

\n\n
    \n
  • Full-automatic > install: Our easiest install yet; choose this option if you > want to use your entire hard disk for VL. Your system will be > automatically set up, partitions and all. color=\"#FF0000\">WARNING: this option will DELETE everything on your > hard disk, or offer a choice if there are multiple disks. There > will of course be a confirmation dialog in case you selected this > option by mistake.
  • \n
  • Semi-automatic install: > With this option, you manually partition your drives with gparted, but > the rest of the setup will be pretty > automatic.
  • \n
  • Advanced install: For the > technically savvy user that must do everything by hand. You can > control most aspects of the install. However, there will be assisted > options available all the way through, so this is a very flexible > install.
  • \n
\n") > > Regards, > Joe1962 > From joe1962 at ...626... Sun Jul 22 00:04:52 2007 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sat, 21 Jul 2007 19:04:52 -0300 Subject: [Gambas-user] Non terminated string in for definition In-Reply-To: <200707212356.47590.gambas@...1...> References: <551949.69721.qm@...1671...> <6c208f950707052054q4ba63fe7ubef3cc02d8aec3c6@...627...> <6c208f950707211453l6a7ce872wd9fb01cb3ce325de@...627...> <200707212356.47590.gambas@...1...> Message-ID: <6c208f950707211504o767acec8q798f10a20de0618d@...627...> I already did, a while back. Unfortunately, I fixed all the forms now. However, simply try indenting the html in a TextLabel with tabs. It should give you the error. Regards, Joe1962 On 7/21/07, Benoit Minisini wrote: > On samedi 21 juillet 2007, Jose J. Rodriguez wrote: > > OK, so I finally had a chance to pursue this further. The problem lay > > in the tabs used for indenting the html. Once removed, it works ok. > > This begs the question, why did it work in 1.9.47? Or maybe it should > > be, why aren't tabs supported in 1.9.49 or above? > > > > Regards, > > Joe1962 > > > > Please send me a project having the bug! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From timothy.marshal-nichols at ...247... Sun Jul 22 07:59:49 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Sun, 22 Jul 2007 06:59:49 +0100 Subject: [Gambas-user] BUG: dpkg-buildpackage stopped for Debian package Message-ID: <000201c7cc25$87f40140$6401a8c0@...1587...> Timothy: This bug was reported by Mario on one of the Linux Basic Gambas forum (see http://www.linuxbasic.net/index.php?topic=255.0). If there are any answers I shall post them on the forum. Or you can post them there yourself. Mario: I tried to make a Debian package and everything seemed to work without errors. Gambas reported that the package has been built successfully but that wasn't the case. There wasn't any package. I checked out the svn trunk and started gambas again for debugging purposes. While creating the package again I found out that dpkg-buildpackage stopped with an error ("Build dependencies/conflicts unsatisfied; aborting."). Unfortunately there's neither an option to show the output of dpkg-buildpackage in the status textbox nor an evaluation of the return code. Package.module: Code: 368 AddLog(("Creating package...")) 369 sCmd = "cd " & Quote.Shell(sPackagePath) & "; fakeroot dpkg-buildpackage > /dev/null" 370 SHELL sCmd WAIT FOR READ - Gambas version is the latest trunk (1.9.49) - Distro is Kubuntu Feisty Fawn - Description: Start making an installation package like you normally would do. Choose a Debian system. Finish the job. You get no error messages but no deb file has been created. There's no way to find out that dkpg-buildpackage reported an error behind the scenes. - code sample (as written above) Thanks 8-{)} Timothy Marshal-Nichols From ifrbose at ...626... Sun Jul 22 09:15:52 2007 From: ifrbose at ...626... (Francis Bosco) Date: Sun, 22 Jul 2007 12:45:52 +0530 Subject: [Gambas-user] Packaging problem in Gambas In-Reply-To: <200707082020.17573.gambas@...1...> References: <200707082020.17573.gambas@...1...> Message-ID: Actually I am using Gambas 1.0.15 in Ubuntu 6.10 system Just tried to make installable packages of an very simple project but got error saying this This application has raised an unexpected error and must abort [-1] error: File /home/francis/RPM/sources/examp-&1.&20.0.2.tar.gz: No such file or directory. Package.Makepackage.440 After I click ok, entire IDE get closed, When next time i opened the same project it showing that that project is already open What's wrong in this? I have attached that simple project also On 7/8/07, Benoit Minisini wrote: > > On dimanche 08 juillet 2007, Francis Bosco wrote: > > When I making installation packages at the last step, After I pressed > make > > package it's showing process like > > > > Creating package for debian > > Initializing ~/RPM directory > > Creating source package > > Creating .spec file > > Creating RPM package > > > > Then it is showing error message box like > > > > This application has raised an unexpected error and must abort > > [-1] error: File /home/francis/RPM/sources/Agenda-&1.&20.20.tar.bz2: No > > such file or directory. > > Package.Makepackage.440 > > > > After I click ok, its quits > > > > Can anyone here can help me? > > You must tell which version of Gambas you use! > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Regards Bose. Registered Linux User #441045 (counter.li.org) Passion - Some people climb mountains - others write Free software. Don't ask why - the reason is the same. -------------- next part -------------- A non-text attachment was scrubbed... Name: examp-&1.&20.0.2.tar.gz Type: application/x-gzip Size: 10337 bytes Desc: not available URL: From jredrejo at ...626... Sun Jul 22 10:59:57 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Sun, 22 Jul 2007 10:59:57 +0200 Subject: [Gambas-user] BUG: dpkg-buildpackage stopped for Debian package In-Reply-To: <000201c7cc25$87f40140$6401a8c0@...1587...> References: <000201c7cc25$87f40140$6401a8c0@...1587...> Message-ID: <8eb28a500707220159rf5af533o5f86aea300e169de@...627...> Hi, to debug it I need the source code you're using. You can send it to me in private if you don't want to publicy it. Regards. 2007/7/22, timothy : > > > Timothy: > > This bug was reported by Mario on one of the Linux Basic Gambas forum > (see http://www.linuxbasic.net/index.php?topic=255.0). If there are any > answers I shall post them on the forum. Or you can post them there > yourself. > > Mario: > > I tried to make a Debian package and everything seemed to work without > errors. Gambas reported that the package has been built successfully but > that wasn't the case. There wasn't any package. > > I checked out the svn trunk and started gambas again for debugging > purposes. While creating the package again I found out that > dpkg-buildpackage stopped with an error ("Build dependencies/conflicts > unsatisfied; aborting."). Unfortunately there's neither an option to > show the output of dpkg-buildpackage in the status textbox nor an > evaluation of the return code. > > Package.module: > Code: > > 368 AddLog(("Creating package...")) > 369 sCmd = "cd " & Quote.Shell(sPackagePath) & "; fakeroot > dpkg-buildpackage > /dev/null" > 370 SHELL sCmd WAIT FOR READ > > - Gambas version is the latest trunk (1.9.49) > - Distro is Kubuntu Feisty Fawn > - Description: Start making an installation package like you normally > would do. Choose a Debian system. Finish the job. You get no error > messages but no deb file has been created. There's no way to find out > that dkpg-buildpackage reported an error behind the scenes. > - code sample (as written above) > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jul 22 14:16:58 2007 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Jul 2007 14:16:58 +0200 Subject: [Gambas-user] Re; Error handling In-Reply-To: <17117358.12321184851339740.JavaMail.root@...1708...> References: <17117358.12321184851339740.JavaMail.root@...1708...> Message-ID: <200707221416.58592.gambas@...1...> On jeudi 19 juillet 2007, Gareth Bult wrote: > Ok, > > So ... I need to distinguish between program errors (in which case I > display an error message) and database disconnections (im which case I > auto-reconnect) .. reading the text of the error message is such a bad > solution on sooooo many levels ... > > Is there an alternative ? > > Gareth. > I added a new Connection.Error integer property in the last revision. It returns the error code of the last error raised by the underlying database driver. This error code may not be accurate in all database drivers. But I think it is for the mysql driver. Regards, -- Benoit Minisini From gareth at ...1689... Sun Jul 22 16:12:55 2007 From: gareth at ...1689... (Gareth Bult) Date: Sun, 22 Jul 2007 15:12:55 +0100 (BST) Subject: [Gambas-user] Re; Error handling In-Reply-To: <200707221416.58592.gambas@...1...> Message-ID: <27276605.221185113575724.JavaMail.root@...1708...> Excellent, many thanks! -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: 22 July 2007 13:16:58 o'clock (GMT) Europe/London Subject: Re: [Gambas-user] Re; Error handling On jeudi 19 juillet 2007, Gareth Bult wrote: > Ok, > > So ... I need to distinguish between program errors (in which case I > display an error message) and database disconnections (im which case I > auto-reconnect) .. reading the text of the error message is such a bad > solution on sooooo many levels ... > > Is there an alternative ? > > Gareth. > I added a new Connection.Error integer property in the last revision. It returns the error code of the last error raised by the underlying database driver. This error code may not be accurate in all database drivers. But I think it is for the mysql driver. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Sun Jul 22 21:51:03 2007 From: gareth at ...1689... (Gareth Bult) Date: Sun, 22 Jul 2007 20:51:03 +0100 (BST) Subject: [Gambas-user] Packages for Ubuntu / Feisty Message-ID: <31407084.381185133863830.JavaMail.root@...1708...> Hi, I've finally gotten around to reading up on making Ubuntu (/debian) packages. Not sure I've done it right, but I have generated a .deb for the current SVN (which compiles Ok). Seems to install and run quite happily on my laptop .. Anyone fancy giving it a try for me ? http://encryptec.net/software/gambas-packages ?? install with; sudo dpkg -i gambas_1.49.462-2_i386.deb Notes; o Use at your own risk - I've only tried this on my laptop so far o Make sure you remove any Ubuntu / Gambas packages first o If you have an SVN version installed, goto your source directory and "make uninstall" first Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From epileg at ...626... Sun Jul 22 23:47:27 2007 From: epileg at ...626... (=?ISO-8859-1?Q?Ep=EDleg?=) Date: Sun, 22 Jul 2007 23:47:27 +0200 Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <31407084.381185133863830.JavaMail.root@...1708...> References: <31407084.381185133863830.JavaMail.root@...1708...> Message-ID: <46A3D06F.1040000@...626...> En/na Gareth Bult ha escrit: > Hi, > > I've finally gotten around to reading up on making Ubuntu (/debian) packages. > > Not sure I've done it right, but I have generated a .deb for the current SVN (which compiles Ok). > Seems to install and run quite happily on my laptop .. > > Anyone fancy giving it a try for me ? > http://encryptec.net/software/gambas-packages > > ?? > > install with; sudo dpkg -i gambas_1.49.462-2_i386.deb > > Notes; > o Use at your own risk - I've only tried this on my laptop so far > o Make sure you remove any Ubuntu / Gambas packages first > o If you have an SVN version installed, goto your source directory and "make uninstall" first > > Gareth. Hi, Works fine on my Ubuntu Feisty. thanks, Ep?leg. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From gareth at ...1689... Mon Jul 23 10:28:53 2007 From: gareth at ...1689... (Gareth Bult) Date: Mon, 23 Jul 2007 09:28:53 +0100 (BST) Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <46A3D06F.1040000@...626...> Message-ID: <9749991.611185179332676.JavaMail.root@...1708...> Ok, tvm. I've now linked this off the "compiling for Ubuntu/Feisty" page ... Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Ep?leg" To: "mailing list for gambas users" Sent: Sunday, July 22, 2007 10:47:27 PM (GMT) Europe/London Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty En/na Gareth Bult ha escrit: > Hi, > > I've finally gotten around to reading up on making Ubuntu (/debian) packages. > > Not sure I've done it right, but I have generated a .deb for the current SVN (which compiles Ok). > Seems to install and run quite happily on my laptop .. > > Anyone fancy giving it a try for me ? > http://encryptec.net/software/gambas-packages > > ?? > > install with; sudo dpkg -i gambas_1.49.462-2_i386.deb > > Notes; > o Use at your own risk - I've only tried this on my laptop so far > o Make sure you remove any Ubuntu / Gambas packages first > o If you have an SVN version installed, goto your source directory and "make uninstall" first > > Gareth. Hi, Works fine on my Ubuntu Feisty. thanks, Ep?leg. From gambas.fr at ...626... Mon Jul 23 18:22:01 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 Jul 2007 18:22:01 +0200 Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <9749991.611185179332676.JavaMail.root@...1708...> References: <46A3D06F.1040000@...626...> <9749991.611185179332676.JavaMail.root@...1708...> Message-ID: <6324a42a0707230922ta497490xea9d0be9486a6a4c@...627...> hum now you need to apply the multiple package rules. With your package i need to load many libs i don't need ... 2007/7/23, Gareth Bult : > Ok, tvm. > > I've now linked this off the "compiling for Ubuntu/Feisty" page ... > > Gareth. > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Ep?leg" > To: "mailing list for gambas users" > Sent: Sunday, July 22, 2007 10:47:27 PM (GMT) Europe/London > Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty > > En/na Gareth Bult ha escrit: > > Hi, > > > > I've finally gotten around to reading up on making Ubuntu (/debian) packages. > > > > Not sure I've done it right, but I have generated a .deb for the current SVN (which compiles Ok). > > Seems to install and run quite happily on my laptop .. > > > > Anyone fancy giving it a try for me ? > > http://encryptec.net/software/gambas-packages > > > > ?? > > > > install with; sudo dpkg -i gambas_1.49.462-2_i386.deb > > > > Notes; > > o Use at your own risk - I've only tried this on my laptop so far > > o Make sure you remove any Ubuntu / Gambas packages first > > o If you have an SVN version installed, goto your source directory and "make uninstall" first > > > > Gareth. > > Hi, > > Works fine on my Ubuntu Feisty. > > thanks, > Ep?leg. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jredrejo at ...626... Mon Jul 23 18:29:19 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Mon, 23 Jul 2007 18:29:19 +0200 Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <6324a42a0707230922ta497490xea9d0be9486a6a4c@...627...> References: <46A3D06F.1040000@...626...> <9749991.611185179332676.JavaMail.root@...1708...> <6324a42a0707230922ta497490xea9d0be9486a6a4c@...627...> Message-ID: <8eb28a500707230929i78335dc5tab940d851e7a6501@...627...> Just a silly question for the Ubuntu fans: why, instead of reinventing once again the wheel, didn't you use the debianized sources from http://packages.debian.org/unstable/source/gambas2and compile them in your mephis/ubuntu/knoppix/put_here_any_other_whatever_debian_based/cloned_distro? You would have got deb binaries for your box that have been deeply tested and would not get new problems that were fixed when doing debian gambas packages first time, more than three years ago... 2007/7/23, Fabien Bodard : > > hum now you need to apply the multiple package rules. With your > package i need to load many libs i don't need ... > > 2007/7/23, Gareth Bult : > > Ok, tvm. > > > > I've now linked this off the "compiling for Ubuntu/Feisty" page ... > > > > Gareth. > > > > -- > > Gareth Bult, Encryptec Limited > > Tel: 0845 25 77033, Mob: 07891 389657 > > Email: gareth at ...1689... > > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > > > ----- Original Message ----- > > From: "Ep?leg" > > To: "mailing list for gambas users" > > Sent: Sunday, July 22, 2007 10:47:27 PM (GMT) Europe/London > > Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty > > > > En/na Gareth Bult ha escrit: > > > Hi, > > > > > > I've finally gotten around to reading up on making Ubuntu (/debian) > packages. > > > > > > Not sure I've done it right, but I have generated a .deb for the > current SVN (which compiles Ok). > > > Seems to install and run quite happily on my laptop .. > > > > > > Anyone fancy giving it a try for me ? > > > http://encryptec.net/software/gambas-packages > > > > > > ?? > > > > > > install with; sudo dpkg -i gambas_1.49.462-2_i386.deb > > > > > > Notes; > > > o Use at your own risk - I've only tried this on my laptop so far > > > o Make sure you remove any Ubuntu / Gambas packages first > > > o If you have an SVN version installed, goto your source directory and > "make uninstall" first > > > > > > Gareth. > > > > Hi, > > > > Works fine on my Ubuntu Feisty. > > > > thanks, > > Ep?leg. > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gareth at ...1689... Mon Jul 23 20:16:17 2007 From: gareth at ...1689... (Gareth Bult) Date: Mon, 23 Jul 2007 19:16:17 +0100 (BST) Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <6324a42a0707230922ta497490xea9d0be9486a6a4c@...627...> Message-ID: <16779148.1191185214577081.JavaMail.root@...1708...> Ok, Will get to this at some point, it'll be a week or two tho' Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Fabien Bodard" To: "mailing list for gambas users" Sent: Monday, July 23, 2007 5:22:01 PM (GMT) Europe/London Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty hum now you need to apply the multiple package rules. With your package i need to load many libs i don't need ... 2007/7/23, Gareth Bult : > Ok, tvm. > > I've now linked this off the "compiling for Ubuntu/Feisty" page ... > > Gareth. > > -- > Gareth Bult, Encryptec Limited > Tel: 0845 25 77033, Mob: 07891 389657 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. > > ----- Original Message ----- > From: "Ep?leg" > To: "mailing list for gambas users" > Sent: Sunday, July 22, 2007 10:47:27 PM (GMT) Europe/London > Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty > > En/na Gareth Bult ha escrit: > > Hi, > > > > I've finally gotten around to reading up on making Ubuntu (/debian) packages. > > > > Not sure I've done it right, but I have generated a .deb for the current SVN (which compiles Ok). > > Seems to install and run quite happily on my laptop .. > > > > Anyone fancy giving it a try for me ? > > http://encryptec.net/software/gambas-packages > > > > ?? > > > > install with; sudo dpkg -i gambas_1.49.462-2_i386.deb > > > > Notes; > > o Use at your own risk - I've only tried this on my laptop so far > > o Make sure you remove any Ubuntu / Gambas packages first > > o If you have an SVN version installed, goto your source directory and "make uninstall" first > > > > Gareth. > > Hi, > > Works fine on my Ubuntu Feisty. > > thanks, > Ep?leg. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Mon Jul 23 20:17:53 2007 From: gareth at ...1689... (Gareth Bult) Date: Mon, 23 Jul 2007 19:17:53 +0100 (BST) Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <8eb28a500707230929i78335dc5tab940d851e7a6501@...627...> Message-ID: <13937398.1221185214673249.JavaMail.root@...1708...> Because this is the first .deb I've ever built and I'm unaware of "debianized sources". If you want to point me at some better /debian build files I'm all ears, but I couldn't find any which is why I started from scratch on Sunday ... (!) Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Jos? Luis Redrejo" To: "mailing list for gambas users" Sent: Monday, July 23, 2007 5:29:19 PM (GMT) Europe/London Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty Just a silly question for the Ubuntu fans: why, instead of reinventing once again the wheel, didn't you use the debianized sources from http://packages.debian.org/unstable/source/gambas2and compile them in your mephis/ubuntu/knoppix/put_here_any_other_whatever_debian_based/cloned_distro? You would have got deb binaries for your box that have been deeply tested and would not get new problems that were fixed when doing debian gambas packages first time, more than three years ago... 2007/7/23, Fabien Bodard : > > hum now you need to apply the multiple package rules. With your > package i need to load many libs i don't need ... > > 2007/7/23, Gareth Bult : > > Ok, tvm. > > > > I've now linked this off the "compiling for Ubuntu/Feisty" page ... > > > > Gareth. > > > > -- > > Gareth Bult, Encryptec Limited > > Tel: 0845 25 77033, Mob: 07891 389657 > > Email: gareth at ...1689... > > Statements made are at all times subject to Encryptec's Terms and > Conditions of Business, which are available upon request. > > > > ----- Original Message ----- > > From: "Ep?leg" > > To: "mailing list for gambas users" > > Sent: Sunday, July 22, 2007 10:47:27 PM (GMT) Europe/London > > Subject: Re: [Gambas-user] Packages for Ubuntu / Feisty > > > > En/na Gareth Bult ha escrit: > > > Hi, > > > > > > I've finally gotten around to reading up on making Ubuntu (/debian) > packages. > > > > > > Not sure I've done it right, but I have generated a .deb for the > current SVN (which compiles Ok). > > > Seems to install and run quite happily on my laptop .. > > > > > > Anyone fancy giving it a try for me ? > > > http://encryptec.net/software/gambas-packages > > > > > > ?? > > > > > > install with; sudo dpkg -i gambas_1.49.462-2_i386.deb > > > > > > Notes; > > > o Use at your own risk - I've only tried this on my laptop so far > > > o Make sure you remove any Ubuntu / Gambas packages first > > > o If you have an SVN version installed, goto your source directory and > "make uninstall" first > > > > > > Gareth. > > > > Hi, > > > > Works fine on my Ubuntu Feisty. > > > > thanks, > > Ep?leg. > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon Jul 23 21:25:32 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 Jul 2007 21:25:32 +0200 Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <8eb28a500707230929i78335dc5tab940d851e7a6501@...627...> References: <46A3D06F.1040000@...626...> <9749991.611185179332676.JavaMail.root@...1708...> <6324a42a0707230922ta497490xea9d0be9486a6a4c@...627...> <8eb28a500707230929i78335dc5tab940d851e7a6501@...627...> Message-ID: <6324a42a0707231225w7088e3dh8e749fe58c2e61b1@...627...> 2007/7/23, Jos? Luis Redrejo : > Just a silly question for the Ubuntu fans: > why, instead of reinventing once again the wheel, didn't you use the > debianized sources from > http://packages.debian.org/unstable/source/gambas2and compile them in > your > mephis/ubuntu/knoppix/put_here_any_other_whatever_debian_based/cloned_distro? > > You would have got deb binaries for your box that have been deeply tested > and would not get new problems that were fixed when doing debian gambas > packages first time, more than three years ago... > That's true as ubuntu is debian based From jredrejo at ...626... Mon Jul 23 21:38:42 2007 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Mon, 23 Jul 2007 21:38:42 +0200 Subject: [Gambas-user] Packages for Ubuntu / Feisty In-Reply-To: <13937398.1221185214673249.JavaMail.root@...1708...> References: <8eb28a500707230929i78335dc5tab940d851e7a6501@...627...> <13937398.1221185214673249.JavaMail.root@...1708...> Message-ID: <8eb28a500707231238s693c799bh937361c2963e2bdc@...627...> 2007/7/23, Gareth Bult : > > Because this is the first .deb I've ever built and I'm unaware of > "debianized sources". > > If you want to point me at some better /debian build files I'm all ears, > but I couldn't find any which is why I started from scratch on Sunday ... > > Ok, you don't have search too much to find them, the information is in the download section of gambas.sourceforge.net and searching for gambas at packages.debian.org. So, downloading the three files that form the debianizated sources you just need to do: dpkg-source -x gambas2-xxxx.dsc cd gambas2-xxxx dpkg-buildpackage And you'll get your deb packages, or it will warn you saying the exact package names you need to install to build them all. You can always get the debianizated sources from http://packages.debian.org/unstable/source/gambas2 for the last version release. I always upload them very few days (sometimes the same day) it is released. Regards. Jos? L. From sjatmika at ...1737... Tue Jul 24 11:47:42 2007 From: sjatmika at ...1737... (Sandi Jatmika) Date: Tue, 24 Jul 2007 16:47:42 +0700 Subject: [Gambas-user] 'help' Message-ID: <1185270462.29269.12.camel@...1739...> I use Intell Processors 3.0 Gb and 512 Mb RAM root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# ./configure checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# best regards, ------------- Sandi Jatmika From gambas.fr at ...626... Tue Jul 24 21:13:25 2007 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 24 Jul 2007 21:13:25 +0200 Subject: [Gambas-user] 'help' In-Reply-To: <1185270462.29269.12.camel@...1739...> References: <1185270462.29269.12.camel@...1739...> Message-ID: <6324a42a0707241213l607991f7gcb0ad21b813a9b72@...627...> witch distribution ? 2007/7/24, Sandi Jatmika : > I use Intell Processors 3.0 Gb and 512 Mb RAM > > root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# ./configure > checking whether to enable maintainer-specific portions of Makefiles... > no > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... mawk > checking whether make sets $(MAKE)... yes > checking build system type... i686-pc-linux-gnulibc1 > checking host system type... i686-pc-linux-gnulibc1 > checking for gcc... gcc > checking for C compiler default output file name... > configure: error: C compiler cannot create executables > See `config.log' for more details. > root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# > > > > best regards, > ------------- > Sandi Jatmika > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From capodastro at ...626... Tue Jul 24 21:18:03 2007 From: capodastro at ...626... (Capodastro) Date: Tue, 24 Jul 2007 21:18:03 +0200 Subject: [Gambas-user] 'help' In-Reply-To: <6324a42a0707241213l607991f7gcb0ad21b813a9b72@...627...> References: <1185270462.29269.12.camel@...1739...> <6324a42a0707241213l607991f7gcb0ad21b813a9b72@...627...> Message-ID: suse 10.2 32bit arch i686 ca joue...:) ben On 7/24/07, Fabien Bodard wrote: > witch distribution ? > > > 2007/7/24, Sandi Jatmika : > > I use Intell Processors 3.0 Gb and 512 Mb RAM > > > > root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# ./configure > > checking whether to enable maintainer-specific portions of Makefiles... > > no > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for gawk... no > > checking for mawk... mawk > > checking whether make sets $(MAKE)... yes > > checking build system type... i686-pc-linux-gnulibc1 > > checking host system type... i686-pc-linux-gnulibc1 > > checking for gcc... gcc > > checking for C compiler default output file name... > > configure: error: C compiler cannot create executables > > See `config.log' for more details. > > root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# > > > > > > > > best regards, > > ------------- > > Sandi Jatmika > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From timothy.marshal-nichols at ...247... Wed Jul 25 08:36:05 2007 From: timothy.marshal-nichols at ...247... (timothy) Date: Wed, 25 Jul 2007 07:36:05 +0100 Subject: [Gambas-user] 'help' In-Reply-To: <1185270462.29269.12.camel@...1739...> Message-ID: <000001c7ce86$184282a0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Sandi Jatmika > Sent: Tuesday, 24 July 2007 10:48 AM > To: Gambas-user at lists.sourceforge.net > Subject: [Gambas-user] 'help' > > I use Intell Processors 3.0 Gb and 512 Mb RAM > > root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# ./configure > checking whether to enable maintainer-specific portions of Makefiles... > no > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... mawk > checking whether make sets $(MAKE)... yes > checking build system type... i686-pc-linux-gnulibc1 > checking host system type... i686-pc-linux-gnulibc1 > checking for gcc... gcc > checking for C compiler default output file name... > configure: error: C compiler cannot create executables > See `config.log' for more details. > root at ...1738...:/home/LGD/sandi/Desktop/VB/gambas-1.0.19# > > > Following your report I have just installed Gambas 1.0.19 on a openSUSE 10.2 32 bit system. Everything went OK. So it can be done! The equivalent part of the configure output for me is: checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out <... rest of output ...> Try installing gawk All of gcc through YaST Thanks 8-{)} Timothy Marshal-Nichols From sjatmika at ...1737... Wed Jul 25 12:01:29 2007 From: sjatmika at ...1737... (Sandi Jatmika) Date: Wed, 25 Jul 2007 17:01:29 +0700 Subject: [Gambas-user] 'help' In-Reply-To: <000001c7ce86$184282a0$6401a8c0@...1587...> References: <000001c7ce86$184282a0$6401a8c0@...1587...> Message-ID: <1185357689.9770.23.camel@...1739...> I have already install gawk and all of gcc but there's error : root at ...1738...:/home/LGD/sandi/Desktop/Data/VB/gambas-1.0.19# ./configure checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl.exe... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for working alloca.h... yes checking for alloca... yes checking whether gcc needs -traditional... no checking return type of signal handlers... void checking for working strcoll... yes checking for strftime... yes checking for vprintf... yes checking for _doprnt... no checking for wait3 that fills in rusage... yes checking for getcwd... yes checking for gettimeofday... yes checking for mkdir... yes checking for rmdir... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for strerror... yes checking for strtod... yes checking for strtol... yes checking for sysinfo... yes checking for setenv... yes checking for unsetenv... yes checking for getdomainname... yes checking for a sed that does not truncate output... /bin/sed checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognise dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. root at ...1738...:/home/LGD/sandi/Desktop/Data/VB/gambas-1.0.19# and also i install : cpp-4.1_4.1.1-21_i386.deb linux-libc-dev_2.6.20-16.29_i386.deb icecpp_3.1.1-2_i386.deb etc... ================================================================== and here i attach the config.log thank you for your concern... best regards, ------------- Sandi Jatmika -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 38537 bytes Desc: not available URL: From ronstk at ...239... Wed Jul 25 19:32:25 2007 From: ronstk at ...239... (ron) Date: Wed, 25 Jul 2007 19:32:25 +0200 Subject: [Gambas-user] 'help' In-Reply-To: <1185357689.9770.23.camel@...1739...> References: <000001c7ce86$184282a0$6401a8c0@...1587...> <1185357689.9770.23.camel@...1739...> Message-ID: <200707251932.25595.ronstk@...239...> On Wednesday 25 July 2007 12:01, Sandi Jatmika wrote: > I have already install gawk and all of gcc but there's error : > > root at ...1738...:/home/LGD/sandi/Desktop/Data/VB/gambas-1.0.19# ./configure On the gambas site you can find to use ./configure -C <-- uppercase ! This did work for me on SuSE in the past For some reason it is not optional any more but a requiremend as far I found with SuSE 9.1/gambas 1.9.35 (around) and up. > checking whether to enable maintainer-specific portions of Makefiles... > Ron From gareth at ...1689... Thu Jul 26 12:44:36 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 11:44:36 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... Message-ID: <28871023.3861185446676572.JavaMail.root@...1708...> Hi, I've just noticed that my CCTV pictures are flickering again .. even when using the non-cached drawing area with a; PUBLIC SUB CANVAS_Draw() draw.Picture($picture, 0, 0, 320, 240) END Draw routine .. has anything changed in CVS that might have caused this ? (as I'm only using a 3-line draw I'm can't see what I might have broken .. ??) tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Thu Jul 26 12:47:34 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jul 2007 12:47:34 +0200 Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <28871023.3861185446676572.JavaMail.root@...1708...> References: <28871023.3861185446676572.JavaMail.root@...1708...> Message-ID: <200707261247.34232.gambas@...1...> On jeudi 26 juillet 2007, Gareth Bult wrote: > Hi, > > I've just noticed that my CCTV pictures are flickering again .. even when > using the non-cached drawing area with a; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Draw routine .. has anything changed in CVS that might have caused this ? > (as I'm only using a 3-line draw I'm can't see what I might have broken .. > ??) > > tia > Gareth. I don't think so. Do you use gb.qt or gb.gtk? -- Benoit Minisini From gambas at ...1... Thu Jul 26 12:52:09 2007 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jul 2007 12:52:09 +0200 Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <200707261247.34232.gambas@...1...> References: <28871023.3861185446676572.JavaMail.root@...1708...> <200707261247.34232.gambas@...1...> Message-ID: <200707261252.09285.gambas@...1...> On jeudi 26 juillet 2007, Benoit Minisini wrote: > On jeudi 26 juillet 2007, Gareth Bult wrote: > > Hi, > > > > I've just noticed that my CCTV pictures are flickering again .. even when > > using the non-cached drawing area with a; > > > > PUBLIC SUB CANVAS_Draw() > > draw.Picture($picture, 0, 0, 320, 240) > > END > > > > Draw routine .. has anything changed in CVS that might have caused this ? > > (as I'm only using a 3-line draw I'm can't see what I might have broken > > .. ??) > > > > tia > > Gareth. > > I don't think so. Do you use gb.qt or gb.gtk? When using this syntax, your picture is scaled, unless 320x240 is its original size. Is it? -- Benoit Minisini From gareth at ...1689... Thu Jul 26 13:43:09 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 12:43:09 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <200707261247.34232.gambas@...1...> Message-ID: <10218629.4061185450189746.JavaMail.root@...1708...> Sorry, all qt .. I've love to use gtk and will as soon as someone tell's me it's likely to stay up for more than 30 seconds at a time ... ;-) -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:47:34 AM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... On jeudi 26 juillet 2007, Gareth Bult wrote: > Hi, > > I've just noticed that my CCTV pictures are flickering again .. even when > using the non-cached drawing area with a; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Draw routine .. has anything changed in CVS that might have caused this ? > (as I'm only using a 3-line draw I'm can't see what I might have broken .. > ??) > > tia > Gareth. I don't think so. Do you use gb.qt or gb.gtk? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Thu Jul 26 13:45:08 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 12:45:08 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <200707261252.09285.gambas@...1...> Message-ID: <20434023.4091185450308040.JavaMail.root@...1708...> Hi, I'm using a native 320x240 stream (the camera cuts the size down before it issues the jpg). I'm also checking the drawing box is exactly 320x240 .. at one point it was being "resized" , and part of the picture was being "chopped", but it's definitely the right size now. Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:52:09 AM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... On jeudi 26 juillet 2007, Benoit Minisini wrote: > On jeudi 26 juillet 2007, Gareth Bult wrote: > > Hi, > > > > I've just noticed that my CCTV pictures are flickering again .. even when > > using the non-cached drawing area with a; > > > > PUBLIC SUB CANVAS_Draw() > > draw.Picture($picture, 0, 0, 320, 240) > > END > > > > Draw routine .. has anything changed in CVS that might have caused this ? > > (as I'm only using a 3-line draw I'm can't see what I might have broken > > .. ??) > > > > tia > > Gareth. > > I don't think so. Do you use gb.qt or gb.gtk? When using this syntax, your picture is scaled, unless 320x240 is its original size. Is it? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Thu Jul 26 16:20:34 2007 From: ron at ...1740... (Ron Klinkien) Date: Thu, 26 Jul 2007 16:20:34 +0200 Subject: [Gambas-user] Question about how to address more than 1 checkbox or picturebox item in for-next loop Message-ID: <46A8ADB2.6020000@...1740...> Hi all, Say i have defined more than one checkbox or picturebox item in the gui designer and i want to change the status of them in a for-next loop, instead of if-end if them one after the other, if and how is this possible? I have defined PictureBoxI0 - PictureBoxI7 ---------------------------- DIM i AS Integer DIM SensorByte1 as Byte DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] FOR i = 0 TO 7 IF BTst(SensorByte1, i) THEN PBoxI[i].Picture = picOn.Picture ELSE PBoxI[i].Picture = picOff.Picture END IF NEXT ---------------------------- Doesn't work. Error is Type Mismatch: Wanted PictureBox got Object[] instead. I have now: IF BTst(SensorByte1, 7) THEN PictureBoxI7.Picture = picOn.Picture ELSE PictureBoxI7.Picture = picOff.Picture END IF IF BTst(SensorByte1, 6) THEN PictureBoxI6.Picture = picOn.Picture ELSE and so on... not so nice if you have more than 24 of them... Thanks in advance for any pointers... Regards, Ron. From ronstk at ...239... Thu Jul 26 18:28:44 2007 From: ronstk at ...239... (ron) Date: Thu, 26 Jul 2007 18:28:44 +0200 Subject: [Gambas-user] Question about how to address more than 1 checkbox or picturebox item in for-next loop In-Reply-To: <46A8ADB2.6020000@...1740...> References: <46A8ADB2.6020000@...1740...> Message-ID: <200707261828.44438.ronstk@...239...> On Thursday 26 July 2007 16:20, Ron Klinkien wrote: > DIM i AS Integer > ?DIM SensorByte1 as Byte > ?DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, > PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] > ? ? ? ? > Hi Ron from Ron change : DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] to DIM PBoxI AS Object[] = [PictureBoxI0, PictureBoxI1, PictureBoxI2, PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] Why Object? Well that is what it expects regarding the error :) Not nice but should work Why Object[]? Because you asign a array of PictureBoxI# to it Secondly you can't do DIM PBoxI AS PictureBox[] Hoop dat dit helpt. :) Groeten: Ron From sourceforge-raindog2 at ...94... Thu Jul 26 20:08:10 2007 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 26 Jul 2007 14:08:10 -0400 Subject: [Gambas-user] [Gambas-devel-svn] SF.net SVN: gambas: [482] 2.0/trunk In-Reply-To: References: Message-ID: <200707261408.10553.sourceforge-raindog2@...94...> On Thursday 26 July 2007, gambas at ...1... wrote: > [GB.QT] > * BUG: Image.Rotate() angle is now in radian, not in degree > anymore. And the rotation is clockwise now. Having the angle be in radians sounds like more of a bug to me ;) Is there a function to convert degrees to radians or am I gonna have to find my high school trigonometry book on half.com? Rob From lordheavym at ...626... Thu Jul 26 20:19:03 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 26 Jul 2007 20:19:03 +0200 Subject: [Gambas-user] [Gambas-devel-svn] SF.net SVN: gambas: [482] 2.0/trunk In-Reply-To: <200707261408.10553.sourceforge-raindog2@...94...> References: <200707261408.10553.sourceforge-raindog2@...94...> Message-ID: <4e47a3ec0707261119j4280f4avcd0cd210b6888cf0@...627...> Use the deg() function :) http://64.128.110.55/help/lang/deg ++ 2007/7/26, Rob : > > On Thursday 26 July 2007, gambas at ...1... wrote: > > [GB.QT] > > * BUG: Image.Rotate() angle is now in radian, not in degree > > anymore. And the rotation is clockwise now. > > Having the angle be in radians sounds like more of a bug to me ;) Is > there a function to convert degrees to radians or am I gonna have to > find my high school trigonometry book on half.com? > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lordheavym at ...626... Thu Jul 26 20:26:04 2007 From: lordheavym at ...626... (Laurent Carlier) Date: Thu, 26 Jul 2007 20:26:04 +0200 Subject: [Gambas-user] [Gambas-devel-svn] SF.net SVN: gambas: [482] 2.0/trunk In-Reply-To: <4e47a3ec0707261119j4280f4avcd0cd210b6888cf0@...627...> References: <200707261408.10553.sourceforge-raindog2@...94...> <4e47a3ec0707261119j4280f4avcd0cd210b6888cf0@...627...> Message-ID: <4e47a3ec0707261126q16bf6e82v23f5b4384700a319@...627...> Oups ! it's rad() http://64.128.110.55/help/lang/rad Sorry 2007/7/26, Laurent Carlier : > > Use the deg() function :) > http://64.128.110.55/help/lang/deg > > ++ > > > 2007/7/26, Rob < sourceforge-raindog2 at ...94...>: > > > > On Thursday 26 July 2007, gambas at ...1... wrote: > > > [GB.QT] > > > * BUG: Image.Rotate() angle is now in radian, not in degree > > > anymore. And the rotation is clockwise now. > > > > Having the angle be in radians sounds like more of a bug to me ;) Is > > there a function to convert degrees to radians or am I gonna have to > > find my high school trigonometry book on half.com? > > > > Rob > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From dcamposf at ...626... Thu Jul 26 22:22:01 2007 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 26 Jul 2007 22:22:01 +0200 Subject: [Gambas-user] [Gambas-devel-svn] SF.net SVN: gambas: [482] 2.0/trunk In-Reply-To: <200707261408.10553.sourceforge-raindog2@...94...> References: <200707261408.10553.sourceforge-raindog2@...94...> Message-ID: <7259b5ae0707261322pbac6a25v142b8747e85b15e8@...627...> Well, Rob, it's just Rad=2*PI*Deg/360 if there was not conversion function :-) 2007/7/26, Rob : > On Thursday 26 July 2007, gambas at ...1... wrote: > > [GB.QT] > > * BUG: Image.Rotate() angle is now in radian, not in degree > > anymore. And the rotation is clockwise now. > > Having the angle be in radians sounds like more of a bug to me ;) Is > there a function to convert degrees to radians or am I gonna have to > find my high school trigonometry book on half.com? > > Rob > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gareth at ...1689... Thu Jul 26 23:36:26 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 22:36:26 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <23831676.4511185474572504.JavaMail.root@...1708...> Message-ID: <16285400.4561185485786425.JavaMail.root@...1708...> Ok, I now have nifty little app for recording all my CCTV images off a variable number of camera and it's all looking great. However, I don't know where to start with the screen flicker problem .. it did go away initially using the draw code you suggested, but it seems to have come back as a result of using a more recent SVN. I use a separate recorder to store the images in Blobs (MySQL) and recover them with; File.Save(name, resultSet!image.Data) $picture = Picture.Load(name) Then issue; $canvas.Refresh Then have; PUBLIC SUB CANVAS_Draw() draw.Picture($picture, 0, 0, 320, 240) END Works well, but refresh flickering is every couple of seconds and quite frustrating as it destroys viewing "quality". Can anyone point me in the right direction re; where to look ? (There doesn't "seem" to be much scope for my code to cause this ???) tia Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 12:45:08 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... Hi, I'm using a native 320x240 stream (the camera cuts the size down before it issues the jpg). I'm also checking the drawing box is exactly 320x240 .. at one point it was being "resized" , and part of the picture was being "chopped", but it's definitely the right size now. Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:52:09 AM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... On jeudi 26 juillet 2007, Benoit Minisini wrote: > On jeudi 26 juillet 2007, Gareth Bult wrote: > > Hi, > > > > I've just noticed that my CCTV pictures are flickering again .. even when > > using the non-cached drawing area with a; > > > > PUBLIC SUB CANVAS_Draw() > > draw.Picture($picture, 0, 0, 320, 240) > > END > > > > Draw routine .. has anything changed in CVS that might have caused this ? > > (as I'm only using a 3-line draw I'm can't see what I might have broken > > .. ??) > > > > tia > > Gareth. > > I don't think so. Do you use gb.qt or gb.gtk? When using this syntax, your picture is scaled, unless 320x240 is its original size. Is it? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ronstk at ...239... Fri Jul 27 00:02:46 2007 From: ronstk at ...239... (ron) Date: Fri, 27 Jul 2007 00:02:46 +0200 Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <16285400.4561185485786425.JavaMail.root@...1708...> References: <16285400.4561185485786425.JavaMail.root@...1708...> Message-ID: <200707270002.46545.ronstk@...239...> On Thursday 26 July 2007 23:36, Gareth Bult wrote: > Ok, > > I now have nifty little app for recording all my CCTV images off a variable number of camera and it's all looking great. > > However, I don't know where to start with the screen flicker problem .. it did go away initially using the draw code you suggested, but it seems to have come back as a result of using a more recent SVN. > > I use a separate recorder to store the images in Blobs (MySQL) and recover them with; > > File.Save(name, resultSet!image.Data) > $picture = Picture.Load(name) > > Then issue; > > $canvas.Refresh > > Then have; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Works well, but refresh flickering is every couple of seconds and quite frustrating as it destroys viewing "quality". > > Can anyone point me in the right direction re; where to look ? > (There doesn't "seem" to be much scope for my code to cause this ???) > > tia > Gareth. > > -- Once I have made something like your app in VB and a Access database to store the relevant information/picture. I did not store the pictures int the database but only the filenames. Simple because the database is a extra layer in filemanagement and that is done much more efficient then any database engine can do. Think at first the OS hat to determine where the database files are on access request by the database engine. Then the database engine has to look in which record the requested picture is. then again the OS has again work to set a pointer position in the related database files to read the sectors. The database engine must make a temporary file to assemble with those sectors the required picture. Then gambas can read that file for the picture. If it are only filenames in the database then the database does less bytes skipping to seek the start of the filename i.e. 128 bytes for filename against several hundred kilo bytes per picture. The OS filesystem has to follow the filepointers from begin of the database file. The database file can be spread across the disk. Giving the OS the filename, quick found in database, the OS filesystem can does this more efficient. In practice it your way was for me less then 5fps. Using the direct file access I had to implement a delay because the fps was to high to catch the burglar, who is arrested btw. Even add the pictures to a compressed filesystem works more efficient then a database for this case. Just my 2 euro cents :) -- Ron From gambas at ...1... Fri Jul 27 00:11:43 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jul 2007 00:11:43 +0200 Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <16285400.4561185485786425.JavaMail.root@...1708...> References: <16285400.4561185485786425.JavaMail.root@...1708...> Message-ID: <200707270011.43490.gambas@...1...> On jeudi 26 juillet 2007, Gareth Bult wrote: > Ok, > > I now have nifty little app for recording all my CCTV images off a variable > number of camera and it's all looking great. > > However, I don't know where to start with the screen flicker problem .. it > did go away initially using the draw code you suggested, but it seems to > have come back as a result of using a more recent SVN. > > I use a separate recorder to store the images in Blobs (MySQL) and recover > them with; > > File.Save(name, resultSet!image.Data) > $picture = Picture.Load(name) > > Then issue; > > $canvas.Refresh > > Then have; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Works well, but refresh flickering is every couple of seconds and quite > frustrating as it destroys viewing "quality". > > Can anyone point me in the right direction re; where to look ? > (There doesn't "seem" to be much scope for my code to cause this ???) > > tia > Gareth. > Why don't you use a "cached" DrawingArea ? -- Benoit Minisini From gareth at ...1689... Fri Jul 27 00:30:04 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 23:30:04 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <200707270002.46545.ronstk@...239...> Message-ID: <29552914.4601185489004874.JavaMail.root@...1708...> Urm, storage is not the issue - just the presentation. Given I store information on a separate file server, overall performance kills filesystem storage dead. (not to mention your average workstation doesn't have RAID or 1Tb of free storage) The system is designed to play 1-5 frames per second for up to 32 cameras - and it does easily. The main issue is remotely monitoring all the sites in real time via ADSL. (so each site has it's own local capture daemon, and the monitor connects to each site direction using MySQL) [the monitor also used a local MySQL cache to speed up repeat plays and multiple local monitors running in tandem] Anyway ... as I said, the issue is with the display ... everything else thus far seems to be 100% ... Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "ron" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:02:46 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... On Thursday 26 July 2007 23:36, Gareth Bult wrote: > Ok, > > I now have nifty little app for recording all my CCTV images off a variable number of camera and it's all looking great. > > However, I don't know where to start with the screen flicker problem .. it did go away initially using the draw code you suggested, but it seems to have come back as a result of using a more recent SVN. > > I use a separate recorder to store the images in Blobs (MySQL) and recover them with; > > File.Save(name, resultSet!image.Data) > $picture = Picture.Load(name) > > Then issue; > > $canvas.Refresh > > Then have; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Works well, but refresh flickering is every couple of seconds and quite frustrating as it destroys viewing "quality". > > Can anyone point me in the right direction re; where to look ? > (There doesn't "seem" to be much scope for my code to cause this ???) > > tia > Gareth. > > -- Once I have made something like your app in VB and a Access database to store the relevant information/picture. I did not store the pictures int the database but only the filenames. Simple because the database is a extra layer in filemanagement and that is done much more efficient then any database engine can do. Think at first the OS hat to determine where the database files are on access request by the database engine. Then the database engine has to look in which record the requested picture is. then again the OS has again work to set a pointer position in the related database files to read the sectors. The database engine must make a temporary file to assemble with those sectors the required picture. Then gambas can read that file for the picture. If it are only filenames in the database then the database does less bytes skipping to seek the start of the filename i.e. 128 bytes for filename against several hundred kilo bytes per picture. The OS filesystem has to follow the filepointers from begin of the database file. The database file can be spread across the disk. Giving the OS the filename, quick found in database, the OS filesystem can does this more efficient. In practice it your way was for me less then 5fps. Using the direct file access I had to implement a delay because the fps was to high to catch the burglar, who is arrested btw. Even add the pictures to a compressed filesystem works more efficient then a database for this case. Just my 2 euro cents :) -- Ron ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Fri Jul 27 00:39:47 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 23:39:47 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <200707270011.43490.gambas@...1...> Message-ID: <15209424.4631185489587158.JavaMail.root@...1708...> Urm, I was using a picture box and you said; > But the ideal is using a DrawingArea with Cached = FALSE, and drawing the > picture in the Draw event. Or with Cached = TRUE if your picture is not too > big. Well, the picture is ~ 12k bytes at 320x240 or about 55k at 640x480 ... So I opted for Cached = FALSE .. I just tried; draw.Begin($canvas) draw.Picture($picture, 0, 0, 320, 240) draw.End in place of $canvas.Refresh with Cached = TRUE .. got a blank page ... Not sure how cached = True works .. will investigate if you think it will help .. Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:11:43 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... On jeudi 26 juillet 2007, Gareth Bult wrote: > Ok, > > I now have nifty little app for recording all my CCTV images off a variable > number of camera and it's all looking great. > > However, I don't know where to start with the screen flicker problem .. it > did go away initially using the draw code you suggested, but it seems to > have come back as a result of using a more recent SVN. > > I use a separate recorder to store the images in Blobs (MySQL) and recover > them with; > > File.Save(name, resultSet!image.Data) > $picture = Picture.Load(name) > > Then issue; > > $canvas.Refresh > > Then have; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Works well, but refresh flickering is every couple of seconds and quite > frustrating as it destroys viewing "quality". > > Can anyone point me in the right direction re; where to look ? > (There doesn't "seem" to be much scope for my code to cause this ???) > > tia > Gareth. > Why don't you use a "cached" DrawingArea ? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gareth at ...1689... Fri Jul 27 00:51:28 2007 From: gareth at ...1689... (Gareth Bult) Date: Thu, 26 Jul 2007 23:51:28 +0100 (BST) Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <15209424.4631185489587158.JavaMail.root@...1708...> Message-ID: <6692761.4661185490288293.JavaMail.root@...1708...> Ok, Cached = TRUE seems to have fixed it ! :) tvm Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Gareth Bult" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:39:47 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... Urm, I was using a picture box and you said; > But the ideal is using a DrawingArea with Cached = FALSE, and drawing the > picture in the Draw event. Or with Cached = TRUE if your picture is not too > big. Well, the picture is ~ 12k bytes at 320x240 or about 55k at 640x480 ... So I opted for Cached = FALSE .. I just tried; draw.Begin($canvas) draw.Picture($picture, 0, 0, 320, 240) draw.End in place of $canvas.Refresh with Cached = TRUE .. got a blank page ... Not sure how cached = True works .. will investigate if you think it will help .. Gareth. -- Gareth Bult, Encryptec Limited Tel: 0845 25 77033, Mob: 07891 389657 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Thursday, July 26, 2007 11:11:43 PM (GMT) Europe/London Subject: Re: [Gambas-user] Re; Image handling ... On jeudi 26 juillet 2007, Gareth Bult wrote: > Ok, > > I now have nifty little app for recording all my CCTV images off a variable > number of camera and it's all looking great. > > However, I don't know where to start with the screen flicker problem .. it > did go away initially using the draw code you suggested, but it seems to > have come back as a result of using a more recent SVN. > > I use a separate recorder to store the images in Blobs (MySQL) and recover > them with; > > File.Save(name, resultSet!image.Data) > $picture = Picture.Load(name) > > Then issue; > > $canvas.Refresh > > Then have; > > PUBLIC SUB CANVAS_Draw() > draw.Picture($picture, 0, 0, 320, 240) > END > > Works well, but refresh flickering is every couple of seconds and quite > frustrating as it destroys viewing "quality". > > Can anyone point me in the right direction re; where to look ? > (There doesn't "seem" to be much scope for my code to cause this ???) > > tia > Gareth. > Why don't you use a "cached" DrawingArea ? -- Benoit Minisini ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jul 27 00:55:12 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jul 2007 00:55:12 +0200 Subject: [Gambas-user] Re; Image handling ... In-Reply-To: <15209424.4631185489587158.JavaMail.root@...1708...> References: <15209424.4631185489587158.JavaMail.root@...1708...> Message-ID: <200707270055.12835.gambas@...1...> On vendredi 27 juillet 2007, Gareth Bult wrote: > Urm, > > I was using a picture box and you said; > > > But the ideal is using a DrawingArea with Cached = FALSE, and drawing the > > picture in the Draw event. Or with Cached = TRUE if your picture is not > > too big. > > Well, the picture is ~ 12k bytes at 320x240 or about 55k at 640x480 ... > So I opted for Cached = FALSE .. > > I just tried; > > draw.Begin($canvas) > draw.Picture($picture, 0, 0, 320, 240) > draw.End > > in place of $canvas.Refresh with Cached = TRUE .. got a blank page ... > > Not sure how cached = True works .. will investigate if you think it will > help .. > > Gareth. > When a DrawingArea is cached, all Draw commands are redirected to a pixmap cache. This pixmap cache becomes the "background pixmap" of the DrawingArea window. In other words, when the DrawingArea needs to be redrawn, the X server does it directly without any dialog with the X client (your application). So it avoids flickering. Send me your project, maybe I can tell you more. Regards, -- Benoit Minisini From gambas at ...1... Fri Jul 27 02:56:56 2007 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jul 2007 02:56:56 +0200 Subject: [Gambas-user] Real holidays Message-ID: <200707270256.56373.gambas@...1...> I will be in holidays until August, 12th. I'm going to walk about twelve days in the mountains of the France south-east, and so I won't be able to reply to my mails! I'll be back... -- Benoit Minisini From ron at ...1740... Fri Jul 27 12:57:56 2007 From: ron at ...1740... (Ron Klinkien) Date: Fri, 27 Jul 2007 12:57:56 +0200 Subject: [Gambas-user] Question about how to address more than 1 checkbox or picturebox item in for-next loop In-Reply-To: <200707261828.44438.ronstk@...239...> References: <46A8ADB2.6020000@...1740...> <200707261828.44438.ronstk@...239...> Message-ID: <46A9CFB4.5040709@...1740...> ron wrote: > On Thursday 26 July 2007 16:20, Ron Klinkien wrote: > >> DIM i AS Integer >> DIM SensorByte1 as Byte >> DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, >> PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] >> >> >> > Hi Ron from Ron > > change : > DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, > PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] > to > DIM PBoxI AS Object[] = [PictureBoxI0, PictureBoxI1, PictureBoxI2, > PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] > > Why Object? Well that is what it expects regarding the error :) > Not nice but should work > Why Object[]? Because you asign a array of PictureBoxI# to it > > Secondly you can't do DIM PBoxI AS PictureBox[] > > Hoop dat dit helpt. :) > > Groeten: > Ron > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi Ron, Your suggestion above worked perfectly! Heel erg bedankt! Thanks, Ron. From ronstk at ...239... Fri Jul 27 13:42:34 2007 From: ronstk at ...239... (ron) Date: Fri, 27 Jul 2007 13:42:34 +0200 Subject: [Gambas-user] =?iso-8859-1?q?Question_about_how_to_address_more_t?= =?iso-8859-1?q?han_1=09checkbox_or_picturebox_item_in_for-next_loo?= =?iso-8859-1?q?p?= In-Reply-To: <46A9CFB4.5040709@...1740...> References: <46A8ADB2.6020000@...1740...> <200707261828.44438.ronstk@...239...> <46A9CFB4.5040709@...1740...> Message-ID: <200707271342.35169.ronstk@...239...> On Friday 27 July 2007 12:57, Ron Klinkien wrote: > ron wrote: > > On Thursday 26 July 2007 16:20, Ron Klinkien wrote: > > Good to hear. Just a tip I use in real programming where the Object is required. 1) if the DIM is inside the sub/function I do 'DIM myPic as Object 'doRun DIM myPic as Picturebox 'doEdit or more I did this as DIM myPic as Object 'Picturebox ' 'doEdit in the time gambas did support, with the old editor, drag and drop on code I did drag the correct "keyword ' " in place :( Before the compile/run I place the remarks sign to the line below by find the lines with i.e. 'doRun' 2) if the declaration in global part of the file. PUBLIC myPic as Object 'doRun SUB showpic() DIM myPic as Picturebox 'doEdit .... END Before the compile and/or run I put a remark at the DIM line Now the auto completion works with correct object properties/methods during edit time. When gambas support the C form of #IF x=y #end (conditional compile) this will be a peace of cake. Ron > >> DIM i AS Integer > >> DIM SensorByte1 as Byte > >> DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, > >> PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] > >> > >> > >> > > Hi Ron from Ron > > > > change : > > DIM PBoxI AS PictureBox = [PictureBoxI0, PictureBoxI1, PictureBoxI2, > > PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] > > to > > DIM PBoxI AS Object[] = [PictureBoxI0, PictureBoxI1, PictureBoxI2, > > PictureBoxI3, PictureBoxI4, PictureBoxI5, PictureBoxI6, PictureBoxI7] > > > > Why Object? Well that is what it expects regarding the error :) > > Not nice but should work > > Why Object[]? Because you asign a array of PictureBoxI# to it > > > > Secondly you can't do DIM PBoxI AS PictureBox[] > > > > Hoop dat dit helpt. :) > > > > Groeten: > > Ron From ronstk at ...239... Fri Jul 27 13:47:52 2007 From: ronstk at ...239... (ron) Date: Fri, 27 Jul 2007 13:47:52 +0200 Subject: [Gambas-user] Real holidays In-Reply-To: <200707270256.56373.gambas@...1...> References: <200707270256.56373.gambas@...1...> Message-ID: <200707271347.52309.ronstk@...239...> On Friday 27 July 2007 02:56, Benoit Minisini wrote: > I will be in holidays until August, 12th. I'm going to walk about twelve days > in the mountains of the France south-east, and so I won't be able to reply to > my mails! > > I'll be back... > Have a good time Benoit and do eat real gambas to get inspiration for your project. :) You deserve it :) -- Ron P.S. Not to much otherwise you start to hate it :( From capodastro at ...626... Sat Jul 28 02:14:05 2007 From: capodastro at ...626... (Capodastro) Date: Sat, 28 Jul 2007 02:14:05 +0200 Subject: [Gambas-user] Real holidays In-Reply-To: <200707271347.52309.ronstk@...239...> References: <200707270256.56373.gambas@...1...> <200707271347.52309.ronstk@...239...> Message-ID: yes, they are magnificent, and also origin of the Italian king family. Have a great time! Ben On 7/27/07, ron wrote: > On Friday 27 July 2007 02:56, Benoit Minisini wrote: > > I will be in holidays until August, 12th. I'm going to walk about twelve > days > > in the mountains of the France south-east, and so I won't be able to reply > to > > my mails! > > > > I'll be back... > > > > Have a good time Benoit and do eat real gambas > to get inspiration for your project. :) > > You deserve it :) > > -- > Ron > > P.S. Not to much otherwise you start to hate it :( > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user >