From david_villalobos_c at ...7... Wed Aug 6 15:40:26 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 6 Aug 2008 06:40:26 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <806002.2397.qm@...566...> Hello Benoit, did you have time to review the project? David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Wednesday, July 30, 2008 6:16:47 AM Subject: Re: [Gambas-devel] New controls Sorry for be late, here is the project. Please take a look and tell me. Regards David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Tuesday, July 22, 2008 4:57:21 PM Subject: Re: [Gambas-devel] New controls Hi Benoit, I tried to inherits TextLabel, but How Can I pass the container. I mean, Private hMessageLabel As New TextLabel( Container ) Please, what do I have to put in the container section. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Saturday, July 19, 2008 4:38:31 AM Subject: Re: [Gambas-devel] New controls On mardi 15 juillet 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > I have written two classes that provide two controls, we can add it to > gb.form > > One of them is called: MessageLabel, its goal is to provides a ?Status > Label?, so, you can send a message and say if this message is Error type > (red background), Info (green background), etc. I wrote it because is a > good practice to inform the user about the ?events? that happens in the > program like Gambas IDE does, so I added a color background to call the > attention of the user. > > The other one is called MemInfo, its goal is to provide a label that return > the memory used by the application. I think in some programs we will need > to know the amount of memory used. > > In the project has a form to show how it works, so, install the component > and then uncomment all the code and run it. > > So, please take a look and please tell me what do you think. > > > Best regards > > David Hi David, I looked at both controls, and I'm not really convinced by MemInfo. The MemInfo won't tell you the real memory used by the process. There are two good ways to do that, depending on what you want to know. None of them is really accurate. The first one is what does the Gambas script example on the wiki: calculate the memory used by the system without I/O caches before starting the program, and during its execution. The difference is the actual memory used by the program. The second one is analysing the memory used by *all* processes with the 'pmap' program, and then calculating the memory used by the examined process by giving a weight to each memory segment. A non-shared memory section is fully attributed to the process, a shared memory section is given a weight inversely proportional to the number of processes using it. Anyway, I'm not sure putting this control in a common component is useful, even if it would give the right information, because it is very rarely used. The MessageLabel is more useful. But it needs some work: * The MessageLabel should have an AutoResize property, like the Label. * The standard background must be used for "normal" messages. * Why do you use "Export Optional"? * The MsgXXXX properties should be renamed to XXXXColor. This is far more readable. * A Clear() method to clear the label, and stop the internal timer. * Why is there a Default property? * Did you try to implement the control by directly inherit Label? Your MessageLabel makes me think... If you are brave, here is another thing that you could implement: It is a sort of internal message box like Firefox uses. It should be a component that exports a Message class to replace the old one, and a MessagePanel control that the user put inside its main form. Only one MessagePanel by application should be enough. The MessagePanel should not actually be needed, if you can insert it automatically in the main form by using some Reparent() magic, and let the user specifying where it should be inserted (on top/bottom of a specified control). Tell me what you think abot that! Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From garulfounix at ...176... Wed Aug 6 18:07:29 2008 From: garulfounix at ...176... (Garulfo Unix) Date: Wed, 6 Aug 2008 18:07:29 +0200 Subject: [Gambas-devel] New controls In-Reply-To: <806002.2397.qm@...566...> References: <806002.2397.qm@...566...> Message-ID: <83453ff10808060907u6b471b07h2958153f6a941160@...178...> Hi David, I think Benoit is gone in holiday ! Fran?ois. 2008/8/6 David Villalobos Cambronero > Hello Benoit, did you have time to review the project? > > > David > > > > ----- Original Message ---- > From: David Villalobos Cambronero > To: mailing list for gambas developers > > Sent: Wednesday, July 30, 2008 6:16:47 AM > Subject: Re: [Gambas-devel] New controls > > Sorry for be late, here is the project. Please take a look and tell me. > > Regards > > > David > > > > ----- Original Message ---- > From: David Villalobos Cambronero > To: mailing list for gambas developers > > Sent: Tuesday, July 22, 2008 4:57:21 PM > Subject: Re: [Gambas-devel] New controls > > Hi Benoit, > > I tried to inherits TextLabel, but How Can I pass the container. I mean, > > Private hMessageLabel As New TextLabel( Container ) > > Please, what do I have to put in the container section. > > Regards > > > David > > > > ----- Original Message ---- > From: Benoit Minisini > To: mailing list for gambas developers > > Sent: Saturday, July 19, 2008 4:38:31 AM > Subject: Re: [Gambas-devel] New controls > > On mardi 15 juillet 2008, David Villalobos Cambronero wrote: > > Hi Benoit: > > > > I have written two classes that provide two controls, we can add it to > > gb.form > > > > One of them is called: MessageLabel, its goal is to provides a "Status > > Label", so, you can send a message and say if this message is Error type > > (red background), Info (green background), etc. I wrote it because is a > > good practice to inform the user about the "events" that happens in the > > program like Gambas IDE does, so I added a color background to call the > > attention of the user. > > > > The other one is called MemInfo, its goal is to provide a label that > return > > the memory used by the application. I think in some programs we will need > > to know the amount of memory used. > > > > In the project has a form to show how it works, so, install the component > > and then uncomment all the code and run it. > > > > So, please take a look and please tell me what do you think. > > > > > > Best regards > > > > David > > Hi David, > > I looked at both controls, and I'm not really convinced by MemInfo. > > The MemInfo won't tell you the real memory used by the process. There are > two > good ways to do that, depending on what you want to know. None of them is > really accurate. > > The first one is what does the Gambas script example on the wiki: calculate > the memory used by the system without I/O caches before starting the > program, > and during its execution. The difference is the actual memory used by the > program. > > The second one is analysing the memory used by *all* processes with the > 'pmap' > program, and then calculating the memory used by the examined process by > giving a weight to each memory segment. A non-shared memory section is > fully > attributed to the process, a shared memory section is given a weight > inversely proportional to the number of processes using it. > > Anyway, I'm not sure putting this control in a common component is useful, > even if it would give the right information, because it is very rarely > used. > > The MessageLabel is more useful. But it needs some work: > > * The MessageLabel should have an AutoResize property, like the Label. > * The standard background must be used for "normal" messages. > * Why do you use "Export Optional"? > * The MsgXXXX properties should be renamed to XXXXColor. This is far more > readable. > * A Clear() method to clear the label, and stop the internal timer. > * Why is there a Default property? > * Did you try to implement the control by directly inherit Label? > > Your MessageLabel makes me think... If you are brave, here is another thing > that you could implement: > > It is a sort of internal message box like Firefox uses. It should be a > component that exports a Message class to replace the old one, and a > MessagePanel control that the user put inside its main form. Only one > MessagePanel by application should be enough. The MessagePanel should not > actually be needed, if you can insert it automatically in the main form by > using some Reparent() magic, and let the user specifying where it should be > inserted (on top/bottom of a specified control). > > Tell me what you think abot that! > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david_villalobos_c at ...7... Wed Aug 6 18:45:05 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 6 Aug 2008 09:45:05 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <448685.75154.qm@...591...> Ohhh thanks... let's hope hi has some rest. --- David ----- Original Message ---- From: Garulfo Unix To: mailing list for gambas developers Sent: Wednesday, August 6, 2008 10:07:29 AM Subject: Re: [Gambas-devel] New controls Hi David, I think Benoit is gone in holiday ! Fran?ois. 2008/8/6 David Villalobos Cambronero Hello Benoit, did you have time to review the project? David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Wednesday, July 30, 2008 6:16:47 AM Subject: Re: [Gambas-devel] New controls Sorry for be late, here is the project. Please take a look and tell me. Regards David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Tuesday, July 22, 2008 4:57:21 PM Subject: Re: [Gambas-devel] New controls Hi Benoit, I tried to inherits TextLabel, but How Can I pass the container. I mean, Private hMessageLabel As New TextLabel( Container ) Please, what do I have to put in the container section. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Saturday, July 19, 2008 4:38:31 AM Subject: Re: [Gambas-devel] New controls On mardi 15 juillet 2008, David Villalobos Cambronero wrote: > Hi Benoit: > > I have written two classes that provide two controls, we can add it to > gb.form > > One of them is called: MessageLabel, its goal is to provides a "Status > Label", so, you can send a message and say if this message is Error type > (red background), Info (green background), etc. I wrote it because is a > good practice to inform the user about the "events" that happens in the > program like Gambas IDE does, so I added a color background to call the > attention of the user. > > The other one is called MemInfo, its goal is to provide a label that return > the memory used by the application. I think in some programs we will need > to know the amount of memory used. > > In the project has a form to show how it works, so, install the component > and then uncomment all the code and run it. > > So, please take a look and please tell me what do you think. > > > Best regards > > David Hi David, I looked at both controls, and I'm not really convinced by MemInfo. The MemInfo won't tell you the real memory used by the process. There are two good ways to do that, depending on what you want to know. None of them is really accurate. The first one is what does the Gambas script example on the wiki: calculate the memory used by the system without I/O caches before starting the program, and during its execution. The difference is the actual memory used by the program. The second one is analysing the memory used by *all* processes with the 'pmap' program, and then calculating the memory used by the examined process by giving a weight to each memory segment. A non-shared memory section is fully attributed to the process, a shared memory section is given a weight inversely proportional to the number of processes using it. Anyway, I'm not sure putting this control in a common component is useful, even if it would give the right information, because it is very rarely used. The MessageLabel is more useful. But it needs some work: * The MessageLabel should have an AutoResize property, like the Label. * The standard background must be used for "normal" messages. * Why do you use "Export Optional"? * The MsgXXXX properties should be renamed to XXXXColor. This is far more readable. * A Clear() method to clear the label, and stop the internal timer. * Why is there a Default property? * Did you try to implement the control by directly inherit Label? Your MessageLabel makes me think... If you are brave, here is another thing that you could implement: It is a sort of internal message box like Firefox uses. It should be a component that exports a Message class to replace the old one, and a MessagePanel control that the user put inside its main form. Only one MessagePanel by application should be enough. The MessagePanel should not actually be needed, if you can insert it automatically in the main form by using some Reparent() magic, and let the user specifying where it should be inserted (on top/bottom of a specified control). Tell me what you think abot that! Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From kari.laine at ...605... Thu Aug 7 23:15:19 2008 From: kari.laine at ...605... (Kari Laine) Date: Fri, 08 Aug 2008 00:15:19 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem Message-ID: <489B65E7.2040209@...605...> Hi, I hope someone is kind enough the help me to figure this out. I am learning how Gambas works. I use two tools for it - snavigator - ddd I have compiled Gambas with ./configure --disable-optimization to disable optimization Even though the DDD still jumps illogically around when debugging the EXEC_loop . Why is that? Help please... Best Regards Kari Laine From klaine8 at ...176... Fri Aug 8 18:47:17 2008 From: klaine8 at ...176... (Kari Laine) Date: Fri, 8 Aug 2008 19:47:17 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <489B65E7.2040209@...605...> References: <489B65E7.2040209@...605...> Message-ID: <61452b690808080947m713b4691p15ada89665d2ffe6@...178...> Found it ! there is somewhere in the makefiles -O3 which replaces -O0. I will try to fix this. Best Regards Kari On Fri, Aug 8, 2008 at 12:15 AM, Kari Laine wrote: > Hi, > > I hope someone is kind enough the help me to figure this out. I am > learning how Gambas works. I use two tools for it > - snavigator > - ddd > > I have compiled Gambas with ./configure --disable-optimization to > disable optimization > > Even though the DDD still jumps illogically around when debugging the > EXEC_loop . > > Why is that? Help please... > > Best Regards > Kari Laine > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sat Aug 9 09:58:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 9 Aug 2008 09:58:14 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <61452b690808080947m713b4691p15ada89665d2ffe6@...178...> References: <489B65E7.2040209@...605...> <61452b690808080947m713b4691p15ada89665d2ffe6@...178...> Message-ID: <200808090958.15040.gambas@...1...> On vendredi 08 ao?t 2008, Kari Laine wrote: > Found it ! > > there is somewhere in the makefiles -O3 which replaces -O0. I will try to > fix this. > > Best Regards > Kari > Yes. It was a trick to force gcc to use -O3 and not -Os for a specific file. And I didn't realize that the --disable-optimization flag is not taken into account then. I must find a way to specify file-specific compilation flags with automake. If you have ideas... :-) Regards, -- Benoit Minisini From klaine8 at ...176... Sat Aug 9 20:32:46 2008 From: klaine8 at ...176... (Kari Laine) Date: Sat, 9 Aug 2008 21:32:46 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808090958.15040.gambas@...1...> References: <489B65E7.2040209@...605...> <61452b690808080947m713b4691p15ada89665d2ffe6@...178...> <200808090958.15040.gambas@...1...> Message-ID: <61452b690808091132o7a5ff3e1x669f5c71e8a86fb8@...178...> Hi Benoit, sorry don't understand automake enough ... I just changed the Makefile. Why do you need to have different optimization even in case with --disable-optimization? Thanks again for you great work with Gambas. Another thing. I read in one of the messages that you cannot test KDE 4.1 because you don't have good enough graphics card...did I understand right? Anyway I propose we on the list donate you the money to buy one - I can put up with 100euros this month - any others? I haven't seen this KDE 4.1 myself. Is it so that it requires OpenGL to work? How about older graphics cards - can you not use it at all with it? I suppose in that case distribution makers must have a choice to install older KDE. What kind of problems you expect with Gambas? Best Regards Kari On Sat, Aug 9, 2008 at 10:58 AM, Benoit Minisini < gambas at ...1...> wrote: > On vendredi 08 ao?t 2008, Kari Laine wrote: > > Found it ! > > > > there is somewhere in the makefiles -O3 which replaces -O0. I will try to > > fix this. > > > > Best Regards > > Kari > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a specific > file. > And I didn't realize that the --disable-optimization flag is not taken into > account then. > > I must find a way to specify file-specific compilation flags with automake. > If > you have ideas... :-) > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sat Aug 9 20:54:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 9 Aug 2008 20:54:33 +0200 Subject: [Gambas-devel] New controls In-Reply-To: <448685.75154.qm@...591...> References: <448685.75154.qm@...591...> Message-ID: <200808092054.33117.gambas@...1...> On mercredi 06 ao?t 2008, David Villalobos Cambronero wrote: > Ohhh thanks... let's hope hi has some rest. > > --- > > > David > I was not really in holidays, I was working on a theatre show during the week. Now I am in front of my computer, but I have to work on some patches for KDE 3.5.10 before returning back to Gambas. So be patient! Regards, -- Benoit Minisini From lordheavym at ...176... Sat Aug 9 22:10:00 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 9 Aug 2008 22:10:00 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808090958.15040.gambas@...1...> References: <489B65E7.2040209@...605...> <61452b690808080947m713b4691p15ada89665d2ffe6@...178...> <200808090958.15040.gambas@...1...> Message-ID: <200808092210.00765.lordheavym@...176...> Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez ?crit : > On vendredi 08 ao?t 2008, Kari Laine wrote: > > Found it ! > > > > there is somewhere in the makefiles -O3 which replaces -O0. I will try to > > fix this. > > > > Best Regards > > Kari > > Yes. It was a trick to force gcc to use -O3 and not -Os for a specific > file. And I didn't realize that the --disable-optimization flag is not > taken into account then. > > I must find a way to specify file-specific compilation flags with automake. > If you have ideas... :-) > > Regards, Is it really useful to put only this optimizing option for only one file ? (iguess it's for gb_table.c). ++ From gambas at ...1... Sat Aug 9 22:25:52 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 9 Aug 2008 22:25:52 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808092210.00765.lordheavym@...176...> References: <489B65E7.2040209@...605...> <200808090958.15040.gambas@...1...> <200808092210.00765.lordheavym@...176...> Message-ID: <200808092225.53004.gambas@...1...> On samedi 09 ao?t 2008, Laurent Carlier wrote: > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez ?crit : > > On vendredi 08 ao?t 2008, Kari Laine wrote: > > > Found it ! > > > > > > there is somewhere in the makefiles -O3 which replaces -O0. I will try > > > to fix this. > > > > > > Best Regards > > > Kari > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a specific > > file. And I didn't realize that the --disable-optimization flag is not > > taken into account then. > > > > I must find a way to specify file-specific compilation flags with > > automake. If you have ideas... :-) > > > > Regards, > > Is it really useful to put only this optimizing option for only one file ? > (iguess it's for gb_table.c). > > ++ > Yes. It makes the code of this file about 5% faster, and as this is the main interpreter loop, I think it's worth it. In Gambas 3, another source file has its own optimization flags. But I admit this is not the correct solution. Maybe this is a lack of feature in automake... -- Benoit Minisini From lordheavym at ...176... Sat Aug 9 22:36:55 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 9 Aug 2008 22:36:55 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808092225.53004.gambas@...1...> References: <489B65E7.2040209@...605...> <200808092210.00765.lordheavym@...176...> <200808092225.53004.gambas@...1...> Message-ID: <200808092236.55928.lordheavym@...176...> Le Saturday 09 August 2008 22:25:52 Benoit Minisini, vous avez ?crit : > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez ?crit : > > > On vendredi 08 ao?t 2008, Kari Laine wrote: > > > > Found it ! > > > > > > > > there is somewhere in the makefiles -O3 which replaces -O0. I will > > > > try to fix this. > > > > > > > > Best Regards > > > > Kari > > > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a specific > > > file. And I didn't realize that the --disable-optimization flag is not > > > taken into account then. > > > > > > I must find a way to specify file-specific compilation flags with > > > automake. If you have ideas... :-) > > > > > > Regards, > > > > Is it really useful to put only this optimizing option for only one file > > ? (iguess it's for gb_table.c). > > > > ++ > > Yes. It makes the code of this file about 5% faster, and as this is the > main interpreter loop, I think it's worth it. > > In Gambas 3, another source file has its own optimization flags. > > But I admit this is not the correct solution. Maybe this is a lack of > feature in automake... Add another variable like CORE_OPTIMIZE replaced in automake with -O3 in case of optimizing or with AM_CFLAG otherwise. Perhaps i will take a look tonight after watching TV :-p ++ From gambas at ...1... Sat Aug 9 22:52:20 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 9 Aug 2008 22:52:20 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808092236.55928.lordheavym@...176...> References: <489B65E7.2040209@...605...> <200808092225.53004.gambas@...1...> <200808092236.55928.lordheavym@...176...> Message-ID: <200808092252.20560.gambas@...1...> On samedi 09 ao?t 2008, Laurent Carlier wrote: > Le Saturday 09 August 2008 22:25:52 Benoit Minisini, vous avez ?crit : > > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez ?crit : > > > > On vendredi 08 ao?t 2008, Kari Laine wrote: > > > > > Found it ! > > > > > > > > > > there is somewhere in the makefiles -O3 which replaces -O0. I will > > > > > try to fix this. > > > > > > > > > > Best Regards > > > > > Kari > > > > > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a > > > > specific file. And I didn't realize that the --disable-optimization > > > > flag is not taken into account then. > > > > > > > > I must find a way to specify file-specific compilation flags with > > > > automake. If you have ideas... :-) > > > > > > > > Regards, > > > > > > Is it really useful to put only this optimizing option for only one > > > file ? (iguess it's for gb_table.c). > > > > > > ++ > > > > Yes. It makes the code of this file about 5% faster, and as this is the > > main interpreter loop, I think it's worth it. > > > > In Gambas 3, another source file has its own optimization flags. > > > > But I admit this is not the correct solution. Maybe this is a lack of > > feature in automake... > > Add another variable like CORE_OPTIMIZE replaced in automake with -O3 in > case of optimizing or with AM_CFLAG otherwise. > > Perhaps i will take a look tonight after watching TV :-p > > ++ > Well, this topic is covered in the automake manual. Type that in Konqueror: info:/automake/Per-Object Flags In a few words, per-object flags is not supported, but there are workarounds that need some work. Regards, -- Benoit Minisini From lordheavym at ...176... Sun Aug 10 16:33:21 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sun, 10 Aug 2008 16:33:21 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808092252.20560.gambas@...1...> References: <489B65E7.2040209@...605...> <200808092236.55928.lordheavym@...176...> <200808092252.20560.gambas@...1...> Message-ID: <200808101633.22076.lordheavym@...176...> Le Saturday 09 August 2008 22:52:20 Benoit Minisini, vous avez ?crit : > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > Le Saturday 09 August 2008 22:25:52 Benoit Minisini, vous avez ?crit : > > > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > > > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez ?crit : > > > > > On vendredi 08 ao?t 2008, Kari Laine wrote: > > > > > > Found it ! > > > > > > > > > > > > there is somewhere in the makefiles -O3 which replaces -O0. I > > > > > > will try to fix this. > > > > > > > > > > > > Best Regards > > > > > > Kari > > > > > > > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a > > > > > specific file. And I didn't realize that the --disable-optimization > > > > > flag is not taken into account then. > > > > > > > > > > I must find a way to specify file-specific compilation flags with > > > > > automake. If you have ideas... :-) > > > > > > > > > > Regards, > > > > > > > > Is it really useful to put only this optimizing option for only one > > > > file ? (iguess it's for gb_table.c). > > > > > > > > ++ > > > > > > Yes. It makes the code of this file about 5% faster, and as this is the > > > main interpreter loop, I think it's worth it. > > > > > > In Gambas 3, another source file has its own optimization flags. > > > > > > But I admit this is not the correct solution. Maybe this is a lack of > > > feature in automake... > > > > Add another variable like CORE_OPTIMIZE replaced in automake with -O3 in > > case of optimizing or with AM_CFLAG otherwise. > > > > Perhaps i will take a look tonight after watching TV :-p > > > > ++ > > Well, this topic is covered in the automake manual. Type that in Konqueror: > > info:/automake/Per-Object Flags > > In a few words, per-object flags is not supported, but there are > workarounds that need some work. > > Regards, Ok, so this is my solution: In the configure.ac file i check for $gambas_optimization to detect if --enable- optimization is not set (not "yes") and subtitute an $optimized_CFLAGS with the proper value if optimized (here -O3) or with an empty string otherwise. Attached is the configure.ac file for trunk/main and Mafile.am file for trunk/main/gbx I'm waiting for your comments. Regards, -------------- next part -------------- dnl ---- configure.ac for main programs AC_INIT(configure.ac) AC_CONFIG_SUBDIRS(libltdl) GB_INIT(main) AC_PROG_LIBTOOL AM_PROG_CC_C_O dnl ---- Check for internationalization library GB_COMPONENT( intl, INTL, [external internationalization library], [], [GB_FIND(libintl.h, /usr/local /usr, include)], [GB_FIND(libintl.$SHLIBEXT, /usr/local /usr /, lib)], [-lintl], [], [This library may be located inside the system C library, so let's go on...]) dnl ---- Check for charset conversion library GB_COMPONENT( conv, CONV, [optional external charset conversion library], [], [GB_FIND(iconv.h, /usr/local /usr, include)], [GB_FIND(libiconv.$SHLIBEXT, /usr/local /usr, lib)], [-liconv], [], [This library may be located inside the system C library, so let's go on...]) dnl ---- Check for gettext library if test "x$GETTEXT_LIB" != x; then GB_COMPONENT( gettext, GETTEXT, [external gettext library], [], [], [GB_FIND(libgettextlib.$SHLIBEXT, /usr/local /usr, lib)], [-lgettextlib], [], [This library may be located inside the system C library, so let's go on...]) fi dnl ---- Check for ffi library GB_COMPONENT_PKG_CONFIG( ffi, FFI, [foreign function interface], [], libffi, [], [Cannot find libffi support with pkg-config]) if test -z "$FFI_LIB"; then GB_COMPONENT( ffi, FFI, [foreign function interface], [], [GB_FIND(ffi.h, /usr/local /usr/local/lib /usr /usr/lib /usr/lib/gcc/*/*, include ffi/include)], [GB_FIND(libffi.$SHLIBEXT, /usr/local /usr, lib)], [-lffi]) fi dnl ---- Remove DISABLED file that could have been generated before rm -f DISABLED dnl ---- Should I use libtool to load shared libraries in gbi and gbx ? if test "$SYSTEM" != "CYGWIN"; then AC_DEFINE(DONT_USE_LTDL, 1, [Do not use libtool to load shared libraries]) if test "$SYSTEM" != "OPENBSD"; then DL_LIB="-ldl" else DL_LIB="" fi else DL_LIB=$LIBLTDL fi AC_SUBST(DL_LIB) dnl ---- Check for Portland scripts AC_CHECK_PROGS(XDG_UTILS, [xdg-mime xdg-icon-resource], []) dnl ---- Other options AC_ARG_ENABLE( preloading, [ --enable-preloading enable preloading (default: yes)], gambas_preloading=$enableval, gambas_preloading=yes ) if test "$SYSTEM" != "CYGWIN"; then if test "$gambas_preloading" = "yes"; then AC_DEFINE(DO_PRELOADING, 1, allows shared library preloading ) fi else if test "$gambas_preloading" = "yes"; then AC_MSG_WARN([Preloading is disabled on this system]) fi fi dnl ---- Specific optimizations if test "$gambas_optimization" = "yes"; then optimized_FLAGS="-O3" else optimized_FLAGS="" fi AC_SUBST(optimized_FLAGS) dnl ---- Create makefiles AC_OUTPUT( \ Makefile \ share/Makefile \ gbc/Makefile \ gbx/Makefile \ lib/Makefile \ lib/debug/Makefile \ lib/eval/Makefile \ lib/db/Makefile \ lib/vb/Makefile \ lib/compress/Makefile \ lib/option/Makefile \ lib/draw/Makefile \ lib/gui/Makefile \ ) -------------- next part -------------- INCLUDES = -I$(top_srcdir)/share @INTL_INC@ @CONV_INC@ @GBX_THREAD_INC@ @INCLTDL@ @FFI_INC@ bin_PROGRAMS = gbx3 gblib_LTLIBRARIES = gb.la gbx3_LDADD = @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @GBX_THREAD_LIB@ @FFI_LIB@ gbx3_CFLAGS = -DGAMBAS_PATH="\"$(bindir)\"" $(AM_CFLAGS) gb_la_LIBADD = @MATH_LIB@ @INTL_LIB@ @CONV_LIB@ @GETTEXT_LIB@ @DL_LIB@ @GBX_THREAD_LIB@ @FFI_LIB@ gb_la_LDFLAGS = -module @LD_FLAGS@ @FFI_LDFLAGS@ gb_la_CFLAGS = -DGBX_INFO $(AM_CFLAGS) -O0 gbx3_SOURCES = \ gb_common_check.h gb_common.c \ gbx_debug.h gbx_debug.c \ gb_error.h gb_error.c \ gb_alloc.c gb_array.c \ gbx_stack.h gbx_stack.c \ gb_buffer.c gbx_replace.c \ gb_list.c \ gb_hash.c \ gb_table.c \ gbx_type.h gbx_type.c \ gbx_value.h gbx_value.c \ gbx_subst.h gbx_subst.c \ gbx_exec.h gbx_exec.c gbx_exec_push.c gbx_exec_enum.c gbx_exec_pop.c gbx_exec_loop.c \ gbx_class_desc.h gbx_class.h gbx_class_init.c gbx_class.c gbx_class_native.c \ gbx_class_load.c gbx_class_load.h \ gbx_event.h gbx_event.c \ gb_file.h gb_file.c \ gbx_stream.h gbx_stream.c gbx_stream_direct.c gbx_stream_buffer.c gbx_stream_memory.c \ gbx_stream_arch.c gbx_stream_process.c gbx_stream_pipe.c \ gbx_project.h gbx_project.c \ gbx_library.h gbx_library.c \ gbx_subr.h gbx_subr.c \ gbx_subr_file.c gbx_subr_string.c gbx_subr_conv.c gbx_subr_time.c gbx_subr_extern.c gbx_subr_misc.c \ gbx_math.h gbx_math.c \ gbx_subr_math_temp.h gbx_subr_math.c \ gbx_subr_test_temp.h gbx_subr_test.c \ gbx_api.h gbx_api.c \ gbx_local.h gbx_local.c \ gbx_regexp.h gbx_regexp.c \ gbx_archive.h gbx_archive.c \ gbx_watch.h gbx_watch.c \ gbx_expression.h gbx_eval.h gbx_eval.c \ gbx_compare.h gbx_compare.c \ gbx.c \ gbx_number.h gbx_number.c \ gbx_object.h gbx_object.c \ gbx_string.h gbx_string.c \ gbx_variant.h \ gbx_date.h gbx_date.c \ gbx_array.h gbx_array.c \ gbx_c_class.h gbx_c_class.c \ gbx_c_collection.h gbx_c_collection.c \ gbx_c_error.h gbx_c_error.c \ gbx_c_gambas.h gbx_c_gambas.c \ gbx_c_file.h gbx_c_file.c \ gbx_c_application.h gbx_c_application.c \ gbx_c_array.h gbx_c_array.c \ gbx_c_process.h gbx_c_process.c \ gbx_c_subcollection.h gbx_c_subcollection.c \ gbx_c_string.h gbx_c_string.c \ gbx_component.h gbx_component.c \ gbx_extern.h gbx_extern.c \ gbx_print.h gbx_print.c \ gbx_c_enum.h gbx_c_enum.c \ gbx_c_timer.h gbx_c_timer.c \ gbx_c_quote.h gbx_c_quote.c gb_la_SOURCES = \ gbx_info.h \ gbx_local.h gbx_compare.h gbx_date.h \ gbx_c_class.h gbx_c_class.c \ gbx_c_collection.h gbx_c_collection.c \ gbx_c_error.h gbx_c_error.c \ gbx_c_gambas.h gbx_c_gambas.c \ gbx_c_file.h gbx_c_file.c \ gbx_c_application.h gbx_c_application.c \ gbx_c_array.h gbx_c_array.c \ gbx_c_process.h gbx_c_process.c \ gbx_c_string.h gbx_c_string.c \ gbx_c_subcollection.h gbx_c_subcollection.c \ gbx_c_enum.h gbx_c_enum.c \ gbx_c_timer.h gbx_c_timer.c \ gbx_c_quote.h gbx_c_quote.c \ gbx_class_info.c gbx3-gbx_exec_loop.o: gbx_exec_loop.c if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gbx3_CFLAGS) $(optimized_FLAGS) $(CFLAGS) -MT gbx3-gbx_exec_loop.o -MD -MP -MF "$(DEPDIR)/gbx3-gbx_exec_loop.Tpo" -c -o gbx3-gbx_exec_loop.o `test -f 'gbx_exec_loop.c' || echo '$(srcdir)/'`gbx_exec_loop.c; then mv -f "$(DEPDIR)/gbx3-gbx_exec_loop.Tpo" "$(DEPDIR)/gbx3-gbx_exec_loop.Po"; else rm -f "$(DEPDIR)/gbx3-gbx_exec_loop.Tpo"; exit 1; fi gbx3-gb_error.o: gb_error.c if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gbx3_CFLAGS) $(optimized_FLAGS) $(CFLAGS) -MT gbx3-gb_error.o -MD -MP -MF "$(DEPDIR)/gbx3-gb_error.Tpo" -c -o gbx3-gb_error.o `test -f 'gb_error.c' || echo '$(srcdir)/'`gb_error.c; then mv -f "$(DEPDIR)/gbx3-gb_error.Tpo" "$(DEPDIR)/gbx3-gb_error.Po"; else rm -f "$(DEPDIR)/gbx3-gb_error.Tpo"; exit 1; fi From klaine8 at ...176... Sun Aug 10 19:50:40 2008 From: klaine8 at ...176... (Kari Laine) Date: Sun, 10 Aug 2008 20:50:40 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808101633.22076.lordheavym@...176...> References: <489B65E7.2040209@...605...> <200808092236.55928.lordheavym@...176...> <200808092252.20560.gambas@...1...> <200808101633.22076.lordheavym@...176...> Message-ID: <61452b690808101050n695baeecl99aa7f80620d0e0b@...178...> On Sun, Aug 10, 2008 at 5:33 PM, Laurent Carlier wrote: > Le Saturday 09 August 2008 22:52:20 Benoit Minisini, vous avez ?crit : > > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > > Le Saturday 09 August 2008 22:25:52 Benoit Minisini, vous avez ?crit : > > > > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > > > > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez > ?crit : > > > > > > On vendredi 08 ao?t 2008, Kari Laine wrote: > > > > > > > Found it ! > > > > > > > > > > > > > > there is somewhere in the makefiles -O3 which replaces -O0. I > > > > > > > will try to fix this. > > > > > > > > > > > > > > Best Regards > > > > > > > Kari > > > > > > > > > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a > > > > > > specific file. And I didn't realize that the > --disable-optimization > > > > > > flag is not taken into account then. > > > > > > > > > > > > I must find a way to specify file-specific compilation flags with > > > > > > automake. If you have ideas... :-) > > > > > > > > > > > > Regards, > > > > > > > > > > Is it really useful to put only this optimizing option for only one > > > > > file ? (iguess it's for gb_table.c). > > > > > > > > > > ++ > > > > > > > > Yes. It makes the code of this file about 5% faster, and as this is > the > > > > main interpreter loop, I think it's worth it. > > > > > > > > In Gambas 3, another source file has its own optimization flags. > > > > > > > > But I admit this is not the correct solution. Maybe this is a lack of > > > > feature in automake... > > > > > > Add another variable like CORE_OPTIMIZE replaced in automake with -O3 > in > > > case of optimizing or with AM_CFLAG otherwise. > > > > > > Perhaps i will take a look tonight after watching TV :-p > > > > > > ++ > > > > Well, this topic is covered in the automake manual. Type that in > Konqueror: > > > > info:/automake/Per-Object Flags > > > > In a few words, per-object flags is not supported, but there are > > workarounds that need some work. > > > > Regards, > > Ok, so this is my solution: > > In the configure.ac file i check for $gambas_optimization to detect if > --enable- > optimization is not set (not "yes") and subtitute an $optimized_CFLAGS with > the proper value if optimized (here -O3) or with an empty string otherwise. > > Attached is the configure.ac file for trunk/main and Mafile.am file for > trunk/main/gbx > > I'm waiting for your comments. > > Regards, > > Hi, thanks for the effort. I run ./reconf-all. Then copied those two files in their postions and ran ./configure --disable-optimization. Then ran make > make_log.txt. From the make_log.txt I still found some files compiled with -O0 -O3 so optimization is on. Next some cuts from log. if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -I/usr/local/lib/libffi-3.0.4/include -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gb_error.o -MD -MP -MF ".deps/gbx3-gb_error.Tpo" -c -o gbx3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c; then mv -f ".deps/gbx3-gb_error.Tpo" ".deps/gbx3-gb_error.Po"; else rm -f ".deps/gbx3-gb_error.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -I/usr/local/lib/libffi-3.0.4/include -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gbx_exec_loop.o -MD -MP -MF ".deps/gbx3-gbx_exec_loop.Tpo" -c -o gbx3-gbx_exec_loop.o `test -f 'gbx_exec_loop.c' || echo './'`gbx_exec_loop.c; then mv -f ".deps/gbx3-gbx_exec_loop.Tpo" ".deps/gbx3-gbx_exec_loop.Po"; else rm -f ".deps/gbx3-gbx_exec_loop.Tpo"; exit 1; fi if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD -MP -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; fi I am not sure I am not misunderstanding something. But here it seems -O3 is added from somewhere. Sorry that I cannot fix it (yet). Best Regards Kari -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at ...176... Sun Aug 10 20:12:30 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sun, 10 Aug 2008 20:12:30 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <61452b690808101050n695baeecl99aa7f80620d0e0b@...178...> References: <489B65E7.2040209@...605...> <200808101633.22076.lordheavym@...176...> <61452b690808101050n695baeecl99aa7f80620d0e0b@...178...> Message-ID: <200808102012.30981.lordheavym@...176...> Le Sunday 10 August 2008 19:50:40 Kari Laine, vous avez ?crit : > On Sun, Aug 10, 2008 at 5:33 PM, Laurent Carlier wrote: > > Le Saturday 09 August 2008 22:52:20 Benoit Minisini, vous avez ?crit : > > > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > > > Le Saturday 09 August 2008 22:25:52 Benoit Minisini, vous avez ?crit : > > > > > On samedi 09 ao?t 2008, Laurent Carlier wrote: > > > > > > Le Saturday 09 August 2008 09:58:14 Benoit Minisini, vous avez > > > > ?crit : > > > > > > > On vendredi 08 ao?t 2008, Kari Laine wrote: > > > > > > > > Found it ! > > > > > > > > > > > > > > > > there is somewhere in the makefiles -O3 which replaces -O0. I > > > > > > > > will try to fix this. > > > > > > > > > > > > > > > > Best Regards > > > > > > > > Kari > > > > > > > > > > > > > > Yes. It was a trick to force gcc to use -O3 and not -Os for a > > > > > > > specific file. And I didn't realize that the > > > > --disable-optimization > > > > > > > > > flag is not taken into account then. > > > > > > > > > > > > > > I must find a way to specify file-specific compilation flags > > > > > > > with automake. If you have ideas... :-) > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > Is it really useful to put only this optimizing option for only > > > > > > one file ? (iguess it's for gb_table.c). > > > > > > > > > > > > ++ > > > > > > > > > > Yes. It makes the code of this file about 5% faster, and as this is > > > > the > > > > > > > main interpreter loop, I think it's worth it. > > > > > > > > > > In Gambas 3, another source file has its own optimization flags. > > > > > > > > > > But I admit this is not the correct solution. Maybe this is a lack > > > > > of feature in automake... > > > > > > > > Add another variable like CORE_OPTIMIZE replaced in automake with -O3 > > > > in > > > > > > case of optimizing or with AM_CFLAG otherwise. > > > > > > > > Perhaps i will take a look tonight after watching TV :-p > > > > > > > > ++ > > > > > > Well, this topic is covered in the automake manual. Type that in > > > > Konqueror: > > > info:/automake/Per-Object Flags > > > > > > In a few words, per-object flags is not supported, but there are > > > workarounds that need some work. > > > > > > Regards, > > > > Ok, so this is my solution: > > > > In the configure.ac file i check for $gambas_optimization to detect if > > --enable- > > optimization is not set (not "yes") and subtitute an $optimized_CFLAGS > > with the proper value if optimized (here -O3) or with an empty string > > otherwise. > > > > Attached is the configure.ac file for trunk/main and Mafile.am file for > > trunk/main/gbx > > > > I'm waiting for your comments. > > > > Regards, > > > > Hi, > > thanks for the effort. I run ./reconf-all. Then copied those two files in > their postions and ran ./configure --disable-optimization. Then ran make > > make_log.txt. From the make_log.txt I still found some files compiled with > -O0 -O3 so optimization is on. Next some cuts from log. > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > -I/usr/local/lib/libffi-3.0.4/include > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gb_error.o -MD -MP > -MF ".deps/gbx3-gb_error.Tpo" -c -o > gbx3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c; then mv -f > ".deps/gbx3-gb_error.Tpo" ".deps/gbx3-gb_error.Po"; else rm -f > ".deps/gbx3-gb_error.Tpo"; exit 1; fi > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > -I/usr/local/lib/libffi-3.0.4/include > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gbx_exec_loop.o -MD > -MP -MF ".deps/gbx3-gbx_exec_loop.Tpo" -c -o gbx3-gbx_exec_loop.o `test -f > 'gbx_exec_loop.c' || echo > './'`gbx_exec_loop.c; then mv -f ".deps/gbx3-gbx_exec_loop.Tpo" > ".deps/gbx3-gbx_exec_loop.Po"; else rm -f ".deps/gbx3-gbx_exec_loop.Tpo"; > exit 1; fi > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD -MP > -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f 'gb_table.c' > || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" > ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; fi > > I am not sure I am not misunderstanding something. But here it seems -O3 is > added from somewhere. Sorry that I cannot fix it (yet). > > Best Regards > Kari try with ./configure --enable-optimization=no Regards, From klaine8 at ...176... Sun Aug 10 20:33:51 2008 From: klaine8 at ...176... (Kari Laine) Date: Sun, 10 Aug 2008 21:33:51 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808102012.30981.lordheavym@...176...> References: <489B65E7.2040209@...605...> <200808101633.22076.lordheavym@...176...> <61452b690808101050n695baeecl99aa7f80620d0e0b@...178...> <200808102012.30981.lordheavym@...176...> Message-ID: <61452b690808101133l1307aa9es83e29fbd111d6579@...178...> On Sun, Aug 10, 2008 at 9:12 PM, Laurent Carlier wrote: > > > Hi, > > > > thanks for the effort. I run ./reconf-all. Then copied those two files in > > their postions and ran ./configure --disable-optimization. Then ran make > > > > make_log.txt. From the make_log.txt I still found some files compiled > with > > -O0 -O3 so optimization is on. Next some cuts from log. > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > -I/usr/local/lib/libffi-3.0.4/include > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gb_error.o -MD -MP > > -MF ".deps/gbx3-gb_error.Tpo" -c -o > > gbx3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c; then mv -f > > ".deps/gbx3-gb_error.Tpo" ".deps/gbx3-gb_error.Po"; else rm -f > > ".deps/gbx3-gb_error.Tpo"; exit 1; fi > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > -I/usr/local/lib/libffi-3.0.4/include > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gbx_exec_loop.o -MD > > -MP -MF ".deps/gbx3-gbx_exec_loop.Tpo" -c -o gbx3-gbx_exec_loop.o `test > -f > > 'gbx_exec_loop.c' || echo > > './'`gbx_exec_loop.c; then mv -f ".deps/gbx3-gbx_exec_loop.Tpo" > > ".deps/gbx3-gbx_exec_loop.Po"; else rm -f ".deps/gbx3-gbx_exec_loop.Tpo"; > > exit 1; fi > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD -MP > > -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f 'gb_table.c' > > || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" > > ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; > fi > > > > I am not sure I am not misunderstanding something. But here it seems -O3 > is > > added from somewhere. Sorry that I cannot fix it (yet). > > > > Best Regards > > Kari > > try with ./configure --enable-optimization=no > > Regards, > Hi, I got the same result. I will test more tomorrow. Thanks again. Best Regards Kari -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at ...176... Sun Aug 10 20:34:23 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sun, 10 Aug 2008 20:34:23 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <61452b690808101133l1307aa9es83e29fbd111d6579@...178...> References: <489B65E7.2040209@...605...> <200808102012.30981.lordheavym@...176...> <61452b690808101133l1307aa9es83e29fbd111d6579@...178...> Message-ID: <200808102034.24015.lordheavym@...176...> Le Sunday 10 August 2008 20:33:51 Kari Laine, vous avez ?crit : > On Sun, Aug 10, 2008 at 9:12 PM, Laurent Carlier wrote: > > > > Hi, > > > > > > thanks for the effort. I run ./reconf-all. Then copied those two files > > > in their postions and ran ./configure --disable-optimization. Then ran > > > make > > > > > > make_log.txt. From the make_log.txt I still found some files compiled > > > > with > > > > > -O0 -O3 so optimization is on. Next some cuts from log. > > > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > > -I/usr/local/lib/libffi-3.0.4/include > > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gb_error.o -MD > > > -MP -MF ".deps/gbx3-gb_error.Tpo" -c -o > > > gbx3-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c; then mv > > > -f ".deps/gbx3-gb_error.Tpo" ".deps/gbx3-gb_error.Po"; else rm -f > > > ".deps/gbx3-gb_error.Tpo"; exit 1; fi > > > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > > -I/usr/local/lib/libffi-3.0.4/include > > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbx3-gbx_exec_loop.o > > > -MD -MP -MF ".deps/gbx3-gbx_exec_loop.Tpo" -c -o gbx3-gbx_exec_loop.o > > > `test > > > > -f > > > > > 'gbx_exec_loop.c' || echo > > > './'`gbx_exec_loop.c; then mv -f ".deps/gbx3-gbx_exec_loop.Tpo" > > > ".deps/gbx3-gbx_exec_loop.Po"; else rm -f > > > ".deps/gbx3-gbx_exec_loop.Tpo"; exit 1; fi > > > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD > > > -MP -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f > > > 'gb_table.c' > > > > > > || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" > > > > > > ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; > > > > fi > > > > > I am not sure I am not misunderstanding something. But here it seems > > > -O3 > > > > is > > > > > added from somewhere. Sorry that I cannot fix it (yet). > > > > > > Best Regards > > > Kari > > > > try with ./configure --enable-optimization=no > > > > Regards, > > Hi, > > I got the same result. I will test more tomorrow. Thanks again. > > Best Regards > Kari a ./reconf too is necessary (before configure) ++ From klaine8 at ...176... Sun Aug 10 21:09:24 2008 From: klaine8 at ...176... (Kari Laine) Date: Sun, 10 Aug 2008 22:09:24 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808102034.24015.lordheavym@...176...> References: <489B65E7.2040209@...605...> <200808102012.30981.lordheavym@...176...> <61452b690808101133l1307aa9es83e29fbd111d6579@...178...> <200808102034.24015.lordheavym@...176...> Message-ID: <61452b690808101209y1125b832w911e12cfcb21f88f@...178...> Hi, On Sun, Aug 10, 2008 at 9:34 PM, Laurent Carlier wrote: > > a ./reconf too is necessary (before configure) > > ++ > Thanks little better now. Only one instance where -O3 is applied. This time in gbc if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD -MP -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; fi Best Regards Kari -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at ...176... Sun Aug 10 21:14:38 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sun, 10 Aug 2008 21:14:38 +0200 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <61452b690808101209y1125b832w911e12cfcb21f88f@...178...> References: <489B65E7.2040209@...605...> <200808102034.24015.lordheavym@...176...> <61452b690808101209y1125b832w911e12cfcb21f88f@...178...> Message-ID: <200808102114.38427.lordheavym@...176...> Le Sunday 10 August 2008 21:09:24 Kari Laine, vous avez ?crit : > Hi, > > On Sun, Aug 10, 2008 at 9:34 PM, Laurent Carlier wrote: > > a ./reconf too is necessary (before configure) > > > > ++ > > Thanks little better now. Only one instance where -O3 is applied. This time > in gbc > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD -MP > -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f 'gb_table.c' > || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" > ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; fi > > > > Best Regards > Kari Because this one (Makefile.am) isn't modified. To change this search for -O3 in the Makefile.am in main/gbc/ and replace it with $(optimized_CFLAGS) then ./reconf .... ++ From gambas at ...1... Sun Aug 10 22:00:33 2008 From: gambas at ...1... (Benoit Minisini) Date: Sun, 10 Aug 2008 22:00:33 +0200 Subject: [Gambas-devel] New controls In-Reply-To: <305850.41397.qm@...584...> References: <305850.41397.qm@...584...> Message-ID: <200808102200.33387.gambas@...1...> On mercredi 30 juillet 2008, David Villalobos Cambronero wrote: > Sorry for be late, here is the project. Please take a look and tell me. > > Regards > > > David > I have just two remarks at the moment: - The word in english is "Custom", not "Costum". - The control should be in the "Form" group, not the "Special" one. After all, this is a label. Regards, -- Benoit Minisini From klaine8 at ...176... Mon Aug 11 09:13:22 2008 From: klaine8 at ...176... (Kari Laine) Date: Mon, 11 Aug 2008 10:13:22 +0300 Subject: [Gambas-devel] I am using ddd to debug - problem In-Reply-To: <200808102114.38427.lordheavym@...176...> References: <489B65E7.2040209@...605...> <200808102034.24015.lordheavym@...176...> <61452b690808101209y1125b832w911e12cfcb21f88f@...178...> <200808102114.38427.lordheavym@...176...> Message-ID: <61452b690808110013o4f2da1e5g9aa2598d0546425f@...178...> Thanks Laurent, hopefully Benoit integrates these changes. Best Regards Kari On Sun, Aug 10, 2008 at 10:14 PM, Laurent Carlier wrote: > Le Sunday 10 August 2008 21:09:24 Kari Laine, vous avez ?crit : > > Hi, > > > > On Sun, Aug 10, 2008 at 9:34 PM, Laurent Carlier > wrote: > > > a ./reconf too is necessary (before configure) > > > > > > ++ > > > > Thanks little better now. Only one instance where -O3 is applied. This > time > > in gbc > > > > if gcc -DHAVE_CONFIG_H -I. -I.. -I../share -I../libltdl > > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > > -fsigned-char -fvisibility=hidden -g -O0 -O3 -MT gbc3-gb_table.o -MD -MP > > -MF ".deps/gbc3-gb_table.Tpo" -c -o gbc3-gb_table.o `test -f 'gb_table.c' > > || echo './'`gb_table.c; then mv -f ".deps/gbc3-gb_table.Tpo" > > ".deps/gbc3-gb_table.Po"; else rm -f ".deps/gbc3-gb_table.Tpo"; exit 1; > fi > > > > > > > > Best Regards > > Kari > > Because this one (Makefile.am) isn't modified. To change this search for > -O3 in > the Makefile.am in main/gbc/ and replace it with $(optimized_CFLAGS) then > ./reconf .... > > ++ > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david_villalobos_c at ...7... Mon Aug 11 15:56:49 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 11 Aug 2008 06:56:49 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <855005.23614.qm@...556...> Hi... jejejejeje my english is not good we will have to add an spell checker to the Gambas IDE... jejejejeje. I'll make the modifications and send it back. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Sunday, August 10, 2008 2:00:33 PM Subject: Re: [Gambas-devel] New controls On mercredi 30 juillet 2008, David Villalobos Cambronero wrote: > Sorry for be late, here is the project. Please take a look and tell me. > > Regards > > > David > I have just two remarks at the moment: - The word in english is "Custom", not "Costum". - The control should be in the "Form" group, not the "Special" one. After all, this is a label. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Tue Aug 12 17:07:48 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 12 Aug 2008 08:07:48 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <150742.90525.qm@...588...> Hi Beniot, Here is the project with the changes, but I found a problem: If the user changes the Background color of the label at execution time, I'm not able to catch the new color since I don't know how to deal with the Background property of TextLabel, I mean, I don't know how store the new color every time the background color changes, any idea? I attached the project with an example. By the way, the icon control should be placed in: ../app/src/gambas3/img/control, right? Regards David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Monday, August 11, 2008 7:56:49 AM Subject: Re: [Gambas-devel] New controls Hi... jejejejeje my english is not good we will have to add an spell checker to the Gambas IDE... jejejejeje. I'll make the modifications and send it back. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Sunday, August 10, 2008 2:00:33 PM Subject: Re: [Gambas-devel] New controls On mercredi 30 juillet 2008, David Villalobos Cambronero wrote: > Sorry for be late, here is the project. Please take a look and tell me. > > Regards > > > David > I have just two remarks at the moment: - The word in english is "Custom", not "Costum". - The control should be in the "Form" group, not the "Special" one. After all, this is a label. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.Extras-2.99.50.tar.gz Type: application/x-gzip Size: 12816 bytes Desc: not available URL: From david_villalobos_c at ...7... Wed Aug 13 14:13:14 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 13 Aug 2008 05:13:14 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <491248.62097.qm@...596...> I fixed a bug. --- David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Tuesday, August 12, 2008 9:07:48 AM Subject: Re: [Gambas-devel] New controls Hi Beniot, Here is the project with the changes, but I found a problem: If the user changes the Background color of the label at execution time, I'm not able to catch the new color since I don't know how to deal with the Background property of TextLabel, I mean, I don't know how store the new color every time the background color changes, any idea? I attached the project with an example. By the way, the icon control should be placed in: ../app/src/gambas3/img/control, right? Regards David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Monday, August 11, 2008 7:56:49 AM Subject: Re: [Gambas-devel] New controls Hi... jejejejeje my english is not good we will have to add an spell checker to the Gambas IDE... jejejejeje. I'll make the modifications and send it back. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Sunday, August 10, 2008 2:00:33 PM Subject: Re: [Gambas-devel] New controls On mercredi 30 juillet 2008, David Villalobos Cambronero wrote: > Sorry for be late, here is the project. Please take a look and tell me. > > Regards > > > David > I have just two remarks at the moment: - The word in english is "Custom", not "Costum". - The control should be in the "Form" group, not the "Special" one. After all, this is a label. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.Extras-2.99.50.tar.gz Type: application/gzip Size: 12824 bytes Desc: not available URL: From gambas at ...1... Wed Aug 13 14:18:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Aug 2008 14:18:07 +0200 Subject: [Gambas-devel] New controls In-Reply-To: <150742.90525.qm@...588...> References: <150742.90525.qm@...588...> Message-ID: <200808131418.07501.gambas@...1...> On mardi 12 ao?t 2008, David Villalobos Cambronero wrote: > Hi Beniot, > > Here is the project with the changes, but I found a problem: If the user > changes the Background color of the label at execution time, I'm not able > to catch the new color since I don't know how to deal with the Background > property of TextLabel, I mean, I don't know how store the new color every > time the background color changes, any idea? As you inherit TextLabel, just reimplement the Background property to track the changes. Do not forget to use SUPER to call the parent implementation. > > I attached the project with an example. > > By the way, the icon control should be placed in: > ../app/src/gambas3/img/control, right? Now you can put it directly in your project, inside a "control" directory. > > Regards > > David > -- Benoit Minisini From kari.laine at ...605... Fri Aug 15 12:29:21 2008 From: kari.laine at ...605... (Kari Laine) Date: Fri, 15 Aug 2008 13:29:21 +0300 Subject: [Gambas-devel] need a bit of explanation - please Message-ID: <48A55A81.8090607@...605...> Hi, I try to figure out Gambas and because I am not C-guru I have used two hours now to understand possibly a basic thing... Could someone help? In function CLASS *CLASS_register_class(GB_DESC *ptr, CLASS *class) There is a loop desc = (CLASS_DESC *)&gambas[1]; for (start = NULL; start == NULL; desc++) The problem I have is to understand this bit switch ((intptr_t)desc->gambas.name) Where gambas.name is initialized to have the values tested in the case clauses? Somehow name's pointer is usefull to give out information. Also in the same switch there is following case (intptr_t)GB_INHERITS_ID: CLASS_inheritance(class, CLASS_find((const char *)desc->gambas.type)); break; Why is CLASS_find called with a generall name like Control ? Hopefully someone understands my question. Best Regards Kari Laine From gambas at ...1... Fri Aug 15 12:38:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 15 Aug 2008 12:38:14 +0200 Subject: [Gambas-devel] need a bit of explanation - please In-Reply-To: <48A55A81.8090607@...605...> References: <48A55A81.8090607@...605...> Message-ID: <200808151238.14738.gambas@...1...> On vendredi 15 ao?t 2008, Kari Laine wrote: > Hi, > > I try to figure out Gambas and because I am not C-guru I have used two > hours now to understand possibly a basic thing... > Could someone help? > > In function > > CLASS *CLASS_register_class(GB_DESC *ptr, CLASS *class) > > There is a loop > > desc = (CLASS_DESC *)&gambas[1]; > > for (start = NULL; start == NULL; desc++) > > The problem I have is to understand this bit > switch ((intptr_t)desc->gambas.name) > Where gambas.name is initialized to have the values tested in the case > clauses? Somehow name's pointer is usefull to give out information. > > Also in the same switch there is following > case (intptr_t)GB_INHERITS_ID: > CLASS_inheritance(class, CLASS_find((const char > *)desc->gambas.type)); > break; > Why is CLASS_find called with a generall name like Control ? > > Hopefully someone understands my question. > > Best Regards > Kari Laine > Sorry, I don't understand what you are asking for... Can you formulate your question differently? -- Benoit Minisini From klaine8 at ...176... Fri Aug 15 13:09:07 2008 From: klaine8 at ...176... (Kari Laine) Date: Fri, 15 Aug 2008 14:09:07 +0300 Subject: [Gambas-devel] need a bit of explanation - please In-Reply-To: <200808151238.14738.gambas@...1...> References: <48A55A81.8090607@...605...> <200808151238.14738.gambas@...1...> Message-ID: <61452b690808150409g7971a8e9i9f73012747ab4bd9@...178...> On Fri, Aug 15, 2008 at 1:38 PM, Benoit Minisini < gambas at ...1...> wrote: > On vendredi 15 ao?t 2008, Kari Laine wrote: > > Hi, > > > > I try to figure out Gambas and because I am not C-guru I have used two > > hours now to understand possibly a basic thing... > > Could someone help? > > > > In function > > > > CLASS *CLASS_register_class(GB_DESC *ptr, CLASS *class) > > > > There is a loop > > > > desc = (CLASS_DESC *)&gambas[1]; > > > > for (start = NULL; start == NULL; desc++) > > > > The problem I have is to understand this bit > > switch ((intptr_t)desc->gambas.name) > > Where gambas.name is initialized to have the values tested in the case > > clauses? Somehow name's pointer is usefull to give out information. > > > > Also in the same switch there is following > > case (intptr_t)GB_INHERITS_ID: > > CLASS_inheritance(class, CLASS_find((const char > > *)desc->gambas.type)); > > break; > > Why is CLASS_find called with a generall name like Control ? > > > > Hopefully someone understands my question. > > > > Best Regards > > Kari Laine > > > > Sorry, I don't understand what you are asking for... Can you formulate your > question differently? > I am not sure if I can ask this in a right way. Could you explain this line. switch ((intptr_t)desc->gambas.name) How gambas.name pointer can be cast to intptr_t? And how it takes one of following values GB_INHERITS_ID GB_AUTO_CREATABLE_ID: GB_NOT_CREATABLE_ID: GB_VIRTUAL_CLASS_ID: GB_HOOK_CHECK_ID Best Regards Kari Laine -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Fri Aug 15 13:31:39 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 15 Aug 2008 13:31:39 +0200 Subject: [Gambas-devel] need a bit of explanation - please In-Reply-To: <61452b690808150409g7971a8e9i9f73012747ab4bd9@...178...> References: <48A55A81.8090607@...605...> <200808151238.14738.gambas@...1...> <61452b690808150409g7971a8e9i9f73012747ab4bd9@...178...> Message-ID: <200808151331.39860.gambas@...1...> On vendredi 15 ao?t 2008, Kari Laine wrote: > On Fri, Aug 15, 2008 at 1:38 PM, Benoit Minisini < > > gambas at ...1...> wrote: > > On vendredi 15 ao?t 2008, Kari Laine wrote: > > > Hi, > > > > > > I try to figure out Gambas and because I am not C-guru I have used two > > > hours now to understand possibly a basic thing... > > > Could someone help? > > > > > > In function > > > > > > CLASS *CLASS_register_class(GB_DESC *ptr, CLASS *class) > > > > > > There is a loop > > > > > > desc = (CLASS_DESC *)&gambas[1]; > > > > > > for (start = NULL; start == NULL; desc++) > > > > > > The problem I have is to understand this bit > > > switch ((intptr_t)desc->gambas.name) > > > Where gambas.name is initialized to have the values tested in the case > > > clauses? Somehow name's pointer is usefull to give out information. > > > > > > Also in the same switch there is following > > > case (intptr_t)GB_INHERITS_ID: > > > CLASS_inheritance(class, CLASS_find((const char > > > *)desc->gambas.type)); > > > break; > > > Why is CLASS_find called with a generall name like Control ? > > > > > > Hopefully someone understands my question. > > > > > > Best Regards > > > Kari Laine > > > > Sorry, I don't understand what you are asking for... Can you formulate > > your question differently? > > I am not sure if I can ask this in a right way. > > Could you explain this line. > switch ((intptr_t)desc->gambas.name) > > How gambas.name pointer can be cast to intptr_t? > > And how it takes one of following values > GB_INHERITS_ID > GB_AUTO_CREATABLE_ID: > GB_NOT_CREATABLE_ID: > GB_VIRTUAL_CLASS_ID: > GB_HOOK_CHECK_ID > > Best Regards > Kari Laine 'desc' is a pointer to a 'GB_DESC' structure declared in 'gambas.h'. This structure describes one symbol of a native class. You can see these structures used in each class file of the interpreter ('gbx_c_*.c' files) or any component. It is accessed in 'CLASS_register_class' via the 'GB_CLASS_DESC' union and its 'gambas' field. 'desc->gambas.name' is the name of the symbol, with one letter added to its beginning. It describes the type of the symbol, and if it is static: for example, "MLoad" is a dynamic method named 'Load', or "rLength" is a dynamic read-only property named 'Length'. But this symbol can takes special values to specify some class global parameters: GB_INHERITS_ID for the parent class, GB_VIRTUAL_CLASS_ID for a virtual class, and so on. These special values are false pointers, whose value should never be taken by real pointers: 1, 2, 3, and so on. So the 'intptr_t' cast is just to make the compiler understand that we are dealing with integer values that are stored inside pointers. This is sort of dirty programming. Do not do that in your own code. :-) The 'GB_DESC' structure should have been declared as an union of different structures. I hope it is clearer now. Regards, -- Benoit Minisini From klaine8 at ...176... Fri Aug 15 17:26:11 2008 From: klaine8 at ...176... (Kari Laine) Date: Fri, 15 Aug 2008 18:26:11 +0300 Subject: [Gambas-devel] need a bit of explanation - please In-Reply-To: <200808151331.39860.gambas@...1...> References: <48A55A81.8090607@...605...> <200808151238.14738.gambas@...1...> <61452b690808150409g7971a8e9i9f73012747ab4bd9@...178...> <200808151331.39860.gambas@...1...> Message-ID: <61452b690808150826h183de68au5919ce898fd4bb84@...178...> Thanks I have to try to figure it out. Best Regards Kari Laine On Fri, Aug 15, 2008 at 2:31 PM, Benoit Minisini < gambas at ...1...> wrote: > On vendredi 15 ao?t 2008, Kari Laine wrote: > > On Fri, Aug 15, 2008 at 1:38 PM, Benoit Minisini < > > > > gambas at ...1...> wrote: > > > On vendredi 15 ao?t 2008, Kari Laine wrote: > > > > Hi, > > > > > > > > I try to figure out Gambas and because I am not C-guru I have used > two > > > > hours now to understand possibly a basic thing... > > > > Could someone help? > > > > > > > > In function > > > > > > > > CLASS *CLASS_register_class(GB_DESC *ptr, CLASS *class) > > > > > > > > There is a loop > > > > > > > > desc = (CLASS_DESC *)&gambas[1]; > > > > > > > > for (start = NULL; start == NULL; desc++) > > > > > > > > The problem I have is to understand this bit > > > > switch ((intptr_t)desc->gambas.name) > > > > Where gambas.name is initialized to have the values tested in the > case > > > > clauses? Somehow name's pointer is usefull to give out information. > > > > > > > > Also in the same switch there is following > > > > case (intptr_t)GB_INHERITS_ID: > > > > CLASS_inheritance(class, CLASS_find((const char > > > > *)desc->gambas.type)); > > > > break; > > > > Why is CLASS_find called with a generall name like Control ? > > > > > > > > Hopefully someone understands my question. > > > > > > > > Best Regards > > > > Kari Laine > > > > > > Sorry, I don't understand what you are asking for... Can you formulate > > > your question differently? > > > > I am not sure if I can ask this in a right way. > > > > Could you explain this line. > > switch ((intptr_t)desc->gambas.name) > > > > How gambas.name pointer can be cast to intptr_t? > > > > And how it takes one of following values > > GB_INHERITS_ID > > GB_AUTO_CREATABLE_ID: > > GB_NOT_CREATABLE_ID: > > GB_VIRTUAL_CLASS_ID: > > GB_HOOK_CHECK_ID > > > > Best Regards > > Kari Laine > > 'desc' is a pointer to a 'GB_DESC' structure declared in 'gambas.h'. > > This structure describes one symbol of a native class. You can see these > structures used in each class file of the interpreter ('gbx_c_*.c' files) > or > any component. > > It is accessed in 'CLASS_register_class' via the 'GB_CLASS_DESC' union and > its 'gambas' field. > > 'desc->gambas.name' is the name of the symbol, with one letter added to > its > beginning. It describes the type of the symbol, and if it is static: for > example, "MLoad" is a dynamic method named 'Load', or "rLength" is a > dynamic > read-only property named 'Length'. > > But this symbol can takes special values to specify some class global > parameters: GB_INHERITS_ID for the parent class, GB_VIRTUAL_CLASS_ID for a > virtual class, and so on. > > These special values are false pointers, whose value should never be taken > by > real pointers: 1, 2, 3, and so on. > > So the 'intptr_t' cast is just to make the compiler understand that we are > dealing with integer values that are stored inside pointers. > > This is sort of dirty programming. Do not do that in your own code. :-) > The 'GB_DESC' structure should have been declared as an union of different > structures. > > I hope it is clearer now. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gbv at ...580... Fri Aug 15 20:48:38 2008 From: gbv at ...580... (Guillermo Ballester Valor) Date: Fri, 15 Aug 2008 18:48:38 +0000 Subject: [Gambas-devel] [Gambas-user] Release of Gambas 2.8 In-Reply-To: <200808151657.11898.gambas@...1...> References: <200808151657.11898.gambas@...1...> Message-ID: <200808151848.39115.gbv@...580...> El Friday 15 August 2008 14:57:11 Benoit Minisini escribi?: > Hi, > > Finally I got the time to release Gambas 2.8. This version was needed, as > Gambas 2.7 crashes when compiled with gcc 4.3. > > The other important changes are: > > - When displaying a method signature, the current argument is underlined. > > - Spanish, French and Russian translations were updated. > > - IDE shortcuts of different menus should not interfere anymore. > > - The GTK+ component can deal with font underline and strikeout in many > places. > > - The QT component tray icons are now visible inside Gnome or XFCE. > Hi Benoit, Just now I've built the openSUSE 2.8.0 rpms in OpenSUSE Build Service without serious problems. http://download.opensuse.org/repositories/home:/gbvalor/ The only problem still remains is I can't build examples rpm for openSUSE >= 11.0 because of the presence of rpm buildroot path in some files. rpmlint doesn't like this :( . Thanks for your superb job. Guillermo -- Guillermo Ballester Valor gbv at ...580... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From gambas at ...1... Fri Aug 15 21:05:03 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 15 Aug 2008 21:05:03 +0200 Subject: [Gambas-devel] [Gambas-user] Release of Gambas 2.8 In-Reply-To: <200808151848.39115.gbv@...580...> References: <200808151657.11898.gambas@...1...> <200808151848.39115.gbv@...580...> Message-ID: <200808152105.03343.gambas@...1...> On vendredi 15 ao?t 2008, Guillermo Ballester Valor wrote: > El Friday 15 August 2008 14:57:11 Benoit Minisini escribi?: > > Hi, > > > > Finally I got the time to release Gambas 2.8. This version was needed, as > > Gambas 2.7 crashes when compiled with gcc 4.3. > > > > The other important changes are: > > > > - When displaying a method signature, the current argument is underlined. > > > > - Spanish, French and Russian translations were updated. > > > > - IDE shortcuts of different menus should not interfere anymore. > > > > - The GTK+ component can deal with font underline and strikeout in many > > places. > > > > - The QT component tray icons are now visible inside Gnome or XFCE. > > Hi Benoit, > > Just now I've built the openSUSE 2.8.0 rpms in OpenSUSE Build Service > without serious problems. > > http://download.opensuse.org/repositories/home:/gbvalor/ > > The only problem still remains is I can't build examples rpm for openSUSE > >= 11.0 because of the presence of rpm buildroot path in some files. > rpmlint doesn't like this :( . > > Thanks for your superb job. > > Guillermo I forgot this problem. I have just committed a patch for this (revision 1498). Try to see if you cannot tell rpmlint to not abort on these specific errors. Otherwise add this patch to your rpms. If you can't, I will make a 2.8.1 release for you! :-) Regards, -- Benoit Minisini From gbv at ...580... Fri Aug 15 21:16:06 2008 From: gbv at ...580... (Guillermo Ballester Valor) Date: Fri, 15 Aug 2008 19:16:06 +0000 Subject: [Gambas-devel] [Gambas-user] Release of Gambas 2.8 In-Reply-To: <200808152105.03343.gambas@...1...> References: <200808151657.11898.gambas@...1...> <200808151848.39115.gbv@...580...> <200808152105.03343.gambas@...1...> Message-ID: <200808151916.07625.gbv@...580...> Benoit, El Friday 15 August 2008 19:05:03 Benoit Minisini escribi?: > On vendredi 15 ao?t 2008, Guillermo Ballester Valor wrote: > > El Friday 15 August 2008 14:57:11 Benoit Minisini escribi?: > > > Hi, > > > > > > Finally I got the time to release Gambas 2.8. This version was needed, > > > as Gambas 2.7 crashes when compiled with gcc 4.3. > > > > > > The other important changes are: > > > > > > - When displaying a method signature, the current argument is > > > underlined. > > > > > > - Spanish, French and Russian translations were updated. > > > > > > - IDE shortcuts of different menus should not interfere anymore. > > > > > > - The GTK+ component can deal with font underline and strikeout in many > > > places. > > > > > > - The QT component tray icons are now visible inside Gnome or XFCE. > > > > Hi Benoit, > > > > Just now I've built the openSUSE 2.8.0 rpms in OpenSUSE Build Service > > without serious problems. > > > > http://download.opensuse.org/repositories/home:/gbvalor/ > > > > The only problem still remains is I can't build examples rpm for > > openSUSE > > > > >= 11.0 because of the presence of rpm buildroot path in some files. > > > > rpmlint doesn't like this :( . > > > > Thanks for your superb job. > > > > Guillermo > > I forgot this problem. I have just committed a patch for this (revision > 1498). Try to see if you cannot tell rpmlint to not abort on these specific > errors. Otherwise add this patch to your rpms. If you can't, I will make a > 2.8.1 release for you! :-) > rpmlint in Opensuse Build Service (OBS) is out of my control. I can't dissable this filter. I'll be out from sunday 17 till sunday 24. You can wait some days for any other unspected problem if you prefer, or release a new 2.8.1 ;-). Regards, Guillermo > Regards, -- Guillermo Ballester Valor gbv at ...580... http://www.oxixares.com/~gbv Ogijares, Granada - SPAIN From david_villalobos_c at ...7... Sat Aug 16 17:21:12 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 16 Aug 2008 08:21:12 -0700 (PDT) Subject: [Gambas-devel] Error in gb.form.mdi Message-ID: <900527.30540.qm@...566...> Hi Benoit, I think there is a bug in the Activate event in WorkSpace in Gambas 3 (I didn't look in Gambas 2). The documentation says that this event is raised when the active window changes, but it is raised to when you click on the same window. To see an example just add the following lines to the end of the class for FMain in gb.form.mdi: Public Sub Workspace1_Activate() Print "Hello" End And see when and how many messages are printed. If you comment the Fworkspace::tabWorkspace_Click() the problem is solve. Could you please validate? Best regards David From david_villalobos_c at ...7... Sat Aug 16 17:23:32 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 16 Aug 2008 08:23:32 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <522260.67816.qm@...556...> Hi Benoit, here is the project, I hope it is ready, please take a look and tell me. Best regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, August 13, 2008 6:18:07 AM Subject: Re: [Gambas-devel] New controls On mardi 12 ao?t 2008, David Villalobos Cambronero wrote: > Hi Beniot, > > Here is the project with the changes, but I found a problem: If the user > changes the Background color of the label at execution time, I'm not able > to catch the new color since I don't know how to deal with the Background > property of TextLabel, I mean, I don't know how store the new color every > time the background color changes, any idea? As you inherit TextLabel, just reimplement the Background property to track the changes. Do not forget to use SUPER to call the parent implementation. > > I attached the project with an example. > > By the way, the icon control should be placed in: > ../app/src/gambas3/img/control, right? Now you can put it directly in your project, inside a "control" directory. > > Regards > > David > -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.Extras-2.99.50.tar.gz Type: application/x-gzip Size: 12292 bytes Desc: not available URL: From gambas at ...1... Sat Aug 16 18:08:56 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 16 Aug 2008 18:08:56 +0200 Subject: [Gambas-devel] Error in gb.form.mdi In-Reply-To: <900527.30540.qm@...566...> References: <900527.30540.qm@...566...> Message-ID: <200808161808.56566.gambas@...1...> On samedi 16 ao?t 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > I think there is a bug in the Activate event in WorkSpace in Gambas 3 > (I didn't look in Gambas 2). The documentation says that this event is > raised when the active window changes, but it is raised to when you click > on the same window. > > To see an example just add the following lines to the end of the class for > FMain in gb.form.mdi: > > Public Sub Workspace1_Activate() > > Print "Hello" > > End > > And see when and how many messages are printed. > > If you comment the Fworkspace::tabWorkspace_Click() the problem is solve. > > Could you please validate? > > Best regards > > David > The documentation is not accurate. 'Activate' is raised when a child window is activated. But it is raised too when the window is already the current window. The aim of this event was the same as the top-level window 'Activate' event. So it should not be raised when the child window is already "activated", i.e. when one f its children already has the focus. I should detect that specific case, but I didn't the time to do it. What's the problem with having more "Activate" events than needed? -- Benoit Minisini From david_villalobos_c at ...7... Sat Aug 16 18:43:15 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 16 Aug 2008 09:43:15 -0700 (PDT) Subject: [Gambas-devel] Error in gb.form.mdi Message-ID: <164861.35529.qm@...585...> Well, when this event is raised, I execute a procedure, it makes a lot of querys in the database, and the procedure is executed twice, and I want to avoid that, but if it is correct I will place a Flag, or something like that to avoid the second run. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Saturday, August 16, 2008 10:08:56 AM Subject: Re: [Gambas-devel] Error in gb.form.mdi On samedi 16 ao?t 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > I think there is a bug in the Activate event in WorkSpace in Gambas 3 > (I didn't look in Gambas 2). The documentation says that this event is > raised when the active window changes, but it is raised to when you click > on the same window. > > To see an example just add the following lines to the end of the class for > FMain in gb.form.mdi: > > Public Sub Workspace1_Activate() > > Print "Hello" > > End > > And see when and how many messages are printed. > > If you comment the Fworkspace::tabWorkspace_Click() the problem is solve. > > Could you please validate? > > Best regards > > David > The documentation is not accurate. 'Activate' is raised when a child window is activated. But it is raised too when the window is already the current window. The aim of this event was the same as the top-level window 'Activate' event. So it should not be raised when the child window is already "activated", i.e. when one f its children already has the focus. I should detect that specific case, but I didn't the time to do it. What's the problem with having more "Activate" events than needed? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Sat Aug 16 19:14:59 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Sat, 16 Aug 2008 10:14:59 -0700 (PDT) Subject: [Gambas-devel] Changes in GB.DB.MYSQL Message-ID: <780453.21766.qm@...557...> Hi all, As some of you know there will be a new component for MySQL in Gambas 3, I don't know if some of you are using that component right now. But any way I just upload some mayor changes to the component, almost rewrite the entire component, so maybe your projects will not work with the new version, because I change almost all order in parameters, I mean, all the functions names are the same, but the order of the parameters has changed. And I add basic support to triggers. Just to be clear, this mail is for people that is using Gambas 3 and gb.db.msyql. Any comment or questions are welcome. Documentation will be ready soon ( I hope :-) ) Best regards David From gambas at ...1... Tue Aug 19 04:17:18 2008 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Aug 2008 04:17:18 +0200 Subject: [Gambas-devel] Aling images in tableview In-Reply-To: <664400.23353.qm@...587...> References: <664400.23353.qm@...587...> Message-ID: <200808190417.18331.gambas@...1...> On mercredi 30 juillet 2008, David Villalobos Cambronero wrote: > Hi All, > > I got an error when try to aling pictures in a table view, always are > centered. Is it correct? > > Attached an example. > > --- > > > David It has been fixed for the 2.8 release. Regards, -- Benoit Minisini From david_villalobos_c at ...7... Wed Aug 20 17:15:39 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 20 Aug 2008 08:15:39 -0700 (PDT) Subject: [Gambas-devel] Changes in GB.DB.MYSQL Message-ID: <789584.50699.qm@...596...> Hi Benoit, I made some changes in the component, could you please update the info in gambasdoc.org, for me to start write documentation? Plase? Regards David ----- Original Message ---- From: David Villalobos Cambronero To: Gambas Ingl?s ; Gambas-devel Sent: Saturday, August 16, 2008 11:14:59 AM Subject: [Gambas-devel] Changes in GB.DB.MYSQL Hi all, As some of you know there will be a new component for MySQL in Gambas 3, I don't know if some of you are using that component right now. But any way I just upload some mayor changes to the component, almost rewrite the entire component, so maybe your projects will not work with the new version, because I change almost all order in parameters, I mean, all the functions names are the same, but the order of the parameters has changed. And I add basic support to triggers. Just to be clear, this mail is for people that is using Gambas 3 and gb.db.msyql. Any comment or questions are welcome. Documentation will be ready soon ( I hope :-) ) Best regards David ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From gambas at ...1... Wed Aug 20 19:13:07 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Aug 2008 19:13:07 +0200 Subject: [Gambas-devel] Changes in GB.DB.MYSQL In-Reply-To: <789584.50699.qm@...596...> References: <789584.50699.qm@...596...> Message-ID: <200808201913.07932.gambas@...1...> On mercredi 20 ao?t 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > I made some changes in the component, could you please update the info in > gambasdoc.org, for me to start write documentation? Plase? > > Regards > > > David > It should be done. Regards, -- Benoit Minisini From david_villalobos_c at ...7... Wed Aug 20 19:50:26 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 20 Aug 2008 10:50:26 -0700 (PDT) Subject: [Gambas-devel] Changes in GB.DB.MYSQL Message-ID: <485541.75050.qm@...555...> Many thanks. Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, August 20, 2008 11:13:07 AM Subject: Re: [Gambas-devel] Changes in GB.DB.MYSQL On mercredi 20 ao?t 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > I made some changes in the component, could you please update the info in > gambasdoc.org, for me to start write documentation? Plase? > > Regards > > > David > It should be done. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Wed Aug 20 20:14:42 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 20 Aug 2008 11:14:42 -0700 (PDT) Subject: [Gambas-devel] gb.db.mysql independent of gb.db Message-ID: <83091.69377.qm@...566...> Hi Benoit, Do you think is a good idea to make gb.db.mysql independent of gb.db, I mean, make that gb.db.mysql no longer needs gb.db by written its part in C++? I think I can make it, but I want to know what do you think before start. Regards, David From gambas at ...1... Thu Aug 21 12:10:49 2008 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Aug 2008 12:10:49 +0200 Subject: [Gambas-devel] gb.db.mysql independent of gb.db In-Reply-To: <83091.69377.qm@...566...> References: <83091.69377.qm@...566...> Message-ID: <200808211210.50021.gambas@...1...> On mercredi 20 ao?t 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > Do you think is a good idea to make gb.db.mysql independent of gb.db, I > mean, make that gb.db.mysql no longer needs gb.db by written its part in > C++? I think I can make it, but I want to know what do you think before > start. > > Regards, > > > David > Rewriting another gb.db in C++ just for MySQL? What is the use of that? -- Benoit Minisini From david_villalobos_c at ...7... Thu Aug 21 14:38:05 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Thu, 21 Aug 2008 05:38:05 -0700 (PDT) Subject: [Gambas-devel] gb.db.mysql independent of gb.db Message-ID: <9820.96194.qm@...555...> Well, my idea is not to create a new gb.db, is justo to add the ability to execute its own statements, the C++ part will only execute the statement in the DB and returns the result or the error, all the rest is done in Gambas. And maybe we can add a new Class called MySQL and not use Connection.MySQL. My propuse is to have a component independent of any other. But any way is just an idea, if you don't want I won't do it (of course jejejejeje). --- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Thursday, August 21, 2008 4:10:49 AM Subject: Re: [Gambas-devel] gb.db.mysql independent of gb.db On mercredi 20 ao?t 2008, David Villalobos Cambronero wrote: > Hi Benoit, > > Do you think is a good idea to make gb.db.mysql independent of gb.db, I > mean, make that gb.db.mysql no longer needs gb.db by written its part in > C++? I think I can make it, but I want to know what do you think before > start. > > Regards, > > > David > Rewriting another gb.db in C++ just for MySQL? What is the use of that? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Thu Aug 21 14:39:22 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Thu, 21 Aug 2008 05:39:22 -0700 (PDT) Subject: [Gambas-devel] New controls Message-ID: <751369.90256.qm@...596...> Hi, Did you have time to take a look at this? I think we can change the icon, if you or someone have a good one. Regards. David ----- Original Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Saturday, August 16, 2008 9:23:32 AM Subject: Re: [Gambas-devel] New controls Hi Benoit, here is the project, I hope it is ready, please take a look and tell me. Best regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, August 13, 2008 6:18:07 AM Subject: Re: [Gambas-devel] New controls On mardi 12 ao?t 2008, David Villalobos Cambronero wrote: > Hi Beniot, > > Here is the project with the changes, but I found a problem: If the user > changes the Background color of the label at execution time, I'm not able > to catch the new color since I don't know how to deal with the Background > property of TextLabel, I mean, I don't know how store the new color every > time the background color changes, any idea? As you inherit TextLabel, just reimplement the Background property to track the changes. Do not forget to use SUPER to call the parent implementation. > > I attached the project with an example. > > By the way, the icon control should be placed in: > ../app/src/gambas3/img/control, right? Now you can put it directly in your project, inside a "control" directory. > > Regards > > David > -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From ron at ...572... Mon Aug 25 12:26:30 2008 From: ron at ...572... (Ron) Date: Mon, 25 Aug 2008 12:26:30 +0200 Subject: [Gambas-devel] GPL related question Message-ID: <48B288D6.6040909@...572...> Hi, I want to release the code of my program written in Gambas. Can I choose a different version of GPL (for example v3) than the one that Gambas uses? Kind Regards, Ron_2nd. From david_villalobos_c at ...7... Mon Aug 25 14:09:58 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 25 Aug 2008 05:09:58 -0700 (PDT) Subject: [Gambas-devel] GPL related question Message-ID: <621706.1516.qm@...594...> Sure you can. --- David ----- Original Message ---- From: Ron To: mailing list for gambas developers Sent: Monday, August 25, 2008 4:26:30 AM Subject: [Gambas-devel] GPL related question Hi, I want to release the code of my program written in Gambas. Can I choose a different version of GPL (for example v3) than the one that Gambas uses? Kind Regards, Ron_2nd. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From sourceforge-raindog2 at ...19... Mon Aug 25 14:14:27 2008 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 25 Aug 2008 08:14:27 -0400 Subject: [Gambas-devel] GPL related question In-Reply-To: <48B288D6.6040909@...572...> References: <48B288D6.6040909@...572...> Message-ID: <200808250814.27678.sourceforge-raindog2@...19...> On Monday 25 August 2008 06:26, Ron wrote: > I want to release the code of my program written in Gambas. > Can I choose a different version of GPL (for example v3) than the one > that Gambas uses? You can release projects written in Gambas with any license, even a proprietary one; it's the libraries that you link against (using Gambas components) that may complicate things for you. For example, as of last fall, Qt was GPLv2-only (or QPL, but that's not really compatible with much of anything.) Recent versions appear to be compatible with both v2 and v3, but I'd check the status of any libraries you're linking against before distributing your GPLv3-licensed program. Rob From david_villalobos_c at ...7... Mon Aug 25 14:29:03 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Mon, 25 Aug 2008 05:29:03 -0700 (PDT) Subject: [Gambas-devel] GPL related question Message-ID: <95174.28952.qm@...588...> Well, if you want proprietary software you have to pay... You need to buy a QT Licence or GTK, and any other lib that you use. If the software will be OpenSource you won't have any problem. But, as I told you if you need a proprietary one, you need to buy several things, and of course give some money to Benoit :-) --- David ----- Original Message ---- From: Rob To: gambas-devel at lists.sourceforge.net Sent: Monday, August 25, 2008 6:14:27 AM Subject: Re: [Gambas-devel] GPL related question On Monday 25 August 2008 06:26, Ron wrote: > I want to release the code of my program written in Gambas. > Can I choose a different version of GPL (for example v3) than the one > that Gambas uses? You can release projects written in Gambas with any license, even a proprietary one; it's the libraries that you link against (using Gambas components) that may complicate things for you. For example, as of last fall, Qt was GPLv2-only (or QPL, but that's not really compatible with much of anything.) Recent versions appear to be compatible with both v2 and v3, but I'd check the status of any libraries you're linking against before distributing your GPLv3-licensed program. Rob ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From ron at ...572... Mon Aug 25 14:30:47 2008 From: ron at ...572... (Ron) Date: Mon, 25 Aug 2008 14:30:47 +0200 Subject: [Gambas-devel] GPL related question In-Reply-To: <200808250814.27678.sourceforge-raindog2@...19...> References: <48B288D6.6040909@...572...> <200808250814.27678.sourceforge-raindog2@...19...> Message-ID: <48B2A5F7.8000800@...572...> Ok, thanks... But... I don't know beforehand which version of Gambas end-users are going to run my project with. So I don't know which version of libraries that user has on it's linux box. I can determine this for my own setup, but not for anyone else. I guess releasing it under GPL v3 is ok. Kind regards, Ron_2nd > On Monday 25 August 2008 06:26, Ron wrote: > >> I want to release the code of my program written in Gambas. >> Can I choose a different version of GPL (for example v3) than the one >> that Gambas uses? >> > > You can release projects written in Gambas with any license, even a > proprietary one; it's the libraries that you link against (using Gambas > components) that may complicate things for you. For example, as of last > fall, Qt was GPLv2-only (or QPL, but that's not really compatible with much > of anything.) > > Recent versions appear to be compatible with both v2 and v3, but I'd check the > status of any libraries you're linking against before distributing your > GPLv3-licensed program. > > Rob > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From ron at ...572... Mon Aug 25 14:32:47 2008 From: ron at ...572... (Ron) Date: Mon, 25 Aug 2008 14:32:47 +0200 Subject: [Gambas-devel] GPL related question In-Reply-To: <95174.28952.qm@...588...> References: <95174.28952.qm@...588...> Message-ID: <48B2A66F.8070206@...572...> Ok. Thanks for reminding me about donating Benoit, something I wanted to do for a long time. Will do this today... ;-) Regards, Ron_2nd > Well, if you want proprietary software you have to pay... You need to buy a QT Licence or GTK, and any other lib that you use. If the software will be OpenSource you won't have any problem. But, as I told you if you need a proprietary one, you need to buy several things, and of course give some money to Benoit :-) > > --- > > > David > > > > ----- Original Message ---- > From: Rob > To: gambas-devel at lists.sourceforge.net > Sent: Monday, August 25, 2008 6:14:27 AM > Subject: Re: [Gambas-devel] GPL related question > > On Monday 25 August 2008 06:26, Ron wrote: > >> I want to release the code of my program written in Gambas. >> Can I choose a different version of GPL (for example v3) than the one >> that Gambas uses? >> > > You can release projects written in Gambas with any license, even a > proprietary one; it's the libraries that you link against (using Gambas > components) that may complicate things for you. For example, as of last > fall, Qt was GPLv2-only (or QPL, but that's not really compatible with much > of anything.) > > Recent versions appear to be compatible with both v2 and v3, but I'd check the > status of any libraries you're linking against before distributing your > GPLv3-licensed program. > > Rob > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel > From sourceforge-raindog2 at ...19... Mon Aug 25 14:37:39 2008 From: sourceforge-raindog2 at ...19... (Rob) Date: Mon, 25 Aug 2008 08:37:39 -0400 Subject: [Gambas-devel] GPL related question In-Reply-To: <95174.28952.qm@...588...> References: <95174.28952.qm@...588...> Message-ID: <200808250837.39452.sourceforge-raindog2@...19...> On Monday 25 August 2008 08:29, David Villalobos Cambronero wrote: > Well, if you want proprietary software you have to pay... You need to buy a > QT Licence or GTK, and any other lib that you use. If the software will be > OpenSource you won't have any problem. Well, again, not all free software or open source licenses are compatible with GPLv3. It may be that all the libraries used by Gambas components already are, but I would check that before I released anything. > But, as I told you if you need a > proprietary one, you need to buy several things, and of course give some > money to Benoit :-) You can develop a proprietary command-line program in Gambas without paying anyone for anything. I think you could even develop a proprietary gb.gtk program because Gtk is LGPL (can be linked against proprietary code.) But that's something the company wanting to release the code would have to verify for themselves. But yes, if you were writing a Gambas program that used Qt and you wanted it to be proprietary, you'd have to pay Trolltech for a commercial license. I think the same may be true of MySQL. Rob From david_villalobos_c at ...7... Tue Aug 26 17:43:13 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 26 Aug 2008 08:43:13 -0700 (PDT) Subject: [Gambas-devel] Change database at execution time. Message-ID: <693894.15182.qm@...582...> Hi Beno?t: I think it would be cool to could change the current database at execution time. At the moment this isn't possible, at least for MySQL in Gambas 3. (Attached an example and a snapshot). Best regards. David -------------- next part -------------- A non-text attachment was scrubbed... Name: db-0.0.1.tar.gz Type: application/x-gzip Size: 7793 bytes Desc: not available URL: From david_villalobos_c at ...7... Tue Aug 26 17:51:08 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Tue, 26 Aug 2008 08:51:08 -0700 (PDT) Subject: [Gambas-devel] Change database at execution time. Message-ID: <492054.83695.qm@...600...> Sorry, here is the snapshot. Regards David ----- Original Message ---- From: David Villalobos Cambronero To: Gambas-devel Sent: Tuesday, August 26, 2008 9:43:13 AM Subject: [Gambas-devel] Change database at execution time. Hi Beno?t: I think it would be cool to could change the current database at execution time. At the moment this isn't possible, at least for MySQL in Gambas 3. (Attached an example and a snapshot). Best regards. David -------------- next part -------------- A non-text attachment was scrubbed... Name: db-0.0.1.tar.gz Type: application/x-gzip Size: 7793 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Snap.png Type: image/png Size: 95375 bytes Desc: not available URL: From gambas at ...1... Wed Aug 27 10:40:25 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 10:40:25 +0200 Subject: [Gambas-devel] gb.db.mysql independent of gb.db In-Reply-To: <9820.96194.qm@...555...> References: <9820.96194.qm@...555...> Message-ID: <200808271040.25615.gambas@...1...> On jeudi 21 ao?t 2008, David Villalobos Cambronero wrote: > Well, my idea is not to create a new gb.db, is justo to add the ability to > execute its own statements, the C++ part will only execute the statement in > the DB and returns the result or the error, all the rest is done in Gambas. > And maybe we can add a new Class called MySQL and not use Connection.MySQL. > > My propuse is to have a component independent of any other. > > But any way is just an idea, if you don't want I won't do it (of course > jejejejeje). > > --- > > > David > I don't remember all our discussions. Is there any problem with inheriting Connection so that you don't have to add a MySQL property? -- Benoit Minisini From gambas at ...1... Wed Aug 27 10:43:43 2008 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Aug 2008 10:43:43 +0200 Subject: [Gambas-devel] Change database at execution time. In-Reply-To: <492054.83695.qm@...600...> References: <492054.83695.qm@...600...> Message-ID: <200808271043.43469.gambas@...1...> On mardi 26 ao?t 2008, David Villalobos Cambronero wrote: > Sorry, here is the snapshot. > > Regards > > > David > > > > ----- Original Message ---- > From: David Villalobos Cambronero > To: Gambas-devel > Sent: Tuesday, August 26, 2008 9:43:13 AM > Subject: [Gambas-devel] Change database at execution time. > > Hi Beno?t: > > I think it would be cool to could change the current database at > execution time. > > At the moment this isn't possible, at least for MySQL in Gambas 3. > (Attached an example and a snapshot). > > Best regards. > > David If you change the properties of the Connection object, you have to close it and open it again. Otherwise, you can have two different connections opened at the same time, and set the DB.Current property to change the current database. Regards, -- Benoit Minisini From david_villalobos_c at ...7... Wed Aug 27 17:50:29 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 27 Aug 2008 08:50:29 -0700 (PDT) Subject: [Gambas-devel] gb.db.mysql independent of gb.db Message-ID: <188973.6760.qm@...588...> Well, actually there is no problem using gb.db, I just wanted to make it independent, but there is no problem, let's continue using gb.db Regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, August 27, 2008 2:40:25 AM Subject: Re: [Gambas-devel] gb.db.mysql independent of gb.db On jeudi 21 ao?t 2008, David Villalobos Cambronero wrote: > Well, my idea is not to create a new gb.db, is justo to add the ability to > execute its own statements, the C++ part will only execute the statement in > the DB and returns the result or the error, all the rest is done in Gambas. > And maybe we can add a new Class called MySQL and not use Connection.MySQL. > > My propuse is to have a component independent of any other. > > But any way is just an idea, if you don't want I won't do it (of course > jejejejeje). > > --- > > > David > I don't remember all our discussions. Is there any problem with inheriting Connection so that you don't have to add a MySQL property? -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel From david_villalobos_c at ...7... Wed Aug 27 17:53:14 2008 From: david_villalobos_c at ...7... (David Villalobos Cambronero) Date: Wed, 27 Aug 2008 08:53:14 -0700 (PDT) Subject: [Gambas-devel] Fw: New controls Message-ID: <440905.9009.qm@...597...> Hi Benoit, what about that, are we going to use it in gb.form? Regards David ----- Forwarded Message ---- From: David Villalobos Cambronero To: mailing list for gambas developers Sent: Saturday, August 16, 2008 9:23:32 AM Subject: Re: [Gambas-devel] New controls Hi Benoit, here is the project, I hope it is ready, please take a look and tell me. Best regards David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas developers Sent: Wednesday, August 13, 2008 6:18:07 AM Subject: Re: [Gambas-devel] New controls On mardi 12 ao?t 2008, David Villalobos Cambronero wrote: > Hi Beniot, > > Here is the project with the changes, but I found a problem: If the user > changes the Background color of the label at execution time, I'm not able > to catch the new color since I don't know how to deal with the Background > property of TextLabel, I mean, I don't know how store the new color every > time the background color changes, any idea? As you inherit TextLabel, just reimplement the Background property to track the changes. Do not forget to use SUPER to call the parent implementation. > > I attached the project with an example. > > By the way, the icon control should be placed in: > ../app/src/gambas3/img/control, right? Now you can put it directly in your project, inside a "control" directory. > > Regards > > David > -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-devel mailing list Gambas-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.Extras-2.99.50.tar.gz Type: application/x-gzip Size: 12292 bytes Desc: not available URL: From lordheavym at ...176... Fri Aug 29 10:42:12 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Fri, 29 Aug 2008 10:42:12 +0200 Subject: [Gambas-devel] Gambas 3 most wanted features Message-ID: <200808291042.12366.lordheavym@...176...> I would like to introduce a thread with a "Gambas 3 most wanted features" where developers can talk about feature they want to be in G3 (nice code name no ?), in the point of view of developers (component and ide), and users (gambas projects). So let me start: [INTERPRETER] * Got G3 interpreter as a library, so G3 can be "embed" inside app like a scripting engine (like lua or python), - G3 app (bytecode) -> gbx3 <-> (G3 library) <-> components - Binary app <-> G3 library <-> G3 script (bytecode, dynamicly built and cached like gbs ?) * Got G3 profiling, so user can profile where his G3 code take more time an try to optimize it (yes, you can optimize gambas code). With an output for graphic profiler like kcachegring ? or an embedded G3 profiler ? [IDE] * Ability to order tabs, or group them (form first, code after; change their places; ....) * Add close button in the title tabs (but i don't know if it's easily feasable) ..... Perhaps more things ! Let's talk ! Regards, Laurent Carlier. From ron at ...572... Fri Aug 29 11:00:04 2008 From: ron at ...572... (Ron) Date: Fri, 29 Aug 2008 11:00:04 +0200 Subject: [Gambas-devel] Gambas 3 most wanted features In-Reply-To: <200808291042.12366.lordheavym@...176...> References: <200808291042.12366.lordheavym@...176...> Message-ID: <48B7BA94.8050305@...572...> Laurent Carlier schreef: > I would like to introduce a thread with a "Gambas 3 most wanted features" > where developers can talk about feature they want to be in G3 (nice code name > no ?), in the point of view of developers (component and ide), and users > (gambas projects). > > So let me start: > [INTERPRETER] > * Got G3 interpreter as a library, so G3 can be "embed" inside app like a > scripting engine (like lua or python), > > - G3 app (bytecode) -> gbx3 <-> (G3 library) <-> components > - Binary app <-> G3 library <-> G3 script (bytecode, dynamicly built and > cached like gbs ?) > > * Got G3 profiling, so user can profile where his G3 code take more time an try > to optimize it (yes, you can optimize gambas code). With an output for graphic > profiler like kcachegring ? or an embedded G3 profiler ? > > [IDE] > * Ability to order tabs, or group them (form first, code after; change their > places; ....) > > * Add close button in the title tabs (but i don't know if it's easily > feasable) > > > ..... Perhaps more things ! Let's talk ! > > Regards, > Laurent Carlier > I would like to see better support for webbased code. And getting undocumented modules documented (gb.xml* gb.charts etc) About optimizing gambas code; Anyone has tips on what to do/use and not to use. Thinks like: Are private vars faster than public ones, or doesn't matter, that sort of things Should we document these knowledge somewhere, since people are writing bigger and bigger programs in Gambas I think. (at least I do) Add a public writable part to the wiki, so people can post things/snippets/comments without needing an account, if the content is useful it can be moved by an admin to a more static part of the wiki. Regards, Ron_2nd From gambas at ...1... Fri Aug 29 11:08:41 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 11:08:41 +0200 Subject: [Gambas-devel] Gambas 3 most wanted features In-Reply-To: <48B7BA94.8050305@...572...> References: <200808291042.12366.lordheavym@...176...> <48B7BA94.8050305@...572...> Message-ID: <200808291108.41888.gambas@...1...> On vendredi 29 ao?t 2008, Ron wrote: > About optimizing gambas code; > Anyone has tips on what to do/use and not to use. > > Thinks like: > Are private vars faster than public ones, or doesn't matter, that sort > of things Local variables are faster than private variables that are faster than public variables. But to be sure, some benchmarks must be done! -- Benoit Minisini From gambas at ...1... Fri Aug 29 21:29:12 2008 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Aug 2008 21:29:12 +0200 Subject: [Gambas-devel] Gambas 3 most wanted features In-Reply-To: <200808291042.12366.lordheavym@...176...> References: <200808291042.12366.lordheavym@...176...> Message-ID: <200808292129.12087.gambas@...1...> On vendredi 29 ao?t 2008, Laurent Carlier wrote: > I would like to introduce a thread with a "Gambas 3 most wanted features" > where developers can talk about feature they want to be in G3 (nice code > name no ?), in the point of view of developers (component and ide), and > users (gambas projects). > > So let me start: > [INTERPRETER] > * Got G3 interpreter as a library, so G3 can be "embed" inside app like a > scripting engine (like lua or python), > > - G3 app (bytecode) -> gbx3 <-> (G3 library) <-> components > - Binary app <-> G3 library <-> G3 script (bytecode, dynamicly built and > cached like gbs ?) > Some boring job. I don't know if I will do it soon. :-) > * Got G3 profiling, so user can profile where his G3 code take more time an > try to optimize it (yes, you can optimize gambas code). With an output for > graphic profiler like kcachegring ? or an embedded G3 profiler ? I have no idea how it could be done. > > [IDE] > * Ability to order tabs, or group them (form first, code after; change > their places; ....) > > * Add close button in the title tabs (but i don't know if it's easily > feasable) > All this is to be implemented in the gb.form.mdi component. Just a matter of elbow grease. Regards, -- Benoit Minisini From lordheavym at ...176... Sat Aug 30 02:25:39 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 30 Aug 2008 02:25:39 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb Message-ID: <200808300225.39336.lordheavym@...176...> I was not able to run gambas 2/3 apps in gdb, as it failed on dlopen() calls with an error while loading shared library symbols: ---8<--- lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... (gdb) run Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] Error while reading shared library symbols: Cannot find new threads: generic error Cannot find new threads: generic error (gdb) bt #0 0x00007fe7ac19c7b7 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2 #1 0x00007fe7ac198366 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #2 0x00007fe7ac19c0eb in _dl_open () from /lib64/ld-linux-x86-64.so.2 #3 0x00007fe7abd04fbb in dlopen_doit () from /lib/libdl.so.2 #4 0x00007fe7ac198366 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2 #5 0x00007fe7abd0536c in _dlerror_run () from /lib/libdl.so.2 #6 0x00007fe7abd04f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 #7 0x0000000000420999 in LIBRARY_load (lib=0x1eb8400) at gbx_library.c:468 #8 0x0000000000442377 in COMPONENT_load (comp=0x1eb83a0) at gbx_component.c:250 #9 0x0000000000441f4e in COMPONENT_load_all () at gbx_component.c:110 #10 0x0000000000420073 in PROJECT_load () at gbx_project.c:456 #11 0x00000000004330aa in init (file=0x4467b8 ".") at gbx.c:85 #12 0x000000000043366b in main (argc=1, argv=0x7fffb43a4808) at gbx.c:299 (gdb) quit ---8<--- So i was not able to run gbx code inside gdb (and it's not really easy to do debugging without gdb !). Then i've filled a bug report in debian (i'm running debian sid x86_64): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496494 And ask for some help on the gdb Mailing List. Tonight i've succeeded to find a workaround in forcing linking of gbx with the libpthread library. As far as i know, ubuntu hardy got the same problem, i would ike to ask you if you got the same problem, and so this is a possible workaround :-) Regards, From gambas at ...1... Sat Aug 30 07:35:51 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Aug 2008 07:35:51 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808300225.39336.lordheavym@...176...> References: <200808300225.39336.lordheavym@...176...> Message-ID: <200808300735.51463.gambas@...1...> On samedi 30 ao?t 2008, Laurent Carlier wrote: > I was not able to run gambas 2/3 apps in gdb, as it failed on dlopen() > calls with an error while loading shared library symbols: > > ---8<--- > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > GNU gdb 6.8-debian > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to > change and redistribute it. There is NO WARRANTY, to the extent permitted > by law. Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu"... > (gdb) run > Starting program: /usr/local/bin/gbx3 > [Thread debugging using libthread_db enabled] > Error while reading shared library symbols: > Cannot find new threads: generic error > Cannot find new threads: generic error > (gdb) bt > #0 0x00007fe7ac19c7b7 in dl_open_worker () from > /lib64/ld-linux-x86-64.so.2 #1 0x00007fe7ac198366 in _dl_catch_error () > from /lib64/ld-linux-x86-64.so.2 #2 0x00007fe7ac19c0eb in _dl_open () from > /lib64/ld-linux-x86-64.so.2 #3 0x00007fe7abd04fbb in dlopen_doit () from > /lib/libdl.so.2 > #4 0x00007fe7ac198366 in _dl_catch_error () from > /lib64/ld-linux-x86-64.so.2 #5 0x00007fe7abd0536c in _dlerror_run () from > /lib/libdl.so.2 > #6 0x00007fe7abd04f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 > #7 0x0000000000420999 in LIBRARY_load (lib=0x1eb8400) at gbx_library.c:468 > #8 0x0000000000442377 in COMPONENT_load (comp=0x1eb83a0) at > gbx_component.c:250 > #9 0x0000000000441f4e in COMPONENT_load_all () at gbx_component.c:110 > #10 0x0000000000420073 in PROJECT_load () at gbx_project.c:456 > #11 0x00000000004330aa in init (file=0x4467b8 ".") at gbx.c:85 > #12 0x000000000043366b in main (argc=1, argv=0x7fffb43a4808) at gbx.c:299 > (gdb) quit > ---8<--- > > So i was not able to run gbx code inside gdb (and it's not really easy to > do debugging without gdb !). > > Then i've filled a bug report in debian (i'm running debian sid x86_64): > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496494 > > And ask for some help on the gdb Mailing List. > > Tonight i've succeeded to find a workaround in forcing linking of gbx with > the libpthread library. > > As far as i know, ubuntu hardy got the same problem, i would ike to ask you > if you got the same problem, and so this is a possible workaround :-) > > Regards, > First, you must run gbx3 with the "-p" option to prevent it from forking at startup. then, I don't see that gdb has crashed, but just breaked. So maybe you can continue the program? -- Benoit Minisini From gambas at ...1... Sat Aug 30 07:58:02 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Aug 2008 07:58:02 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808300735.51463.gambas@...1...> References: <200808300225.39336.lordheavym@...176...> <200808300735.51463.gambas@...1...> Message-ID: <200808300758.02610.gambas@...1...> On samedi 30 ao?t 2008, Benoit Minisini wrote: > On samedi 30 ao?t 2008, Laurent Carlier wrote: > > I was not able to run gambas 2/3 apps in gdb, as it failed on dlopen() > > calls with an error while loading shared library symbols: > > > > ---8<--- > > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > > GNU gdb 6.8-debian > > Copyright (C) 2008 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to > > change and redistribute it. There is NO WARRANTY, to the extent permitted > > by law. Type "show copying" and "show warranty" for details. > > This GDB was configured as "x86_64-linux-gnu"... > > (gdb) run > > Starting program: /usr/local/bin/gbx3 > > [Thread debugging using libthread_db enabled] > > Error while reading shared library symbols: > > Cannot find new threads: generic error > > Cannot find new threads: generic error > > (gdb) bt > > #0 0x00007fe7ac19c7b7 in dl_open_worker () from > > /lib64/ld-linux-x86-64.so.2 #1 0x00007fe7ac198366 in _dl_catch_error () > > from /lib64/ld-linux-x86-64.so.2 #2 0x00007fe7ac19c0eb in _dl_open () > > from /lib64/ld-linux-x86-64.so.2 #3 0x00007fe7abd04fbb in dlopen_doit () > > from /lib/libdl.so.2 > > #4 0x00007fe7ac198366 in _dl_catch_error () from > > /lib64/ld-linux-x86-64.so.2 #5 0x00007fe7abd0536c in _dlerror_run () > > from /lib/libdl.so.2 > > #6 0x00007fe7abd04f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 > > #7 0x0000000000420999 in LIBRARY_load (lib=0x1eb8400) at > > gbx_library.c:468 #8 0x0000000000442377 in COMPONENT_load > > (comp=0x1eb83a0) at > > gbx_component.c:250 > > #9 0x0000000000441f4e in COMPONENT_load_all () at gbx_component.c:110 > > #10 0x0000000000420073 in PROJECT_load () at gbx_project.c:456 > > #11 0x00000000004330aa in init (file=0x4467b8 ".") at gbx.c:85 > > #12 0x000000000043366b in main (argc=1, argv=0x7fffb43a4808) at gbx.c:299 > > (gdb) quit > > ---8<--- > > > > So i was not able to run gbx code inside gdb (and it's not really easy > > to do debugging without gdb !). > > > > Then i've filled a bug report in debian (i'm running debian sid x86_64): > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496494 > > > > And ask for some help on the gdb Mailing List. > > > > Tonight i've succeeded to find a workaround in forcing linking of gbx > > with the libpthread library. > > > > As far as i know, ubuntu hardy got the same problem, i would ike to ask > > you if you got the same problem, and so this is a possible workaround :-) > > > > Regards, > > First, you must run gbx3 with the "-p" option to prevent it from forking at > startup. then, I don't see that gdb has crashed, but just breaked. So maybe > you can continue the program? I read your bug report: what prevents gbx from being linked with "-lphtread"? It is already the case on BSD systems. -- Benoit Minisini From lordheavym at ...176... Sat Aug 30 11:40:11 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 30 Aug 2008 11:40:11 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808300735.51463.gambas@...1...> References: <200808300225.39336.lordheavym@...176...> <200808300735.51463.gambas@...1...> Message-ID: <200808301140.11992.lordheavym@...176...> Le Saturday 30 August 2008 07:35:51 Benoit Minisini, vous avez ?crit : > First, you must run gbx3 with the "-p" option to prevent it from forking at > startup. then, I don't see that gdb has crashed, but just breaked. So maybe > you can continue the program? The problem is the same with or without preloading, here it's only a bad example. I'm not currently able to continue the gdb session, it refuse to go on. ++ From lordheavym at ...176... Sat Aug 30 11:44:11 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 30 Aug 2008 11:44:11 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808300758.02610.gambas@...1...> References: <200808300225.39336.lordheavym@...176...> <200808300735.51463.gambas@...1...> <200808300758.02610.gambas@...1...> Message-ID: <200808301144.11563.lordheavym@...176...> Le Saturday 30 August 2008 07:58:02 Benoit Minisini, vous avez ?crit : > > First, you must run gbx3 with the "-p" option to prevent it from forking > > at startup. then, I don't see that gdb has crashed, but just breaked. So > > maybe you can continue the program? > > I read your bug report: what prevents gbx from being linked with > "-lphtread"? It is already the case on BSD systems. Here is some replies from gdb ML: --8<-- Are you dlopen()ing a library which is linked against libpthread.so into a program which isn't? Very few OSes support processes "suddenly" becoming multithreaded (I know only of Solaris 10 and AIX 5). If you do that on Linux, you should expect all kinds of trouble, because e.g. glibc very early on decides whether pthreads are present, and permanently switches to thread-unsafe behavior if they are not. Cheers, --8<-- > If you do that on Linux, you should expect all kinds of trouble, > because e.g. glibc very early on decides whether pthreads are > present, and permanently switches to thread-unsafe behavior if they > are not. I'm pretty sure that's not correct. It checks at each runtime spot, not initialization time - a lot of the complexity in glibc is to support this. --8<-- So as you do with gbx2, it seem reasonnable to add libthread linking. The problem seem really tied to some glibc/ldconfig magic. ++ From lordheavym at ...176... Sat Aug 30 12:45:54 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 30 Aug 2008 12:45:54 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808300735.51463.gambas@...1...> References: <200808300225.39336.lordheavym@...176...> <200808300735.51463.gambas@...1...> Message-ID: <200808301245.55078.lordheavym@...176...> Le Saturday 30 August 2008 07:35:51 Benoit Minisini, vous avez ?crit : > On samedi 30 ao?t 2008, Laurent Carlier wrote: > > I was not able to run gambas 2/3 apps in gdb, as it failed on dlopen() > > calls with an error while loading shared library symbols: > > > > ---8<--- > > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > > GNU gdb 6.8-debian > > Copyright (C) 2008 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to > > change and redistribute it. There is NO WARRANTY, to the extent permitted > > by law. Type "show copying" and "show warranty" for details. > > This GDB was configured as "x86_64-linux-gnu"... > > (gdb) run > > Starting program: /usr/local/bin/gbx3 > > [Thread debugging using libthread_db enabled] > > Error while reading shared library symbols: > > Cannot find new threads: generic error > > Cannot find new threads: generic error > > (gdb) bt > > #0 0x00007fe7ac19c7b7 in dl_open_worker () from > > /lib64/ld-linux-x86-64.so.2 #1 0x00007fe7ac198366 in _dl_catch_error () > > from /lib64/ld-linux-x86-64.so.2 #2 0x00007fe7ac19c0eb in _dl_open () > > from /lib64/ld-linux-x86-64.so.2 #3 0x00007fe7abd04fbb in dlopen_doit () > > from /lib/libdl.so.2 > > #4 0x00007fe7ac198366 in _dl_catch_error () from > > /lib64/ld-linux-x86-64.so.2 #5 0x00007fe7abd0536c in _dlerror_run () > > from /lib/libdl.so.2 > > #6 0x00007fe7abd04f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 > > #7 0x0000000000420999 in LIBRARY_load (lib=0x1eb8400) at > > gbx_library.c:468 #8 0x0000000000442377 in COMPONENT_load > > (comp=0x1eb83a0) at > > gbx_component.c:250 > > #9 0x0000000000441f4e in COMPONENT_load_all () at gbx_component.c:110 > > #10 0x0000000000420073 in PROJECT_load () at gbx_project.c:456 > > #11 0x00000000004330aa in init (file=0x4467b8 ".") at gbx.c:85 > > #12 0x000000000043366b in main (argc=1, argv=0x7fffb43a4808) at gbx.c:299 > > (gdb) quit > > ---8<--- > > > > So i was not able to run gbx code inside gdb (and it's not really easy > > to do debugging without gdb !). > > > > Then i've filled a bug report in debian (i'm running debian sid x86_64): > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496494 > > > > And ask for some help on the gdb Mailing List. > > > > Tonight i've succeeded to find a workaround in forcing linking of gbx > > with the libpthread library. > > > > As far as i know, ubuntu hardy got the same problem, i would ike to ask > > you if you got the same problem, and so this is a possible workaround :-) > > > > Regards, > > First, you must run gbx3 with the "-p" option to prevent it from forking at > startup. then, I don't see that gdb has crashed, but just breaked. So maybe > you can continue the program? This is with and without preloading (linking with pthread) --8<-- lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"... (gdb) run Starting program: /usr/local/bin/gbx3 [Thread debugging using libthread_db enabled] [New Thread 0x7f83ea8ee6e0 (LWP 10259)] [New Thread 0x421fe950 (LWP 10262)] [Thread 0x421fe950 (LWP 10262) exited] Program exited normally. (gdb) run -p Starting program: /usr/local/bin/gbx3 -p [Thread debugging using libthread_db enabled] [New Thread 0x7f2c3161f6e0 (LWP 10263)] [New Thread 0x41457950 (LWP 10264)] [Thread 0x41457950 (LWP 10264) exited] Program exited normally. (gdb) --8<-- I don't see a lot of differences. From gambas at ...1... Sat Aug 30 12:54:14 2008 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Aug 2008 12:54:14 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808301245.55078.lordheavym@...176...> References: <200808300225.39336.lordheavym@...176...> <200808300735.51463.gambas@...1...> <200808301245.55078.lordheavym@...176...> Message-ID: <200808301254.14847.gambas@...1...> On samedi 30 ao?t 2008, Laurent Carlier wrote: > Le Saturday 30 August 2008 07:35:51 Benoit Minisini, vous avez ?crit : > > On samedi 30 ao?t 2008, Laurent Carlier wrote: > > > I was not able to run gambas 2/3 apps in gdb, as it failed on dlopen() > > > calls with an error while loading shared library symbols: > > > > > > ---8<--- > > > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > > > GNU gdb 6.8-debian > > > Copyright (C) 2008 Free Software Foundation, Inc. > > > License GPLv3+: GNU GPL version 3 or later > > > This is free software: you are free > > > to change and redistribute it. There is NO WARRANTY, to the extent > > > permitted by law. Type "show copying" and "show warranty" for details. > > > This GDB was configured as "x86_64-linux-gnu"... > > > (gdb) run > > > Starting program: /usr/local/bin/gbx3 > > > [Thread debugging using libthread_db enabled] > > > Error while reading shared library symbols: > > > Cannot find new threads: generic error > > > Cannot find new threads: generic error > > > (gdb) bt > > > #0 0x00007fe7ac19c7b7 in dl_open_worker () from > > > /lib64/ld-linux-x86-64.so.2 #1 0x00007fe7ac198366 in _dl_catch_error > > > () from /lib64/ld-linux-x86-64.so.2 #2 0x00007fe7ac19c0eb in _dl_open > > > () from /lib64/ld-linux-x86-64.so.2 #3 0x00007fe7abd04fbb in > > > dlopen_doit () from /lib/libdl.so.2 > > > #4 0x00007fe7ac198366 in _dl_catch_error () from > > > /lib64/ld-linux-x86-64.so.2 #5 0x00007fe7abd0536c in _dlerror_run () > > > from /lib/libdl.so.2 > > > #6 0x00007fe7abd04f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 > > > #7 0x0000000000420999 in LIBRARY_load (lib=0x1eb8400) at > > > gbx_library.c:468 #8 0x0000000000442377 in COMPONENT_load > > > (comp=0x1eb83a0) at > > > gbx_component.c:250 > > > #9 0x0000000000441f4e in COMPONENT_load_all () at gbx_component.c:110 > > > #10 0x0000000000420073 in PROJECT_load () at gbx_project.c:456 > > > #11 0x00000000004330aa in init (file=0x4467b8 ".") at gbx.c:85 > > > #12 0x000000000043366b in main (argc=1, argv=0x7fffb43a4808) at > > > gbx.c:299 (gdb) quit > > > ---8<--- > > > > > > So i was not able to run gbx code inside gdb (and it's not really easy > > > to do debugging without gdb !). > > > > > > Then i've filled a bug report in debian (i'm running debian sid > > > x86_64): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496494 > > > > > > And ask for some help on the gdb Mailing List. > > > > > > Tonight i've succeeded to find a workaround in forcing linking of gbx > > > with the libpthread library. > > > > > > As far as i know, ubuntu hardy got the same problem, i would ike to ask > > > you if you got the same problem, and so this is a possible workaround > > > :-) > > > > > > Regards, > > > > First, you must run gbx3 with the "-p" option to prevent it from forking > > at startup. then, I don't see that gdb has crashed, but just breaked. So > > maybe you can continue the program? > > This is with and without preloading (linking with pthread) > --8<-- > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > GNU gdb 6.8-debian > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to > change and redistribute it. There is NO WARRANTY, to the extent permitted > by law. Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu"... > (gdb) run > Starting program: /usr/local/bin/gbx3 > [Thread debugging using libthread_db enabled] > [New Thread 0x7f83ea8ee6e0 (LWP 10259)] > [New Thread 0x421fe950 (LWP 10262)] > [Thread 0x421fe950 (LWP 10262) exited] > > Program exited normally. > (gdb) run -p > Starting program: /usr/local/bin/gbx3 -p > [Thread debugging using libthread_db enabled] > [New Thread 0x7f2c3161f6e0 (LWP 10263)] > [New Thread 0x41457950 (LWP 10264)] > [Thread 0x41457950 (LWP 10264) exited] > > Program exited normally. > (gdb) > --8<-- > > I don't see a lot of differences. > I have committed a patch to always link gbx2 with pthread (not yet for gbx3). Does always linking with pthread solve the problem? -- Benoit Minisini From lordheavym at ...176... Sat Aug 30 13:20:49 2008 From: lordheavym at ...176... (Laurent Carlier) Date: Sat, 30 Aug 2008 13:20:49 +0200 Subject: [Gambas-devel] Problem while running gbx2/3 with gdb In-Reply-To: <200808301254.14847.gambas@...1...> References: <200808300225.39336.lordheavym@...176...> <200808301245.55078.lordheavym@...176...> <200808301254.14847.gambas@...1...> Message-ID: <200808301320.49574.lordheavym@...176...> Le Saturday 30 August 2008 12:54:14 Benoit Minisini, vous avez ?crit : > On samedi 30 ao?t 2008, Laurent Carlier wrote: > > Le Saturday 30 August 2008 07:35:51 Benoit Minisini, vous avez ?crit : > > > On samedi 30 ao?t 2008, Laurent Carlier wrote: > > > > I was not able to run gambas 2/3 apps in gdb, as it failed on > > > > dlopen() calls with an error while loading shared library symbols: > > > > > > > > ---8<--- > > > > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > > > > GNU gdb 6.8-debian > > > > Copyright (C) 2008 Free Software Foundation, Inc. > > > > License GPLv3+: GNU GPL version 3 or later > > > > This is free software: you are > > > > free to change and redistribute it. There is NO WARRANTY, to the > > > > extent permitted by law. Type "show copying" and "show warranty" for > > > > details. This GDB was configured as "x86_64-linux-gnu"... > > > > (gdb) run > > > > Starting program: /usr/local/bin/gbx3 > > > > [Thread debugging using libthread_db enabled] > > > > Error while reading shared library symbols: > > > > Cannot find new threads: generic error > > > > Cannot find new threads: generic error > > > > (gdb) bt > > > > #0 0x00007fe7ac19c7b7 in dl_open_worker () from > > > > /lib64/ld-linux-x86-64.so.2 #1 0x00007fe7ac198366 in _dl_catch_error > > > > () from /lib64/ld-linux-x86-64.so.2 #2 0x00007fe7ac19c0eb in > > > > _dl_open () from /lib64/ld-linux-x86-64.so.2 #3 0x00007fe7abd04fbb > > > > in dlopen_doit () from /lib/libdl.so.2 > > > > #4 0x00007fe7ac198366 in _dl_catch_error () from > > > > /lib64/ld-linux-x86-64.so.2 #5 0x00007fe7abd0536c in _dlerror_run () > > > > from /lib/libdl.so.2 > > > > #6 0x00007fe7abd04f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2 > > > > #7 0x0000000000420999 in LIBRARY_load (lib=0x1eb8400) at > > > > gbx_library.c:468 #8 0x0000000000442377 in COMPONENT_load > > > > (comp=0x1eb83a0) at > > > > gbx_component.c:250 > > > > #9 0x0000000000441f4e in COMPONENT_load_all () at > > > > gbx_component.c:110 #10 0x0000000000420073 in PROJECT_load () at > > > > gbx_project.c:456 #11 0x00000000004330aa in init (file=0x4467b8 ".") > > > > at gbx.c:85 #12 0x000000000043366b in main (argc=1, > > > > argv=0x7fffb43a4808) at gbx.c:299 (gdb) quit > > > > ---8<--- > > > > > > > > So i was not able to run gbx code inside gdb (and it's not really > > > > easy to do debugging without gdb !). > > > > > > > > Then i've filled a bug report in debian (i'm running debian sid > > > > x86_64): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496494 > > > > > > > > And ask for some help on the gdb Mailing List. > > > > > > > > Tonight i've succeeded to find a workaround in forcing linking of gbx > > > > with the libpthread library. > > > > > > > > As far as i know, ubuntu hardy got the same problem, i would ike to > > > > ask you if you got the same problem, and so this is a possible > > > > workaround > > > > > > > > :-) > > > > > > > > Regards, > > > > > > First, you must run gbx3 with the "-p" option to prevent it from > > > forking at startup. then, I don't see that gdb has crashed, but just > > > breaked. So maybe you can continue the program? > > > > This is with and without preloading (linking with pthread) > > --8<-- > > lordh at ...607...:~/gb2projets/TunnelSDL$ gdb gbx3 > > GNU gdb 6.8-debian > > Copyright (C) 2008 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > This is free software: you are free to > > change and redistribute it. There is NO WARRANTY, to the extent permitted > > by law. Type "show copying" and "show warranty" for details. > > This GDB was configured as "x86_64-linux-gnu"... > > (gdb) run > > Starting program: /usr/local/bin/gbx3 > > [Thread debugging using libthread_db enabled] > > [New Thread 0x7f83ea8ee6e0 (LWP 10259)] > > [New Thread 0x421fe950 (LWP 10262)] > > [Thread 0x421fe950 (LWP 10262) exited] > > > > Program exited normally. > > (gdb) run -p > > Starting program: /usr/local/bin/gbx3 -p > > [Thread debugging using libthread_db enabled] > > [New Thread 0x7f2c3161f6e0 (LWP 10263)] > > [New Thread 0x41457950 (LWP 10264)] > > [Thread 0x41457950 (LWP 10264) exited] > > > > Program exited normally. > > (gdb) > > --8<-- > > > > I don't see a lot of differences. > > I have committed a patch to always link gbx2 with pthread (not yet for > gbx3). Does always linking with pthread solve the problem? Yes, it's fixing the problem, i've applying the same patch on G3 with the same success. Regards, From admin at ...608... Sun Aug 31 14:22:45 2008 From: admin at ...608... (werner 007) Date: Sun, 31 Aug 2008 05:22:45 -0700 (PDT) Subject: [Gambas-devel] Failing to create DEBIAN installation package Message-ID: <19240810.post@...565...> Hi at all I use Gambas 2.7. When i create a Debian-package, the least message-window says success. BUT the creation fails with "build-stamp" Error. All other packaging working well. Is there a something i could do wrong in the Package-Dialog? Can anybody give me a hint how to fix this? Maybe it is possible to create a Debian-package by manually? Regards Werner (007) The output from the creation-window is: Paket f?r Debian erstellen. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: setze CFLAGS auf Standardwert: -g -O2 dpkg-buildpackage: setze CPPFLAGS auf Standardwert: dpkg-buildpackage: setze LDFLAGS auf Standardwert: dpkg-buildpackage: setze FFLAGS auf Standardwert: -g -O2 dpkg-buildpackage: setze CXXFLAGS auf Standardwert: -g -O2 dpkg-buildpackage: Quellpaket m3u-copy-g2 dpkg-buildpackage: Quellversion 0.1.7-1 dpkg-buildpackage: Quellen ge?ndert durch Werner Staudacher dpkg-buildpackage: Host-Architektur i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dpkg-source: Information: verwende Quellformat ?1.0? dpkg-source: Information: baue m3u-copy-g2 in m3u-copy-g2_0.1.7.orig.tar.gz dpkg-source -b m3u-copy-g2-0.1.7 dpkg-source: Information: baue m3u-copy-g2 in m3u-copy-g2_0.1.7-1.diff.gz dpkg-source: Information: baue m3u-copy-g2 in m3u-copy-g2_0.1.7-1.dsc dpkg-source: Warnung: ignoriere L?schen der Datei src/m3u-copy_g2/m3u-copy_g2.gambas (-->is this bad?) dpkg-source: Warnung: ignoriere L?schen des Verzeichnisses src/m3u-copy_g2/.gambas (-->is this bad?) dh_testdir debian/rules build touch build-stamp /usr/bin/gbc2 -a src/m3u-copy-g2 gbc: project file not found: /home/ws/m3u-copy-g2-0.1.7/.project (-->what is wrong with the filename? The output-directory i defined is /home/ws/rpm) make: *** [build-stamp] Fehler 1 dpkg-buildpackage: Fehlschlag: debian/rules build gab Fehler-Exitstatus 2 Sichern CHANGELOG Datei. Die Pakete wurden erfolgreich (=success) erstellt. (--> that is not true!) -- View this message in context: http://www.nabble.com/Failing-to-create-DEBIAN-installation-package-tp19240810p19240810.html Sent from the gambas-devel mailing list archive at Nabble.com.