Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-22 Thread alexchernoff
Anyone know if there is a wrapper to daemonize apps while keeping them in
regular console mode? That way maybe it will be possible to log fatal
interpreter errors?

Peace! 




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59515.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread Fernando Cabral
On Thu, 22 Jun 2017, PICCORO McKAY Lenz wrote:

> > i only use to avoid a similar to this:
> >
> > if isnull(value ) then
> >' amount of 4000 lines of code
> > else
> >' amount of other lot of lines
> > endif
> > if not isnull()
> >   goto codepiecelabel1
> > endif
> >   ' amount of lines
>
> I don't want to be blunt, but I am forced to say that:

a) GOTO is always avoidable (even in COBOL)
b) The need for GOTO usally comes from poor coding (and perhaps poor
languages)
c)  For me, the above example is one of the worst situations to use GOTO.
It makes reading
and understanding the code very, very hard.

My experience is that when you get to a point where GOTO seems to be the
best solution (sometimes, only solution) then probabibly you have thought
not enough about what you are coding -- or coded well enough.

Finally, if you set the GOTO to break a loop, or to jump to a nearby place,
you might be able to survive.
But if you use it to to jump over 4000 lines of code, that should sound a
LOUD, VERY LOUD alarm. Something is probabily very wrong. I simply can not
think about a situation where you have a single block of 4.000 lines of
code. It should have been broken down into a few tens or pehaps hundreds
functions.

It means, even thou I don't know your code, I would guess it has not been
well thought out..

Regards

- fernando

be put into a meaningful class. An object of this class contains all
> your relevant variables and you can pass a reference of that object
> (as a container for the variables) to a function.
>
> If there's no sensible grouping of variables into classes but you
> don't have dozens of variables, then you could try ByRef [1].
>
> Regards,
> Tobi
>
> [1] http://gambaswiki.org/wiki/doc/byref
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread nando_f
Sometimes GOTO is needed...especially if you want your code to run faster.

Used properly and judiciously, it can make code reading much easier.

