[Lazarus] Help debugging

Kjow antispammoni at gmail.com
Wed Jan 11 18:26:18 CET 2012


2012/1/11 Martin <lazarus at mfriebe.de>:
> No problem
>
> still strange you did not get a stack.
> ----
>
> 1) If you get the "Ooops debugger entered error state". Then the log file
> (if you do have it for that run) may be helpful.
> But don't worry to much, it may well be fixed in trunc (0.9.31) already,
> since lot's has changed
>
>
> 2) threads
> 0.9.31 has a thread list for the debugger
> but you need to decide for yourself, if it is worth the upgrade ....
>
> according to one of your logs, you did crash in the main thread, so it would
> not have made a difference.

Thanks for all,

about threads: your question (if my program is multithread) turned on
a light bulb over my head, the problem was that I freed the same
object in two different threads... (main thread and "cadencer") and I
think that it should behave something like:

"
if assigned(MyObj) Then
  begin
    freeandnil(MyObj);
    MyObj.Destroy;
  end;
"

instead of:

"
if assigned(MyObj) Then
  freeandnil(MyObj);

if assigned(MyObj) Then
  MyObj.Destroy; //of course this was wrong anyway.
"

Best Regards,
Kjow




More information about the Lazarus mailing list