Re: [Lazarus] Memory corruption investigation

2012-03-22 Thread Felipe Monteiro de Carvalho
On Thu, Mar 22, 2012 at 1:13 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Have you tried the keepreleased? I set it to true as the first item in my program code and also in an offending unit but couldnt see much of a difference. I suppose that I should look for which block contains

Re: [Lazarus] Memory corruption investigation

2012-03-22 Thread Felipe Monteiro de Carvalho
Ok, now I found who is causing the problem =) function TCDWidgetSet.RawImage_CreateBitmaps(const ARawImage: TRawImage; out ABitmap, AMask: HBitmap; ASkipMask: Boolean): Boolean; var NewData: PByte; lRawImage: TRawImage; lBitmap: TCDBitmap; begin {$ifdef VerboseCDBitmap}

Re: [Lazarus] Memory corruption investigation

2012-03-22 Thread Felipe Monteiro de Carvalho
Ok, I found it! =D Fixed in rev 36215. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Memory corruption investigation

2012-03-21 Thread Felipe Monteiro de Carvalho
Hello, I thought that maybe someone might have an idea about how to investigate an issue of memory corruption / freeing unallocated area: Basically I would like to understand how I can read the info from heap-trace. I have this: :[TCDWidgetSet.CreatePenIndirect] Style: 0, Color: D300

Re: [Lazarus] Memory corruption investigation

2012-03-21 Thread Felipe Monteiro de Carvalho
Aha, I think it has nothing to do with the Pen ... I hate when various DebugLn calls get out of sync and override one another. Still open to suggestions of how to debug this =) The error is a crash freeing TLazIntfImage when it frees the data. -- Felipe Monteiro de Carvalho --

Re: [Lazarus] Memory corruption investigation

2012-03-21 Thread Mattias Gaertner
On Wed, 21 Mar 2012 11:33:22 +0100 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Hello, I thought that maybe someone might have an idea about how to investigate an issue of memory corruption / freeing unallocated area: Have you tried the keepreleased? Mattias --