The "correct" way is to use a "semaphore". These do all the management on exclusive resources. There are lots of classes out there to download that implement.
Semephores are built-in to the operating system. > Markus Humm wrote: >> Hello, >> >> regarding my question from last weekend only a part was answered so far. >> The thing is now: if several TTimers get fired at the same time and all >> of them want to write into a shared TStringList-Type buffer (okay, it's >> in a wrapper class), how to make sure only one at a time gets acces and >> doesn't mess up the thing? because the critical section will only guard >> this against the thread which reads out the entries and afterwards >> deletes them. >> >> So what to do here? >> >> Greetings >> >> Markus > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be