On 19/06/17 10:05, Lukasz Sokol via Lazarus wrote:
> On 19/06/17 00:30, José Mejuto via Lazarus wrote:
>> El 18/06/2017 a las 22:44, el es via Lazarus escribió:
>>
>>> Hence the object, would have to have ITS callback routine be something like
>>> a TNotifyEvent ( procedure(AObject: TSomeObject)
On 17.06.2017 22:25, el es via Lazarus wrote:
Where does the call queued from a thread, return to ?
From the POV of the application programmer: "nowhere". it's just
another (main-Thread-) "Event" that (like "OnClick") gets "fired" by the
Lazarus/fpc infrastructure and is done.
The object's
On 19/06/17 00:30, José Mejuto via Lazarus wrote:
> El 18/06/2017 a las 22:44, el es via Lazarus escribió:
>
>> Hence the object, would have to have ITS callback routine be something like
>> a TNotifyEvent ( procedure(AObject: TSomeObject) of object, or something),
>> and the flag set is set
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
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. (address
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
On 14/06/17 11:33, Mattias Gaertner via Lazarus wrote:
> On Wed, 14 Jun 2017 11:12:11 +0100
> Lukasz Sokol via Lazarus wrote:
>
>> [...]
>> SomeClassLockedList := SomeClassList.LockedList; // there are
>> try/excepts around all here, but did not want to
On Wed, 14 Jun 2017 11:12:11 +0100
Lukasz Sokol via Lazarus wrote:
>[...]
> SomeClassLockedList := SomeClassList.LockedList; // there are
> try/excepts around all here, but did not want to muddle the picture
>
Hi,
I have a TThread, that processes a T(Thread)List of TSomeClass objects
continuously.
I want to have a callback in the TSomeClass, to which another class can put
their procedure to call into,
but the callback needs to be 'thread safe' (because it can be accessed (read)
by GUI related