On Sun, Apr 15, 2007 at 08:07:05PM +0200, Pelle ten Cate wrote:
> I am trying to write quite a nice application in Lazarus. Now
> sometimes when I compile my project and run it (debug via Lazarus) i
> get the following error: (slightly different probably, translated from
> Dutch)
> 
> "Running is temporarly halted. Address: $7C810665, Procedure:
> KERNEL32!CreateThread, File" (doesn't report a filename.)
> 
> After clicking OK, debugging goes on immediately.
> 
> I have no clue where this possibly comes from.
> 
> My setup: Windows XP Pro SP2, Lazarus 0.9.22, fpc 2.0.4
> 
> How to debug this irritating thingie?

You could try to use this GDB command:

set scheduler-locking <mode>
    Set the scheduler locking mode. If it is off, then there is no locking
and any thread may run at any time. If on, then only the current thread may
run when the inferior is resumed. The step mode optimizes for
single-stepping. It stops other threads from "seizing the prompt" by
preempting the current thread while you are stepping. Other threads will
only rarely (or never) get a chance to run when you step. They are more
likely to run when you `next' over a function call, and they are completely
free to run when you use commands like `continue', `until', or `finish'.
However, unless another thread hits a breakpoint during its timeslice, they
will never steal the GDB prompt away from the thread that you are debugging.

show scheduler-locking
    Display the current scheduler locking mode.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to