[Lazarus] Anyone using LCLIntf critical section routines?
Boian Mitov
mitov at mitov.com
Mon Jun 23 21:55:21 CEST 2008
Hi Joshy,
It can be OS version specific problem, or could be related to the codes I
have in my DirectShow. I have however seen the problem in multiple systems.
It also depends of what thread the Grabber will run from (Who is driving the
part of the DS Graph). We have repitedly reproduced the problem on multiple
systems, with just empty procedure call, no other code involved. I must
admit that I made a mistake after discovering th problem we have switched
all calls to "stdcall" not "cdecl", and it all works fine.
With best regards,
Boian Mitov
--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------
----- Original Message -----
From: "JoshyFun" <joshyfun at gmail.com>
To: "General mailing list" <lazarus at lazarus.freepascal.org>
Sent: Monday, June 23, 2008 7:53 AM
Subject: Re: [Lazarus] Anyone using LCLIntf critical section routines?
> Hello Boian,
>
> Monday, June 23, 2008, 9:52:51 AM, you wrote:
>
> 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
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list