--
Open WebMail Project (http://openwebmail.org)


-- Original Message ---
From: Cristiano Guadagnino 
To: mailing list for gambas users 
Sent: Thu, 22 Jun 2017 16:24:02 +0200
Subject: Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make 
influence in
the code?

> Based on your example, I would not find the code using GOTO any more
> readable. Quite to the contrary, instead.
> And I don't understand why you cannot use a sub. What's the problem with
> variables that cannot be solved by passing the needed variables or using
> globals?
> 
> Anyway, coding style is a matter of taste, so go with what you prefer.
> Unless the code needs to be read/perused by others, obviously.
> 
> Cris
> 
> On Thu, Jun 22, 2017 at 4:10 PM, PICCORO McKAY Lenz 
> wrote:
> 
> > 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen :
> >
> > > Usually the problem with goto is that it can render the code hard to
> > debug
> > > or read.
> > >
> > AH OK, so in large complex dependences must be avoid..
> >
> > i only use to avoid a similar to this:
> >
> > if isnull(value ) then
> >' amount of 4000 lines of code
> >
> > else
> >' amount of other lot of lines
> > endif
> >
> > so i put
> >
> > if not isnull()
> >   goto codepiecelabel1
> > endif
> >   ' amount of lines
> >
> > codepiecelabel1:
> > ' here the 4000 lines
> >
> >
> > i cannot use a sub procedures due manage some variables
> >
> >
> > >
> > >
> > > Jussi
> > >
> > > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz <
> > > mckaygerh...@gmail.com>
> > > wrote:
> > >
> > > > i have some GOTO to avoit large IF-ELSE code blocks and make readable
> > the
> > > > code..
> > > >
> > > > the usage of many GOTO instructions can be bad pracitce or make
> > influence
> > > > in the code?
> > > >
> > > > i remenber that in BASIC always tell me "dont use too much"
> > > >
> > > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
> > > >
> > > >
> > > > Lenz McKAY Gerardo (PICCORO)
> > > > http://qgqlochekone.blogspot.com
> > > > 
> > > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--- End of Original Message ---


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread PICCORO McKAY Lenz
of course was a simple lines.. the code are around 3000 lines.. yes its
complicated..

i have vision . of course.. make the work as JAva works, in the future
maybe i make a framework based on my eforces

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-06-22 10:24 GMT-04:00 Cristiano Guadagnino :

> Based on your example, I would not find the code using GOTO any more
> readable. Quite to the contrary, instead.
> And I don't understand why you cannot use a sub. What's the problem with
> variables that cannot be solved by passing the needed variables or using
> globals?
>
> Anyway, coding style is a matter of taste, so go with what you prefer.
> Unless the code needs to be read/perused by others, obviously.
>
> Cris
>
>
> On Thu, Jun 22, 2017 at 4:10 PM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com>
> wrote:
>
> > 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen :
> >
> > > Usually the problem with goto is that it can render the code hard to
> > debug
> > > or read.
> > >
> > AH OK, so in large complex dependences must be avoid..
> >
> > i only use to avoid a similar to this:
> >
> > if isnull(value ) then
> >' amount of 4000 lines of code
> >
> > else
> >' amount of other lot of lines
> > endif
> >
> > so i put
> >
> > if not isnull()
> >   goto codepiecelabel1
> > endif
> >   ' amount of lines
> >
> > codepiecelabel1:
> > ' here the 4000 lines
> >
> >
> > i cannot use a sub procedures due manage some variables
> >
> >
> > >
> > >
> > > Jussi
> > >
> > > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz <
> > > mckaygerh...@gmail.com>
> > > wrote:
> > >
> > > > i have some GOTO to avoit large IF-ELSE code blocks and make readable
> > the
> > > > code..
> > > >
> > > > the usage of many GOTO instructions can be bad pracitce or make
> > influence
> > > > in the code?
> > > >
> > > > i remenber that in BASIC always tell me "dont use too much"
> > > >
> > > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
> > > >
> > > >
> > > > Lenz McKAY Gerardo (PICCORO)
> > > > http://qgqlochekone.blogspot.com
> > > > 
> > > > --
> > > > Check out the vibrant tech community on one of the world's most
> > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > > ___
> > > > Gambas-user mailing list
> > > > Gambas-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread Cristiano Guadagnino
Based on your example, I would not find the code using GOTO any more
readable. Quite to the contrary, instead.
And I don't understand why you cannot use a sub. What's the problem with
variables that cannot be solved by passing the needed variables or using
globals?

Anyway, coding style is a matter of taste, so go with what you prefer.
Unless the code needs to be read/perused by others, obviously.

Cris


On Thu, Jun 22, 2017 at 4:10 PM, PICCORO McKAY Lenz 
wrote:

> 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen :
>
> > Usually the problem with goto is that it can render the code hard to
> debug
> > or read.
> >
> AH OK, so in large complex dependences must be avoid..
>
> i only use to avoid a similar to this:
>
> if isnull(value ) then
>' amount of 4000 lines of code
>
> else
>' amount of other lot of lines
> endif
>
> so i put
>
> if not isnull()
>   goto codepiecelabel1
> endif
>   ' amount of lines
>
> codepiecelabel1:
> ' here the 4000 lines
>
>
> i cannot use a sub procedures due manage some variables
>
>
> >
> >
> > Jussi
> >
> > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz <
> > mckaygerh...@gmail.com>
> > wrote:
> >
> > > i have some GOTO to avoit large IF-ELSE code blocks and make readable
> the
> > > code..
> > >
> > > the usage of many GOTO instructions can be bad pracitce or make
> influence
> > > in the code?
> > >
> > > i remenber that in BASIC always tell me "dont use too much"
> > >
> > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
> > >
> > >
> > > Lenz McKAY Gerardo (PICCORO)
> > > http://qgqlochekone.blogspot.com
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread PICCORO McKAY Lenz
2017-06-22 10:00 GMT-04:00 Jussi Lahtinen :

> Usually the problem with goto is that it can render the code hard to debug
> or read.
>
AH OK, so in large complex dependences must be avoid..

i only use to avoid a similar to this:

if isnull(value ) then
   ' amount of 4000 lines of code

else
   ' amount of other lot of lines
endif

so i put

if not isnull()
  goto codepiecelabel1
endif
  ' amount of lines

codepiecelabel1:
' here the 4000 lines


i cannot use a sub procedures due manage some variables


>
>
> Jussi
>
> On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz <
> mckaygerh...@gmail.com>
> wrote:
>
> > i have some GOTO to avoit large IF-ELSE code blocks and make readable the
> > code..
> >
> > the usage of many GOTO instructions can be bad pracitce or make influence
> > in the code?
> >
> > i remenber that in BASIC always tell me "dont use too much"
> >
> > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread Jussi Lahtinen
Depends on situation. Usually goto is not needed, but it can be useful.
Impossible to say more without seeing the code.
Usually the problem with goto is that it can render the code hard to debug
or read.


Jussi

On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz 
wrote:

> i have some GOTO to avoit large IF-ELSE code blocks and make readable the
> code..
>
> the usage of many GOTO instructions can be bad pracitce or make influence
> in the code?
>
> i remenber that in BASIC always tell me "dont use too much"
>
> of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread Benoît Minisini via Gambas-user

Le 22/06/2017 à 15:21, PICCORO McKAY Lenz a écrit :

i have some GOTO to avoit large IF-ELSE code blocks and make readable the
code..

the usage of many GOTO instructions can be bad pracitce or make influence
in the code?

i remenber that in BASIC always tell me "dont use too much"

of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com


If your code is more readable with GOTO than without GOTO, then use GOTO.

Note than you have GOSUB too.

Regards,

--
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-22 Thread PICCORO McKAY Lenz
i have some GOTO to avoit large IF-ELSE code blocks and make readable the
code..

the usage of many GOTO instructions can be bad pracitce or make influence
in the code?

i remenber that in BASIC always tell me "dont use too much"

of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-)


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread PICCORO McKAY Lenz
2017-06-22 7:28 GMT-04:00 Gianluigi :

