Re: [Lazarus] Debugging libraries which define generics.

2017-12-15 Thread Donald Ziesig via Lazarus
On 12/15/2017 01:33 PM, Martin Frb via Lazarus wrote: On 15/12/2017 18:29, Martin Frb via Lazarus wrote: On 15/12/2017 15:46, Donald Ziesig via Lazarus wrote: 1. When the mouse hovers over a variable, the debugger (and program being debugged) frequently crashes with the error: "-data-

Re: [Lazarus] Debugging libraries which define generics.

2017-12-15 Thread Martin Frb via Lazarus
On 15/12/2017 18:29, Martin Frb via Lazarus wrote: On 15/12/2017 15:46, Donald Ziesig via Lazarus wrote: 1. When the mouse hovers over a variable, the debugger (and program being debugged) frequently crashes with the error: "-data-evaluate-expression TCQPiece(ITEM)^" did not return any

Re: [Lazarus] Debugging libraries which define generics.

2017-12-15 Thread Martin Frb via Lazarus
On 15/12/2017 15:46, Donald Ziesig via Lazarus wrote: Hi All, I have been working on some *serious* :-$ software libraries that declare generic subprograms and classes. While debugging these I noticed: 1. When single-stepping, the line being highlighted in the editor window is almost a

Re: [Lazarus] Qt Ws doesn't support properly GetWindowSize() and GetWindowRect()

2017-12-15 Thread Giuliano Colla via Lazarus
Il 15/12/2017 18:30, zeljko ha scritto: It's bug in your code (range error). You're using aHandle: System.THandle (longint) instead of LCLIntf.THandle which is of ptruint type. Best and correct usage would be to use HWND type which is what it needs to be on all platforms and widgetsets. When aH

Re: [Lazarus] Qt Ws doesn't support properly GetWindowSize() and GetWindowRect()

2017-12-15 Thread zeljko via Lazarus
On 15.12.2017 17:08, Giuliano Colla via Lazarus wrote: This snippet of code, which executes as expected with GTK2 WS, fails with QT WS: procedure TForm1.btnWsizeClick(Sender: TObject); var  aHandle: THandle;    aWidth,aHeight: Integer;    aRect: TRect; begin    aHandle:= Form1.Handle;    if Ge

Re: [Lazarus] Qt Ws doesn't support properly GetWindowSize() and GetWindowRect()

2017-12-15 Thread zeljko via Lazarus
On 15.12.2017 17:08, Giuliano Colla via Lazarus wrote: This snippet of code, which executes as expected with GTK2 WS, fails with QT WS: procedure TForm1.btnWsizeClick(Sender: TObject); var  aHandle: THandle;    aWidth,aHeight: Integer;    aRect: TRect; begin    aHandle:= Form1.Handle;    if Ge

[Lazarus] Qt Ws doesn't support properly GetWindowSize() and GetWindowRect()

2017-12-15 Thread Giuliano Colla via Lazarus
This snippet of code, which executes as expected with GTK2 WS, fails with QT WS: procedure TForm1.btnWsizeClick(Sender: TObject); var  aHandle: THandle;   aWidth,aHeight: Integer;   aRect: TRect; begin   aHandle:= Form1.Handle;   if GetWindowSize(aHandle,aWidth,aHeight) then begin     Labe

[Lazarus] Debugging libraries which define generics.

2017-12-15 Thread Donald Ziesig via Lazarus
Hi All, I have been working on some *serious* :-$ software libraries that declare generic subprograms and classes. While debugging these I noticed: 1. When single-stepping, the line being highlighted in the editor window is almost always (but not exclusively) one line *after* the line w

Re: [Lazarus] Lazarus 1.8

2017-12-15 Thread R0b0t1 via Lazarus
These are true things. On Thu, Dec 14, 2017 at 7:23 PM, Donald Ziesig via Lazarus wrote: > Many thanks to all who worked on 1.8.0. It looks great and works better. > > Don Ziesig > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus-ide.org > h

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread Kostas Michalopoulos via Lazarus
On Fri, Dec 15, 2017 at 1:41 PM, Mattias Gaertner via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > > At compile time it is CP_NONE, at runtime it can be any codepage. > My understanding (which, if it is wrong, sorry but not my fault since the docs are a bit vague and all the names involved ar

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread Mattias Gaertner via Lazarus
On Fri, 15 Dec 2017 13:32:24 +0200 Kostas Michalopoulos via Lazarus wrote: > On Sun, Dec 10, 2017 at 4:17 PM, Luca Olivetti via Lazarus < > lazarus@lists.lazarus-ide.org> wrote: > > https://www.freepascal.org/docs-html/rtl/system/rawbytestring.html > > > > it's an ansistring. > > This is IMO m

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread Kostas Michalopoulos via Lazarus
On Sun, Dec 10, 2017 at 4:17 PM, Luca Olivetti via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > https://www.freepascal.org/docs-html/rtl/system/rawbytestring.html > > it's an ansistring. This is IMO misleading since nowadays AnsiString has codepage information and a plain AnsiString as shown

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread Mattias Gaertner via Lazarus
On Wed, 13 Dec 2017 12:44:19 +0100 Andrea Mauri via Lazarus wrote: > I am trying to update to lazarus 1.8 on my OSX (I was using 1.6.4). > I downloaded and installed, fpc, fpc src and lazarus. > First run is ok. > Then if I recompile lazarus (clean build all) everything seems to be ok > but if I

Re: [Lazarus] Lazarus Release 1.8

2017-12-15 Thread coppolastudio via Lazarus
try to check the case of your .res files Inviato tramite il client di Posta WPSIl Andrea Mauri via Lazarus , 15/dic/2017 08:33 AM ha scritto:Anyone has suggestions? Il 13/12/2017 12:44, Andrea Mauri ha scritto: > I am trying to update to lazarus 1.8 on my OSX (I was using 1.6.4). > I downloaded an