Re: [fpc-pascal] Debugging Win32

2011-05-12 Thread Martin
On 12/05/2011 23:49, Justin Smyth wrote: Since upgrading to the lazarus 0.9.31 v30288 x64 ( and win32) i've noticed the debugging is painfully slow , what use to take only a few seconds under 0.9.28 now seems to take 20 to 30 seconds I've noticed this in both projects using win32 ( at work ) and

[fpc-pascal] Debugging Win32

2011-05-12 Thread Justin Smyth
Since upgrading to the lazarus 0.9.31 v30288 x64 ( and win32) i've noticed the debugging is painfully slow , what use to take only a few seconds under 0.9.28 now seems to take 20 to 30 seconds I've noticed this in both projects using win32 ( at work ) and my home projects on x64 platform for wi

[fpc-pascal] Register variables slowing down floating point operations

2011-05-12 Thread cobines
Hello. I have written the following program: program a; {$mode objfpc} uses SysUtils; var i: integer; vd: double; t: TDateTime; max: int64;// = 1; begin t := Now; max := 1; for i := 0 to max do vd := i / max; Writeln('Time: ', DateTimeToTimeStamp(Now - t).Tim

[fpc-pascal] Re: PChar resize (Anton Shepelev)

2011-05-12 Thread Luis Fernando Del Aguila Mejía
Thanks Mattias and Anton. Ie: When you assign a constant string to a PChar then assigns the address of the string constant. I believed that be created a PChar in the heap. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

[fpc-pascal] generics question

2011-05-12 Thread Adrian Veith
Hi, I try this: type TTestGen = class constructor Create(); class function Test(val: T): string; inline; end; function Blah(const val: Integer): string; inline; overload; begin Result:= IntToStr(val + 1); end; function Blah(const val: string): string; inline; overload; begin Re