Re: [fpc-pascal] FillChar/FillByte and Finalize()

2016-03-15 Thread Krzysztof
Indeed! This code need finalize() now because heaptrc detect memory leak: procedure TForm1.Button1Click(Sender: TObject); var f: TMyRec; begin FillChar(f, SizeOf(TMyRec), 0); f.Field1 := 123; f.Field2 := 'abc'+IntToStr(f.Field1); push(@f); system.Finalize(f); FillChar(f, SizeOf(TMyRe

Re: [fpc-pascal] FillChar/FillByte and Finalize()

2016-03-15 Thread Olivier Sannier
On 15/03/2016 22:14, Krzysztof wrote: Hi, Should I (and in which case) call Finalize() when using FillChar/FillByte? Heaptrc unit is not detecting any memory leak. For example: type PMyRec = ^TMyRec; TMyRec = record Field1: Int64; Field2: String; Field3: Int64; Field4: St

[fpc-pascal] crosscompiling problem (.a file)

2016-03-15 Thread ulrich
Hello, I have installed Lazarus 1.6 (64-bit version) in the windows directory c:\lazarus16. I downloaded the source compiler in c:\lazarus16\FPC - missing subdirectories. In c:\lazarus16\fpc\3.0.0\bin\arm-linux I have compiled ARM-Linux binutils (downloaded from ftp). In Ming32 I ran the fol

[fpc-pascal] FillChar/FillByte and Finalize()

2016-03-15 Thread Krzysztof
Hi, Should I (and in which case) call Finalize() when using FillChar/FillByte? Heaptrc unit is not detecting any memory leak. For example: type PMyRec = ^TMyRec; TMyRec = record Field1: Int64; Field2: String; Field3: Int64; Field4: String; Field5: Boolean; end; procedur

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-15 Thread fredvs
> You could check with objdump or nm what the exported symbols look like in the library. There are some systems that export > C functions with a leading '_' for example. Hello Sven and thanks for answer. Here result of nm on FreeBSD 64.

Re: [fpc-pascal] How do I test the testfppdf on Windows?

2016-03-15 Thread Michael Van Canneyt
On Mon, 14 Mar 2016, silvioprog wrote: On Fri, Mar 11, 2016 at 4:35 AM, Michael Van Canneyt wrote: On Thu, 10 Mar 2016, silvioprog wrote: On Sat, Mar 5, 2016 at 3:38 PM, silvioprog wrote: [...] ... however, when I try to run the project, I get a SIGSEGV: This patch (by Gilson Nunes)