[lazarus] The timer issue (win32)

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Wed Jun 25 14:18:20 EDT 2003




On Wed, 25 Jun 2003, Vincent Snijders wrote:

> Good you found this bug. I have been looking at it before, but was
> always puzzled, why simple adding a writeln could change the crashing
> behaviour.
>
> I thought that stdcall was the default calling convention in fpc.
> Is this not true?

No. FPC uses standard a stack-push strategy, pushing parameters from right
to left, callee clears the stack.

stdcall convention is the usual convention for windows DLL functions and
windows callbacks.

It is all documented in the programmer's manual.


>
> When you are looking at the win32 api, you better check other callbacks
> (winprocs) as well.

This might solve some more problems, indeed !

Michael.






More information about the Lazarus mailing list