> :-) de gustibus non est disputandum
>

O.o


> It did not work
>
why? maybe the problem of the ppa are the same of the curent instalation...
umm i already know now! you are using win... i mean winbuntu!

X-D


> > in any case using a specific desktop nothing to do related respect to
> > launch or run!
> It does not seem that way
>
so then was not unity or gnome!?



>
>
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> >
> > 2017-06-22 5:57 GMT-04:00 Gianluigi :
> >
> > > He has two desktops on his Ubuntu, Unity and Gnome 3.24.2.
> > > But he used only the Gnome desktop.
> > > I asked him if on Unity Gambas is working.
> > > After trying to run Gambas on Unity successfully, Gambas started
> working
> > on
> > > the Gnome desktop as well.
> > > I hope to have better explained.
> > >
> > > Regards
> > > Gianluigi
> > >
> > > 2017-06-22 11:40 GMT+02:00 Benoît Minisini <
> gam...@users.sourceforge.net
> > >:
> > >
> > > > Le 22/06/2017 à 11:37, Gianluigi a écrit :
> > > >
> > > >> Hi Benoit,
> > > >> problem solved.
> > > >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses
> only
> > > >> Gnome.
> > > >> It was enough to run Gambas on Unity, which then started running on
> > > Gnome.
> > > >>
> > > >> Regards
> > > >> Gianluigi
> > > >>
> > > >>
> > > > Sorry I don't understand what you wrote.
> > > >
> > > > --
> > > > Benoît Minisini
> > > >
> > > 
> > > --
> > > Check out the vibrant tech community on one of the world's most
> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > > ___
> > > Gambas-user mailing list
> > > Gambas-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-22 Thread alexchernoff
well, at least system.backtrace[1] (or error.backtrace[0] seem to show the
error line.

But it would be nice to get fatal interpreter errors written to a file.

cheers!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59504.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-22 Thread Benoît Minisini via Gambas-user

Le 22/06/2017 à 13:56, alexchernoff a écrit :

Peace!

Well, Public Sub Application_Error() does fire upon a fatal error, but is it
possible to know what the last error was?

cheers!




At the moment, no.

--
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-22 Thread alexchernoff
Peace!

Well, Public Sub Application_Error() does fire upon a fatal error, but is it
possible to know what the last error was?

cheers!





--
View this message in context: 
http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59502.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread Gianluigi
2017-06-22 12:32 GMT+02:00 PICCORO McKAY Lenz :

> its the worst instalacion i never see,
>

:-) de gustibus non est disputandum


