[Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread Luca Olivetti
Hello, I'm trying to debug a strange crash in an application (it's strange because the exception dialog appears and then disappears almost instantly without clicking on any button, so the customer cannot tell me the reason of the exception). My application (as almost any application I write)

Re: [Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread zeljko
On Wednesday 26 of January 2011 11:22:47 Luca Olivetti wrote: Hello, I'm trying to debug a strange crash in an application (it's strange because the exception dialog appears and then disappears almost instantly without clicking on any button, so the customer cannot tell me the reason of the

Re: [Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread Luca Olivetti
En/na zeljko ha escrit: On Wednesday 26 of January 2011 11:22:47 Luca Olivetti wrote: Hello, I'm trying to debug a strange crash in an application (it's strange because the exception dialog appears and then disappears almost instantly without clicking on any button, so the customer cannot tell

Re: [Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread Michael Schnell
On 01/26/2011 11:22 AM, Luca Olivetti wrote: My application (as almost any application I write) is based on the assumption that methods invoked by a timer and methods invoked by a thread with synchronize will never fire at once (i.e. they will be serialized by the main loop). Can I be 100%

Re: [Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread Mattias Gaertner
On Wed, 26 Jan 2011 12:58:58 +0100 Michael Schnell mschn...@lumino.de wrote: On 01/26/2011 11:22 AM, Luca Olivetti wrote: My application (as almost any application I write) is based on the assumption that methods invoked by a timer and methods invoked by a thread with synchronize will

Re: [Lazarus] Can I be sure that timer and synchronize never fire at once?

2011-01-26 Thread Michael Schnell
On 01/26/2011 01:08 PM, Mattias Gaertner wrote: If the main thread calls Synchronize then the method will be called instantly. Yep, But of course this does not result in any preemption, either. -Michael -- ___ Lazarus mailing list