Hi all,
I have a random crash that I can't debug on my program.
I have a class that contains some other classes, variables, etc. On
some point of execution the program creates the object class and in an
other point it frees this object.
I need to do this some times in the timeline, e.g.:
On
2012/1/11 Kjow antispamm...@gmail.com:
In attachment the window
with the error.
I missed the attachment.
Kjow
attachment: Lazarus_sigsegv_FreeOBJ.jpg--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
Le 11/01/2012 16:01, Kjow a écrit :
Hi all,
I have a random crash that I can't debug on my program.
I have a class that contains some other classes, variables, etc. On
some point of execution the program creates the object class and in an
other point it frees this object.
I need to do this
On 11/01/2012 15:12, Kjow wrote:
2012/1/11 Kjowantispamm...@gmail.com:
In attachment the window
with the error.
I missed the attachment.
Chek your debugger is set up.
Also make sure our project is compiled with debug info
http://wiki.lazarus.freepascal.org/Debugger_Setup
Then open the
2012/1/11 Antonio Fortuny a.fort...@sitasoftware.lu:
instead of
body.free;
do
FreeAndNil(body)
!! without this, the pointer to the object still contains the original
pointer value.:o
Do the same for other creations.
Common issue when reusing object pointers
Thank you!
Well, now after
That is for the unknown situation?
We are looking at 2 things now:
- dbg unknown state (needs that info) / and start IDE with
--debug-log=C:\laz.log
- your app's crash
Does your app use threads?
On 11/01/2012 15:57, Kjow wrote:
2012/1/11 Martinlaza...@mfriebe.de:
This is a diff case.
2012/1/11 Martin laza...@mfriebe.de:
That is for the unknown situation?
We are looking at 2 things now:
- dbg unknown state (needs that info) / and start IDE with
--debug-log=C:\laz.log
- your app's crash
in attachment laz.log
Does your app use threads?
yes, through GLScene.
nothing
On 11/01/2012 16:44, Kjow wrote:
2012/1/11 Martinlaza...@mfriebe.de:
- your app's crash
Maybe I found the problem!
I freed the object in two different places, one with body.destroy
(this was just a test that I lost in time... )
Using the only one I need, the problem seems to fixed.
This was
2012/1/11 Martin laza...@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,
On 11/01/2012 17:26, Kjow wrote:
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
10 matches
Mail list logo