>
> why not only just use the ppa?
>

It did not work


>
> in any case using a specific desktop nothing to do related respect to
> launch or run!
>
>
It does not seem that way


> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-06-22 5:57 GMT-04:00 Gianluigi :
>
> > He has two desktops on his Ubuntu, Unity and Gnome 3.24.2.
> > But he used only the Gnome desktop.
> > I asked him if on Unity Gambas is working.
> > After trying to run Gambas on Unity successfully, Gambas started working
> on
> > the Gnome desktop as well.
> > I hope to have better explained.
> >
> > Regards
> > Gianluigi
> >
> > 2017-06-22 11:40 GMT+02:00 Benoît Minisini  >:
> >
> > > Le 22/06/2017 à 11:37, Gianluigi a écrit :
> > >
> > >> Hi Benoit,
> > >> problem solved.
> > >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses only
> > >> Gnome.
> > >> It was enough to run Gambas on Unity, which then started running on
> > Gnome.
> > >>
> > >> Regards
> > >> Gianluigi
> > >>
> > >>
> > > Sorry I don't understand what you wrote.
> > >
> > > --
> > > Benoît Minisini
> > >
> > 
> > --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread PICCORO McKAY Lenz
its the worst instalacion i never see,

why not only just use the ppa?

in any case using a specific desktop nothing to do related respect to
launch or run!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-06-22 5:57 GMT-04:00 Gianluigi :

> He has two desktops on his Ubuntu, Unity and Gnome 3.24.2.
> But he used only the Gnome desktop.
> I asked him if on Unity Gambas is working.
> After trying to run Gambas on Unity successfully, Gambas started working on
> the Gnome desktop as well.
> I hope to have better explained.
>
> Regards
> Gianluigi
>
> 2017-06-22 11:40 GMT+02:00 Benoît Minisini :
>
> > Le 22/06/2017 à 11:37, Gianluigi a écrit :
> >
> >> Hi Benoit,
> >> problem solved.
> >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses only
> >> Gnome.
> >> It was enough to run Gambas on Unity, which then started running on
> Gnome.
> >>
> >> Regards
> >> Gianluigi
> >>
> >>
> > Sorry I don't understand what you wrote.
> >
> > --
> > Benoît Minisini
> >
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread Gianluigi
He has two desktops on his Ubuntu, Unity and Gnome 3.24.2.
But he used only the Gnome desktop.
I asked him if on Unity Gambas is working.
After trying to run Gambas on Unity successfully, Gambas started working on
the Gnome desktop as well.
I hope to have better explained.

Regards
Gianluigi

2017-06-22 11:40 GMT+02:00 Benoît Minisini :

> Le 22/06/2017 à 11:37, Gianluigi a écrit :
>
>> Hi Benoit,
>> problem solved.
>> He forgot to tell us he has Ubuntu with Unity and Gnome but uses only
>> Gnome.
>> It was enough to run Gambas on Unity, which then started running on Gnome.
>>
>> Regards
>> Gianluigi
>>
>>
> Sorry I don't understand what you wrote.
>
> --
> Benoît Minisini
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread Benoît Minisini via Gambas-user

Le 22/06/2017 à 11:37, Gianluigi a écrit :

Hi Benoit,
problem solved.
He forgot to tell us he has Ubuntu with Unity and Gnome but uses only Gnome.
It was enough to run Gambas on Unity, which then started running on Gnome.

Regards
Gianluigi



Sorry I don't understand what you wrote.

--
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread Gianluigi
Hi Benoit,
problem solved.
He forgot to tell us he has Ubuntu with Unity and Gnome but uses only Gnome.
It was enough to run Gambas on Unity, which then started running on Gnome.

Regards
Gianluigi

2017-06-22 9:40 GMT+02:00 Gianluigi :

