[Lazarus] How to use critical sections to lookup database info in main thread?

Zaher Dirkey parmaja at gmail.com
Mon Oct 3 11:08:03 CEST 2011


2011/10/2 Frank Church <vfclists at gmail.com>

> EnterCriticalSection(ModuleWithThreads.CriticalSection)
> LookupDatabaseCode;
> LeaveCriticalSection(ModuleWithThreads.CriticalSection);
>

Don't forget use try..finally..end

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111003/6643d61a/attachment-0003.html>


More information about the Lazarus mailing list