Re: [Lazarus] External/out-of-tree LCL widgetset

2017-11-30 Thread el es via Lazarus
On 29/11/17 23:02, Graeme Geldenhuys via Lazarus wrote: > On 2017-11-28 09:02, Michael Schnell via Lazarus wrote: >> and support for Delphi-typical RAD-style development. > > RAD style development is highly overrated - I wish you can see the > mess I'm looking at (not my code). Each form are 1000

Re: [Lazarus] Weird object variables access - fpc issue?

2017-10-24 Thread el es via Lazarus
On 24/10/17 12:59, Mattias Gaertner via Lazarus wrote: > ASystemTime is a stack variable. That's thread-safe. > > In fpc trunk it calls GetLocalTime on Unix, which fetches timezone > every time. No global var. So it should be thread safe. > >> because each thread instance would have its own loca

Re: [Lazarus] Weird object variables access - fpc issue?

2017-10-24 Thread el es via Lazarus
On 24/10/17 10:04, Mattias Gaertner via Lazarus wrote: > On Tue, 24 Oct 2017 08:59:36 +0100 > el es via Lazarus wrote: > >> On 23/10/17 20:00, Giuliano Colla via Lazarus wrote: >> [snip] >> >> I don't remember if I was hitting AV using Now(), likely I wasn&#

Re: [Lazarus] Weird object variables access - fpc issue?

2017-10-24 Thread el es via Lazarus
On 24/10/17 10:20, Michael Schnell via Lazarus wrote: > On 24.10.2017 10:48, el es via Lazarus wrote: >> [...] >>>> begin >>>>    repeat >>>>    until not ThreadNowInUse;  // >>>>       try >>>> ThreadNowInUse :=true;

Re: [Lazarus] Weird object variables access - fpc issue?

2017-10-24 Thread el es via Lazarus
On 24/10/17 09:11, Mattias Gaertner via Lazarus wrote: > On Tue, 24 Oct 2017 08:59:36 +0100 > el es via Lazarus wrote: > >> [...] >> begin >> repeat >> until not ThreadNowInUse; // >> >> try >> ThreadNowInUse :=true; > > Th

Re: [Lazarus] Weird object variables access - fpc issue?

2017-10-24 Thread el es via Lazarus
On 23/10/17 20:00, Giuliano Colla via Lazarus wrote: [snip] I don't remember if I was hitting AV using Now(), likely I wasn't - but due to 'normal' Now() being not thread safe, I was getting inconsistent timing results, when I used Now() both in main thread and in the thread; So with my applica

Re: [Lazarus] [PATCH] Fix problems with writing ProductVersion in VersionInfo

2017-10-04 Thread el es via Lazarus
Hi Dmitry, On 04/10/17 03:51, Dmitry D. Chernov via Lazarus wrote: > No, I mean, like in my signature, "Dmitry D. Chernov". Anyway that's > not critical. > > _ > > Dmitry D. Chernov > Waldo meant to say : the cyrylic characters have been that way in your original email, as you can also se

Re: [Lazarus] Converting all code to use UnicodeString

2017-09-28 Thread el es via Lazarus
On 27/09/17 09:16, Graeme Geldenhuys via Lazarus wrote: > On 2017-09-27 03:51, Marcos Douglas B. Santos via Lazarus wrote: >> A constant that can change... > > > Yeah, that concept still blows my mind. [figuratively speaking] They > should shoot the developer that came up with that idea - and the

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-25 Thread el es via Lazarus
On 22/09/17 15:44, Marcos Douglas B. Santos via Lazarus wrote: > So, you can do like them: just use Google Translator. :) > > Regards, > Marcos Douglas > Am 22.09.2017 15:51 schrieb "el es via Lazarus" : > >Google Translate does a rather good job of transl

Re: [Lazarus] [ANN] Xavier for XML — Compatible with FPC and Delphi

2017-09-22 Thread el es via Lazarus
On 21/09/17 17:49, Marcos Douglas B. Santos via Lazarus wrote: > > [1] My posts about inheritance https://goo.gl/nzM4Ss > If it only was in English ;) Unfortunately knowing Esperanto (once upon a time) only gets you so far as 5% ;) -L. -- ___ L

Re: [Lazarus] FPReport file names

2017-09-13 Thread el es via Lazarus
On 13/09/17 10:19, Sven Barth via Lazarus wrote: > Am 13.09.2017 10:45 schrieb "Michael Van Canneyt via Lazarus" >> The benefit of writing fpreport.exporthtml versus >> fpreportexporthtml is zero. >> > > The "." allows for a nicer disambiguation between what's the prefix > and what's the remaind

Re: [Lazarus] custom thread reading file does not respond properly

2017-09-06 Thread el es via Lazarus
On 06/09/17 16:19, Sven Barth via Lazarus wrote: > Am 06.09.2017 16:48 schrieb "el es via Lazarus" > mailto:lazarus@lists.lazarus-ide.org>>: >> - could the un-yielded code path lead to over-zealous enqueuing of the >> ShowStatus routine? >> - if yes, w

Re: [Lazarus] custom thread reading file does not respond properly

2017-09-06 Thread el es via Lazarus
On 06/09/17 15:26, el es wrote: > On 06/09/17 10:31, Andrea Mauri via Lazarus wrote: >> Il 05/09/2017 22:51, Sven Barth via Lazarus ha scritto: >>> >>> It is however solved if you add a "Yield;" after the Synchronize >>> call. So my suspicion is that the scheduling of Mac OS X is somehow >>> messin

Re: [Lazarus] custom thread reading file does not respond properly

2017-09-06 Thread el es via Lazarus
On 06/09/17 10:31, Andrea Mauri via Lazarus wrote: > Il 05/09/2017 22:51, Sven Barth via Lazarus ha scritto: >> >> It is however solved if you add a "Yield;" after the Synchronize >> call. So my suspicion is that the scheduling of Mac OS X is somehow >> messing things up. Either the scheduling is

Re: [Lazarus] Enqueuing a callback from a thread via other class - or am I overcomplicating this ?

2017-06-18 Thread el es via Lazarus
On 18-Jun-17 11:20, Juha Manninen via Lazarus wrote: On Sat, Jun 17, 2017 at 11:25 PM, el es via Lazarus wrote: But when, during the course of Queue()d callback, I FreeAndNil() the object that had the pointer to the callback procedure, I get SIGSEGV pointing at CheckSynchronize in Application

Re: [Lazarus] Enqueuing a callback from a thread via other class - or am I overcomplicating this ?

2017-06-17 Thread el es via Lazarus
Hindsight, schmindsight, but here is another question: Where does the call queued from a thread, return to ? As in, the thread calls Queue() on a method of the object we're interested in; and that in turn calls a method / procedure more like / from the 'main form' unit. The object's lifetime is

Re: [Lazarus] Teaching Pascal at College

2016-10-15 Thread el es via Lazarus
On 14-Oct-16 17:16, Reimar Grabowski via Lazarus wrote: On Fri, 14 Oct 2016 16:24:04 +0100 Lukasz Sokol via Lazarus wrote: D'oh, really. D'oh, really? (fixed that for you) Answer: No (well actually the part about matlab I meant serious) Ah Matlab. Happy TU days. Calculating 2D FFT of a