[Lazarus] Anyone using LCLIntf critical section routines?

JoshyFun joshyfun at gmail.com
Mon Jun 23 16:53:24 CEST 2008


Hello Boian,

Monday, June 23, 2008, 9:52:51 AM, you wrote:

BM> The problem is only when the CriticalSection Enter/Leave is called from a
BM> callback of a windows thread such as DirectShow Grabber or VFW frame
BM> callback or a media timer callback. In all other cases TCriticalSection
BM> works fine. This is issue under Delphi. I have not confirmed if it exists
BM> under Lazarus yet, as I have just started to port to Lazarus.

I'm using critical sections, in delphi 7, in the callback of a
sample-grabber directshow object which is being called up to 175000
times per second (usually around 4000 per second) and the application
was running up to 7 days without any problem.

In the other hand I can not see any technical reason to have problems
with calling convention unless an ASM block is being used somewhere
after the call and stack is being cleared as cdecl instead the current
calling convention :-?

-- 
Best regards,
 JoshyFun




More information about the Lazarus mailing list