> Missing attached here, sorry
>
> Regards
> Gianluigi
>
>
> 2017-06-21 15:32 GMT+02:00 Benoît Minisini :
>
>> Le 21/06/2017 à 15:29, Benoît Minisini a écrit :
>>
>>> Le 21/06/2017 à 15:25, Gianluigi a écrit :
>>>
 The libreries you have indicated are the last 5 of the command I
 suggested, which is not wrong.
 So I just have to let him to add libssl-dev, but I do not think his
 problem stems from this, right?
 Why he can not run Gambas and get these errors from the terminal?
 Settings.WriteWindow.393: #20: Bad argument
 Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848
 FMain.Form_Open.78 Project.Main.366

 Regards
 Gianluigi


>>> I don't know. I'm working on Kubuntu 17.04, and I have no problem with
>>> compiling Gambas, except the missing llvm 3.5.
>>>
>>>
>> Can you try to recompile the very latest revision? I added some code that
>> should avoid the specific crash you have.
>>
>> --
>> Benoît Minisini
>>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread Gianluigi
Missing attached here, sorry

Regards
Gianluigi


2017-06-21 15:32 GMT+02:00 Benoît Minisini :

> Le 21/06/2017 à 15:29, Benoît Minisini a écrit :
>
>> Le 21/06/2017 à 15:25, Gianluigi a écrit :
>>
>>> The libreries you have indicated are the last 5 of the command I
>>> suggested, which is not wrong.
>>> So I just have to let him to add libssl-dev, but I do not think his
>>> problem stems from this, right?
>>> Why he can not run Gambas and get these errors from the terminal?
>>> Settings.WriteWindow.393: #20: Bad argument
>>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848
>>> FMain.Form_Open.78 Project.Main.366
>>>
>>> Regards
>>> Gianluigi
>>>
>>>
>> I don't know. I'm working on Kubuntu 17.04, and I have no problem with
>> compiling Gambas, except the missing llvm 3.5.
>>
>>
> Can you try to recompile the very latest revision? I added some code that
> should avoid the specific crash you have.
>
> --
> Benoît Minisini
>


LogFile.tar.gz
Description: GNU Zip compressed data
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-22 Thread Gianluigi
Hi Benoit,

our friend reports that now opens the tips window that works, but when he
closes the window Gambas does not start.
What other information do you need?
I asked him for an image, and if he finds Gambas out of the dash
Attached the new log files, it seems all right.

Regards
Gianluigi

2017-06-21 15:32 GMT+02:00 Benoît Minisini :

> Le 21/06/2017 à 15:29, Benoît Minisini a écrit :
>
>> Le 21/06/2017 à 15:25, Gianluigi a écrit :
>>
>>> The libreries you have indicated are the last 5 of the command I
>>> suggested, which is not wrong.
>>> So I just have to let him to add libssl-dev, but I do not think his
>>> problem stems from this, right?
>>> Why he can not run Gambas and get these errors from the terminal?
>>> Settings.WriteWindow.393: #20: Bad argument
>>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848
>>> FMain.Form_Open.78 Project.Main.366
>>>
>>> Regards
>>> Gianluigi
>>>
>>>
>> I don't know. I'm working on Kubuntu 17.04, and I have no problem with
>> compiling Gambas, except the missing llvm 3.5.
>>
>>
> Can you try to recompile the very latest revision? I added some code that
> should avoid the specific crash you have.
>
> --
> Benoît Minisini
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option

2017-06-22 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1091=L21haW4-

Comment #7 by hakan UNVER:

Hii I try Step by step explain.

- We connect Mysql server
- user working smoothly.
- Any Time Mysql Server Stop or have network problem..
- If the user does something at this time
- MYSQL_OPT_RECONNECT  start try reconnecting
- İf Mysql server 15 min Dont work MYSQL_OPT_RECONNECT  Try forever for connect 
server
- This Time User application Not responding.
Question is :  In similar situations How to dedect this situation , or How we 
set MYSQL_OPT_RECONNECT time out option ?



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange behaviour of File.Read

2017-06-22 Thread bill-lancaster via Gambas-user
The directory string was written from a directory chooser, originally via a
string variable - this is where the quotes came from.
Using a variant produces a string without quotes and presumably without \n
Thanks again



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59493.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user