From rik at graficalc.nl Tue May 1 10:48:31 2018 From: rik at graficalc.nl (Rik van Kekem) Date: Tue, 1 May 2018 10:48:31 +0200 Subject: [Lazarus] Unknown error codes. In-Reply-To: References: <0a674747-22e9-ae1b-e304-31a590c87b7d@telefonica.net> <43a9e561-88c3-5e58-6fea-bccea73fc53a@ziesig.org> Message-ID: On 29-04-2018 23:55, Carlos E. R. via Lazarus wrote: > It does not list the error 26 I got. > It is possible that there are different numbers on different operating > systems? That list seems to be related to Windows, but the link does not > say. > It's always possible to get the text of an OS error via SysErrorMessage(). Also note that the EInOutError codes in the range 0-99 represent OS error conditions, which are different for Windows and Linux. At least in Delphi they do. On Linux Showmessage(SysErrorMessage(26)) gives us: Text (code segment) file busy On Windows it gives: The specified disk or diskette cannot be accessed. Of course a program can generate an runtime error itself via Error(Code) in which case the code didn't come from the OS and it might mean something different. Small test-program will give you a list: var   I: Integer; begin   for I := 0 to 99 do   begin     Memo1.Lines.Add(Format('%d - %s', [I, SysErrorMessage(I)]));   end; On Windows it gives: 0 - The operation completed successfully. 1 - Incorrect function. 2 - The system cannot find the file specified. 3 - The system cannot find the path specified. 4 - The system cannot open the file. 5 - Access is denied. 6 - The handle is invalid. 7 - The storage control blocks were destroyed. 8 - Not enough storage is available to process this command. 9 - The storage control block address is invalid. 10 - The environment is incorrect. 11 - An attempt was made to load a program with an incorrect format. 12 - The access code is invalid. 13 - The data is invalid. 14 - Not enough storage is available to complete this operation. 15 - The system cannot find the drive specified. 16 - The directory cannot be removed. 17 - The system cannot move the file to a different disk drive. 18 - There are no more files. 19 - The media is write protected. 20 - The system cannot find the device specified. 21 - The device is not ready. 22 - The device does not recognize the command. 23 - Data error (cyclic redundancy check). 24 - The program issued a command but the command length is incorrect. 25 - The drive cannot locate a specific area or track on the disk. 26 - The specified disk or diskette cannot be accessed. 27 - The drive cannot find the sector requested. 28 - The printer is out of paper. 29 - The system cannot write to the specified device. 30 - The system cannot read from the specified device. 31 - A device attached to the system is not functioning. 32 - The process cannot access the file because it is being used by another process. 33 - The process cannot access the file because another process has locked a portion of the file. 34 - 35 - 36 - Too many files opened for sharing. 37 - 38 - Reached the end of the file. 39 - The disk is full. 40 - 41 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - The request is not supported. 51 - Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator. 52 - You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name. 53 - The network path was not found. 54 - The network is busy. 55 - The specified network resource or device is no longer available. 56 - The network BIOS command limit has been reached. 57 - A network adapter hardware error occurred. 58 - The specified server cannot perform the requested operation. 59 - An unexpected network error occurred. 60 - The remote adapter is not compatible. 61 - The printer queue is full. 62 - Space to store the file waiting to be printed is not available on the server. 63 - Your file waiting to be printed was deleted. 64 - The specified network name is no longer available. 65 - Network access is denied. 66 - The network resource type is not correct. 67 - The network name cannot be found. 68 - The name limit for the local computer network adapter card was exceeded. 69 - The network BIOS session limit was exceeded. 70 - The remote server has been paused or is in the process of being started. 71 - No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept. 72 - The specified printer or disk device has been paused. 73 - 74 - 75 - 76 - 77 - 78 - 79 - 80 - The file exists. 81 - 82 - The directory or file cannot be created. 83 - Fail on INT 24. 84 - Storage to process this request is not available. 85 - The local device name is already in use. 86 - The specified network password is not correct. 87 - The parameter is incorrect. 88 - A write fault occurred on the network. 89 - The system cannot start another process at this time. 90 - 91 - 92 - 93 - 94 - 95 - 96 - 97 - 98 - 99 - On Linux it gives: 0 - Success 1 - Operation not permitted 2 - No such file or directory 3 - No such process 4 - Interrupted system call 5 - I/O error 6 - No such device or address 7 - Arg list too long 8 - Exec format error 9 - Bad file number 10 - No child processes 11 - Try again 12 - Out of memory 13 - Permission denied 14 - Bad address 15 - Block device required 16 - Device or resource busy 17 - File exists 18 - Cross-device link 19 - No such device 20 - Not a directory 21 - Is a directory 22 - Invalid argument 23 - File table overflow 24 - Too many open files 25 - Not a typewriter 26 - Text (code segment) file busy 27 - File too large 28 - No space left on device 29 - Illegal seek 30 - Read-only file system 31 - Too many links 32 - Broken pipe 33 - Math argument out of domain of func 34 - Math result not representable 35 - Resource deadlock would occur 36 - File name too long 37 - No record locks available 38 - Function not implemented 39 - Directory not empty 40 - Too many symbolic links encountered 41 - Operation would block 42 - No message of desired type 43 - Identifier removed 44 - Channel number out of range 45 - Level 2 not synchronized 46 - Level 3 halted 47 - Level 3 reset 48 - Link number out of range 49 - Protocol driver not attached 50 - No CSI structure available 51 - Level 2 halted 52 - Invalid exchange 53 - Invalid request descriptor 54 - Exchange full 55 - No anode 56 - Invalid request code 57 - Invalid slot 58 - File locking deadlock error 59 - Bad font file format 60 - Device not a stream 61 - No data available 62 - Timer expired 63 - Out of streams resources 64 - Machine is not on the network 65 - Package not installed 66 - Object is remote 67 - Link has been severed 68 - Advertise error 69 - Srmount error 70 - Communication error on send 71 - Protocol error 72 - Multihop attempted 73 - RFS specific error 74 - Not a data message 75 - Value too large for defined data type 76 - Name not unique on network 77 - File descriptor in bad state 78 - Remote address changed 79 - Can not access a needed shared library 80 - Accessing a corrupted shared library 81 - .lib section in a.out corrupted 82 - Attempting to link in too many shared libraries 83 - Cannot exec a shared library directly 84 - Illegal byte sequence 85 - Interrupted system call should be restarted 86 - Streams pipe error 87 - Too many users 88 - Socket operation on non-socket 89 - Destination address required 90 - Message too long 91 - Protocol wrong type for socket 92 - Protocol not available 93 - Protocol not supported 94 - Socket type not supported 95 - Operation not supported on transport endpoint 96 - Protocol family not supported 97 - Address family not supported by protocol 98 - Address already in use 99 - Cannot assign requested address So, because of the differences in Windows and Linux it might be best to always show the SysErrorMessage(code) too (if it is indeed an OS error). It will generate a much clearer message. /Rik/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.listas at telefonica.net Tue May 1 12:43:12 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Tue, 1 May 2018 12:43:12 +0200 Subject: [Lazarus] Unknown error codes. In-Reply-To: References: <0a674747-22e9-ae1b-e304-31a590c87b7d@telefonica.net> <43a9e561-88c3-5e58-6fea-bccea73fc53a@ziesig.org> Message-ID: <4d39f4db-a38d-2f66-dcc0-b2fd100ba6ba@telefonica.net> On 2018-05-01 10:48, Rik van Kekem via Lazarus wrote: > On 29-04-2018 23:55, Carlos E. R. via Lazarus wrote: >> It does not list the error 26 I got. >> It is possible that there are different numbers on different operating >> systems? That list seems to be related to Windows, but the link does not >> say. >> > It's always possible to get the text of an OS error via SysErrorMessage(). Ah! I have been looking for such a function for hours. Yesterday I created my own functions to output text, getting the help from several help sources. Ok, Scrap those! > > Also note that the EInOutError codes in the range 0-99 represent OS > error conditions, which are different for Windows and Linux. At least in > Delphi they do. Ok. > > On Linux Showmessage(SysErrorMessage(26)) gives us: > Text (code segment) file busy Yes, it matches. > On Windows it gives: > The specified disk or diskette cannot be accessed. > > Of course a program can generate an runtime error itself via Error(Code) > in which case the code didn't come from the OS and it might mean > something different. Ah. It maybe these: https://freepascal.org/docs-html/user/userap4.html Yesterday I wrote my own Function RunTimeErrorString(I: Word): string; from that list. begin case I of 1: RunTimeErrorString:= 'Invalid function number'; //An invalid operating system call was attempted. 2: RunTimeErrorString:= ' File not found'; //Reported when trying to erase, rename or open a non-existent file. 3: RunTimeErrorString:= ' Path not found'; //Reported by the directory handling routines when a path does not exist or is invalid. Also reported when trying to access a non-existent file. 4: RunTimeErrorString:= ' Too many open files'; //The maximum number of files currently opened by your process has been reached. Certain operating systems limit the number of files which can be opened concurrently, and this error can occur when this limit has been reached. 5: RunTimeErrorString:= ' File access denied'; //Permission to access the file is denied. This error might be caused by one of several reasons: ... (I can post it complete if it is of interest) > Small test-program will give you a list: > var >   I: Integer; > begin >   for I := 0 to 99 do >   begin >     Memo1.Lines.Add(Format('%d - %s', [I, SysErrorMessage(I)])); >   end; :-) > On Windows it gives: > 0 - The operation completed successfully. > 1 - Incorrect function.> 2 - The system cannot find the file specified. > 3 - The system cannot find the path specified. > 4 - The system cannot open the file. > 5 - Access is denied. ... > 99 - > > On Linux it gives: > 0 - Success > 1 - Operation not permitted > 2 - No such file or directory > 3 - No such process > 4 - Interrupted system call > 5 - I/O error ... > 99 - Cannot assign requested address > > So, because of the differences in Windows and Linux it might be best to > always show the SysErrorMessage(code) too (if it is indeed an OS error). > It will generate a much clearer message. Yes, indeed. Thank you! -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From robin.listas at telefonica.net Tue May 1 12:57:28 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Tue, 1 May 2018 12:57:28 +0200 Subject: [Lazarus] Unknown error codes. In-Reply-To: References: <0a674747-22e9-ae1b-e304-31a590c87b7d@telefonica.net> <43a9e561-88c3-5e58-6fea-bccea73fc53a@ziesig.org> Message-ID: <52d42421-dcaa-dd8e-764e-65d905987ac2@telefonica.net> On 2018-05-01 10:48, Rik van Kekem via Lazarus wrote: > > Small test-program will give you a list: > var >   I: Integer; > begin >   for I := 0 to 99 do >   begin >     Memo1.Lines.Add(Format('%d - %s', [I, SysErrorMessage(I)])); >   end; In fact, it also prints errors beyond 100: program errormessages; uses sysutils; var I: Integer; begin for I := 0 to 200 do begin Writeln(I, ': ', SysErrorMessage(I)); end; end. ... 99: Cannot assign requested address 100: Network is down 101: Network is unreachable 102: Network dropped connection because of reset 103: Software caused connection abort 104: Connection reset by peer 105: No buffer space available 106: Transport endpoint is already connected 107: Transport endpoint is not connected 108: Cannot send after transport endpoint shutdown 109: Too many references: cannot splice 110: Connection timed out 111: Connection refused 112: Host is down 113: No route to host 114: Operation already in progress 115: Operation now in progress 116: Stale NFS file handle 117: Structure needs cleaning 118: Not a XENIX named type file 119: No XENIX semaphores available 120: Is a named type file 121: Remote I/O error 122: Quota exceeded 123: No medium found 124: Wrong medium type 125: Unknown Error (125) 126: Unknown Error (126) So I do not have to check for error range validity myself. Next step would be produce a crash and check the runtime error validity, just in case it matches. :-) Pity the help pages I found (like the one for ioresult) do not mention SysErrorMessage. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From aaa5500 at ya.ru Tue May 1 16:48:34 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 1 May 2018 17:48:34 +0300 Subject: [Lazarus] Note about LCL GetDefaultGlyph Message-ID: <52346c40-3bed-1db0-0c9d-67c9c50e40c3@ya.ru> + +function GetDefaultGlyph(ResourceName: string; ScalePercent: Integer = 100): TCustomBitmap; +begin +  Result := TPortableNetworkGraphic.Create; +  if ScalePercent<>100 then +    ResourceName := ResourceName+'_'+IntToStr(ScalePercent); +  Result.LoadFromResourceName(hInstance, ResourceName); +end; + So for scale 140% func gets suffix _140, but better use suffix _100 (for all values 100..149). 140% can be set in Windows dialog, I think. Same for scale 210%, func gets suffix _210, but should _200. AT -- Regards, Alexey From lazarus at kluug.net Tue May 1 17:10:52 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 1 May 2018 17:10:52 +0200 Subject: [Lazarus] Note about LCL GetDefaultGlyph In-Reply-To: <52346c40-3bed-1db0-0c9d-67c9c50e40c3@ya.ru> References: <52346c40-3bed-1db0-0c9d-67c9c50e40c3@ya.ru> Message-ID: <14dc5feb-b6bf-9b83-f1f5-9ad6fcaa6356@kluug.net> On 01.05.2018 16:48, AlexeyT via Lazarus wrote: > + > +function GetDefaultGlyph(ResourceName: string; ScalePercent: Integer > = 100): TCustomBitmap; > +begin > +  Result := TPortableNetworkGraphic.Create; > +  if ScalePercent<>100 then > +    ResourceName := ResourceName+'_'+IntToStr(ScalePercent); > +  Result.LoadFromResourceName(hInstance, ResourceName); > +end; > + > > So for scale 140% func gets suffix _140, but better use suffix _100 > (for all values 100..149). > 140% can be set in Windows dialog, I think. > Same for scale 210%, func gets suffix _210, but should _200. It's your responsibility to supply a valid ScalePercent value. If you want some handling (210 -> 200), do it yourself in your code. The LCL does it as well, see e.g. TLCLGlyphs.GetImageIndex. Ondrej From Special at Joepgen.com Tue May 1 19:25:52 2018 From: Special at Joepgen.com (Joe) Date: Tue, 1 May 2018 19:25:52 +0200 Subject: [Lazarus] Make of revision 57762 failing under Raspbian Message-ID: <12356f07-29ad-e457-0cbe-de08bbc7303f@Joepgen.com> On Raspberry Pi 3B+ computers under Raspbian Stretch 20180418 with Lazarus 1.6.2 installed I tried to compile the current development revision 57762 of Lazarus. It failed in 'grids.pas', line 4150, with error 'identifier idents no member "Width"'. This I did: (1) Created directory '~/lazarus'. (2) svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus (3) cd lazarus (4) svn update (5) make bigide Screen shot: http://transfer.joepgen.com/MakeFailure.pdf What's wrong? Is it a mistake of the operator or a software bug? Should I file a mantis report? Regards --  Joe From juha.manninen62 at gmail.com Tue May 1 20:54:45 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 1 May 2018 21:54:45 +0300 Subject: [Lazarus] Component editors and related In-Reply-To: <2e8e9aae-dc4b-cc10-e398-9c078195cc70@freenet.de> References: <2e8e9aae-dc4b-cc10-e398-9c078195cc70@freenet.de> Message-ID: On Wed, Apr 25, 2018 at 8:56 PM, Werner Pamler via Lazarus wrote: > currently I am porting those JVCL components which look interesting to me > (https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/jvcllaz/), > but at the moment I am stuck with the component editor of the TJvOutlookBar. Please test with r57763. Juha From werner.pamler at freenet.de Tue May 1 21:49:41 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Tue, 1 May 2018 21:49:41 +0200 Subject: [Lazarus] Component editors and related In-Reply-To: References: <2e8e9aae-dc4b-cc10-e398-9c078195cc70@freenet.de> Message-ID: <3acfb448-4474-b9b7-747b-5ea511091b13@freenet.de> Am 01.05.2018 um 20:54 schrieb Juha Manninen via Lazarus: > Please test with r57763. Excellent, works perfectly! Thank you. From lazarus at kluug.net Tue May 1 22:26:59 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 1 May 2018 22:26:59 +0200 Subject: [Lazarus] Make of revision 57762 failing under Raspbian In-Reply-To: <12356f07-29ad-e457-0cbe-de08bbc7303f@Joepgen.com> References: <12356f07-29ad-e457-0cbe-de08bbc7303f@Joepgen.com> Message-ID: On 01.05.2018 19:25, Joe via Lazarus wrote: > What's wrong? Is it a mistake of the operator or a software bug? > Should I file a mantis report? It's my mistake. Please retest with r57764. I may have forgotten more places. Ondrej From Special at Joepgen.com Wed May 2 00:30:00 2018 From: Special at Joepgen.com (Joe) Date: Wed, 2 May 2018 00:30:00 +0200 Subject: [Lazarus] Make of revision 57762 failing under Raspbian In-Reply-To: References: <12356f07-29ad-e457-0cbe-de08bbc7303f@Joepgen.com> Message-ID: Am 01.05.2018 um 22:26 schrieb Ondrej Pokorny via Lazarus: > Please retest with r57764. Yes, now ok. Thanx, Ondrej. Joe From robin.listas at telefonica.net Wed May 2 02:19:05 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Wed, 2 May 2018 02:19:05 +0200 Subject: [Lazarus] About a warning of unused parameter. Message-ID: <36afb212-6114-7ad0-b5da-ba226123c587@telefonica.net> Hi, I'm experimenting with doing "ping host" on Lazarus using the Synapse library (http://synapse.ararat.cz/doku.php/download). The code on my side is very simple, I just have to "use pingsend", then basically ping.ping('some host'); I have a little nuisance: building the included library produces a ton of warnings. This thing was last updated on 2012 (release no. 40). For instance, this one: pingsend.pas(137,24) Hint: Parameter "Value" not used The code is different on Windows or Linux, by using {$IFDEF MSWINDOWS} clauses. On Linux, the effective code is; function TPINGSend.Checksum6(Value: AnsiString): Word; begin Result := 0; end; So the warning is true, but I don't see what I can do about it without changing the function definition (I could just not call the function in Linux). I can do: Result := 0; Value:=''; but that just changes the warning to: pingsend.pas(137,24) Hint: Value parameter "Value" is assigned but never used which is of course true. So I wonder if there is something to silence that particular warning alone. Say, yes, I know about that one, shut up. I see on the contextual menu of the warning that I can silence that warning type on a file (all warnings of that type in that file, not just the ones I know about): {$WARN 5024 off : Parameter "$1" not used} Lazarus writes "on"; tried both. Neither work, the warning still appears. Ideas? -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From md at delfire.net Wed May 2 02:59:31 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Tue, 1 May 2018 21:59:31 -0300 Subject: [Lazarus] Changes to fpWeb... In-Reply-To: References: Message-ID: On Fri, Jan 13, 2017 at 7:36 PM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > Hello, > > I have committed a serious change to the way fpweb handles requests. > > Especially routing of requests was changed. > > The old Delphi style routing worked with Datamodules only. The pattern was > strictly /modulename/actionname or through query variables: > ?module=xyz&Action=nmo > > This old routing is still available by setting the LegacyRouting property > of > webhandler or webapplication (custweb) to true. (the new routing described > below is then disabled) > > The new routing is more flexible in 3 ways. > > - It is no longer required to use datamodules, but this is still supported. > There are now 4 methods that can be used to register a route: > > - Using a callback procedure > TRouteCallback = Procedure(ARequest: TRequest; AResponse); > > - Using a callback event: > TRouteEvent = Procedure(ARequest: TRequest; AResponse) of object; > > - Using an interface > IRouteInterface = Interface ['{10115353-10BA-4B00-FDA5-80B69AC4CAD0}'] > Procedure HandleRequest(ARequest : TRequest; AResponse : TResponse); > end; > Note that this is a CORBA interface, so no reference counting. > (although a reference counting version could be added, if desired) > > - Using a router object: > TRouteObject = Class(TObject,IRouteInterface) > Public > Procedure HandleRequest(ARequest : TRequest; AResponse : TResponse); > virtual; abstract; > end; > TRouteObjectClass = Class of TRouteObject; > > The object class needs to be registered. The router will instantiate > the > object and release it once the request was handled. > > - Using a datamodule, as it used to be. > > More methods can be added, if need be. > All routes are registered using the HTTPRouter.RegisterRoute method. > it is overloaded to accept any of the above parameters. > > - The router can now match more complex, parametrized routes. > > A route is determined by the path part of an URL; query parameters are > not examined. > > /path1/path2/path3/path4 > > In these paths, parameters and wildcards are recognized: > > :param means that it will match any request with a single part in this > location > *param means that it will match any request with zero or more path parts > in this location > > examples: > > /path1 > /REST/:Resource/:ID > /REST/:Resource > /*/something > /*path/somethiingelse > /*path > > The parameters will be added to TRequest, they are available in the > (new) RouteParams array property of TRequest. > > Paths are matched case sensitively by default, and the first matching > pattern is used. > > The HTTP Modules are registered in the router using classname/* or > defaultmodulename/* > > - A set of methods can be added to the route registration (default is to > accept all methods). > The router will match the request method. If the method does not match, > it will raise an > exception which will result in a 405 HTTP error. > > I have added a demo application. It behaves well, just as the testcases, > but I would appreciate > feedback if you have cases where your datamodules no longer behave as they > used to (both with LegacyRouting=true or false) > > Some more improvements to fpweb are planned, but they will not be as > invasive as this. Hello Michael, Is there a documentation link to explain all new features? I'm gonna start a new web project and I would like to use them. What about the design packages for Lazarus? The wizards continue creating Web Module based applications. This is my environment: Lazarus 1.8.3 r57764 FPC 3.0.4 i386-win32-win32/win64 Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Wed May 2 03:37:14 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Tue, 1 May 2018 22:37:14 -0300 Subject: [Lazarus] Changes to fpWeb... In-Reply-To: References: Message-ID: On Tue, May 1, 2018 at 9:59 PM, Marcos Douglas B. Santos wrote: > Hello Michael, > > Is there a documentation link to explain all new features? > I'm gonna start a new web project and I would like to use them. > > What about the design packages for Lazarus? > The wizards continue creating Web Module based applications. > > This is my environment: > Lazarus 1.8.3 r57764 FPC 3.0.4 i386-win32-win32/win64 Actually, I've found the "routing example" and it worked very well in standalone mode in my environment. I can get how it works (the new way) just studying this demo. Thank you. But I still think that we need to have a good documentation for it. Regards, Marcos Douglas From nc-gaertnma at netcologne.de Wed May 2 08:04:51 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 2 May 2018 08:04:51 +0200 Subject: [Lazarus] About a warning of unused parameter. In-Reply-To: <36afb212-6114-7ad0-b5da-ba226123c587@telefonica.net> References: <36afb212-6114-7ad0-b5da-ba226123c587@telefonica.net> Message-ID: <20180502080451.4d3f8ae5@limapholos.matflo.wg> On Wed, 2 May 2018 02:19:05 +0200 "Carlos E. R. via Lazarus" wrote: >[...] > function TPINGSend.Checksum6(Value: AnsiString): Word; > begin > Result := 0; > end; You can: a) add a dummy statement: if Value='' then ; b) add an IDE directive: right click on this message in the Lazarus Messages window, Hide message by inserting IDE directive Mattias> > I see on the contextual menu of the warning that I can silence that > warning type on a file (all warnings of that type in that file, not just > the ones I know about): > > {$WARN 5024 off : Parameter "$1" not used} > > Lazarus writes "on"; tried both. Neither work, the warning still appears. It should be "off". I fixed that in trunk. Mattias From michael at freepascal.org Wed May 2 08:21:08 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 2 May 2018 08:21:08 +0200 (CEST) Subject: [Lazarus] Changes to fpWeb... In-Reply-To: References: Message-ID: On Tue, 1 May 2018, Marcos Douglas B. Santos via Lazarus wrote: >> but I would appreciate >> feedback if you have cases where your datamodules no longer behave as they >> used to (both with LegacyRouting=true or false) >> >> Some more improvements to fpweb are planned, but they will not be as >> invasive as this. > > > Hello Michael, > > Is there a documentation link to explain all new features? > I'm gonna start a new web project and I would like to use them. I will see if I can put something in the wiki. > > What about the design packages for Lazarus? > The wizards continue creating Web Module based applications. A good point. I had not thought of this. I will put it on my todo list. Michael. From aaa5500 at ya.ru Wed May 2 09:03:19 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Wed, 2 May 2018 10:03:19 +0300 Subject: [Lazarus] Clipboard method needed to clear cache Message-ID: <0d704736-e519-c85b-a89d-f072eb66a543@ya.ru> LCL uses clipboard cache to support all clp formats on all OS, even if OS don't support some. In *CudaLister plugin for Total Commander* [based on CudaText parts], I need method to clear this cache. Clipboard.Clear is not ok [i need contents of OS clp]. Method needed to solve this issue: https://github.com/Alexey-T/CudaLister/issues/27 (english text also). I will call it before reading Clipboard.AsText. -- Regards, Alexey -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at michael-ring.org Wed May 2 09:20:27 2018 From: mail at michael-ring.org (Michael Ring) Date: Wed, 2 May 2018 09:20:27 +0200 Subject: [Lazarus] Cannot enter '^' in Lazarus trunk build macos/cocoa/x86_64 Message-ID: I yesterday tried again after a long time to build Lazarus with Cocoa on my Mac, Lazarus is now perfectly useable for my needs and as a bonus it seems a little faster than the Carbon version. Great work! The only issue I ran in is that I cannot enter '^'  from my german keyboard and, as a fact, also other charaters composed with deadkeys (accented keys) like á also do not work. Any ideas on how to fix that? Michael From skalogryz.lists at gmail.com Wed May 2 12:12:59 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Wed, 2 May 2018 06:12:59 -0400 Subject: [Lazarus] Cannot enter '^' in Lazarus trunk build macos/cocoa/x86_64 In-Reply-To: References: Message-ID: What’s the keys combination to enter ‘^’? Thanks, Dmitry On Wednesday, May 2, 2018, Michael Ring via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > I yesterday tried again after a long time to build Lazarus with Cocoa on > my Mac, Lazarus is now perfectly useable for my needs and as a bonus it > seems a little faster than the Carbon version. > > Great work! > > > The only issue I ran in is that I cannot enter '^' from my german > keyboard and, as a fact, also other charaters composed with deadkeys > (accented keys) like á also do not work. > > > Any ideas on how to fix that? > > > Michael > > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.listas at telefonica.net Wed May 2 12:31:15 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Wed, 2 May 2018 12:31:15 +0200 Subject: [Lazarus] About a warning of unused parameter. In-Reply-To: <20180502080451.4d3f8ae5@limapholos.matflo.wg> References: <36afb212-6114-7ad0-b5da-ba226123c587@telefonica.net> <20180502080451.4d3f8ae5@limapholos.matflo.wg> Message-ID: <130ddde1-9d08-e913-78dd-94b3d92d360b@telefonica.net> On 2018-05-02 08:04, Mattias Gaertner via Lazarus wrote: > On Wed, 2 May 2018 02:19:05 +0200 "Carlos E. R. via Lazarus" <> wrote: > >> [...] >> function TPINGSend.Checksum6(Value: AnsiString): Word; >> begin >> Result := 0; >> end; > > You can: > a) add a dummy statement: if Value='' then ; > b) add an IDE directive: right click on this message in the Lazarus > Messages window, Hide message by inserting IDE directive > > Mattias> >> I see on the contextual menu of the warning that I can silence that >> warning type on a file (all warnings of that type in that file, not just >> the ones I know about): >> >> {$WARN 5024 off : Parameter "$1" not used} >> >> Lazarus writes "on"; tried both. Neither work, the warning still appears. > > It should be "off". I fixed that in trunk. Then I'll wait till that update reaches me :-) I do not want to kill the warning for all files, only those I have reviewed. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From nc-gaertnma at netcologne.de Wed May 2 12:34:22 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 2 May 2018 12:34:22 +0200 Subject: [Lazarus] About a warning of unused parameter. In-Reply-To: <130ddde1-9d08-e913-78dd-94b3d92d360b@telefonica.net> References: <36afb212-6114-7ad0-b5da-ba226123c587@telefonica.net> <20180502080451.4d3f8ae5@limapholos.matflo.wg> <130ddde1-9d08-e913-78dd-94b3d92d360b@telefonica.net> Message-ID: <20180502123422.34512b6d@limapholos.matflo.wg> On Wed, 2 May 2018 12:31:15 +0200 "Carlos E. R. via Lazarus" wrote: >[...] > Then I'll wait till that update reaches me :-) > > I do not want to kill the warning for all files, only those I have reviewed. Same here. That's why I often use the IDE directive. Mattias From Special at Joepgen.com Wed May 2 13:43:24 2018 From: Special at Joepgen.com (Joe) Date: Wed, 2 May 2018 13:43:24 +0200 Subject: [Lazarus] Lazarus still not usable with VNC under Raspbian Message-ID: The same or a similar problem I see using Lazarus 1.6 under Ubuntu 16.04 LTS, running X11 VNC Server 0.9.13-1.2build1. I connected from a windows 10 computer with VNCViewer 6.1.0 from RealVNC to the Ubuntu machine, opened Lazarus and tried to insert a '[' char with AltGr+8 in the Lazarus code editor window. Alternately, no char or wrong chars were inserted. The same happened, when I tried to insert other AltGr combinations like { and ]. Added a note to case 30544 in the Lazarus Bug Tracker. -- Joe From Special at Joepgen.com Wed May 2 13:56:17 2018 From: Special at Joepgen.com (Joe) Date: Wed, 2 May 2018 13:56:17 +0200 Subject: [Lazarus] Lazarus still not usable with VNC under Raspbian In-Reply-To: <1d2b3e5f-7781-7436-5a64-95a0eb49a0d9@Joepgen.com> References: <1d2b3e5f-7781-7436-5a64-95a0eb49a0d9@Joepgen.com> Message-ID: The same or a similar problem I see using Lazarus 1.6 under Ubuntu 16.04 LTS, running X11 VNC Server 0.9.13-1.2build1. I connected from a windows 10 computer with VNCViewer 6.1.0 from RealVNC to the Ubuntu machine, opened Lazarus and tried to insert a '[' char with AltGr+8 in the Lazarus code editor window. Alternately, no char or wrong chars were inserted. The same happened, when I tried to insert other AltGr combinations like { and ]. Country and keyboards settings on both machines: Germany. Added a note to case 30544 in the Lazarus Bug Tracker. -- Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Wed May 2 15:09:08 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Wed, 2 May 2018 10:09:08 -0300 Subject: [Lazarus] Changes to fpWeb... In-Reply-To: References: Message-ID: On Wed, May 2, 2018 at 3:21 AM, Michael Van Canneyt via Lazarus wrote: > > > On Tue, 1 May 2018, Marcos Douglas B. Santos via Lazarus wrote: > >>> but I would appreciate >>> feedback if you have cases where your datamodules no longer behave as >>> they >>> used to (both with LegacyRouting=true or false) >>> >>> Some more improvements to fpweb are planned, but they will not be as >>> invasive as this. >> >> >> >> Hello Michael, >> >> Is there a documentation link to explain all new features? >> I'm gonna start a new web project and I would like to use them. > > > I will see if I can put something in the wiki. > >> >> What about the design packages for Lazarus? >> The wizards continue creating Web Module based applications. > > > A good point. I had not thought of this. I will put it on my todo list. OK, thank you. Marcos Douglas From mail at michael-ring.org Wed May 2 15:09:21 2018 From: mail at michael-ring.org (Michael Ring) Date: Wed, 2 May 2018 15:09:21 +0200 Subject: [Lazarus] Cannot enter '^' in Lazarus trunk build macos/cocoa/x86_64 In-Reply-To: References: Message-ID: As it is a dead key you first press '^' on the keyboard and then space. other example:  á is created by first pressing '´' and then 'a' Michael Am 02.05.18 um 12:12 schrieb Dmitry Boyarintsev via Lazarus: > What’s the keys combination to enter ‘^’? > > Thanks, > Dmitry > > On Wednesday, May 2, 2018, Michael Ring via Lazarus > > > wrote: > > I yesterday tried again after a long time to build Lazarus with > Cocoa on my Mac, Lazarus is now perfectly useable for my needs and > as a bonus it seems a little faster than the Carbon version. > > Great work! > > > The only issue I ran in is that I cannot enter '^'  from my german > keyboard and, as a fact, also other charaters composed with > deadkeys (accented keys) like á also do not work. > > > Any ideas on how to fix that? > > > Michael > > > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Wed May 2 15:24:01 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Wed, 2 May 2018 09:24:01 -0400 Subject: [Lazarus] Cannot enter '^' in Lazarus trunk build macos/cocoa/x86_64 In-Reply-To: References: Message-ID: On Wed, May 2, 2018 at 9:09 AM, Michael Ring via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > As it is a dead key you first press '^' on the keyboard and then space. > other example: á is created by first pressing '´' and then 'a' > Do you know, if it's required to have German layout to be installed in the system. IIRC (away from mac right now), "^" is entered by pressing Shift+6 on Mac (ansi keyboard with US keys layout) ...and it works. What I'm thinking is that you're trying to enter the character in SynEdit. and it might be that Cocoa doesn't report a certain key combinations properly. I presume you didn't have this issue in Carbon, thus it's neither SynEdit bug nor macOS specific behavior, but rather LCLCocoa issue. That's why I need to know keys combination in order to track the problem on my end. thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at michael-ring.org Wed May 2 16:06:50 2018 From: mail at michael-ring.org (Michael Ring) Date: Wed, 2 May 2018 16:06:50 +0200 Subject: [Lazarus] Cannot enter '^' in Lazarus trunk build macos/cocoa/x86_64 In-Reply-To: References: Message-ID: I guess you will have to install the german layout as this deadkey stuff is layout specific. Fun fact is that you also cannot enter ^ with the Keyboard overview of MacOS, when I switch to US keyboard all is fine for me. fyi, the '^' key is left of the '1' key on a german keyboard on Macbook Pro Michael Am 02.05.18 um 15:24 schrieb Dmitry Boyarintsev via Lazarus: > On Wed, May 2, 2018 at 9:09 AM, Michael Ring via Lazarus > > > wrote: > > As it is a dead key you first press '^' on the keyboard and then > space. other example:  á is created by first pressing '´' and then 'a' > > Do you know, if it's required to have German layout to be installed in > the system. > IIRC (away from mac right now), "^" is entered by pressing Shift+6 on > Mac (ansi keyboard with US keys layout) ...and it works. > > What I'm thinking is that you're trying to enter the character in SynEdit. > and it might be that Cocoa doesn't report a certain key combinations > properly. > > I presume you didn't have this issue in Carbon, thus it's neither > SynEdit bug nor macOS specific behavior, but rather LCLCocoa issue. > > That's why I need to know keys combination in order to track the > problem on my end. > > thanks, > Dmitry > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuliano.colla at fastwebnet.it Wed May 2 17:10:27 2018 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Wed, 2 May 2018 17:10:27 +0200 Subject: [Lazarus] Qt WS on Raspberry pi 3 Message-ID: <3b4f9b07-ff53-8efe-8715-03e6d1a920bd@fastwebnet.it> Hi all, before starting from scratch, and falling in the same pitfalls someone else has already learned how to avoid, is there anyone who's already successfully managed to use the Qt WS on Rasbian for a Rapberry PI 3? Thanks in advance for any hint. Giuliano From juha.manninen62 at gmail.com Wed May 2 17:50:03 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 2 May 2018 18:50:03 +0300 Subject: [Lazarus] About a warning of unused parameter. In-Reply-To: <130ddde1-9d08-e913-78dd-94b3d92d360b@telefonica.net> References: <36afb212-6114-7ad0-b5da-ba226123c587@telefonica.net> <20180502080451.4d3f8ae5@limapholos.matflo.wg> <130ddde1-9d08-e913-78dd-94b3d92d360b@telefonica.net> Message-ID: On Wed, May 2, 2018 at 1:31 PM, Carlos E. R. via Lazarus wrote: > Then I'll wait till that update reaches me :-) svn up From Special at Joepgen.com Wed May 2 18:12:39 2018 From: Special at Joepgen.com (Joe) Date: Wed, 2 May 2018 18:12:39 +0200 Subject: [Lazarus] Lazarus still not usable with VNC under Raspbian In-Reply-To: References: <1d2b3e5f-7781-7436-5a64-95a0eb49a0d9@Joepgen.com> Message-ID: <5560189d-8417-6669-b193-85e2e60a9e59@Joepgen.com> Am 02.05.2018 um 13:56 schrieb Joe via Lazarus: > The same or a similar problem I see using Lazarus 1.6 under Ubuntu > 16.04 LTS, running X11 VNC Server 0.9.13-1.2build1. Under Ubuntu 18.04 LTS with Lazarus 1.8.2+dfsg-3 and FPC 3-04 the AltGr keystroke combinations work fine. Same VNC-Server and VNC-Viewer. --  Joe From markMLl.lazarus at telemetry.co.uk Wed May 2 20:52:30 2018 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Wed, 2 May 2018 18:52:30 +0000 Subject: [Lazarus] Qt WS on Raspberry pi 3 In-Reply-To: <3b4f9b07-ff53-8efe-8715-03e6d1a920bd@fastwebnet.it> References: <3b4f9b07-ff53-8efe-8715-03e6d1a920bd@fastwebnet.it> Message-ID: On 02/05/18 15:15, Giuliano Colla via Lazarus wrote: > Hi all, > before starting from scratch, and falling in the same pitfalls someone > else has already learned how to avoid, is there anyone who's already > successfully managed to use the Qt WS on Rasbian for a Rapberry PI 3? > Thanks in advance for any hint. When you say "WS" what specifically do you mean? I've run the Qt IDE and programs compiled for Qt on Raspbian on occasion, and apart from the usual problems of element spacing being slightly adrift etc. have had no significant issues that wouldn't be expected on a PC... noting obviously the current problems that somebody has with VNC, which I don't think is really a Raspbian issue. Something like two or maybe three years ago I tried to graft KDE onto Raspbian and it wasn't entirely successful, but there were other factors involved (e.g. a 4K screen which was pushing the graphics capability at the time). Most of the time we run a hybrid of the Raspbian kernel and Debian apps etc., to a variety of 1080p and 4K screens. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From jmlandmesser at gmx.de Thu May 3 10:10:04 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Thu, 3 May 2018 10:10:04 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm Message-ID: i think thats not correct: set these AutoEncodeStrings settings save and restart Lazarus, reopen the project: AutoEncodeStrings is now false, despite the settings in ZConnection1.Properties to the right. ... and Strings like "Büdingen" are displayed wrong! Should i write an extra bug-report? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nnhnpbjcpiomaoda.png Type: image/png Size: 10428 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diaadlhamjegfpii.png Type: image/png Size: 11060 bytes Desc: not available URL: From jmlandmesser at gmx.de Thu May 3 10:31:16 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Thu, 3 May 2018 10:31:16 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: References: Message-ID: <3f3fb52d-9a26-a10c-790e-43ff180abde2@gmx.de> see bug-report: 0033682 Am 03.05.2018 um 10:10 schrieb Landmesser John via Lazarus: > > i think thats not correct: > > set these AutoEncodeStrings settings > > > save and restart Lazarus, reopen the project: > > > AutoEncodeStrings is now false, despite the settings in > ZConnection1.Properties to the right. > > > ... and Strings like "Büdingen" are displayed wrong! > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nnhnpbjcpiomaoda.png Type: image/png Size: 10428 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: diaadlhamjegfpii.png Type: image/png Size: 11060 bytes Desc: not available URL: From lazarus at kluug.net Thu May 3 10:35:02 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 3 May 2018 10:35:02 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: References: Message-ID: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> On 03.05.2018 10:10, Landmesser John via Lazarus wrote: > > i think thats not correct: > > set these AutoEncodeStrings settings > > save and restart Lazarus, reopen the project:AutoEncodeStrings is now > false, despite the settings in ZConnection1.Properties to the right. > > ... and Strings like "Büdingen" are displayed wrong! > > Should i write an extra bug-report? > TZConnection is not a part of Lazarus/LCL. So you should first investigate if the problem is in ZEOS. If you don't think the bug is in ZEOS, the bug will be in FPC because component streaming is part of FPC. In this case, download trunk FPC (over SVN), build Lazarus with it and test  - if the bug still persists, create a simple test case program without any dependencies and create a bug report for FPC project in mantis. Ondrej From lazarus at kluug.net Thu May 3 10:39:51 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 3 May 2018 10:39:51 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> References: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> Message-ID: <6ad579d7-1b5f-bebd-9443-850476ff4e00@kluug.net> On 03.05.2018 10:35, Ondrej Pokorny via Lazarus wrote: > On 03.05.2018 10:10, Landmesser John via Lazarus wrote: >> >> i think thats not correct: >> >> set these AutoEncodeStrings settings >> >> save and restart Lazarus, reopen the project:AutoEncodeStrings is now >> false, despite the settings in ZConnection1.Properties to the right. >> >> ... and Strings like "Büdingen" are displayed wrong! >> >> Should i write an extra bug-report? >> > > TZConnection is not a part of Lazarus/LCL. So you should first > investigate if the problem is in ZEOS. > > If you don't think the bug is in ZEOS, the bug will be in FPC because > component streaming is part of FPC. In this case, download trunk FPC > (over SVN), build Lazarus with it and test  - if the bug still > persists, create a simple test case program without any dependencies > and create a bug report for FPC project in mantis. BTW, you could be hit by one of these already reported bugs: https://bugs.freepascal.org/view.php?id=33563 https://bugs.freepascal.org/view.php?id=33564 https://bugs.freepascal.org/view.php?id=33035 Ondrej From nc-gaertnma at netcologne.de Thu May 3 10:41:07 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 May 2018 10:41:07 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: References: Message-ID: <20180503104107.12703c1d@limapholos.matflo.wg> On Thu, 3 May 2018 10:10:04 +0200 Landmesser John via Lazarus wrote: > i think thats not correct: > > set these AutoEncodeStrings settings > > > save and restart Lazarus, reopen the project: > > > AutoEncodeStrings is now false, despite the settings in > ZConnection1.Properties to the right. > > > ... and Strings like "Büdingen" are displayed wrong! > > > Should i write an extra bug-report? Keep in mind that ZeosDBO is not maintained by the Lazarus team. http://wiki.freepascal.org/ZeosDBO Mattias From jmlandmesser at gmx.de Thu May 3 15:24:51 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Thu, 3 May 2018 15:24:51 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> References: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> Message-ID: <21de7bbf-81c3-71cc-d80f-fd12db9fb832@gmx.de> Hi Ondrej, compiled with Lazarus 1.9.0 r57768M FPC 3.1.1 i386-win32-win32/win64 issue still exists, so i put a message to ZeosLib-Forum. Issue is fixed if you open ZConnection.Properties once, so must be simple to fix?! Wait and see :-) btw: What tells us the M in r57768M ?? Am 03.05.2018 um 10:35 schrieb Ondrej Pokorny via Lazarus: > On 03.05.2018 10:10, Landmesser John via Lazarus wrote: >> >> i think thats not correct: >> >> set these AutoEncodeStrings settings >> >> save and restart Lazarus, reopen the project:AutoEncodeStrings is now >> false, despite the settings in ZConnection1.Properties to the right. >> >> ... and Strings like "Büdingen" are displayed wrong! >> >> Should i write an extra bug-report? >> > > TZConnection is not a part of Lazarus/LCL. So you should first > investigate if the problem is in ZEOS. > > If you don't think the bug is in ZEOS, the bug will be in FPC because > component streaming is part of FPC. In this case, download trunk FPC > (over SVN), build Lazarus with it and test  - if the bug still > persists, create a simple test case program without any dependencies > and create a bug report for FPC project in mantis. > > Ondrej From luca at wetron.es Thu May 3 15:33:05 2018 From: luca at wetron.es (Luca Olivetti) Date: Thu, 3 May 2018 15:33:05 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: <21de7bbf-81c3-71cc-d80f-fd12db9fb832@gmx.de> References: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> <21de7bbf-81c3-71cc-d80f-fd12db9fb832@gmx.de> Message-ID: <76ad8c56-c626-641f-75e2-611a9123becb@wetron.es> El 03/05/18 a les 15:24, Landmesser John via Lazarus ha escrit: > > issue still exists, so i put a message to ZeosLib-Forum. In the version of zeos I have (7.1.4), the property AutoEncodeStrings is marked as "default True", however the constructor doesn't set the underlying field to true, hence the bug is in the zeos library. > -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From nc-gaertnma at netcologne.de Thu May 3 15:47:51 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 May 2018 15:47:51 +0200 Subject: [Lazarus] Boolean component Properties saved in *.lfm In-Reply-To: <21de7bbf-81c3-71cc-d80f-fd12db9fb832@gmx.de> References: <2fdb2ef9-0eda-8c96-c0b7-143b07c1c7b8@kluug.net> <21de7bbf-81c3-71cc-d80f-fd12db9fb832@gmx.de> Message-ID: <20180503154751.055c9b42@limapholos.matflo.wg> On Thu, 3 May 2018 15:24:51 +0200 Landmesser John via Lazarus wrote: >[...] > What tells us the M in r57768M ?? That you have local modifications. Mattias From fjf.vanleeuwen at quicknet.nl Thu May 3 18:47:10 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Thu, 3 May 2018 18:47:10 +0200 Subject: [Lazarus] Bug in form Taborder? Message-ID: Hi, I'm using Lazarus 1.6.4 and 1.8.2 on Windows10. When I use the Tab order form a second time, I always get the component and children that I used the first time. I must shut down Lazarus and start again to make it work. Am I doing something wrong or is this a bug? I checked de bugs list but cannot find a bug report for this. If it is a bug, I will file a bugreport. -- mvg Frans van Leeuwen M 06-51695390 --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com From skalogryz.lists at gmail.com Thu May 3 19:57:55 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Thu, 3 May 2018 13:57:55 -0400 Subject: [Lazarus] wikirevenge - wikicare Message-ID: Hello, With the recent incident between Maciej Izak and Michael Van Canneyt as well as a forum thread started regarding mORMot (Maciej is working on/with the framework): http://forum.lazarus.freepascal.org/index.php/topic,41138.0.html I couldn't help but to search mentioning of mORMot on the wiki.freepascal.org. To the great surprise the page is there, but was populated with not a nice words towards the authors of the framework. I'd think that "wiki.freepascal.org" is a technical wiki. Personal opinions are not really welcomed there. For example: "this is a great component" should be replaced with "this is a component, with following features: ..." Needless to say, personal opinions regarding other people is even less appropriate (there are many sites out there online for that). At least, there's "discussion" tab available. Keep in mind. Even if you don't like someone or something personally. It doesn't mean that the code they produce or decisions they make are bad. For the wiki admins, please delete the category: http://wiki.freepascal.org/index.php?title=Category:bs it's pretty useless, at the moment. thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Thu May 3 21:15:31 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Thu, 3 May 2018 22:15:31 +0300 Subject: [Lazarus] LConvEncoding- why inline func? Message-ID: procedure InternalUTF8ToCP(const s: string; TargetCodePage: TSystemCodePage;   SetTargetCodePage: boolean;   const UTF8CharConvFunc: TUnicodeToCharID;   out TheResult: RawByteString); inline; begin   if not Assigned(UTF8CharConvFunc) then   begin     TheResult:=s;     SetCodePage(TheResult, TargetCodePage, True);     if not SetTargetCodePage then       SetCodePage(TheResult, CP_ACP, False);   end else begin     TheResult:=UTF8ToSingleByte(s,UTF8CharConvFunc);     if SetTargetCodePage then       SetCodePage(TheResult, TargetCodePage, False);   end; end; Func is complex, why it's inline? -- Regards, Alexey From lazarus at kluug.net Thu May 3 21:55:10 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 3 May 2018 21:55:10 +0200 Subject: [Lazarus] wikirevenge - wikicare In-Reply-To: References: Message-ID: On 03.05.2018 19:57, Dmitry Boyarintsev via Lazarus wrote: > I couldn't help but to search mentioning of mORMot on the > wiki.freepascal.org . > To the great surprise the page is there, but was populated with not a > nice words towards the authors of the framework. It was created by user Mai who has made more controversial modifications. See e.g. Bart's note: http://wiki.freepascal.org/index.php?title=User_talk:Mai&diff=prev&oldid=113125 Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Thu May 3 22:23:34 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Thu, 3 May 2018 16:23:34 -0400 Subject: [Lazarus] wikirevenge - wikicare In-Reply-To: References: Message-ID: On Thu, May 3, 2018 at 3:55 PM, Ondrej Pokorny via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > It was created by user Mai who has made more controversial modifications. > See e.g. Bart's note: > > http://wiki.freepascal.org/index.php?title=User_talk:Mai& > diff=prev&oldid=113125 > > The same time period - end of October 2017. I'd say that the account should be banned. However since the behavior hasn't repeated itself since, it's a bit too late to take any actions. Besides some of the corrections (on other pages) were valid ones. thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Thu May 3 23:05:51 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 May 2018 23:05:51 +0200 Subject: [Lazarus] Bug in form Taborder? In-Reply-To: References: Message-ID: <20180503230551.11e6876d@limapholos.matflo.wg> On Thu, 3 May 2018 18:47:10 +0200 frans via Lazarus wrote: > Hi, > > I'm using Lazarus 1.6.4 and 1.8.2 on Windows10. When I use the Tab order > form a second time, I always get the component and children that I used > the first time. What do you mean with "get the component and children that I used the first time"? Mattias From nc-gaertnma at netcologne.de Thu May 3 23:07:57 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 May 2018 23:07:57 +0200 Subject: [Lazarus] LConvEncoding- why inline func? In-Reply-To: References: Message-ID: <20180503230757.65bfe17f@limapholos.matflo.wg> On Thu, 3 May 2018 22:15:31 +0300 AlexeyT via Lazarus wrote: > procedure InternalUTF8ToCP(const s: string; TargetCodePage: TSystemCodePage; >   SetTargetCodePage: boolean; >   const UTF8CharConvFunc: TUnicodeToCharID; >   out TheResult: RawByteString); inline; > begin >   if not Assigned(UTF8CharConvFunc) then >   begin >     TheResult:=s; >     SetCodePage(TheResult, TargetCodePage, True); >     if not SetTargetCodePage then >       SetCodePage(TheResult, CP_ACP, False); >   end else begin >     TheResult:=UTF8ToSingleByte(s,UTF8CharConvFunc); >     if SetTargetCodePage then >       SetCodePage(TheResult, TargetCodePage, False); >   end; > end; > > Func is complex, why it's inline? It is not supposed to be used directly. It is supposed to be used by a few other functions, which are called a lot. Mattias From donald at ziesig.org Thu May 3 23:15:42 2018 From: donald at ziesig.org (Donald Ziesig) Date: Thu, 3 May 2018 17:15:42 -0400 Subject: [Lazarus] 'WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message: Message-ID: <7445030b-d44b-e408-6ab7-470890eba803@ziesig.org> Hi All! I have written a control that works fine except that it produces the subject WARNING twice for every time it is painted.  The problem comes from a single line:         Canvas.Draw(0, 0, Bitmap); I do much drawing to the Bitmap's Canvas (behind the scenes to avoid flicker) before calling the Draw method. I have stepped through this call and sure enough, it calls InvalidateRect twice before returning.  Otherwise it does exactly what it is supposed to do. Unfortunately, the calls it makes to DebugLn are time consuming and produces a noticable delay in program execution when I try to paint. The source code (in gtk2winapi.inc) does not offer a way of disabling the warning message.  Googling for the message said that it should never be left as is, but I can't see any way around calling Draw from within an OnPaint handler.  Also, sample apps do the same thing! I could bite the bullet and comment out the DebugLn in the source, but I worry that that is "a hack to far". Suggestions as to how to overcome this problem will be truly appreciated. Thanks, Don Ziesig From bartjunk64 at gmail.com Thu May 3 23:16:59 2018 From: bartjunk64 at gmail.com (Bart) Date: Thu, 3 May 2018 23:16:59 +0200 Subject: [Lazarus] wikirevenge - wikicare In-Reply-To: References: Message-ID: On Thu, May 3, 2018 at 7:57 PM, Dmitry Boyarintsev via Lazarus wrote: > I couldn't help but to search mentioning of mORMot on the > wiki.freepascal.org. > To the great surprise the page is there, but was populated with not a nice > words towards the authors of the framework. I saw you fixed that. Missed that one from Mai > For the wiki admins, please delete the category: > http://wiki.freepascal.org/index.php?title=Category:bs > it's pretty useless, at the moment. Deleted it. Bart From nc-gaertnma at netcologne.de Thu May 3 23:22:14 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 3 May 2018 23:22:14 +0200 Subject: [Lazarus] 'WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message: In-Reply-To: <7445030b-d44b-e408-6ab7-470890eba803@ziesig.org> References: <7445030b-d44b-e408-6ab7-470890eba803@ziesig.org> Message-ID: <20180503232214.24318f1c@limapholos.matflo.wg> On Thu, 3 May 2018 17:15:42 -0400 Donald Ziesig via Lazarus wrote: > Hi All! > > I have written a control that works fine except that it produces the > subject WARNING twice for every time it is painted.  The problem comes > from a single line: > >         Canvas.Draw(0, 0, Bitmap); > > I do much drawing to the Bitmap's Canvas (behind the scenes to avoid > flicker) before calling the Draw method. > > I have stepped through this call and sure enough, it calls > InvalidateRect twice before returning.  Otherwise it does exactly what > it is supposed to do. If there is an InvalidateRect during OnPaint there is a bug. Please create a bug report with an example. Mattias From mail at michael-ring.org Fri May 4 07:13:58 2018 From: mail at michael-ring.org (Michael Ring) Date: Fri, 4 May 2018 07:13:58 +0200 Subject: [Lazarus] Cannot enter '^' in Lazarus trunk build macos/cocoa/x86_64 In-Reply-To: References: Message-ID: Found one more thing, entering the character 'ß' (Key right of '0' Key on german keyboard) crashes Lazarus, this also works from Keyboard Viewer (The App that gives you a mini virtual Keyboard on Mac). Michael Application Specific Backtrace 1: 0   CoreFoundation                      0x00007fff2e5326bb __exceptionPreprocess + 171 1   libobjc.A.dylib                     0x00007fff55c4e942 objc_exception_throw + 48 2   CoreFoundation                      0x00007fff2e5c29a5 +[NSException raise:format:] + 197 3   AppKit                              0x00007fff2c304431 _NSRunModal + 484 4   AppKit                              0x00007fff2bce367d -[NSAlert runModal] + 240 5   lazarus                             0x00000001001e5211 COCOAINT_$$_COCOAPROMPTUSER$crcB0C4A088 + 961 6   lazarus                             0x00000001001e52e7 COCOAINT$_$TCOCOAWIDGETSET_$__$$_PROMPTUSER$crc484A2DB2 + 47 7   lazarus                             0x000000010017696f LCLINTF_$$_PROMPTUSER$crc484A2DB2 + 63 8   lazarus                             0x000000010017710b LCLINTF_$$_PROMPTUSER$crcB76EAC20 + 203 9   lazarus                             0x000000010005fa1e FORMS$_$TAPPLICATION_$__$$_SHOWEXCEPTION$EXCEPTION + 806 10  AppKit                              0x00007fff2c2ecf29 _NSViewDrawRect + 83 11  AppKit                              0x00007fff2bb8573c -[NSView _drawRect:clip:] + 1819 12  AppKit                              0x00007fff2bb84598 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4844 13  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 14  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 15  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 16  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 17  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 18  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 19  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 20  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 21  AppKit                              0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 22  AppKit                              0x00007fff2bb82ddb -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 327 23  AppKit                              0x00007fff2c2ee4e0 -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2051 24  AppKit                              0x00007fff2bb81e5d -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 253 25  AppKit                              0x00007fff2bb7e0b4 -[NSView displayIfNeeded] + 1581 26  AppKit                              0x00007fff2bb7da52 -[NSWindow displayIfNeeded] + 321 27  AppKit                              0x00007fff2c31e60d ___NSWindowGetDisplayCycleObserver_block_invoke.5902 + 308 28  AppKit                              0x00007fff2bb7d55e __37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 695 29  QuartzCore                          0x00007fff397fb3c3 _ZN2CA11Transaction19run_commit_handlersE18CATransactionPhase + 49 30  QuartzCore                          0x00007fff397f9ea5 _ZN2CA11Transaction6commitEv + 171 31  AppKit                              0x00007fff2c335a72 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 283 32  CoreFoundation                      0x00007fff2e4cb787 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 33  CoreFoundation                      0x00007fff2e4cb6af __CFRunLoopDoObservers + 511 34  CoreFoundation                      0x00007fff2e4ae178 __CFRunLoopRun + 1240 35  CoreFoundation                      0x00007fff2e4ada07 CFRunLoopRunSpecific + 487 36  HIToolbox                           0x00007fff2d78bd96 RunCurrentEventLoopInMode + 286 37  HIToolbox                           0x00007fff2d78bb06 ReceiveNextEventCommon + 613 38  HIToolbox                           0x00007fff2d78b884 _BlockUntilNextEventMatchingListInModeWithFilter + 64 39  AppKit                              0x00007fff2ba3ea73 _DPSNextEvent + 2085 40  AppKit                              0x00007fff2c1d4e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 41  lazarus                             0x00000001001dc941 COCOAINT$_$TCOCOAWIDGETSET_$__$$_APPWAITMESSAGE + 113 42  ???                                 0x0000000000000001 0x0 + 1 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0   libsystem_kernel.dylib            0x00007fff569b5b6e __pthread_kill + 10 1   libsystem_pthread.dylib           0x00007fff56b80080 pthread_kill + 333 2   libsystem_c.dylib                 0x00007fff569111ae abort + 127 3   libc++abi.dylib                   0x00007fff54818f8f abort_message + 245 4   libc++abi.dylib                   0x00007fff5481912b default_terminate_handler() + 265 5   libobjc.A.dylib                   0x00007fff55c50a47 _objc_terminate() + 97 6   libc++abi.dylib                   0x00007fff548347c9 std::__terminate(void (*)()) + 8 7   libc++abi.dylib                   0x00007fff5483447a __cxa_rethrow + 99 8   libobjc.A.dylib                   0x00007fff55c4ee05 objc_exception_rethrow + 40 9   com.apple.AppKit                  0x00007fff2c3044e2 _NSRunModal + 661 10  com.apple.AppKit                  0x00007fff2bce367d -[NSAlert runModal] + 240 11  lazarus.freepascal.ide            0x00000001001e5211 COCOAINT_$$_COCOAPROMPTUSER$crcB0C4A088 + 961 12  lazarus.freepascal.ide            0x00000001001e52e7 COCOAINT$_$TCOCOAWIDGETSET_$__$$_PROMPTUSER$crc484A2DB2 + 47 13  lazarus.freepascal.ide            0x000000010017696f LCLINTF_$$_PROMPTUSER$crc484A2DB2 + 63 14  lazarus.freepascal.ide            0x000000010017710b LCLINTF_$$_PROMPTUSER$crcB76EAC20 + 203 15  lazarus.freepascal.ide            0x000000010005fa1e FORMS$_$TAPPLICATION_$__$$_SHOWEXCEPTION$EXCEPTION + 806 16  com.apple.AppKit                  0x00007fff2c2ecf29 _NSViewDrawRect + 83 17  com.apple.AppKit                  0x00007fff2bb8573c -[NSView _drawRect:clip:] + 1819 18  com.apple.AppKit                  0x00007fff2bb84598 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 4844 19  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 20  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 21  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 22  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 23  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 24  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 25  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 26  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 27  com.apple.AppKit                  0x00007fff2bb83ec5 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3097 28  com.apple.AppKit                  0x00007fff2bb82ddb -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 327 29  com.apple.AppKit                  0x00007fff2c2ee4e0 -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2051 30  com.apple.AppKit                  0x00007fff2bb81e5d -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 253 31  com.apple.AppKit                  0x00007fff2bb7e0b4 -[NSView displayIfNeeded] + 1581 32  com.apple.AppKit                  0x00007fff2bb7da52 -[NSWindow displayIfNeeded] + 321 33  com.apple.AppKit                  0x00007fff2c31e60d ___NSWindowGetDisplayCycleObserver_block_invoke.5902 + 308 34  com.apple.AppKit                  0x00007fff2bb7d55e __37+[NSDisplayCycle currentDisplayCycle]_block_invoke + 695 35  com.apple.QuartzCore              0x00007fff397fb3c3 CA::Transaction::run_commit_handlers(CATransactionPhase) + 49 36  com.apple.QuartzCore              0x00007fff397f9ea5 CA::Transaction::commit() + 171 37  com.apple.AppKit                  0x00007fff2c335a72 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 283 38  com.apple.CoreFoundation          0x00007fff2e4cb787 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 39  com.apple.CoreFoundation          0x00007fff2e4cb6af __CFRunLoopDoObservers + 511 40  com.apple.CoreFoundation          0x00007fff2e4ae178 __CFRunLoopRun + 1240 41  com.apple.CoreFoundation          0x00007fff2e4ada07 CFRunLoopRunSpecific + 487 42  com.apple.HIToolbox               0x00007fff2d78bd96 RunCurrentEventLoopInMode + 286 43  com.apple.HIToolbox               0x00007fff2d78bb06 ReceiveNextEventCommon + 613 44  com.apple.HIToolbox               0x00007fff2d78b884 _BlockUntilNextEventMatchingListInModeWithFilter + 64 45  com.apple.AppKit                  0x00007fff2ba3ea73 _DPSNextEvent + 2085 46  com.apple.AppKit                  0x00007fff2c1d4e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 47  lazarus.freepascal.ide            0x00000001001dc941 COCOAINT$_$TCOCOAWIDGETSET_$__$$_APPWAITMESSAGE + 113 Thread 1: 0   libsystem_kernel.dylib            0x00007fff569b6292 __workq_kernreturn + 10 1   libsystem_pthread.dylib           0x00007fff56b7d20e _pthread_wqthread + 1552 2   libsystem_pthread.dylib           0x00007fff56b7cbe9 start_wqthread + 13 Thread 2: 0   libsystem_kernel.dylib            0x00007fff569b6292 __workq_kernreturn + 10 1   libsystem_pthread.dylib           0x00007fff56b7d009 _pthread_wqthread + 1035 2   libsystem_pthread.dylib           0x00007fff56b7cbe9 start_wqthread + 13 Thread 3: 0   libsystem_pthread.dylib           0x00007fff56b7cbdc start_wqthread + 0 1   ???                               0x0000000000000001 0 + 1 Thread 4: 0   libsystem_pthread.dylib           0x00007fff56b7cbdc start_wqthread + 0 1   ???                               0x0000000300000003 0 + 12884901891 Thread 5:: com.apple.NSEventThread 0   libsystem_kernel.dylib            0x00007fff569ac20a mach_msg_trap + 10 1   libsystem_kernel.dylib            0x00007fff569ab724 mach_msg + 60 2   com.apple.CoreFoundation          0x00007fff2e4af045 __CFRunLoopServiceMachPort + 341 3   com.apple.CoreFoundation          0x00007fff2e4ae397 __CFRunLoopRun + 1783 4   com.apple.CoreFoundation          0x00007fff2e4ada07 CFRunLoopRunSpecific + 487 5   com.apple.AppKit                  0x00007fff2bb7bfc4 _NSEventThread + 184 6   libsystem_pthread.dylib           0x00007fff56b7d661 _pthread_body + 340 7   libsystem_pthread.dylib           0x00007fff56b7d50d _pthread_start + 377 8   libsystem_pthread.dylib           0x00007fff56b7cbf9 thread_start + 13 Thread 0 crashed with X86 Thread State (64-bit):   rax: 0x0000000000000000  rbx: 0x00007fff8eb64380  rcx: 0x00007ffeefbf9788  rdx: 0x0000000000000000   rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007ffeefbf97c0  rsp: 0x00007ffeefbf9788    r8: 0x00007ffeefbf9650   r9: 0x00007ffeefbf9820  r10: 0x0000000000000000  r11: 0x0000000000000206   r12: 0x0000000000000307  r13: 0x0000000000000030  r14: 0x0000000000000006  r15: 0x000000000000002d   rip: 0x00007fff569b5b6e  rfl: 0x0000000000000206  cr2: 0x00007fff8eb41168 Logical CPU:     0 Error Code:      0x02000148 Trap Number:     133 Am 02.05.18 um 16:06 schrieb Michael Ring via Lazarus: > > I guess you will have to install the german layout as this deadkey > stuff is layout specific. > > Fun fact is that you also cannot enter ^ with the Keyboard overview of > MacOS, when I switch to US keyboard all is fine for me. > > fyi, the '^' key is left of the '1' key on a german keyboard on > Macbook Pro > > > Michael > > Am 02.05.18 um 15:24 schrieb Dmitry Boyarintsev via Lazarus: >> On Wed, May 2, 2018 at 9:09 AM, Michael Ring via Lazarus >> > > wrote: >> >> As it is a dead key you first press '^' on the keyboard and then >> space. other example:  á is created by first pressing '´' and >> then 'a' >> >> Do you know, if it's required to have German layout to be installed >> in the system. >> IIRC (away from mac right now), "^" is entered by pressing Shift+6 on >> Mac (ansi keyboard with US keys layout) ...and it works. >> >> What I'm thinking is that you're trying to enter the character in >> SynEdit. >> and it might be that Cocoa doesn't report a certain key combinations >> properly. >> >> I presume you didn't have this issue in Carbon, thus it's neither >> SynEdit bug nor macOS specific behavior, but rather LCLCocoa issue. >> >> That's why I need to know keys combination in order to track the >> problem on my end. >> >> thanks, >> Dmitry >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From friess at gmx.at Fri May 4 10:52:52 2018 From: friess at gmx.at (Andreas =?UTF-8?B?RnJpZcOf?=) Date: Fri, 4 May 2018 10:52:52 +0200 Subject: [Lazarus] Dark themed lazarus In-Reply-To: References: <20180405085824.3f504636@limapholos.matflo.wg> Message-ID: Maciej Izak via Lazarus wrote: > 2018-04-05 12:16 GMT+02:00 Anthony Walter via Lazarus < > lazarus at lists.lazarus-ide.org>: > > > Next I might tackle the lagginess in drag moving controls on the > > form designer. Does that seem like a laggy problem to anyone else? > > > > Probably you mean : https://bugs.freepascal.org/view.php?id=33486 This Bugreport have not only to do with moving a component. Switching between code and design is the strangest lag. > > I was not able to spend enough time on this problem, so any patch is > welcome. > > -- > Best regards, > Maciej Izak Andreas From robin.listas at telefonica.net Fri May 4 12:51:38 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Fri, 4 May 2018 12:51:38 +0200 Subject: [Lazarus] Cloning standard output to text file Message-ID: Hi, I know I did this decades ago with Turbo Pascal, but I can't remember how, and my google foo fails me. I want to do a series of "writeln(...)" and have the output go simultaneously to the console and to a text file of my choice. I have the vague idea that this was done writing a text file handler :-? I can of course do two writeln calls for each current call, but it is a nuisance. I can not use a mywriteln wrapper that would do the two calls, because I do not know how to create a procedure that takes a variant number of parameters, as "writeln()" does... Ideas? If you know of a google search string to locate these ideas, just tell me ;-) -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From nc-gaertnma at netcologne.de Fri May 4 12:58:00 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 4 May 2018 12:58:00 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: References: Message-ID: <20180504125800.72409b29@limapholos.matflo.wg> On Fri, 4 May 2018 12:51:38 +0200 "Carlos E. R. via Lazarus" wrote: >[...] > I want to do a series of "writeln(...)" and have the output go > simultaneously to the console and to a text file of my choice. I have > the vague idea that this was done writing a text file handler :-? >[...] > If you know of a google search string to locate these ideas, just tell > me ;-) fpc redirect stdout Mattias From bartjunk64 at gmail.com Fri May 4 13:30:10 2018 From: bartjunk64 at gmail.com (Bart) Date: Fri, 4 May 2018 13:30:10 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: References: Message-ID: On Fri, May 4, 2018 at 12:51 PM, Carlos E. R. via Lazarus wrote: > I want to do a series of "writeln(...)" and have the output go > simultaneously to the console and to a text file of my choice. I have > the vague idea that this was done writing a text file handler :-? I once wrote a simple utility (myutil) that read from stdin, echoed to stdout and echoed to a logfile. I then used a pipe from the commandline to achieve what I wanted. E.g.: myprog | mytuil path/to/log Or something similar to that. Bart From robin.listas at telefonica.net Fri May 4 13:31:50 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Fri, 4 May 2018 13:31:50 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: <20180504125800.72409b29@limapholos.matflo.wg> References: <20180504125800.72409b29@limapholos.matflo.wg> Message-ID: <1e378ba7-e1b3-3278-b1a5-0144fc5080cc@telefonica.net> On 2018-05-04 12:58, Mattias Gaertner via Lazarus wrote: > On Fri, 4 May 2018 12:51:38 +0200 > "Carlos E. R. via Lazarus" wrote: > >> [...] >> I want to do a series of "writeln(...)" and have the output go >> simultaneously to the console and to a text file of my choice. I have >> the vague idea that this was done writing a text file handler :-? >> [...] >> If you know of a google search string to locate these ideas, just tell >> me ;-) > > fpc redirect stdout Thank you! :-) Found it. At least for redirection, the output is sent to a file. Now I have to figure out how to write both to file and screen :-) More ideas to investigate here: -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From robin.listas at telefonica.net Fri May 4 13:34:54 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Fri, 4 May 2018 13:34:54 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: References: Message-ID: On 2018-05-04 13:30, Bart via Lazarus wrote: > On Fri, May 4, 2018 at 12:51 PM, Carlos E. R. via Lazarus > wrote: > >> I want to do a series of "writeln(...)" and have the output go >> simultaneously to the console and to a text file of my choice. I have >> the vague idea that this was done writing a text file handler :-? > > I once wrote a simple utility (myutil) that read from stdin, echoed to > stdout and echoed to a logfile. > I then used a pipe from the commandline to achieve what I wanted. > E.g.: > > myprog | mytuil path/to/log > > Or something similar to that. Yes, of course, that's what I'm doing now, but I wanted to do it internally, control the file name, perhaps rotate it, etc :-) Actually: myprog | tee mytuil path/to/log It has the effect that text to screen is written in chunks, may stop at the middle of a line. So at the end each cycle, I issue a "flush(output);" -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From reimgrab at web.de Fri May 4 18:46:43 2018 From: reimgrab at web.de (Reimar Grabowski) Date: Fri, 4 May 2018 18:46:43 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: References: Message-ID: <20180504184643.0fb7eb8e@darkbreed> On Fri, 4 May 2018 13:34:54 +0200 "Carlos E. R. via Lazarus" wrote: > Yes, of course, that's what I'm doing now, but I wanted to do it > internally, control the file name, perhaps rotate it, etc :-) Perhaps you should use a logger. There are surely some FPC ones out there that can do all this for you. A fast google search brings up http://wiki.freepascal.org/Log4Delphi which is based on Log4J (which does all that). hih R. From marcov at stack.nl Fri May 4 19:30:56 2018 From: marcov at stack.nl (Marco van de Voort) Date: Fri, 4 May 2018 19:30:56 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: <1e378ba7-e1b3-3278-b1a5-0144fc5080cc@telefonica.net> References: <20180504125800.72409b29@limapholos.matflo.wg> <1e378ba7-e1b3-3278-b1a5-0144fc5080cc@telefonica.net> Message-ID: <20180504173056.GA72696@stack.nl> On Fri, May 04, 2018 at 01:31:50PM +0200, Carlos E. R. via Lazarus wrote: > Now I have to figure out how to write both to file and screen :-) fpc streamio From robin.listas at telefonica.net Fri May 4 20:09:00 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Fri, 4 May 2018 20:09:00 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: <20180504184643.0fb7eb8e@darkbreed> References: <20180504184643.0fb7eb8e@darkbreed> Message-ID: <8e921212-3af0-7d76-16b3-f0584a334470@telefonica.net> On 2018-05-04 18:46, Reimar Grabowski via Lazarus wrote: > On Fri, 4 May 2018 13:34:54 +0200 > "Carlos E. R. via Lazarus" wrote: > >> Yes, of course, that's what I'm doing now, but I wanted to do it >> internally, control the file name, perhaps rotate it, etc :-) > Perhaps you should use a logger. > There are surely some FPC ones out there that can do all this for you. > A fast google search brings up http://wiki.freepascal.org/Log4Delphi which is based on Log4J (which does all that). Well, I send to syslog the important things :-) In this phase I use many writeln as debug help, and using a pipe and a tee does the job fine. The idea here: redirects all stdout to a file, but I'm thinking that it is basically the same as replacing all writeln found with writeln(F, ...), achieving the same thing perhaps simpler. Well, except that commenting out a the call to "redirect" disables it. The basic trick it does is: var f : TextFile; s: TDebugStream; and a procedure to redirect the output: procedure redirect; begin s := TDebugStream.Create(); AssignStream(f, s); Rewrite(f); output := f; end; wich replaces stdout (output) with f. The role of tTDebugStream I don't get. It is created thus: Type TDebugStream = class(TStream) function Write(const Buffer; Count : Longint) : Longint; override; end; implementation function TDebugStream.Write(const Buffer; Count : Longint) : Longint; var msg : ansistring; begin result := count; SetLength(msg, count); move(buffer, PChar(msg)[0], count); OutputDebugString(PChar(TrimRight(msg))); end; I also miss where the file name is assigned. But anyway, what I wanted is to write both to the screen and to a file, so this is not sufficient. Further in the thread they say that this would do - this is the classic method I had forgotten: var oldoutput, f: TextFile; begin AssignFile(f, 'somefile'); Rewrite(f); oldoutput := Output; Output := f; Writeln('Hello World'); // this is send to Output Output := oldoutput; CloseFile(f); end. At the start of the thread there is a suggestion to "implementing your own textfile driver", but the link is dead. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From robin.listas at telefonica.net Fri May 4 20:15:56 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Fri, 4 May 2018 20:15:56 +0200 Subject: [Lazarus] Cloning standard output to text file In-Reply-To: <20180504173056.GA72696@stack.nl> References: <20180504125800.72409b29@limapholos.matflo.wg> <1e378ba7-e1b3-3278-b1a5-0144fc5080cc@telefonica.net> <20180504173056.GA72696@stack.nl> Message-ID: <9bfc248a-8251-bc5b-3978-0fa9a9d8f4fe@telefonica.net> On 2018-05-04 19:30, Marco van de Voort via Lazarus wrote: > On Fri, May 04, 2018 at 01:31:50PM +0200, Carlos E. R. via Lazarus wrote: >> Now I have to figure out how to write both to file and screen :-) > > fpc streamio > Results in church related links, LOL. Better "freepascal streamio". «The StreamIO unit implements a call to reroute the input or output of a text file to a descendents of TStream.» Sorry, I fail to see how I can use this with writeln to write to *both* output and file at the same time. Maybe I miss something :-? -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From fjf.vanleeuwen at quicknet.nl Fri May 4 10:28:30 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Fri, 4 May 2018 10:28:30 +0200 Subject: [Lazarus] Bug in form Taborder? In-Reply-To: <20180503230551.11e6876d@limapholos.matflo.wg> References: <20180503230551.11e6876d@limapholos.matflo.wg> Message-ID: <91682425-a7b5-f67b-9796-e70d496c1515@quicknet.nl> Hi Mattias I've added 2 images. In both images the Tab order form shows the samen content, while the form on the richt shows a different selected component. I hope now you understand what I mean. mvg Frans van Leeuwen M 06-51695390 Op 3-5-2018 om 23:05 schreef Mattias Gaertner via Lazarus: > On Thu, 3 May 2018 18:47:10 +0200 > frans via Lazarus wrote: > >> Hi, >> >> I'm using Lazarus 1.6.4 and 1.8.2 on Windows10. When I use the Tab order >> form a second time, I always get the component and children that I used >> the first time. > What do you mean with "get the component and children that I used the > first time"? > > Mattias --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com -------------- next part -------------- A non-text attachment was scrubbed... Name: first time.png Type: image/png Size: 44922 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: second time.png Type: image/png Size: 44776 bytes Desc: not available URL: From giuliano.colla at fastwebnet.it Sat May 5 11:31:47 2018 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sat, 5 May 2018 11:31:47 +0200 Subject: [Lazarus] Qt WS on Raspberry pi 3 In-Reply-To: References: <3b4f9b07-ff53-8efe-8715-03e6d1a920bd@fastwebnet.it> Message-ID: <8e141a76-11d3-e5bd-8c0d-2c7febd1c018@fastwebnet.it> Il 02/05/2018 20:52, Mark Morgan Lloyd via Lazarus ha scritto: > When you say "WS" what specifically do you mean? I was meaning compiling (or cross-compiling from) and running Lazarus applications using the Qt widgetset. From your reply I gather that you've been successful with Qt designer, and that's already a good starting point. Now I'll try to cope with Qt bindings for Lazarus. If I stumble into issues I'll ask again for support. For the moment many thanks for your feedback. Giuliano From vojtech.cihak at atlas.cz Sat May 5 12:35:06 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Sat, 05 May 2018 12:35:06 +0200 Subject: [Lazarus] =?utf-8?q?Bug_in_form_Taborder=3F?= In-Reply-To: 0000000089dc000159f80170503d References: , <20180503230551.11e6876d@limapholos.matflo.wg> 0000000089dc000159f80170503d Message-ID: <20180505123506.82202594@atlas.cz> Hi,   this is very probably issue https://bugs.freepascal.org/view.php?id=30010 - resolved in meanwhile. You wrote that you use two versions of Lazarus. Does it happen in the newer 1.8.2 too? I don't know if the fix is there.   V. ______________________________________________________________ > Od: frans via Lazarus > Komu: Mattias Gaertner via Lazarus > Datum: 04.05.2018 10:28 > Předmět: Re: [Lazarus] Bug in form Taborder? > Hi Mattias I've added 2 images. In both images the Tab order form shows the samen content, while the form on the richt shows a different selected component. I hope now you understand what I mean. --- Deze e-mail is gecontroleerd op virussen door AVG. http://www.avg.com ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From fjf.vanleeuwen at quicknet.nl Sat May 5 15:00:52 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Sat, 5 May 2018 15:00:52 +0200 Subject: [Lazarus] Bug in form Taborder? In-Reply-To: <20180505123506.82202594@atlas.cz> References: <20180503230551.11e6876d@limapholos.matflo.wg> <20180505123506.82202594@atlas.cz> Message-ID: Hi. Lazarus 1.8.2 has the same problem. mvg Frans van Leeuwen M 06-51695390 Op 5-5-2018 om 12:35 schreef Vojtěch Čihák via Lazarus: > > Hi, > > this is very probably > issue https://bugs.freepascal.org/view.php?id=30010 - resolved in > meanwhile. > > You wrote that you use two versions of Lazarus. Does it happen in the > newer 1.8.2 too? I don't know if the fix is there. > > V. > > > ______________________________________________________________ > > Od: frans via Lazarus > > Komu: Mattias Gaertner via Lazarus > > Datum: 04.05.2018 10:28 > > Předmět: Re: [Lazarus] Bug in form Taborder? > > > > Hi Mattias > > I've added 2 images. In both images the Tab order form shows the samen > content, while the form on the richt shows a different selected component. > I hope now you understand what I mean. > > > --- > Deze e-mail is gecontroleerd op virussen door AVG. > http://www.avg.com > > > ---------- > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fjf.vanleeuwen at quicknet.nl Sat May 5 15:16:57 2018 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Sat, 5 May 2018 15:16:57 +0200 Subject: [Lazarus] Bug in form Taborder? In-Reply-To: <20180505123506.82202594@atlas.cz> References: <20180503230551.11e6876d@limapholos.matflo.wg> <20180505123506.82202594@atlas.cz> Message-ID: Hi. I've checked r52633 and the changed Taborder.pas file is not part of the Lazarus 1.6.4 release. It is well part of release 1.8.2 but it doesn't work in thate release. mvg Frans van Leeuwen M 06-51695390 Op 5-5-2018 om 12:35 schreef Vojtěch Čihák via Lazarus: > > Hi, > > this is very probably > issue https://bugs.freepascal.org/view.php?id=30010 - resolved in > meanwhile. > > You wrote that you use two versions of Lazarus. Does it happen in the > newer 1.8.2 too? I don't know if the fix is there. > > V. > > > ______________________________________________________________ > > Od: frans via Lazarus > > Komu: Mattias Gaertner via Lazarus > > Datum: 04.05.2018 10:28 > > Předmět: Re: [Lazarus] Bug in form Taborder? > > > > Hi Mattias > > I've added 2 images. In both images the Tab order form shows the samen > content, while the form on the richt shows a different selected component. > I hope now you understand what I mean. > > > --- > Deze e-mail is gecontroleerd op virussen door AVG. > http://www.avg.com > > > ---------- > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Sat May 5 18:30:27 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 5 May 2018 18:30:27 +0200 (CEST) Subject: [Lazarus] badge/pill/chip component ? Message-ID: Hi, I'm looking for a badge/pill/chip kind of component. https://getbootstrap.com/docs/4.0/components/badge/ Any idea whether this exists for lazarus ? Michael. From aaa5500 at ya.ru Sat May 5 19:07:15 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sat, 5 May 2018 20:07:15 +0300 Subject: [Lazarus] badge/pill/chip component ? In-Reply-To: References: Message-ID: <82768a70-ffcf-ed81-3672-e85d066eeee0@ya.ru> Hi I can (want) to write ATBadge component. Planned props: AutoSize Color ColorInner (for inner colored text) Font FontInner Radius (1..50 in %) Caption CaptionInner Alex From michael at freepascal.org Sat May 5 21:19:14 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 5 May 2018 21:19:14 +0200 (CEST) Subject: [Lazarus] badge/pill/chip component ? In-Reply-To: <82768a70-ffcf-ed81-3672-e85d066eeee0@ya.ru> References: <82768a70-ffcf-ed81-3672-e85d066eeee0@ya.ru> Message-ID: On Sat, 5 May 2018, AlexeyT via Lazarus wrote: > Hi > I can (want) to write ATBadge component. > Planned props: > > AutoSize > Color > ColorInner (for inner colored text) > Font > FontInner > Radius (1..50 in %) > Caption > CaptionInner I had in mind a TBadge with the above props, and then also Property Shape: TBadgeShape = (rounded, roundrect) ; // Maybe others Property ImageList : TImagelist Property CloseBadge : Boolean; Property Items : TBadgeItems; With TBadgeItem = CLass(TCollectionItem) Public Property Data : Pointer Published Property Caption : String; ImageIndex : Integer; Tag : PtrInt end; Events : OneBadgeClose : Procedure (Sender : TObject; aBadge: TBadgeItem; var Allow : Boolean); OnBadgeClick : Procedure (Sender : TObject; aBadge: TBadgeItem); OnBadgeImageClick : Procedure (Sender : TObject; aBadge: TBadgeItem); So the badge component actually draws a collection of badges. Does that suit your use-case and wishes? If so, please go ahead, I am curious :) Michael. From michael at freepascal.org Sat May 5 23:52:09 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 5 May 2018 23:52:09 +0200 (CEST) Subject: [Lazarus] lazreport to fpReport converter Message-ID: Hello, Thanks to Christian Ulrich there is now a component available that can read a basic lazreport file and convert it to fpReport. (unit fplazreport, in fcl-fpreport). It's not perfect, and can definitely be extended: barcode, qr code support are missing and probably master-detail can use some improvement, but I would appreciate some feedback on it. iif there are bugs, please report them in the bugtracker. Michael. From mailinglists at geldenhuys.co.uk Sun May 6 12:47:53 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 6 May 2018 11:47:53 +0100 Subject: [Lazarus] lazreport to fpReport converter In-Reply-To: References: Message-ID: On 2018-05-05 22:52, Michael Van Canneyt via Lazarus wrote: > Thanks to Christian Ulrich there is now a component available that can read > a basic lazreport file and convert it to fpReport. Kudos to Christian. The last push to finally say goodbye to LazReport. Also well done to all that took the original fpReport and ran with it - improving and fixing it further than the time I had available. The absolute joy of seeing open source development at its best. FPC really have a gem of a reporting tool now! Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From leledumbo_cool at yahoo.co.id Sun May 6 23:39:02 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Sun, 6 May 2018 14:39:02 -0700 (MST) Subject: [Lazarus] Cloning standard output to text file In-Reply-To: <9bfc248a-8251-bc5b-3978-0fa9a9d8f4fe@telefonica.net> References: <20180504125800.72409b29@limapholos.matflo.wg> <1e378ba7-e1b3-3278-b1a5-0144fc5080cc@telefonica.net> <20180504173056.GA72696@stack.nl> <9bfc248a-8251-bc5b-3978-0fa9a9d8f4fe@telefonica.net> Message-ID: <1525642742815-0.post@n3.nabble.com> > Sorry, I fail to see how I can use this with writeln to write to *both* > output and file at the same time. Maybe I miss something :-? {$mode objfpc}{$H+} uses Classes,SysUtils,StreamIO; type TDoubleStream = class(TFileStream) private FStdOut: TextFile; public constructor Create(const AFileName: string; Mode: Word); destructor Destroy; override; function Write(const Buffer; Count: longint): longint; override; end; constructor TDoubleStream.Create(const AFileName: string; Mode: Word); begin inherited Create(AFileName,Mode); AssignFile(FStdOut,''); // empty string = stdout Rewrite(FStdOut); end; destructor TDoubleStream.Destroy; begin CloseFile(FStdOut); inherited Destroy; end; function TDoubleStream.Write(const Buffer; Count: longint): longint; var p: PChar; begin Result := inherited Write(Buffer, Count); p := PChar(@Buffer); // safe assumption for standard output, I guess? while Count > 0 do begin System.Write(FStdOut,p^); Inc(p); Dec(Count); end; end; var ds: TStream; begin ds := TDoubleStream.Create('log.txt', fmCreate or fmOpenWrite); try AssignStream(Output,ds); Rewrite(Output); WriteLn('Hello!'); finally ds.Free; end; end. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From mlnglsts at bgss.hu Mon May 7 16:54:59 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Mon, 7 May 2018 16:54:59 +0200 Subject: [Lazarus] How to use two different versions of FPC Message-ID: Hi All, My main development toolset is FPC 3.0.4 and Lazarus fixes_1_8. Sometimes I try some things with Lazarus trunk also. It is easy. But now build up a new development machine from scratch with RHEL 7.5 on it and try to utilize FPC trunk too (with Lazarus trunk). I use "--primary-config-path" option always, so Lazarus config placement is not a problem. But the two FPC versions coexist. I found a solution from 2012 on the forum (see the link below). Is BigChimp's suggestion (1.-6.) a good starting point nowadays or something changed meanwhile in this topic. I will build everything (Lazarus fixes_1_8 and trunk, FPC trunk) from source except the actual stable FPC (now 3.0.4). https://forum.lazarus.freepascal.org/index.php/topic,15716.msg85158.html#msg85158 Gabor From shokwave at gmx.net Mon May 7 17:36:51 2018 From: shokwave at gmx.net (shoKwave) Date: Mon, 7 May 2018 17:36:51 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: Am 07.05.2018 um 16:54 schrieb Gabor Boros via Lazarus: > Is BigChimp's suggestion (1.-6.) a good starting point nowadays or > something changed meanwhile in this topic. I will build everything > (Lazarus fixes_1_8 and trunk, FPC trunk) from source except the actual > stable FPC (now 3.0.4). > > https://forum.lazarus.freepascal.org/index.php/topic,15716.msg85158.html#msg85158 > Hi Gabor, it's a good starting point but I have some corrections. * Install systemwide FPC and whatever primary Lazarus install you want * Get another FPC, e.g. from SVN, make all, make install under e.g. ~/fpcdev * make softlink from ~/fpcdev/lib/fpc//ppcbinary to ~/fpcdev/bin * Generate an fpc.cfg in ~/fpcdev/lib/fpc/etc directory using fpcmkcfg * Get/compile another Lazarus using make FPC=~/fpcdev/whereverbin/ppcbinary so Laz gets compiled with the right FPC * Run secondary Lazarus with --primary-config path set to a new directory, e.g. ~/lazarusdev/ * Set up secondary Lazarus Options/Paths, specifying FPC directory as ~/fpcdev/wherever... #3 is new. The link is not generated by make so you'll have to create it by yourself. #4 is slightly different. On Linux and MacOS fpc expects the fpc.cfg to be in the relative path "../etc/fpc.cfg"  (see https://linux.die.net/man/5/fpc.cfg). Hope this helps. Ingo From larrydalton71 at gmail.com Tue May 8 05:45:55 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Mon, 7 May 2018 23:45:55 -0400 Subject: [Lazarus] error code "Can't load default MySQL library("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation. Message-ID: computer=HP Desktop operating system Linux 17.2 Cinnamon 64 bit mysql-5.7.22-1 debian7 amd64 lazarus 1.8.2. help! how do I correct this? Larry Dalton -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuliano.colla at fastwebnet.it Tue May 8 13:46:15 2018 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Tue, 8 May 2018 13:46:15 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From joost at cnoc.nl Wed May 9 12:34:31 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Wed, 9 May 2018 12:34:31 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: Op 08-05-18 om 13:46 schreef Giuliano Colla via Lazarus: > E.G. you may have a full tree (fpc+Lazarus) in ~/development/ another > one in ~/production and a third one in ~/experiments. The main trick, as > far as fpc is concerned, is to have as fpc executable an fpc.sh (a name > which is accepted by Lazarus) which sets up whatever is needed. This is > a sample of fpc.sh: > >> #!/bin/sh # This script starts the fpc compiler installed by fpcup # >> and ignores any system-wide fpc.cfg files # Note: maintained by fpcup; >> do not edit directly, your edits will be lost. >> /home/colla/development/fpc/bin/x86_64-linux/fpc -n >> @/home/colla/development/fpc/bin/x86_64-linux/fpc.cfg "$@" That's more a hack then a solution, and the real solution is simple and also works outside Lazarus: place the fpc.cfg in ~/experiments/etc, ~/development/etc etc, as already suggested by Ingo. Or, even better, just alongside the compiler-executable. You can call 'fpc -va' to check which configuration file is used. See the documentation for more info: https://www.freepascal.org/docs-html/user/usersu10.html Regards, Joost. From jmlandmesser at gmx.de Wed May 9 12:44:11 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Wed, 9 May 2018 12:44:11 +0200 Subject: [Lazarus] Component Icons are gone with rev 57870 Message-ID: no component  icons anymore with Lazarus 1.9.0 r57870 FPC 3.0.4 i386-win32-win32/win64 Example ZeosLib, fpspreadsheet ... reverted to 57860 and all icons are back From lazarus at kluug.net Wed May 9 13:45:53 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 9 May 2018 13:45:53 +0200 Subject: [Lazarus] Component Icons are gone with rev 57870 In-Reply-To: References: Message-ID: On 09.05.2018 12:44, Landmesser John via Lazarus wrote: > no component  icons anymore with > > Lazarus 1.9.0 r57870 FPC 3.0.4 i386-win32-win32/win64 > > Example ZeosLib, fpspreadsheet ... > > reverted to 57860 and all icons are back > Fixed in r57871, if you mean "some component icons are not showing" and not "no components icons are showing". If you mean the latter, I cannot reproduce. Ondrej From markMLl.lazarus at telemetry.co.uk Wed May 9 13:48:44 2018 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Wed, 9 May 2018 11:48:44 +0000 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: On 09/05/18 10:45, Joost van der Sluis via Lazarus wrote: > Op 08-05-18 om 13:46 schreef Giuliano Colla via Lazarus:> E.G. you may > have a full tree (fpc+Lazarus) in ~/development/ another > one in > ~/production and a third one in ~/experiments. The main trick, as > far > as fpc is concerned, is to have as fpc executable an fpc.sh (a name > > which is accepted by Lazarus) which sets up whatever is needed. This is > > a sample of fpc.sh:> >> #!/bin/sh # This script starts the fpc > compiler installed by fpcup # >> and ignores any system-wide fpc.cfg > files # Note: maintained by fpcup; >> do not edit directly, your edits > will be lost. >> /home/colla/development/fpc/bin/x86_64-linux/fpc -n >> > @/home/colla/development/fpc/bin/x86_64-linux/fpc.cfg "$@" That's more a > hack then a solution, and the real solution is simple and also works > outside Lazarus: place the fpc.cfg in ~/experiments/etc, > ~/development/etc etc, as already suggested by Ingo. Or, even better, > just alongside the compiler-executable. You can call 'fpc -va' to check > which configuration file is used. > See the documentation for more info: On Linux and Solaris I have a /usr/local/bin/fpc.d directory containing multiple versions. In /usr/local/bin I basically have fpc fpc.d fpcres ppcx64 -> ppcx64-3.0.2 ppcx64-2.6.4 -> /usr/local/lib/fpc/2.6.4/ppcx64 ppcx64-3.0.0 -> /usr/local/lib/fpc/3.0.0/ppcx64 It works well except for building FPC itself when I have to modify the ppcx64 symlink, and there were problems with trunk at some point when it ignored instruction to install into e.g. fpc.d/2.7.1 -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From jmlandmesser at gmx.de Wed May 9 14:04:39 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Wed, 9 May 2018 14:04:39 +0200 Subject: [Lazarus] Component Icons are gone with rev 57870 In-Reply-To: References: Message-ID: <5e9dea62-08eb-8155-d109-005e04b93ef4@gmx.de> yes, fixed :-) ... you are right: some(!!) icons were missing! Am 09.05.2018 um 13:45 schrieb Ondrej Pokorny via Lazarus: > On 09.05.2018 12:44, Landmesser John via Lazarus wrote: >> no component  icons anymore with >> >> Lazarus 1.9.0 r57870 FPC 3.0.4 i386-win32-win32/win64 >> >> Example ZeosLib, fpspreadsheet ... >> >> reverted to 57860 and all icons are back >> > Fixed in r57871, if you mean "some component icons are not showing" > and not "no components icons are showing". If you mean the latter, I > cannot reproduce. > > Ondrej > From alfred at consulab.nl Thu May 10 08:24:47 2018 From: alfred at consulab.nl (Alfred) Date: Thu, 10 May 2018 06:24:47 +0000 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: ************************ That's more a hack then a solution, and the real solution is simple and also works outside Lazarus: place the fpc.cfg in ~/experiments/etc, ~/development/etc etc, as already suggested by Ingo. Or, even better, just alongside the compiler-executable. You can call 'fpc -va' to check which configuration file is used. ************************ Fpcup(deluxe) uses the fpc.sh - hack to prevent fpc from picking up a config that has not been generated by fpcup itself ! That is why the -n switch is used, in combination with @. Fpcup(deluxe) wants the FPC/Lazarus install to isolate itself in all cases. From giuliano.colla at fastwebnet.it Thu May 10 14:05:01 2018 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 10 May 2018 14:05:01 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: <11200246-4861-7b42-cad2-66b49f431c20@fastwebnet.it> Il 09/05/2018 12:34, Joost van der Sluis via Lazarus ha scritto: > That's more a hack then a solution I fail to grasp why startlazarus should be a feature, and fpc.sh should be a hack. Having multiple fpc.cfg files, as it may be required by multiple fpc installations requires invoking the compiler with the appropriate parameters. A script is just the most comfortable way to achieve this result. Launching an executable via another program or a script which sets up the appropriate environment according the user needs is a standard well established practice, since the dawn of Unix. Giuliano From joost at cnoc.nl Thu May 10 14:31:26 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 10 May 2018 14:31:26 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: <11200246-4861-7b42-cad2-66b49f431c20@fastwebnet.it> References: <11200246-4861-7b42-cad2-66b49f431c20@fastwebnet.it> Message-ID: Op 10-05-18 om 14:05 schreef Giuliano Colla via Lazarus: > Il 09/05/2018 12:34, Joost van der Sluis via Lazarus ha scritto: >> That's more a hack then a solution > > I fail to grasp why startlazarus should be a feature, and fpc.sh should > be a hack. Startlazarus is also a hack, because on Windows you can not overwrite an executable which is open and the design is kept consistent between OS'es. You can perfectly fine use just 'lazarus' on Linux, I never use 'startlazarus'. > Having multiple fpc.cfg files, as it may be required by multiple fpc > installations requires invoking the compiler with the appropriate > parameters. A script is just the most comfortable way to achieve this > result. This is not true. And it amazes me that people think that. I've never understood the use of scripts like 'fpcup'. Multiple fpc installations do not need any command-line parameters. Not at all. None. Believe me. Due to fpc's multi-platform nature the core developers have had multiple versions on their systems from the beginning. And then it is really annoying to have all kind of parameters to start the compiler. So there are several solutions for that build into fpc itself. One such feature is the 'fpc' binary, which calls the proper compiler 'ppcx64', 'ppc386' etc. Another feature is the system that checks for the proper configuration-files. But it is even possible to use one fpc.cfg configuration file for multiple fpc-versions. This is even the default-setup! Don't believe me? Take a look at the default fpc.cfg, it contains lines like: "Fu/usr/lib/fpc/$fpcversion/units/$fpctarget" Why do you think the $fpcversion and $fpctarget macros are there? Because it is impossible to keep two versions of fpc installed alongside each other? > Launching an executable via another program or a script which sets up > the appropriate environment according the user needs is a standard well > established practice, since the dawn of Unix. Oh, you may do so. But it is unnecessary and confusing in the fpc-case. Off-course you can configure Lazarus to use fpc.sh. But what do you do in a terminal? Wouldn't it be easier to just call 'fpc_304' and 'fpc_trunk'? Or /path/to/compiler/versiona/fpc and /path/to/compiler/versionb/fpc? Believe me when I say that most fpc-developers have really difficult setups, which a lot of different versions of fpc installed. And they do not use scripts like fpcup. They also don't type magically looking command lines. They use just the features already build into the compiler. Imho the only reason that people are using fpcup is because when they have a problem or question about how to setup fpc, people on the forum and mailinglist always come with the solution: use fpcup. Instead of explaining how they can set it up themselves. (On linux: Just install both the 3.0.4 and 3.0.2 rpm, and they will run nicely along each other.) Regards, Joost. From michael at freepascal.org Thu May 10 14:40:56 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 10 May 2018 14:40:56 +0200 (CEST) Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: <11200246-4861-7b42-cad2-66b49f431c20@fastwebnet.it> Message-ID: On Thu, 10 May 2018, Joost van der Sluis via Lazarus wrote: > > Oh, you may do so. But it is unnecessary and confusing in the fpc-case. > Off-course you can configure Lazarus to use fpc.sh. But what do you do > in a terminal? Wouldn't it be easier to just call 'fpc_304' and > 'fpc_trunk'? Or /path/to/compiler/versiona/fpc and > /path/to/compiler/versionb/fpc? > > Believe me when I say that most fpc-developers have really difficult > setups, which a lot of different versions of fpc installed. And they do > not use scripts like fpcup. They also don't type magically looking > command lines. They use just the features already build into the compiler. Indeed. I have 13 versions installed, dating back to version 2.0.0 No tricks needed. Michael. From b_lists at patandbrian.org Thu May 10 15:31:51 2018 From: b_lists at patandbrian.org (Brian) Date: Thu, 10 May 2018 09:31:51 -0400 Subject: [Lazarus] Sending e-mail from within Lazarus Message-ID: Does anybody have a working example of sending e-mail from a Lazarus program through their ISP's mail server (which requires SSL/TLS) that they'd be willing to share with me? I've been trying to follow Michael's writeup for using Synapse, I'm getting a timeout error from deep within the Synapse code, and I don't know whether it's something that I've screwed up or some kind of incompatibility with the mail server - my ISP, of course, will only tell me to use Outlook or similar. :( If I try to step through with the debugger, I get a socket error of 110. The version of Synapse I'm using is (I think) 40.1, at least it's the version downloaded via the online package manager. I'm using Lazarus 1.8.2 and FPC 3.0.4 as downloaded from SourceForge. Thanks. From robin.listas at telefonica.net Thu May 10 15:42:21 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Thu, 10 May 2018 15:42:21 +0200 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: Message-ID: On 2018-05-10 15:31, Brian via Lazarus wrote: > Does anybody have a working example of sending e-mail from a Lazarus > program through their ISP's mail server (which requires SSL/TLS) that > they'd be willing to share with me? I intend to code this soon, but I will simply call "mailx", an external program to do it. The classic method was to call the sendmail binary. I use Linux, you did not say what you use. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From hdv.jadev at gmail.com Thu May 10 16:01:32 2018 From: hdv.jadev at gmail.com (hdv@gmail) Date: Thu, 10 May 2018 16:01:32 +0200 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: Message-ID: On 2018-05-10 15:42, Carlos E. R. via Lazarus wrote: > On 2018-05-10 15:31, Brian via Lazarus wrote: >> Does anybody have a working example of sending e-mail from a Lazarus >> program through their ISP's mail server (which requires SSL/TLS) that >> they'd be willing to share with me? > > I intend to code this soon, but I will simply call "mailx", an external > program to do it. The classic method was to call the sendmail binary. > > I use Linux, you did not say what you use. In addition to Carlos' suggestion, and if you use Windows, you could use Blat [1] or even Powershell [2] to do this. It will not be "native", but it works. I used to use perl (I have been completely addicted to it for non-GUI stuff for decades now) or "The Bat!" in the past for this, but I don't know if "The Bat" still exists. [1] https://sourceforge.net/projects/blat/ [2] https://www.howtogeek.com/120011/stupid-geek-tricks-how-to-send-email-from-the-command-line-in-windows-without-extra-software/ Grx HdV From patspiper at gmail.com Thu May 10 16:35:47 2018 From: patspiper at gmail.com (patspiper) Date: Thu, 10 May 2018 17:35:47 +0300 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: On 07/05/18 17:54, Gabor Boros via Lazarus wrote: > My main development toolset is FPC 3.0.4 and Lazarus fixes_1_8. > Sometimes I try some things with Lazarus trunk also. It is easy. > But now build up a new development machine from scratch with RHEL 7.5 > on it and try to utilize FPC trunk too (with Lazarus trunk). I use > "--primary-config-path" option always, so Lazarus config placement is > not a problem. But the two FPC versions coexist. I found a solution > from 2012 on the forum (see the link below). Is BigChimp's suggestion > (1.-6.) a good starting point nowadays or something changed meanwhile > in this topic. I will build everything (Lazarus fixes_1_8 and trunk, > FPC trunk) from source except the actual stable FPC (now 3.0.4). Attached snapshot is work in progress Stephano -------------- next part -------------- A non-text attachment was scrubbed... Name: FPCversion.jpg Type: image/jpeg Size: 58712 bytes Desc: not available URL: From b_lists at patandbrian.org Thu May 10 16:50:18 2018 From: b_lists at patandbrian.org (Brian) Date: Thu, 10 May 2018 10:50:18 -0400 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: Message-ID: <4cbf05d7-45df-9993-1567-8d570cf83cf8@patandbrian.org> On 05/10/2018 09:42 AM, Carlos E. R. via Lazarus wrote: > On 2018-05-10 15:31, Brian via Lazarus wrote: >> Does anybody have a working example of sending e-mail from a Lazarus >> program through their ISP's mail server (which requires SSL/TLS) that >> they'd be willing to share with me? > > I intend to code this soon, but I will simply call "mailx", an external > program to do it. The classic method was to call the sendmail binary. > > I use Linux, you did not say what you use. > Ugh, sorry. 64-bit Ubuntu Studio 16, LTS. From dezlov at gmail.com Thu May 10 18:15:35 2018 From: dezlov at gmail.com (Denis Kozlov) Date: Thu, 10 May 2018 17:15:35 +0100 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: Message-ID: Try the latest trunk version of Synapse code: http://sourceforge.net/p/synalist/code/HEAD/tree/trunk/ You'll also need OpenSSL binaries: https://wiki.openssl.org/index.php/Binaries Here is a snippet of a working connection routine, although tested in Delphi only: ================================================ uses   // "ssl_openssl" unit is required to use SSL / TLS   mimemess, mimepart, synachar, ssl_openssl; type   TMailerSecurity = (     msNONE,     msSTARTTLS,     msSSLTLS   ); procedure TMailer.Connect(const AHost: String; APort: Integer;   ASecurity: TMailerSecurity; AAuthenticate: Boolean;   const AUsername, APassword: String); begin   SMTP := TSMTPSend.Create;   if AAuthenticate then   begin     SMTP.UserName := AUsername;     SMTP.Password := APassword;   end;   SMTP.TargetHost := AHost;   SMTP.TargetPort := IntToStr(APort);   SMTP.AutoTLS := (ASecurity = msSTARTTLS);   SMTP.FullSSL := (ASecurity = msSSLTLS);   SMTP.Timeout := 10000; // 10 seconds   if not SMTP.Login then     raise EMailer.CreateSMTP('SMTP.Login', SMTP);   if AAuthenticate then     if not SMTP.AuthDone then       raise EMailer.Create(sMailerNotAuthenticated); end; ================================================ Regards, Denis On 10/05/2018 14:31, Brian via Lazarus wrote: > Does anybody have a working example of sending e-mail from a Lazarus > program through their ISP's mail server (which requires SSL/TLS) that > they'd be willing to share with me? I've been trying to follow > Michael's writeup for using Synapse, I'm getting a timeout error from > deep within the Synapse code, and I don't know whether it's something > that I've screwed up or some kind of incompatibility with the mail > server - my ISP, of course, will only tell me to use Outlook or > similar. :( If I try to step through with the debugger, I get a socket > error of 110. The version of Synapse I'm using is (I think) 40.1, at > least it's the version downloaded via the online package manager. > > I'm using Lazarus 1.8.2 and FPC 3.0.4 as downloaded from SourceForge. > > Thanks. > From mailinglists at geldenhuys.co.uk Thu May 10 19:56:29 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 10 May 2018 18:56:29 +0100 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: Message-ID: <0fdb7d8c-cd41-818a-3a4e-f5810b2e68a6@geldenhuys.co.uk> On 2018-05-10 14:31, Brian via Lazarus wrote: > Does anybody have a working example of sending e-mail from a Lazarus > program through their ISP's mail server (which requires SSL/TLS) that I've been doing that for years, and have always used Indy components since my Delphi 4 days. Indy also has a ton of working examples, very simple to use components, and the support is fantastic (just like FPC and Lazarus). The extra good news is that there are tons of examples and solutions available with a quick internet search - even if those solutions are for Delphi, they apply exactly the same for FPC/Lazarus. The latest Indy code can be found here: https://svn.atozed.com:444/svn/Indy10/trunk ps: You don't have to install the Indy components into Lazarus, you can use them via code only without problems. That's what I do. Simply set your search paths, or compile the runtime lazarus packages and associate the indy package as a dependency of your project. A internet search _will_ give you your answer, but if you really are stuck, I have working example code I can share. My programs can sent emails via Gmail, Yahoo, Office365 or any other ISP. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From acardenas at bsd-peru.org Thu May 10 20:20:13 2018 From: acardenas at bsd-peru.org (=?UTF-8?Q?Alonso_C=C3=A1rdenas_M=C3=A1rquez?=) Date: Thu, 10 May 2018 13:20:13 -0500 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: Message-ID: 2018-05-10 8:31 GMT-05:00 Brian via Lazarus : > Does anybody have a working example of sending e-mail from a Lazarus > program through their ISP's mail server (which requires SSL/TLS) that > they'd be willing to share with me? I've been trying to follow > Michael's writeup for using Synapse, I'm getting a timeout error from > deep within the Synapse code, and I don't know whether it's something > that I've screwed up or some kind of incompatibility with the mail > server - my ISP, of course, will only tell me to use Outlook or > similar. :( If I try to step through with the debugger, I get a socket > error of 110. The version of Synapse I'm using is (I think) 40.1, at > least it's the version downloaded via the online package manager. > > I'm using Lazarus 1.8.2 and FPC 3.0.4 as downloaded from SourceForge. > > Thanks. > > -- > Hi Brian Try with the following: https://github.com/silvioprog/brookframework/tree/master/plugins/xmailer It is a great plugin for send email developed by Silvio. I use it to sending emails from different hosts with SSL/TLS. It uses synapse (Look at demo folder). Don't forget check if email ports are open for you by your ISP. You just need smtp ports (25, 587) to sending emails. Greetings ACM -------------- next part -------------- An HTML attachment was scrubbed... URL: From patspiper at gmail.com Thu May 10 16:33:42 2018 From: patspiper at gmail.com (patspiper) Date: Thu, 10 May 2018 17:33:42 +0300 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: On 07/05/18 17:54, Gabor Boros via Lazarus wrote: > My main development toolset is FPC 3.0.4 and Lazarus fixes_1_8. > Sometimes I try some things with Lazarus trunk also. It is easy. > But now build up a new development machine from scratch with RHEL 7.5 > on it and try to utilize FPC trunk too (with Lazarus trunk). I use > "--primary-config-path" option always, so Lazarus config placement is > not a problem. But the two FPC versions coexist. I found a solution > from 2012 on the forum (see the link below). Is BigChimp's suggestion > (1.-6.) a good starting point nowadays or something changed meanwhile > in this topic. I will build everything (Lazarus fixes_1_8 and trunk, > FPC trunk) from source except the actual stable FPC (now 3.0.4). Attached snapshot is work in progress Stephano -------------- next part -------------- A non-text attachment was scrubbed... Name: FPCversion.jpg Type: image/jpeg Size: 78274 bytes Desc: not available URL: From thierrybothorel at yahoo.fr Fri May 11 01:58:30 2018 From: thierrybothorel at yahoo.fr (Thierry B.) Date: Fri, 11 May 2018 01:58:30 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: <11200246-4861-7b42-cad2-66b49f431c20@fastwebnet.it> Message-ID: Le 10/05/2018 à 14:31, Joost van der Sluis via Lazarus a écrit : > Op 10-05-18 om 14:05 schreef Giuliano Colla via Lazarus: >> Il 09/05/2018 12:34, Joost van der Sluis via Lazarus ha scritto: >>> That's more a hack then a solution >> >> I fail to grasp why startlazarus should be a feature, and fpc.sh >> should be a hack. > > Startlazarus is also a hack, because on Windows you can not overwrite an > executable which is open and the design is kept consistent between OS'es. > > You can perfectly fine use just 'lazarus' on Linux, I never use > 'startlazarus'. > >> Having multiple fpc.cfg files, as it may be required by multiple fpc >> installations requires invoking the compiler with the appropriate >> parameters. A script is just the most comfortable way to achieve this >> result. > Here is the script I use since several years, that maintain 2 or 3 freepascal/lazarus sets and cross compile from linux to win32 (i don't need more). I didn't wrote it, guess I grabbed it from "buildfaq" documentation and added modified it thereafter. I have to removed hard coded paths inside but since I had not changes setup for 10 years, it works! And only one ~/.fpc.cfg https://pastebin.com/eMsq5JLD TB From info at kovacsoltvideo.hu Fri May 11 07:37:27 2018 From: info at kovacsoltvideo.hu (=?UTF-8?B?S292w6FjcyBMw6FzemzDsw==?=) Date: Fri, 11 May 2018 07:37:27 +0200 Subject: [Lazarus] =?utf-8?b?bcOpZyBlZ3kgcHLDs2Jh?= Message-ID: <5AF52C17.1090701@kovacsoltvideo.hu> újabb teszt From info at kovacsoltvideo.hu Fri May 11 07:41:47 2018 From: info at kovacsoltvideo.hu (=?UTF-8?B?S292w6FjcyBMw6FzemzDsw==?=) Date: Fri, 11 May 2018 07:41:47 +0200 Subject: [Lazarus] =?utf-8?b?bcOpZyBlZ3kgcHLDs2Jh?= In-Reply-To: <5AF52C17.1090701@kovacsoltvideo.hu> References: <5AF52C17.1090701@kovacsoltvideo.hu> Message-ID: <5AF52D1B.70909@kovacsoltvideo.hu> Hi, Sorry for that. Setting up and testing mailman based list, mistyped the list address. (Actually acctepted the wrong suggestion from TB) Regards K.L. 2018-05-11 07:37 keltezéssel, Kovács László via Lazarus írta: > újabb teszt From svaa at ciberpiula.net Fri May 11 11:36:51 2018 From: svaa at ciberpiula.net (Santiago A.) Date: Fri, 11 May 2018 11:36:51 +0200 Subject: [Lazarus] Runtime error: INCLOCKED (BUG) In-Reply-To: <20180429193838.EEACB7EE@atlas.cz> References: <20180429193838.EEACB7EE@atlas.cz> Message-ID: El 29/04/2018 a las 19:38, Vojtěch Čihák via Lazarus escribió: > > Hi, > >   > > I changed line 7: > >   > > TElement = record > >       strr: String; > >   end; > >   TList = array[0..1] of TElement;  //HERE > >   Plist = ^TList;    > >   > > and demo works. Simply, static and dynamic arrays are not the same. > > AFAIR, dynamic array is just pointer while static array are data. > > I guess someone else will give you more detailed answer. > Yes, but I think that it should be considered a FPC bug   TList = array of TElement;   Plist = ^TList;   TSetting = record       list: Plist;   end; const   _List: array [0..1] of TElement = (       (strr: 'a'),       (strr: 'b'));   _Settings: array [0..0] of TSetting = (        (list: @_List)); //  <=== This line should rise a compiler error. You are asigning a pointer to an static array to a pointer to a dynamic array. ------------------- You could add a type cast of the pointer to Plist   _Settings: array [0..0] of TSetting = (        (list: Plist(@_List) )); You explicitly tell the complier to bypass type check, it is up to deal with this potential dangerous >   > > V. > > ______________________________________________________________ > > Od: Valdas Jankūnas via Lazarus > > Komu: Lazarus at lists.lazarus-ide.org > > Datum: 29.04.2018 18:16 > > Předmět: [Lazarus] Runtime error: INCLOCKED > > > > > type >   TElement = record >       strr: String; >   end; >   TList = array of TElement; >   Plist = ^TList; > ..... > > Why I getting that error? Something wrong with records and constant > initialization? > > My system is: Linux 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 > 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux > FPC (from SVN): 3.1.1 [2018/02/21] for x86_64 > -- >   Valdas Jankūnas > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > > -- Saludos Santiago A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joost at cnoc.nl Fri May 11 15:17:45 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Fri, 11 May 2018 15:17:45 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: Message-ID: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: > > Attached snapshot is work in progress Sorry, but I don't think this is an improvement. For new users this looks like a nightmare. It should be hidden, at least, imho. Or better: make it a plugin. Regards, Joost. From nc-gaertnma at netcologne.de Fri May 11 15:26:52 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 11 May 2018 15:26:52 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> Message-ID: <20180511152652.5265fffd@limapholos.matflo.wg> On Fri, 11 May 2018 15:17:45 +0200 Joost van der Sluis via Lazarus wrote: > On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: > > > > Attached snapshot is work in progress > > Sorry, but I don't think this is an improvement. For new users this > looks like a nightmare. It should be hidden, at least, imho. Or better: > make it a plugin. This is a plugin. Mattias From joost at cnoc.nl Fri May 11 15:38:32 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Fri, 11 May 2018 15:38:32 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: <20180511152652.5265fffd@limapholos.matflo.wg> References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> <20180511152652.5265fffd@limapholos.matflo.wg> Message-ID: <22e1ad0f-13d9-8adc-bf2c-859cd079924b@cnoc.nl> On 05/11/2018 03:26 PM, Mattias Gaertner via Lazarus wrote: >>> Attached snapshot is work in progress >> Sorry, but I don't think this is an improvement. For new users this >> looks like a nightmare. It should be hidden, at least, imho. Or better: >> make it a plugin. > This is a plugin. In that case: nothing said. Nice work! ;) Joost. From patspiper at gmail.com Fri May 11 15:40:28 2018 From: patspiper at gmail.com (patspiper) Date: Fri, 11 May 2018 16:40:28 +0300 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> Message-ID: <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> On 11/05/18 16:17, Joost van der Sluis via Lazarus wrote: > On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: >> >> Attached snapshot is work in progress > > Sorry, but I don't think this is an improvement. For new users this > looks like a nightmare. It should be hidden, at least, imho. Or > better: make it a plugin. As Mattias has pointed out, it is a plugin (IDE package), and definitely not for the faint of heart. Once one creates a standardized folder hierarchy for the different fpc versions, it becomes a matter of a few clicks to switch versions. Stephano From Special at Joepgen.com Fri May 11 20:30:04 2018 From: Special at Joepgen.com (Joe) Date: Fri, 11 May 2018 20:30:04 +0200 Subject: [Lazarus] Lazarus still not usable with VNC under Raspbian In-Reply-To: <9a914a90-f020-6d10-e519-3cf2eb02fee0@Joepgen.com> References: <1d2b3e5f-7781-7436-5a64-95a0eb49a0d9@Joepgen.com> <20180429084329.6ce8a81c@limapholos.matflo.wg> <9a914a90-f020-6d10-e519-3cf2eb02fee0@Joepgen.com> Message-ID: As tested, with revision 57898, the AltGr problem under Raspbian is fixed now. Thank you, Mattias and Ondrej. --  Joe From donald at ziesig.org Sat May 12 00:40:52 2018 From: donald at ziesig.org (Donald Ziesig) Date: Fri, 11 May 2018 18:40:52 -0400 Subject: [Lazarus] Restart Lazarus after rebuild crashes Message-ID: <878d3524-8edb-eec4-0ed8-f8ed36fe3eb7@ziesig.org> Hi All! Brand new Laptop :-). Clean installation of Linux Mint 18.3.:-) New download of Lazarus.  Version 18.2, Date 2018=-05-10, FPC 3.0, x86_64-linux-gtk2 8-). Added simple component, interface section and mostly stubbed methods (only Create and Destroy have code).  After Lazarus successfully installs the component (rebuilding), the IDE crashes when trying to restart with the following: Hint: (lazarus) TMainIDE.DoRestart WARNING: TMenuItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event? WARNING: TToolBar.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event? TApplication.HandleException Access violation   Stack trace:   $0000000000000000   $000000000060C5CE line 69 of include/toolbutton.inc   $000000000060C550 line 116 of include/toolbutton.inc   $000000000059876A line 2292 of include/control.inc   $0000000000598C37 line 2430 of include/control.inc   $000000000043281F   $0000000000596C38 line 1571 of include/control.inc   $000000000058956B line 4735 of include/wincontrol.inc   $000000000058AC51 line 5362 of include/wincontrol.inc   $0000000000756032 line 112 of lclmessageglue.pas   $0000000000657825 line 3702 of gtk2proc.inc   $0000000000666F6D line 2194 of gtk2callback.inc   $00000000006665D8 line 1949 of gtk2callback.inc   $00007FB43DD42AEC Exception at 0000000000000000: EAccessViolation: Access violation. (lazarus:28802): GLib-GObject-CRITICAL **: g_object_get_data: assertion 'G_IS_OBJECT (object)' failed TApplication.HandleException Access violation   Stack trace:   $0000000000432718   $0000000000666644 line 1964 of gtk2callback.inc   $00007FB43DD42AEC Exception at 0000000000432718: EAccessViolation: Access violation. LAZARUS END - cleaning up ... [FORMS.PP] ExceptionOccurred   Sender=EAccessViolation   Exception=Access violation   Stack trace:   $00007FB43D9DE820 TApplication.HandleException Access violation   Stack trace:   $00007FB43D9DE820 Exception at 00007FB43D9DE820: EAccessViolation: Access violation. The offending line is:     pt := ScreenToClient(Mouse.CursorPos); and based on the stacktrace I would beleive that Mouse.CursorPos is nil!  I then added: if not Assigned(Mouse) then exit; This moved the location of the Access Violation, confirming that Mouse is indeed nil.  At that point I figured that I should report this and leave further debugging to the experts.:-[ ~/.lazarus/bin/lazarus and ~./lazarus/bin/lazarus.old both have the correct timestamps. I saw this before on my old machine, but at that point I had installed a large library of components and I thought that maybe I had caused the problem.  This time I have a new, up-to-date installation which crashed the first time I added a trivial component and rebuild the IDE. I will try to submit a bug report, but trying to replicate for the report may be a step too far. Thanks, Don Ziesig From mailinglists at geldenhuys.co.uk Sat May 12 02:18:31 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 12 May 2018 01:18:31 +0100 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: References: <0fdb7d8c-cd41-818a-3a4e-f5810b2e68a6@geldenhuys.co.uk> Message-ID: <2bf23d52-71f3-3650-2d2b-6962230b54c8@geldenhuys.co.uk> On 2018-05-11 01:12, brian wrote: > I omitted to put in my original post that I'm running 64-bit Ubuntu > Studio. All the Indy examples I've been able to find seem to require > Windows DLLs to implement SSL/TLS. It works just fine under Windows, Linux and FreeBSD too. I've testing them all. On Linux and Windows it uses the OpenSSL libraries - which normally comes standard with the system. To save you some trouble, I've attached a fully working console demo. Edit the config.ini to match your details. Also edit the SMTP host name inside the program unit. Sending emails via Gmail requires a extra step - you need to log into your Gmail with a Web Browser and under security settings, authenticate the "unknown device". When the console app gives an error on the first run, it will output URL you can use to get to that settings page (thanks Google). The "IndySecureMailClient.pas" implements a wrapper class for Indy's SMTP and SSL handling making it super easy to use. The wrapper class in fact adds all Indy's abilities of encryption for convenience. Indy rocks!!! I hope that helps. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -------------- next part -------------- A non-text attachment was scrubbed... Name: indy_SecureEmail.7z Type: application/x-7z-compressed Size: 2983 bytes Desc: not available URL: From b_lists at patandbrian.org Sat May 12 03:41:44 2018 From: b_lists at patandbrian.org (Brian) Date: Fri, 11 May 2018 21:41:44 -0400 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: <2bf23d52-71f3-3650-2d2b-6962230b54c8@geldenhuys.co.uk> References: <0fdb7d8c-cd41-818a-3a4e-f5810b2e68a6@geldenhuys.co.uk> <2bf23d52-71f3-3650-2d2b-6962230b54c8@geldenhuys.co.uk> Message-ID: On 05/11/2018 08:18 PM, Graeme Geldenhuys via Lazarus wrote: > On 2018-05-11 01:12, brian wrote: >> I omitted to put in my original post that I'm running 64-bit Ubuntu >> Studio. All the Indy examples I've been able to find seem to require >> Windows DLLs to implement SSL/TLS. > > It works just fine under Windows, Linux and FreeBSD too. I've testing > them all. On Linux and Windows it uses the OpenSSL libraries - which > normally comes standard with the system. > > To save you some trouble, I've attached a fully working console demo. > Edit the config.ini to match your details. Also edit the SMTP host name > inside the program unit. Sending emails via Gmail requires a extra step > - you need to log into your Gmail with a Web Browser and under security > settings, authenticate the "unknown device". When the console app gives > an error on the first run, it will output URL you can use to get to that > settings page (thanks Google). > > The "IndySecureMailClient.pas" implements a wrapper class for Indy's > SMTP and SSL handling making it super easy to use. The wrapper class in > fact adds all Indy's abilities of encryption for convenience. Indy rocks!!! > > I hope that helps. > Thank you. I'll take a close look at it all over the weekend. I much prefer this sort of solution to trying to call one of the Linux 'mail from command line' utilities. Brian. From bo.berglund at gmail.com Sat May 12 07:33:15 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 12 May 2018 07:33:15 +0200 Subject: [Lazarus] Sending e-mail from within Lazarus References: <0fdb7d8c-cd41-818a-3a4e-f5810b2e68a6@geldenhuys.co.uk> <2bf23d52-71f3-3650-2d2b-6962230b54c8@geldenhuys.co.uk> Message-ID: <4sucfdtrkqv8m907r3tlnfii9m4dir4p6e@4ax.com> On Sat, 12 May 2018 01:18:31 +0100, Graeme Geldenhuys via Lazarus wrote: >Indy rocks!!! +1 And additionally the support available at the Indy forum is very good! https://www.atozed.com/forums/forumdisplay.php?fid=9 If you ask sensible questions you *will* get help there! Note that the old atozed forum was taken down on technical reasons a while ago and the old posts there are not yet available for browsing. Apparently they are working on a way to restore the old database. -- Bo Berglund Developer in Sweden From mail at michael-ring.org Sat May 12 10:34:00 2018 From: mail at michael-ring.org (Michael Ring) Date: Sat, 12 May 2018 10:34:00 +0200 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> Message-ID: Do you have plans to make it possible to switch debuggers in the same plugin, too? This would be very helpful for embedded targets, it is always a pain to reconfigure gdb when switching between an embedded and a native target. Could it also be possible to make this plugin project based? Looks very promising, Michael Am 11.05.18 um 15:40 schrieb patspiper via Lazarus: > On 11/05/18 16:17, Joost van der Sluis via Lazarus wrote: >> On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: >>> >>> Attached snapshot is work in progress >> >> Sorry, but I don't think this is an improvement. For new users this >> looks like a nightmare. It should be hidden, at least, imho. Or >> better: make it a plugin. > > As Mattias has pointed out, it is a plugin (IDE package), and > definitely not for the faint of heart. > > Once one creates a standardized folder hierarchy for the different fpc > versions, it becomes a matter of a few clicks to switch versions. > > Stephano From Special at Joepgen.com Sat May 12 11:31:31 2018 From: Special at Joepgen.com (Joe) Date: Sat, 12 May 2018 11:31:31 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 Message-ID: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> I added a note to this issue saying it is resolved now. But now i don't know, how is the Status of the issue changed? Who changes it? -- Joe From michael at freepascal.org Sat May 12 11:39:57 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 12 May 2018 11:39:57 +0200 (CEST) Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> Message-ID: On Sat, 12 May 2018, Joe via Lazarus wrote: > I added a note to this issue saying it is resolved now. > But now i don't know, how is the Status of the issue changed? Who > changes it? It is currently not assigned to anyone, but maybe after this mail one of the lazarus devels will look at it to set it on fixed. Michael. From nc-gaertnma at netcologne.de Sat May 12 11:46:04 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 12 May 2018 11:46:04 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> Message-ID: <20180512114604.3e865f4c@limapholos.matflo.wg> On Sat, 12 May 2018 11:31:31 +0200 Joe via Lazarus wrote: > I added a note to this issue saying it is resolved now. Do you know which revision fixed the issue? Mattias From nc-gaertnma at netcologne.de Sat May 12 11:53:30 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 12 May 2018 11:53:30 +0200 Subject: [Lazarus] Restart Lazarus after rebuild crashes In-Reply-To: <878d3524-8edb-eec4-0ed8-f8ed36fe3eb7@ziesig.org> References: <878d3524-8edb-eec4-0ed8-f8ed36fe3eb7@ziesig.org> Message-ID: <20180512115330.4a9955bf@limapholos.matflo.wg> On Fri, 11 May 2018 18:40:52 -0400 Donald Ziesig via Lazarus wrote: > Hi All! > > Brand new Laptop :-). Clean installation of Linux Mint 18.3.:-) New > download of Lazarus.  Version 18.2, Date 2018=-05-10, FPC 3.0, > x86_64-linux-gtk2 8-). > > Added simple component, interface section and mostly stubbed methods > (only Create and Destroy have code).  After Lazarus successfully > installs the component (rebuilding), the IDE crashes when trying to > restart with the following: Do you restart the IDE via File / Restart, or automatically when installing the component. How did you install the component? Click in the package editor or via the Package / Install package dialog? Mattias From Special at Joepgen.com Sat May 12 12:04:32 2018 From: Special at Joepgen.com (Joe) Date: Sat, 12 May 2018 12:04:32 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: <20180512114604.3e865f4c@limapholos.matflo.wg> References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> <20180512114604.3e865f4c@limapholos.matflo.wg> Message-ID: Am 12.05.2018 um 11:46 schrieb Mattias Gaertner via Lazarus: > On Sat, 12 May 2018 11:31:31 +0200 > Joe via Lazarus wrote: > >> I added a note to this issue saying it is resolved now. > Do you know which revision fixed the issue? > > Mattias I tested with 57898, but i think, Ondrej already had fixed it one version earlier. Test was done on a Pi 3B+ with FPC 3.0.4 under Raspbian Stretch, Version 2018-04-18. -- Joe From nc-gaertnma at netcologne.de Sat May 12 12:09:01 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 12 May 2018 12:09:01 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> <20180512114604.3e865f4c@limapholos.matflo.wg> Message-ID: <20180512120901.60933710@limapholos.matflo.wg> On Sat, 12 May 2018 12:04:32 +0200 Joe via Lazarus wrote: > Am 12.05.2018 um 11:46 schrieb Mattias Gaertner via Lazarus: > > On Sat, 12 May 2018 11:31:31 +0200 > > Joe via Lazarus wrote: > > > >> I added a note to this issue saying it is resolved now. > > Do you know which revision fixed the issue? > > > > Mattias > I tested with 57898, but i think, Ondrej already had fixed it one > version earlier. I doubt that 57897 or 8 fixes the issue. > Test was done on a Pi 3B+ with FPC 3.0.4 under Raspbian Stretch, Version > 2018-04-18. > -- Joe Mattias From lazarus at kluug.net Sat May 12 12:16:34 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sat, 12 May 2018 12:16:34 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: <20180512120901.60933710@limapholos.matflo.wg> References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> <20180512114604.3e865f4c@limapholos.matflo.wg> <20180512120901.60933710@limapholos.matflo.wg> Message-ID: On 12.05.2018 12:09, Mattias Gaertner via Lazarus wrote: > On Sat, 12 May 2018 12:04:32 +0200 > Joe via Lazarus wrote: > >> Am 12.05.2018 um 11:46 schrieb Mattias Gaertner via Lazarus: >> I tested with 57898, but i think, Ondrej already had fixed it one >> version earlier. > I doubt that 57897 or 8 fixes the issue. I didn't fix this. Mattias, maybe it was your r57838? Ondrej From mailinglists at geldenhuys.co.uk Sat May 12 12:41:34 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sat, 12 May 2018 11:41:34 +0100 Subject: [Lazarus] Sending e-mail from within Lazarus In-Reply-To: <4sucfdtrkqv8m907r3tlnfii9m4dir4p6e@4ax.com> References: <0fdb7d8c-cd41-818a-3a4e-f5810b2e68a6@geldenhuys.co.uk> <2bf23d52-71f3-3650-2d2b-6962230b54c8@geldenhuys.co.uk> <4sucfdtrkqv8m907r3tlnfii9m4dir4p6e@4ax.com> Message-ID: <60915f75-8400-6819-183e-5d651a880682@geldenhuys.co.uk> On 2018-05-12 06:33, Bo Berglund via Lazarus wrote: > Note that the old atozed forum was taken down on technical reasons a > while ago and the old posts there are not yet available for browsing. > Apparently they are working on a way to restore the old database. I've always connected to their NNTP newsgroup servers at: news.atozed.com Clearly that was not affected by the web forums. All old and new posts are still there - and available to be searched. Lots of useful information too. Whenever I posted questions there, I got answers the same day or in 1 day. Very good support. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From Special at Joepgen.com Sat May 12 13:29:51 2018 From: Special at Joepgen.com (Joe) Date: Sat, 12 May 2018 13:29:51 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> <20180512114604.3e865f4c@limapholos.matflo.wg> <20180512120901.60933710@limapholos.matflo.wg> Message-ID: <05b2fbb2-9f0e-35f2-628f-d0612d98ea3c@Joepgen.com> Am 12.05.2018 um 12:16 schrieb Ondrej Pokorny via Lazarus: > On 12.05.2018 12:09, Mattias Gaertner via Lazarus wrote: >> On Sat, 12 May 2018 12:04:32 +0200 >> Joe via Lazarus wrote: >> >>> Am 12.05.2018 um 11:46 schrieb Mattias Gaertner via Lazarus: >>> I tested with 57898, but i think, Ondrej already had fixed it one >>> version earlier. >> I doubt that 57897 or 8 fixes the issue. > > I didn't fix this. Mattias, maybe it was your r57838? > > Ondrej From the svn log: 'r57897 |ondrej | 2018-05-11 16:29: ... SynEdit: remove special smart selection jumping, use the normal instead' Now in Raspian Stretch on Pi computers, the AltGr+ key combinations work for us in TSynEdit and in the code editor. Joe From robin.listas at telefonica.net Sat May 12 15:07:30 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Sat, 12 May 2018 15:07:30 +0200 Subject: [Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus? Message-ID: <40b3eeb0-90c1-0292-8f7f-c3d3cd399282@telefonica.net> Hi, a program of mine crashed with: Exception at 0000000000401B4A: EAccessViolation: Access violation. Is it possible to find the location line of that address? Very long ago, with turbopascal, it was possible to type the address of the fault in a box in the compiler, which would build again the source and stop at the exact location. I do not see similar thing in Lazarus. Did I miss it? I know where it happened, more or less, from the messages on screen and syslog. Maybe someone here can see the problem in the code. procedure TMyApplication.DoRebootRouter; {See for the doc on calling a program and getting its output.} const BUF_SIZE = 2048; // Buffer size for reading the output in chunks var AProcess : TProcess; OutputStream : TStream; BytesRead : longint; Buffer : array[1..BUF_SIZE] of byte; ExitCode, ExitStatus : Integer; begin LastRouterRebootTimestamp:= Now; inc(RebootTimes); ExitCode := -1; AProcess := TProcess.Create(nil); try AProcess.Executable := '/usr/local/bin/egctl'; AProcess.Parameters.Add('Regleta'); AProcess.Parameters.Add('off'); AProcess.Parameters.Add('off'); AProcess.Parameters.Add('off'); AProcess.Parameters.Add('off'); AProcess.Execute; <==== this does execute. OutputStream := TMemoryStream.Create; repeat BytesRead := AProcess.Output.Read(Buffer, BUF_SIZE); OutputStream.Write(Buffer, BytesRead) until BytesRead = 0; ExitCode:= AProcess.ExitStatus; ExitStatus:= AProcess.ExitStatus finally AProcess.Free; end; syslog(log_info, 'Called %s, got EC: %d ED: %d'#10, ['egctl', ExitCode, ExitStatus]); <==== this part doesn't execute. Writeln('Got exitcode ', AProcess.ExitCode, ' ExitStatus: ', AProcess.ExitStatus); The external program runs fine. The screen output was: Last sucessfull ping was more than 60 seconds ago, rebooting the router. Exception at 0000000000401B4A: EAccessViolation: Access violation. socket 1 - off <=== child program socket 2 - off socket 3 - off socket 4 - off Syslog entries are these: <16.6> 2018-05-12T07:25:18.455969+02:00 Isengard WatchDog - - - WatchDog MARK! Status: Router 1 (F/T 0/48) Google 1 (F/T 0/8) Rebooting 0 Reboots 0 <16.6> 2018-05-12T07:47:20.514116+02:00 Isengard WatchDog - - - Last sucessfull ping was more than 60 seconds ago, rebooting the router. <16.6> 2018-05-12T07:47:20.515184+02:00 Isengard WatchDog - - - Ending The second line indicates that the procedure shown above is called. The third line comes from here: destructor TMyApplication.Destroy; begin ping.Free; syslog(log_info,'Ending',[1234]); closelog; inherited Destroy; end; Ideas? -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From orbana at orbel.hu Sat May 12 18:35:20 2018 From: orbana at orbel.hu (=?UTF-8?B?T3Jiw6FuIMOBcnDDoWQ=?=) Date: Sat, 12 May 2018 18:35:20 +0200 Subject: [Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus? In-Reply-To: <40b3eeb0-90c1-0292-8f7f-c3d3cd399282@telefonica.net> References: <40b3eeb0-90c1-0292-8f7f-c3d3cd399282@telefonica.net> Message-ID: <5c2cb8a6-c66a-e5a3-918d-5db4068f6bfd@orbel.hu> Hi Carlos, Try add poUsePipes to TProcess.Options: > AProcess := TProcess.Create(nil); > try > AProcess.Executable := '/usr/local/bin/egctl'; > AProcess.Parameters.Add('Regleta'); > AProcess.Parameters.Add('off'); > AProcess.Parameters.Add('off'); > AProcess.Parameters.Add('off'); > AProcess.Parameters.Add('off'); AProcess.Options := AProcess.Options + [poUsePipes]; > > AProcess.Execute; Regards, Arpad From larrydalton71 at gmail.com Sat May 12 19:28:58 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Sat, 12 May 2018 13:28:58 -0400 Subject: [Lazarus] errno 13 permission denied Message-ID: It am running lazarus 1.8.2 on linux 17.2, and trying to connect to mysql 5.7. I have a database named 'boa', with 5 columns, the first named 'mycheck'; I am using a TMySql57Connection, named boaconnection with the following settings: Databasename=boa; HostName=localhost KeepConnection=false LoginPrompt=false Transaction=boatransaction UserName=root, A TSqlTransaction named boatransaction Database named boaconnection A TDatasource with DataSet set to BoaQuery A TSqlQuery named boaquery with the following settings Database=boaconnection Transaction=boatransaction SQL='Select * from Checking When I try to set boaquery.active to 'true' I get the following error code: BoaConnection: Error executing query: Can't find file: './boa/checking.frm' (errno: 13-Permission denied). When I leave boaquery.active set to 'false', and run the program, when I try to open the table, I get: Project MoneProject raised exception class 'ESQLDatabaseError' with message: BoaConnection:Error executing query: Can't read dir of './boa/' (errno:13-Permission denied) How can I correct these errors? -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Sat May 12 19:32:25 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Sat, 12 May 2018 13:32:25 -0400 Subject: [Lazarus] errno 13 permission denied In-Reply-To: References: Message-ID: I need to correct my original statement: the column name is 'checking', not 'mycheck' On Sat, May 12, 2018 at 1:28 PM, Larry Dalton wrote: > It am running lazarus 1.8.2 on linux 17.2, and trying to connect to mysql > 5.7. > I have a database named 'boa', with 5 columns, the first named 'mycheck'; > > I am using a TMySql57Connection, named boaconnection with the following > settings: > Databasename=boa; > HostName=localhost > KeepConnection=false > LoginPrompt=false > Transaction=boatransaction > UserName=root, > > A TSqlTransaction named boatransaction > Database named boaconnection > > A TDatasource with DataSet set to BoaQuery > > A TSqlQuery named boaquery with the following settings > Database=boaconnection > Transaction=boatransaction > SQL='Select * from Checking > > When I try to set boaquery.active to 'true' I get the following error code: > BoaConnection: Error executing query: Can't find file: > './boa/checking.frm' (errno: 13-Permission denied). > > When I leave boaquery.active set to 'false', and run the program, when I > try to open the table, I get: > Project MoneProject raised exception class 'ESQLDatabaseError' with > message: > BoaConnection:Error executing query: Can't read dir of './boa/' > (errno:13-Permission denied) > > How can I correct these errors? > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.listas at telefonica.net Sat May 12 20:04:45 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Sat, 12 May 2018 20:04:45 +0200 Subject: [Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus? In-Reply-To: <5c2cb8a6-c66a-e5a3-918d-5db4068f6bfd@orbel.hu> References: <40b3eeb0-90c1-0292-8f7f-c3d3cd399282@telefonica.net> <5c2cb8a6-c66a-e5a3-918d-5db4068f6bfd@orbel.hu> Message-ID: <1d8d3882-5f4d-b274-6a61-5dafa3a658b1@telefonica.net> On 2018-05-12 18:35, Orbán Árpád via Lazarus wrote: > Hi Carlos, > > Try add poUsePipes to TProcess.Options: > >>  AProcess := TProcess.Create(nil); >>     try >>        AProcess.Executable := '/usr/local/bin/egctl'; >>        AProcess.Parameters.Add('Regleta'); >>        AProcess.Parameters.Add('off'); >>        AProcess.Parameters.Add('off'); >>        AProcess.Parameters.Add('off'); >>        AProcess.Parameters.Add('off'); > >         AProcess.Options := AProcess.Options + [poUsePipes]; > >> >>        AProcess.Execute; Ah. Thanks. I had commented that out by mistake. Actual code was: {$ifDEF Dummy} AProcess.Parameters.Add('Regleta'); AProcess.Options := [poWaitOnExit, poUsePipes]; {$else} AProcess.Parameters.Add('Regleta'); AProcess.Parameters.Add('off'); AProcess.Parameters.Add('off'); AProcess.Parameters.Add('off'); AProcess.Parameters.Add('off'); {$endIf} And "Dummy" was not defined. Although the child is not using pipes :-? -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From Special at Joepgen.com Sat May 12 21:13:40 2018 From: Special at Joepgen.com (Joe) Date: Sat, 12 May 2018 21:13:40 +0200 Subject: [Lazarus] Lazarus Bugtracker/Issue 30544 In-Reply-To: <20180512120901.60933710@limapholos.matflo.wg> References: <6f3993c7-428a-1275-4600-d671da7110af@Joepgen.com> <20180512114604.3e865f4c@limapholos.matflo.wg> <20180512120901.60933710@limapholos.matflo.wg> Message-ID: <540ec914-0ba2-b802-dcc1-9fa88d8333ac@Joepgen.com> Am 12.05.2018 um 12:09 schrieb Mattias Gaertner via Lazarus: > I doubt that 57897 or 8 fixes the issue. Seems you are right. After many hours successful testing on several Pis  the error suddenly reappeared when I went back to a former project in Lazarus 1.9 SVN-Revision 57898. Reason unknown. Joe From patspiper at gmail.com Sat May 12 21:28:30 2018 From: patspiper at gmail.com (patspiper) Date: Sat, 12 May 2018 22:28:30 +0300 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> Message-ID: On 12/05/18 11:34, Michael Ring via Lazarus wrote: > Do you have plans to make it possible to switch debuggers in the same > plugin, too? No, as switching debuggers is already possible in the debugging section. > > This would be very helpful for embedded targets, it is always a pain > to reconfigure gdb when switching between an embedded and a native > target. > > Could it also be possible to make this plugin project based? I see now why you asked about debugger switching :) This feat could be tackled once the plugin is finalized. > Looks very promising, > Currently a couple of the options (such as fpc debug units) have not been implemented yet, but the basic features work like a charm. Stephano > Am 11.05.18 um 15:40 schrieb patspiper via Lazarus: >> On 11/05/18 16:17, Joost van der Sluis via Lazarus wrote: >>> On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: >>>> >>>> Attached snapshot is work in progress >>> >>> Sorry, but I don't think this is an improvement. For new users this >>> looks like a nightmare. It should be hidden, at least, imho. Or >>> better: make it a plugin. >> >> As Mattias has pointed out, it is a plugin (IDE package), and >> definitely not for the faint of heart. >> >> Once one creates a standardized folder hierarchy for the different >> fpc versions, it becomes a matter of a few clicks to switch versions. >> >> Stephano > From jesusrmx at gmail.com Sat May 12 22:55:51 2018 From: jesusrmx at gmail.com (Jesus Reyes A.) Date: Sat, 12 May 2018 15:55:51 -0500 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> Message-ID: En Fri, 11 May 2018 08:40:28 -0500, patspiper via Lazarus escribió: > On 11/05/18 16:17, Joost van der Sluis via Lazarus wrote: >> On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: >>> >>> Attached snapshot is work in progress >> >> Sorry, but I don't think this is an improvement. For new users this >> looks like a nightmare. It should be hidden, at least, imho. Or better: >> make it a plugin. > > As Mattias has pointed out, it is a plugin (IDE package), and definitely > not for the faint of heart. > > Once one creates a standardized folder hierarchy for the different fpc > versions, it becomes a matter of a few clicks to switch versions. > > Stephano An easy way to switch the compiler is nice, but I think that it would be nicer if it could be organized in compiler profiles so you can have compilers with the same version but with or without debug info or compiled with different options. Then a compiler profile could be specified/selected by build mode so it could be stored in the session or the project file. :) Jesus Reyes A. From sysrpl at gmail.com Sun May 13 04:50:18 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Sat, 12 May 2018 22:50:18 -0400 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> Message-ID: I am not sure if this will help, but I place this script as "setup" in any fpc directory: #!/bin/bash if [ -z ${OLDPATH+x} ]; then OLDPATH=$PATH else PATH=$OLDPATH fi BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export PPC_CONFIG_PATH=$BASE/bin rm $PPC_CONFIG_PATH/fpc.cfg > /dev/null 2>&1 $PPC_CONFIG_PATH/fpcmkcfg -d basepath=$BASE/lib/fpc/\$FPCVERSION -o $PPC_CONFIG_PATH/fpc.cfg export PATH=$PPC_CONFIG_PATH:$OLDPATH Then when I want to change compilers, I go to the fpc folder with the version I want to use and execute: . ./setup This sources the script setup, and changes the fpc version. Example: user at debian: fpc *bash: fpc: command not found* user at debian: cd $HOME/Development/FreePascal/fpc-trunk user at debian: . ./setup user at debian: fpc -iV *3.1.1* user at debian: cd $HOME/Development/FreePascal/fpc-3.0.0 user at debian: . ./setup user at debian: fpc -iV *3.0.0* What this script does is save the old path, put the bin folder of fpc in the path, set the PPC_CONFIG_PATH variable, and generate a new bin/fpc.cfg. You can then have as many fpc compiler versions as will fit on disk, and change compilers easily. So in summary, copy my script above to each fpc folder, name it setup, chmod +x setup, and . ./setup to change to a specific compiler. -------------- next part -------------- An HTML attachment was scrubbed... URL: From evvke at hotmail.com Sun May 13 06:06:54 2018 From: evvke at hotmail.com (Cyrax) Date: Sun, 13 May 2018 07:06:54 +0300 Subject: [Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus? In-Reply-To: <1d8d3882-5f4d-b274-6a61-5dafa3a658b1@telefonica.net> References: <40b3eeb0-90c1-0292-8f7f-c3d3cd399282@telefonica.net> <5c2cb8a6-c66a-e5a3-918d-5db4068f6bfd@orbel.hu> <1d8d3882-5f4d-b274-6a61-5dafa3a658b1@telefonica.net> Message-ID: On 12/05/18 21:04, Carlos E. R. via Lazarus wrote: > On 2018-05-12 18:35, Orbán Árpád via Lazarus wrote: >> Hi Carlos, >> >> Try add poUsePipes to TProcess.Options: >> >>>  AProcess := TProcess.Create(nil); >>>     try >>>        AProcess.Executable := '/usr/local/bin/egctl'; >>>        AProcess.Parameters.Add('Regleta'); >>>        AProcess.Parameters.Add('off'); >>>        AProcess.Parameters.Add('off'); >>>        AProcess.Parameters.Add('off'); >>>        AProcess.Parameters.Add('off'); >> >>         AProcess.Options := AProcess.Options + [poUsePipes]; >> >>> >>>        AProcess.Execute; > > Ah. Thanks. I had commented that out by mistake. Actual code was: > > {$ifDEF Dummy} > AProcess.Parameters.Add('Regleta'); > AProcess.Options := [poWaitOnExit, poUsePipes]; > {$else} > AProcess.Parameters.Add('Regleta'); > AProcess.Parameters.Add('off'); > AProcess.Parameters.Add('off'); > AProcess.Parameters.Add('off'); > AProcess.Parameters.Add('off'); > {$endIf} > > And "Dummy" was not defined. > > Although the child is not using pipes :-? > > > If the child process outputs something (text or something else), then it is using stdout pipe. And if you want access to this output, then you need to set poUsePipes enum in the TProcess.Options so TProcess can set up IO redirection correctly. Also do not forget read TProcess.StdErr pipe, otherwise there is change for strange behaviour. Or add poStderrToOutPut to TProcess.Options. From patspiper at gmail.com Sun May 13 09:17:08 2018 From: patspiper at gmail.com (patspiper) Date: Sun, 13 May 2018 10:17:08 +0300 Subject: [Lazarus] How to use two different versions of FPC In-Reply-To: References: <487f6551-148c-c2ee-2142-e7573fce6c6a@cnoc.nl> <38b9060d-2bf1-31d0-3bfe-3900e931d94a@gmail.com> Message-ID: On 12/05/18 23:55, Jesus Reyes A. via Lazarus wrote: > En Fri, 11 May 2018 08:40:28 -0500, patspiper via Lazarus > escribió: > >> On 11/05/18 16:17, Joost van der Sluis via Lazarus wrote: >>> On 05/10/2018 04:35 PM, patspiper via Lazarus wrote: >>>> >>>> Attached snapshot is work in progress >>> >>> Sorry, but I don't think this is an improvement. For new users this >>> looks like a nightmare. It should be hidden, at least, imho. Or >>> better: make it a plugin. >> >> As Mattias has pointed out, it is a plugin (IDE package), and >> definitely not for the faint of heart. >> >> Once one creates a standardized folder hierarchy for the different >> fpc versions, it becomes a matter of a few clicks to switch versions. >> >> Stephano > > > An easy way to switch the compiler is nice, but I think that it would > be nicer if it could be organized in compiler profiles so you can have > compilers with the same version but with or without debug info or > compiled with different options. Then a compiler profile could be > specified/selected by build mode so it could be stored in the session > or the project file. :) Compiler profiles that can be selected in project options as well as in Tools/Options (for IDE rebuilding) would be very nice indeed. Currently I am investigating how to enable fpc debug units in a suitable way. Stephano From michael at freepascal.org Sun May 13 10:34:46 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Sun, 13 May 2018 10:34:46 +0200 (CEST) Subject: [Lazarus] errno 13 permission denied In-Reply-To: References: Message-ID: On Sat, 12 May 2018, Larry Dalton via Lazarus wrote: > I need to correct my original statement: the column name is 'checking', not > 'mycheck' > > On Sat, May 12, 2018 at 1:28 PM, Larry Dalton > wrote: > >> It am running lazarus 1.8.2 on linux 17.2, and trying to connect to mysql >> 5.7. >> I have a database named 'boa', with 5 columns, the first named 'mycheck'; >> >> I am using a TMySql57Connection, named boaconnection with the following >> settings: >> Databasename=boa; >> HostName=localhost >> KeepConnection=false >> LoginPrompt=false >> Transaction=boatransaction >> UserName=root, >> >> A TSqlTransaction named boatransaction >> Database named boaconnection >> >> A TDatasource with DataSet set to BoaQuery >> >> A TSqlQuery named boaquery with the following settings >> Database=boaconnection >> Transaction=boatransaction >> SQL='Select * from Checking >> >> When I try to set boaquery.active to 'true' I get the following error code: >> BoaConnection: Error executing query: Can't find file: >> './boa/checking.frm' (errno: 13-Permission denied). >> >> When I leave boaquery.active set to 'false', and run the program, when I >> try to open the table, I get: >> Project MoneProject raised exception class 'ESQLDatabaseError' with >> message: >> BoaConnection:Error executing query: Can't read dir of './boa/' >> (errno:13-Permission denied) >> >> How can I correct these errors? These are errors in your MySQL server. They have nothing to do with FPC. The file permissions on the server are wrong; the server process does not have sufficient rights to read/write the database files. Assuming the server is on Linux or BSD, you should find the MySQL databases directory and execute as root chown -R mysqld:mysqld boa (mysqld must be replaced with the username that the mysql server is running as) Michael. Michael. From zeljko at holobit.net Sun May 13 12:00:41 2018 From: zeljko at holobit.net (zeljko) Date: Sun, 13 May 2018 12:00:41 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem Message-ID: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> Hi, Using trunk lazarus r57911 and fpc-3.0.4 (32 bit), Windows 10. When rebuilding ide from lazarus got "No memory left" while linking IDE. I have bunch of 3rd party packages so I guess that too many units triggers this error since "make bigide" from cmd works fine. With fpc-3.0.0 everything works fine. Both win32 and win32-qt shows same error. Does anybody have such problem ? Is there any way to fix it ? Does 3.1.1 trunk have such problem ? Thanks, zeljko From werner.pamler at freenet.de Sun May 13 13:16:21 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 13 May 2018 13:16:21 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> Message-ID: <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> Am 13.05.2018 um 12:00 schrieb zeljko via Lazarus: > Hi, > Using trunk lazarus r57911 and fpc-3.0.4 (32 bit), Windows 10. > When rebuilding ide from lazarus got "No memory left" while linking IDE. > I have bunch of 3rd party packages so I guess that too many units > triggers this error since "make bigide" from cmd works fine. > With fpc-3.0.0 everything works fine. Both win32 and win32-qt shows > same error. > Does anybody have such problem ? Is there any way to fix it ? > Does 3.1.1 trunk have such problem ? I have that issue, too. It happens on the 32-bit IDE only, when "many" packages are installed. Since I work on the JVCL port which consists of a lot of packages, this happens regularly. I have to remove other packages to get some memory back. There was a discussion on this issue recently: https://forum.lazarus.freepascal.org/index.php/topic,40351.0.html. If I read correctly they seemed to fix the issue by a modified pp.pas (reply -62), I did not test it myself, though. From aaa5500 at ya.ru Sun May 13 13:48:24 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 13 May 2018 14:48:24 +0300 Subject: [Lazarus] IDE form visibility bug on Linux Message-ID: <1735d08b-9e9b-2f4e-a7cb-662d9858cc77@ya.ru> Ubuntu latest, gnome desktop - open IDE (two windows opened: main and messages, some test proj loaded) - click "minimize" icon on main wnd - restore wnd again: click Ubuntu sidebar lazarus icon - previews appear in small rects - choose main wnd - main wnd restored - click "Open" toolbar button on main wnd ==> IDE window and Open dialog hide or ==> all ok -- Regards, Alexey From lazarus at mfriebe.de Sun May 13 14:05:32 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 13 May 2018 14:05:32 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> Message-ID: On 13/05/2018 13:16, Werner Pamler via Lazarus wrote: > Am 13.05.2018 um 12:00 schrieb zeljko via Lazarus: >> Hi, >> Using trunk lazarus r57911 and fpc-3.0.4 (32 bit), Windows 10. >> When rebuilding ide from lazarus got "No memory left" while linking IDE. >> I have bunch of 3rd party packages so I guess that too many units >> triggers this error since "make bigide" from cmd works fine. >> With fpc-3.0.0 everything works fine. Both win32 and win32-qt shows >> same error. >> Does anybody have such problem ? Is there any way to fix it ? >> Does 3.1.1 trunk have such problem ? > > I have that issue, too. It happens on the 32-bit IDE only, when "many" > packages are installed. Since I work on the JVCL port which consists > of a lot of packages, this happens regularly. I have to remove other > packages to get some memory back. > > There was a discussion on this issue recently: > https://forum.lazarus.freepascal.org/index.php/topic,40351.0.html. If > I read correctly they seemed to fix the issue by a modified pp.pas > (reply -62), I did not test it myself, though. If it happens while linking, try to disable smart-linking. From robin.listas at telefonica.net Sun May 13 14:29:51 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Sun, 13 May 2018 14:29:51 +0200 Subject: [Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus? In-Reply-To: References: <40b3eeb0-90c1-0292-8f7f-c3d3cd399282@telefonica.net> <5c2cb8a6-c66a-e5a3-918d-5db4068f6bfd@orbel.hu> <1d8d3882-5f4d-b274-6a61-5dafa3a658b1@telefonica.net> Message-ID: On 2018-05-13 06:06, Cyrax via Lazarus wrote: > On 12/05/18 21:04, Carlos E. R. via Lazarus wrote: >> Although the child is not using pipes :-? >> >> >> > > If the child process outputs something (text or something else), then it > is using stdout pipe. And if you want access to this output, then you > need to set poUsePipes enum in the TProcess.Options so TProcess can set > up IO redirection correctly. Ah. Then it is the parent who is setting an implicit pipe. That is an important "detail" that I didn't notice/read about. > Also do not forget read TProcess.StdErr pipe, otherwise there is change > for strange behaviour. Or add poStderrToOutPut to TProcess.Options. Well, of course I did not set it up, because I did not see it in the example I was following or in the documentation. Thanks for telling me! -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From zeljko at holobit.net Sun May 13 16:18:10 2018 From: zeljko at holobit.net (zeljko) Date: Sun, 13 May 2018 16:18:10 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> Message-ID: <18404e2c-9190-7d3d-77a8-7b8f000f002e@holobit.net> On 05/13/2018 02:05 PM, Martin Frb via Lazarus wrote: > If it happens while linking, try to disable smart-linking. That fixed problem. Thanks ! zeljko From sysrpl at gmail.com Mon May 14 07:50:41 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 14 May 2018 01:50:41 -0400 Subject: [Lazarus] Video: Example Project Ftp Client Message-ID: Here is a video that might be tad bit long,but possibly contains some useful information. https://www.getlazarus.org/learn/tutorials/examples/ftpclient/ I walk through the concept and code of creating an ftp client implementation, along with the explanation of how and why. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlnglsts at bgss.hu Mon May 14 13:40:22 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Mon, 14 May 2018 13:40:22 +0200 Subject: [Lazarus] Control's default Height and AutoSize Message-ID: <65f178fc-1edc-9fea-3acb-3c7f544ccb29@bgss.hu> Hi All, I have three machines. One physical with Windows 10 (1703) and two virtual, one with Ubuntu Server 14.04.1 + KDE4 and Qt4 and one with RHEL 7.5 + KDE4 and Qt4. Start a new project with trunk (57932), drop a TEdit on Form1 and change it's font to Droid Sans Mono Regular 10. With Windows the TEdit's original Height is 23, after font change 23 too. With Ubuntu 23 and 25, with RHEL 22 and 23. Why is the difference and what it's source? Gabor From jmlandmesser at gmx.de Mon May 14 13:43:32 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Mon, 14 May 2018 13:43:32 +0200 Subject: [Lazarus] TStringGrid sort symbol in TitleButton Message-ID: In a StringGrid without(!) defined columns you never see that up and down arrow in the TitleButton if you click to sort this column. It's ok if you define at least one column, but i think that shouldn't be this way. Attached patch comments out //FImageIndex := -1; My first patch :-) Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64 -------------- next part -------------- Index: lcl/grids.pas =================================================================== --- lcl/grids.pas (Revision 57932) +++ lcl/grids.pas (Arbeitskopie) @@ -11858,7 +11858,7 @@ FFont := TFont.Create; FillTitleDefaultFont; FFont.OnChange := @FontChanged; - FImageIndex := -1; + //FImageIndex := -1; FImageLayout := blGlyphRight; FIsDefaultCaption := true; end; From jmlandmesser at gmx.de Mon May 14 14:08:06 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Mon, 14 May 2018 14:08:06 +0200 Subject: [Lazarus] TStringGrid sort symbol in TitleButton In-Reply-To: References: Message-ID: <6dcf337b-00f3-739f-511c-02131af22815@gmx.de> forget the patch, it doesn't solve the problem! Am 14.05.2018 um 13:43 schrieb Landmesser John via Lazarus: > In a StringGrid without(!) defined columns you never see that up and > down arrow in the TitleButton if you click to sort this column. > > It's ok if you define at least one column, but i think that shouldn't > be this way. > > Attached patch comments out > > //FImageIndex := -1; > > My first patch :-) > > Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko at holobit.net Mon May 14 14:30:53 2018 From: zeljko at holobit.net (zeljko) Date: Mon, 14 May 2018 14:30:53 +0200 Subject: [Lazarus] TStringGrid sort symbol in TitleButton In-Reply-To: References: Message-ID: On 05/14/2018 01:43 PM, Landmesser John via Lazarus wrote: > In a StringGrid without(!) defined columns you never see that up and > down arrow in the TitleButton if you click to sort this column. > > It's ok if you define at least one column, but i think that shouldn't be > this way. I don't get what is exact problem. If there's no columns why Sort indicator should be visible at all (and where) ? In any case you can create bug report and attach example project. zeljko > > Attached patch comments out > > //FImageIndex := -1; > > My first patch :-) > > Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64 > > > From zeljko at holobit.net Mon May 14 14:33:16 2018 From: zeljko at holobit.net (zeljko) Date: Mon, 14 May 2018 14:33:16 +0200 Subject: [Lazarus] Control's default Height and AutoSize In-Reply-To: <65f178fc-1edc-9fea-3acb-3c7f544ccb29@bgss.hu> References: <65f178fc-1edc-9fea-3acb-3c7f544ccb29@bgss.hu> Message-ID: <3ea71c1a-45b6-837a-13bd-fe116c11a943@holobit.net> On 05/14/2018 01:40 PM, Gabor Boros via Lazarus wrote: > Hi All, > > I have three machines. One physical with Windows 10 (1703) and two > virtual, one with Ubuntu Server 14.04.1 + KDE4 and Qt4 and one with RHEL > 7.5 + KDE4 and Qt4. Start a new project with trunk (57932), drop a TEdit > on Form1 and change it's font to Droid Sans Mono Regular 10. With > Windows the TEdit's original Height is 23, after font change 23 too. > With Ubuntu 23 and 25, with RHEL 22 and 23. Why is the difference and > what it's source? Default TEdit height (autosize=true) depends on Qt4 theme. Some themes, eg KDE breeze from fedora 26 gives 28 px which is taken from the current desktop environment, but eg -style windows it's size is 23. zeljko From mlnglsts at bgss.hu Mon May 14 17:32:07 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Mon, 14 May 2018 17:32:07 +0200 Subject: [Lazarus] Control's default Height and AutoSize In-Reply-To: <3ea71c1a-45b6-837a-13bd-fe116c11a943@holobit.net> References: <65f178fc-1edc-9fea-3acb-3c7f544ccb29@bgss.hu> <3ea71c1a-45b6-837a-13bd-fe116c11a943@holobit.net> Message-ID: 2018. 05. 14. 14:33 keltezéssel, zeljko írta: > Default TEdit height (autosize=true) depends on Qt4 theme. Some themes, > eg KDE breeze from fedora 26 gives 28 px which is taken from the current > desktop environment, but eg -style windows it's size is 23. Thank you! After read your answer I realized RHEL use it's own RHEL7 named theme not the default Oxygen. Gabor From jmlandmesser at gmx.de Mon May 14 18:37:41 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Mon, 14 May 2018 18:37:41 +0200 Subject: [Lazarus] TStringGrid sort symbol in TitleButton In-Reply-To: References: Message-ID: <4fe7bb15-1662-623a-5287-0e50940b3997@gmx.de> Hi Zeljko, think of a *.csv file and StringGrid.LoadFromCSV... No columns defined in StringGrid, they will be created "on the fly" and user wants to sort a column by click on columnTitle. There are default arrows that only show up if you define at least one column and thats not ok i think! Bug report: https://bugs.freepascal.org/view.php?id=33731 Am 14.05.2018 um 14:30 schrieb zeljko: > On 05/14/2018 01:43 PM, Landmesser John via Lazarus wrote: >> In a StringGrid without(!) defined columns you never see that up and >> down arrow in the TitleButton if you click to sort this column. >> >> It's ok if you define at least one column, but i think that shouldn't >> be this way. > > I don't get what is exact problem. If there's no columns why Sort > indicator should be visible at all (and where) ? > In any case you can create bug report and attach example project. > > zeljko > >> >> Attached patch comments out >> >> //FImageIndex := -1; >> >> My first patch :-) >> >> Lazarus 1.9.0 r57932M FPC 3.0.4 i386-win32-win32/win64 >> >> >> > From tc at epidata.info Mon May 14 18:54:44 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Mon, 14 May 2018 18:54:44 +0200 Subject: [Lazarus] FPC mailing list down? Message-ID: <550b6a59-1f7d-32dd-3b5b-3293cae9618b@epidata.info> Hi. I have tried sending two mails in the last 8 hours to the FPC-Pascal mailing list, but none of them has made it through. Is the maildeamon down? The last email i got from the list is dated 2018-05-13 00:22 Best regards, Torsten. From mlnglsts at bgss.hu Tue May 15 17:58:57 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Tue, 15 May 2018 17:58:57 +0200 Subject: [Lazarus] LazReport - Build variable or field names in script Message-ID: Hi All, I can build variable TEXT := '[PAGE_LNG_' + [LNG_ID] + ']: [PAGE#]'; and field TEXT := '[BDS.PAGE_LNG_' + [LNG_ID] + ']: [PAGE#]'; names in this way. LNG_ID is a report variable with a numeric value and the showed captions or used field names depends on it. I try to eliminate the if then else if then else if then else ... chains which give back the result depend on the language. Is this the good/safe solution? Any simpler/better exists? Gabor From luca at wetron.es Tue May 15 20:34:59 2018 From: luca at wetron.es (Luca Olivetti) Date: Tue, 15 May 2018 20:34:59 +0200 Subject: [Lazarus] Is there a way to reconnect to postgresql if the connection fails? Message-ID: Hello, I'm trying to devise a strategy for when the connection to the server fails. I'm using zeos but I also tried with sqldb and I couldn't find a way. I open a connection to the server, then I stop the server and subsequent operations (e.g. refreshing a query) fail (obviously since the connection has been severed). However, for the same reason, I cannot close the connection (with sqldb by setting PQConnection.connected:=false or with zeos by calling ZConnection.Disconnect), since it raises an exception :-( With zeos I tried to get hold of the underlying handle and call PQReset before closing the connection. The PQreset works, but the connection cannot be closed because it tries to release prepared statements that don't exist in the new connection so postgresql returns an error..... Is there a way to force the closing of a connection in this case so I can try and reopen it again? TIA -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From michael at freepascal.org Tue May 15 20:44:34 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 15 May 2018 20:44:34 +0200 (CEST) Subject: [Lazarus] Is there a way to reconnect to postgresql if the connection fails? In-Reply-To: References: Message-ID: On Tue, 15 May 2018, Luca Olivetti via Lazarus wrote: > Hello, > > I'm trying to devise a strategy for when the connection to the server fails. > I'm using zeos but I also tried with sqldb and I couldn't find a way. > I open a connection to the server, then I stop the server and subsequent > operations (e.g. refreshing a query) fail (obviously since the > connection has been severed). > However, for the same reason, I cannot close the connection (with sqldb > by setting PQConnection.connected:=false or with zeos by calling > ZConnection.Disconnect), since it raises an exception :-( > With zeos I tried to get hold of the underlying handle and call PQReset > before closing the connection. > The PQreset works, but the connection cannot be closed because it tries > to release prepared statements that don't exist in the new connection so > postgresql returns an error..... > > Is there a way to force the closing of a connection in this case so I > can try and reopen it again? Try using forcedclose in SQLDb: TheDatabase.Close(True); Michael. From luca at wetron.es Tue May 15 20:59:23 2018 From: luca at wetron.es (Luca Olivetti) Date: Tue, 15 May 2018 20:59:23 +0200 Subject: [Lazarus] Is there a way to reconnect to postgresql if the connection fails? In-Reply-To: References: Message-ID: El 15/05/18 a les 20:44, Michael Van Canneyt ha escrit: >> >> Is there a way to force the closing of a connection in this case so I >> can try and reopen it again? > > Try using forcedclose in SQLDb: > > TheDatabase.Close(True); Project project1 raised exception class 'EPQDatabaseError' with message: PQConnection1: connection pointer is NULL (PostgreSQL:) In file 'fcl-db/src/sqldb/postgres/pqconnection.pp' ad line 725: raise E; TDatabase.DoDisconnect calls CloseDatasets which in turn calls Unprepare (in TCustomSQLQuery.SetActive)-> FStatement.Unprepare-> DoUnprepare-> Database.UnPrepareStatement(FCursor)-> TPQConnection.UnprepareStatement which eventually fails. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From michael at freepascal.org Tue May 15 21:11:56 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 15 May 2018 21:11:56 +0200 (CEST) Subject: [Lazarus] Is there a way to reconnect to postgresql if the connection fails? In-Reply-To: References: Message-ID: On Tue, 15 May 2018, Luca Olivetti wrote: > El 15/05/18 a les 20:44, Michael Van Canneyt ha escrit: > >>> >>> Is there a way to force the closing of a connection in this case so I can >>> try and reopen it again? >> >> Try using forcedclose in SQLDb: >> >> TheDatabase.Close(True); > > Project project1 raised exception class 'EPQDatabaseError' with message: > PQConnection1: connection pointer is NULL > (PostgreSQL:) > > In file 'fcl-db/src/sqldb/postgres/pqconnection.pp' ad line 725: > raise E; > > > TDatabase.DoDisconnect calls CloseDatasets which in turn calls > Unprepare (in TCustomSQLQuery.SetActive)-> > FStatement.Unprepare-> > DoUnprepare-> > Database.UnPrepareStatement(FCursor)-> > TPQConnection.UnprepareStatement which eventually fails. I will need to check this, but the purpose of Close(True) is exactly to ignore errors while closing for a reconnect. It was introduced and tested in the case of MySQL, but normally should work on any database. Can you please post a small sample program in the bugtracker ? Michael. From jesusrmx at gmail.com Tue May 15 21:32:51 2018 From: jesusrmx at gmail.com (Jesus Reyes A.) Date: Tue, 15 May 2018 14:32:51 -0500 Subject: [Lazarus] LazReport - Build variable or field names in script In-Reply-To: References: Message-ID: En Tue, 15 May 2018 10:58:57 -0500, Gabor Boros via Lazarus escribió: > Hi All, > > I can build variable > > TEXT := '[PAGE_LNG_' + [LNG_ID] + ']: [PAGE#]'; > > and field > > TEXT := '[BDS.PAGE_LNG_' + [LNG_ID] + ']: [PAGE#]'; > > names in this way. > > LNG_ID is a report variable with a numeric value and the showed captions > or used field names depends on it. I try to eliminate the if then else > if then else if then else ... chains which give back the result depend > on the language. > > Is this the good/safe solution? Any simpler/better exists? > > Gabor As CASE OF is not implemented, that's the way of doing it. By using the OnGetValue event you might get more control on selecting the right values based on the LNG_ID, or even using a user defined function could work also. Jesus Reyes A. From luca at wetron.es Tue May 15 21:43:49 2018 From: luca at wetron.es (Luca Olivetti) Date: Tue, 15 May 2018 21:43:49 +0200 Subject: [Lazarus] Is there a way to reconnect to postgresql if the connection fails? In-Reply-To: References: Message-ID: <6b7a6cf8-fed4-5cd9-d68d-0fb370808388@wetron.es> El 15/05/18 a les 21:11, Michael Van Canneyt via Lazarus ha escrit: > I will need to check this, but the purpose of Close(True) is exactly to > ignore errors while closing for a reconnect. It was introduced and > tested in the case of MySQL, but > normally should work on any database. > > Can you please post a small sample program in the bugtracker ? Done https://bugs.freepascal.org/view.php?id=33737 Thank you -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From jmlandmesser at gmx.de Wed May 16 09:44:20 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Wed, 16 May 2018 09:44:20 +0200 Subject: [Lazarus] Package/New Package broken Message-ID: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> Hi, Lazarus 1.9.0 r57942 FPC 3.0.0 x86_64-linux-gtk2 try Package/New Package and you get an Error Dialog. > "PackageEditor_Neues Package1" is not a valid component name. From evvke at hotmail.com Thu May 17 00:01:37 2018 From: evvke at hotmail.com (Cyrax) Date: Thu, 17 May 2018 01:01:37 +0300 Subject: [Lazarus] Package/New Package broken In-Reply-To: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> References: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> Message-ID: On 16/05/18 10:44, John Landmesser via Lazarus wrote: > Hi, > > Lazarus 1.9.0 r57942 FPC 3.0.0 x86_64-linux-gtk2 > > try Package/New Package > > and you get an Error Dialog. > >> "PackageEditor_Neues Package1" is not a valid component name. > > Lazarus 1.9.0 r57946 FPC 3.1.1-r39004 x86_64-linux-gtk2 I can't reprocude this bug. Maybe you can try to do full clean build of the IDE and see if it fixes this? From luca at wetron.es Thu May 17 09:50:02 2018 From: luca at wetron.es (Luca Olivetti) Date: Thu, 17 May 2018 09:50:02 +0200 Subject: [Lazarus] Is there a way to reconnect to postgresql if the connection fails? In-Reply-To: <6b7a6cf8-fed4-5cd9-d68d-0fb370808388@wetron.es> References: <6b7a6cf8-fed4-5cd9-d68d-0fb370808388@wetron.es> Message-ID: <7abc94f9-3dcf-5310-9f65-e15fbe16f968@wetron.es> El 15/05/18 a les 21:43, Luca Olivetti via Lazarus ha escrit: > El 15/05/18 a les 21:11, Michael Van Canneyt via Lazarus ha escrit: > >> I will need to check this, but the purpose of Close(True) is exactly to >> ignore errors while closing for a reconnect. It was introduced and >> tested in the case of MySQL, but >> normally should work on any database. >> >> Can you please post a small sample program in the bugtracker ? > > Done > > https://bugs.freepascal.org/view.php?id=33737 Using the same project as in the bug report, almost every time I set the "Active" property of the SQLQuery1 component to true in the object inspector I get an "Access violation" and the selection tree in the object inspector gets messed up. It doesn't happen if I use zeos. I tried both with the original fcl-db and the one modified as my last message in the bug report (I rebuild lazarus every time I changed fcl-db). Fpc 3.0.4/lazarus 1.8.2, win32 and linux (64 bits)/qt The access violation happens inside TComponentTreeView.UpdateComponentsNodesValues, UpdateComponentNode, line "if APersistent is TComponent", when Anode is the first TSQLDBFieldDef in the sqlquery Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From aaa5500 at ya.ru Thu May 17 10:12:11 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Thu, 17 May 2018 11:12:11 +0300 Subject: [Lazarus] IDE compiling- disable recents Message-ID: <23352c3b-7d9b-3940-4237-6da5253afc8c@ya.ru> During compiling state ('compiling...' in caption) IDE must disable choosing of Recent files/projs in the mainmenu + toolbar. recent choosing don't work. -- Regards, Alexey From jmlandmesser at gmx.de Thu May 17 13:20:40 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Thu, 17 May 2018 13:20:40 +0200 Subject: [Lazarus] Lazarus-ccr Access Message-ID: Hi, TStringGrid sorts everything as string! To improve that i developed TSortGrid, derived from TStringGrid, but capable of sorting Integer, Float, Date, Time, String and show up- and down- Arrows in Titlebar. See https://github.com/JohnML1/SortGrid.git .. see demo-Folder is that a candidate for ccr and can i get access to it? Thanks John Landmesser -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Thu May 17 16:54:32 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 17 May 2018 15:54:32 +0100 Subject: [Lazarus] Lazarus-ccr Access In-Reply-To: References: Message-ID: On 2018-05-17 12:20, John Landmesser via Lazarus wrote: > To improve that i developed TSortGrid, derived from TStringGrid, but > capable of sorting Integer, Float, Date, Time, String and show up- and > down- Arrows in Titlebar. That sounds like a very useful addition. Thanks for your effort and sharing. > https://github.com/JohnML1/SortGrid.git > > .. see demo-Folder > > is that a candidate for ccr and can i get access to it? CCR is for community developed and maintained components, so I'm sure your component would be welcomed. Just to let you know, Lazarus-CCR also has a Git section, so you can always import your existing repository into Lazarus-CCR keeping any development history in tact. Just let the maintainers/admin people or Lazarus-CCR know where you want to place your code. https://sourceforge.net/p/lazarus-ccr/_list/git?source=navbar I've been contributing to the "dcpcrypt" git repository there. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From joost at cnoc.nl Thu May 17 17:40:48 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Thu, 17 May 2018 17:40:48 +0200 Subject: [Lazarus] Lazarus-ccr Access In-Reply-To: References: Message-ID: <90b616cf-5949-9b88-14f2-0cb4f59d6cf7@cnoc.nl> Op 17-05-18 om 13:20 schreef John Landmesser via Lazarus > TStringGrid sorts everything as string! > > To improve that i developed TSortGrid, derived from TStringGrid, but > capable of sorting Integer, Float, Date, Time, String and show up- and > down- Arrows in Titlebar. > > See > > https://github.com/JohnML1/SortGrid.git > > .. see demo-Folder > > is that a candidate for ccr and can i get access to it? You can also distribute it with Fppkg. The project is already on github, adding it to the Lazarus-CCR does not add much value. If you create an fpmake.pp file for it and send me the archive for it. (fppkg archive) then I'll add it to the testing-repository. (btw: you also may do this yourself, but for that you need an account and some help.) Regards, Joost. From jmlandmesser at gmx.de Thu May 17 19:00:04 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Thu, 17 May 2018 19:00:04 +0200 Subject: [Lazarus] Lazarus-ccr Access In-Reply-To: <90b616cf-5949-9b88-14f2-0cb4f59d6cf7@cnoc.nl> References: <90b616cf-5949-9b88-14f2-0cb4f59d6cf7@cnoc.nl> Message-ID: <4f404068-7efd-e511-ecff-aa37421f2620@gmx.de> Am 17.05.2018 um 17:40 schrieb Joost van der Sluis via Lazarus: > Op 17-05-18 om 13:20 schreef John Landmesser via Lazarus >> TStringGrid sorts everything as string! >> >> To improve that i developed TSortGrid, derived from TStringGrid, but >> capable of sorting Integer, Float, Date, Time, String and show up- >> and down- Arrows in Titlebar. >> >> See >> >> https://github.com/JohnML1/SortGrid.git >> >> .. see demo-Folder >> >> is that a candidate for ccr and can i get access to it? > > You can also distribute it with Fppkg. The project is already on > github, adding it to the Lazarus-CCR does not add much value. > > If you create an fpmake.pp file for it and send me the archive for it. > (fppkg archive) then I'll add it to the testing-repository. (btw: you > also may do this yourself, but for that you need an account and some > help.) > > Regards, > > Joost. Hi Joost, just discovered "online package manager" it gets the packages from http://packages.lazarus-ide.org This online package manager is a great tool and this location seems to be the right place? Howto upload to this URL? p.s. never created a fpmake.pp :-( From sysrpl at gmail.com Fri May 18 06:34:17 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Fri, 18 May 2018 00:34:17 -0400 Subject: [Lazarus] Let's make a web browser Message-ID: how-to instructions -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri May 18 09:18:42 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 18 May 2018 09:18:42 +0200 (CEST) Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: On Fri, 18 May 2018, Anthony Walter via Lazarus wrote: > how-to instructions > > Pretty neat ! Deceptively easy to do :) Question: Where are the components you used, and where can I find the demo source code ? Michael. From tc at epidata.info Fri May 18 09:56:04 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Fri, 18 May 2018 09:56:04 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: <05b91286-5d72-756b-4bcd-cff1c5f57f96@epidata.info> On 2018-05-18 09:18, Michael Van Canneyt via Lazarus wrote: > > > Question: Where are the components you used, and where can I find the > demo source code ? +1 -Torsten. From zeljko at holobit.net Fri May 18 10:11:50 2018 From: zeljko at holobit.net (zeljko) Date: Fri, 18 May 2018 10:11:50 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: On 05/18/2018 09:18 AM, Michael Van Canneyt via Lazarus wrote: > > > On Fri, 18 May 2018, Anthony Walter via Lazarus wrote: > >> how-to instructions >> >> > > Pretty neat ! Deceptively easy to do :) > > Question: Where are the components you used, and where can I find the > demo source code ? Is this embedded Gecko engine ? z. From michael at freepascal.org Fri May 18 10:46:36 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 18 May 2018 10:46:36 +0200 (CEST) Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: On Fri, 18 May 2018, zeljko wrote: > On 05/18/2018 09:18 AM, Michael Van Canneyt via Lazarus wrote: >> >> >> On Fri, 18 May 2018, Anthony Walter via Lazarus wrote: >> >>> how-to instructions >>> >>> >> >> Pretty neat ! Deceptively easy to do :) >> >> Question: Where are the components you used, and where can I find the demo >> source code ? > > Is this embedded Gecko engine ? I thought it was perhaps chrome embedded ? Michael. From zmuogs at gmail.com Fri May 18 11:35:00 2018 From: zmuogs at gmail.com (=?UTF-8?Q?Valdas_Jank=c5=abnas?=) Date: Fri, 18 May 2018 12:35:00 +0300 Subject: [Lazarus] Runtime error: INCLOCKED (BUG) In-Reply-To: References: <20180429193838.EEACB7EE@atlas.cz> Message-ID: <23348c64-11c1-415f-ceeb-40033c9a4000@gmail.com> 2018-05-11 12:36, Santiago A. via Lazarus rašė: > Yes, but I think that it should be considered a FPC bug > >   TList = array of TElement; >   Plist = ^TList; > >   TSetting = record >       list: Plist; >   end; > > const >   _List: array [0..1] of TElement = ( >       (strr: 'a'), >       (strr: 'b')); > >   _Settings: array [0..0] of TSetting = ( >       (list: @_List)); //  <=== This line should rise a compiler error. > You are asigning a pointer to an static array to a pointer to a dynamic > array. Reported: https://bugs.freepascal.org/view.php?id=33757 -- Valdas Jankūnas From zeljko at holobit.net Fri May 18 11:40:41 2018 From: zeljko at holobit.net (zeljko) Date: Fri, 18 May 2018 11:40:41 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote: > > I thought it was perhaps chrome embedded ? Maybe, there are Delphi bindings around for chrome embedded z. From michael at freepascal.org Fri May 18 11:46:25 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 18 May 2018 11:46:25 +0200 (CEST) Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: On Fri, 18 May 2018, zeljko wrote: > On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote: > >> >> I thought it was perhaps chrome embedded ? > > Maybe, there are Delphi bindings around for chrome embedded Indeed and for lazarus as well. cef4delphi was ported at some point, I think. Michael. From tc at epidata.info Fri May 18 11:47:20 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Fri, 18 May 2018 11:47:20 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: References: Message-ID: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> On 2018-05-18 11:46, Michael Van Canneyt via Lazarus wrote: > > > On Fri, 18 May 2018, zeljko wrote: > >> On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote: >> >>> >>> I thought it was perhaps chrome embedded ? >> >> Maybe, there are Delphi bindings around for chrome embedded > > Indeed and for lazarus as well. > cef4delphi was ported at some point, I think. But afaik it was only ported for windows - and the video is from an Ubuntu installation. :) -Torsten From michael at freepascal.org Fri May 18 11:56:21 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 18 May 2018 11:56:21 +0200 (CEST) Subject: [Lazarus] Let's make a web browser In-Reply-To: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> Message-ID: On Fri, 18 May 2018, Torsten Bonde Christiansen via Lazarus wrote: > On 2018-05-18 11:46, Michael Van Canneyt via Lazarus wrote: >> >> >> On Fri, 18 May 2018, zeljko wrote: >> >>> On 05/18/2018 10:46 AM, Michael Van Canneyt via Lazarus wrote: >>> >>>> >>>> I thought it was perhaps chrome embedded ? >>> >>> Maybe, there are Delphi bindings around for chrome embedded >> >> Indeed and for lazarus as well. >> cef4delphi was ported at some point, I think. > > But afaik it was only ported for windows - and the video is from an > Ubuntu installation. :) Good point. I guess Anthony Walter will have to enlighten us all... :) Michael. From sysrpl at gmail.com Fri May 18 12:00:28 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Fri, 18 May 2018 06:00:28 -0400 Subject: [Lazarus] Let's make a web browser In-Reply-To: References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> Message-ID: This is an open source set of controls I am working on which will be released soon on gtihub. The browser is based on the wekbit engine, and it's accompanied by a collection of native controls and other code to make working with related materials easy/easier. A related portion I am working on in parallel is an interface to the webkit javascript core engine. Although it is in a separate package, the jsc tools I am working on provide the ability to intermix pascal code and javascript in your applications. But also, you can use the jsc tools to take to talk your application from inside a webpage, and your application can call javascript to interact with a webpage. Or, you can not use a web browser at all, and just work with javascript inside your pascal apps. Stay tuned. If you want to help me test or give me feedback (forum linked below) on some demo ideas or the programming interface (code design) before I publish, let me know. https://www.getlazarus.org/forums/viewforum.php?f=23 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri May 18 12:09:08 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 18 May 2018 12:09:08 +0200 (CEST) Subject: [Lazarus] Let's make a web browser In-Reply-To: References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> Message-ID: On Fri, 18 May 2018, Anthony Walter via Lazarus wrote: > This is an open source set of controls I am working on which will be > released soon on gtihub. The browser is based on the wekbit engine, and > it's accompanied by a collection of native controls and other code to make > working with related materials easy/easier. > > A related portion I am working on in parallel is an interface to the webkit > javascript core engine. Although it is in a separate package, the jsc tools > I am working on provide the ability to intermix pascal code and javascript > in your applications. But also, you can use the jsc tools to take to talk > your application from inside a webpage, and your application can call > javascript to interact with a webpage. > > Or, you can not use a web browser at all, and just work with javascript > inside your pascal apps. > > Stay tuned. If you want to help me test or give me feedback (forum linked > below) on some demo ideas or the programming interface (code design) before > I publish, let me know. Great news ! It means we can create native embedded pas2js applications: a "Phonegap" (think cordova, native react etc.) like approach for lazarus ! This is going to be heaps of fun... :) Keep up the good work, I look forward to seeing the final product :) Michael. From tc at epidata.info Fri May 18 13:41:00 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Fri, 18 May 2018 13:41:00 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> Message-ID: <87d6952f-741a-9cef-811d-7a2c081e9840@epidata.info> On 2018-05-18 12:00, Anthony Walter via Lazarus wrote: > This is an open source set of controls I am working on which will be > released soon on gtihub. The browser is based on the wekbit engine, > and it's accompanied by a collection of native controls and other code > to make working with related materials easy/easier. > > A related portion I am working on in parallel is an interface to the > webkit javascript core engine. Although it is in a separate package, > the jsc tools I am working on provide the ability to intermix pascal > code and javascript in your applications. But also, you can use the > jsc tools to take to talk your application from inside a webpage, and > your application can call javascript to interact with a webpage. > > Or, you can not use a web browser at all, and just work with > javascript inside your pascal apps. > > Stay tuned. If you want to help me test or give me feedback (forum > linked below) on some demo ideas or the programming interface (code > design) before I publish, let me know. > > https://www.getlazarus.org/forums/viewforum.php?f=23 > > I would love to help you with both testing and feedback. Is there any way I can help you with development too? I would love to add (at least the browser part) to our product. best regrads, Torsten. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zbynek.fiala at gmail.com Fri May 18 14:22:50 2018 From: zbynek.fiala at gmail.com (=?utf-8?Q?Zbyn=C4=9Bk_Fiala?=) Date: Fri, 18 May 2018 14:22:50 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: <87d6952f-741a-9cef-811d-7a2c081e9840@epidata.info> References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> <87d6952f-741a-9cef-811d-7a2c081e9840@epidata.info> Message-ID: <793A5096-52F9-4034-9D15-564352F41EA6@gmail.com> As for chrome embedding; https://github.com/dliw/fpCEF3 I used it couple years ago and it worked very well.https://github.com/zbyna/vcfToGigaset FpCEF3 is maintained so far. 18. 5. 2018 v 13:41, Torsten Bonde Christiansen via Lazarus : >> On 2018-05-18 12:00, Anthony Walter via Lazarus wrote: >> This is an open source set of controls I am working on which will be released soon on gtihub. The browser is based on the wekbit engine, and it's accompanied by a collection of native controls and other code to make working with related materials easy/easier. >> >> A related portion I am working on in parallel is an interface to the webkit javascript core engine. Although it is in a separate package, the jsc tools I am working on provide the ability to intermix pascal code and javascript in your applications. But also, you can use the jsc tools to take to talk your application from inside a webpage, and your application can call javascript to interact with a webpage. >> >> Or, you can not use a web browser at all, and just work with javascript inside your pascal apps. >> >> Stay tuned. If you want to help me test or give me feedback (forum linked below) on some demo ideas or the programming interface (code design) before I publish, let me know. >> >> https://www.getlazarus.org/forums/viewforum.php?f=23 >> >> > I would love to help you with both testing and feedback. Is there any way I can help you with development too? > > I would love to add (at least the browser part) to our product. > > best regrads, > Torsten. > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From tc at epidata.info Fri May 18 14:25:16 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Fri, 18 May 2018 14:25:16 +0200 Subject: [Lazarus] Let's make a web browser In-Reply-To: <793A5096-52F9-4034-9D15-564352F41EA6@gmail.com> References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> <87d6952f-741a-9cef-811d-7a2c081e9840@epidata.info> <793A5096-52F9-4034-9D15-564352F41EA6@gmail.com> Message-ID: On 2018-05-18 14:22, Zbyněk Fiala via Lazarus wrote: > As for chrome embedding; > https://github.com/dliw/fpCEF3 > > I used it couple years ago and it worked very > well.https://github.com/zbyna/vcfToGigaset > FpCEF3 is maintained so far. Even fpCEF3 has problems running well under linux - so I would love to see (and help) with an approach like this :) Best regards, Torsten. From sysrpl at gmail.com Fri May 18 14:36:56 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Fri, 18 May 2018 08:36:56 -0400 Subject: [Lazarus] Let's make a web browser In-Reply-To: <87d6952f-741a-9cef-811d-7a2c081e9840@epidata.info> References: <907a2729-dedf-0efa-d7ed-1f45ac1afda5@epidata.info> <87d6952f-741a-9cef-811d-7a2c081e9840@epidata.info> Message-ID: My plan is to finish the JavaScript Core package first, test on Windows, Mac, and Linux, create some compelling demos, record a few videos, and publish it on Github. Then integrate the final published API of the JSC into the Webkit browser package, and again test on Windows, Mac, and Linux, create some compelling demos, record a few videos, and publish it on Github. *In JSC what's currently working* JSC ability to work on all platforms. Run any JavaScript plus latest ES6 support. Create Pascal callbacks for JavaScript. Call JavaScript functions/methods from Pascal. Create JavaScript objects dynamically from Pascal. Fully documented. *In JSC what needs work:* JSC ability to define native JavaScript classes in Pascal. testing, demos, and videos. Synchronize changes from the JSC package back into the Webkit browser package. *In Webkit browser package what's currently working:* Gtk2 and Gtk3 bindings. Custom controls working independently of bindings. Some designers and component editors. A lot of functionality has been included beyond what was shown in the demo, including browser element hit testing, intercepting resources before they load, custom alert/confirm/prompt handling. Mostly documented. *In Webkit browser what needs work:* Needs download manager code for handling what to do when links that want to download files. Cocoa/Carbon and Qt4/5 all have a paths forward and I have the sources ready. They use the same basic API so changes should be minimal and mostly related to WSClass details. Windows has not been researched yet, but should be possible. I need to implement a few more helper controls. Testing, demos, and videos. Synchronize changes from the JSC package into the Webkit browser package. *So in summary:* I will finish the JSC package first, publish it, then do more work on the Webkit browser. The JSC package code is close to done, but demos will needs some time. Everything should work on all major platforms when complete and offer similar experiences. *Notes about Gtk2:* Continued Gtk2 support for Webkit was stopped a few years ago. It works, but there have been no updates by the Webkit team for a few years and there are some security holes that won't be patched. Also it does not have the same performance enhancements or improvements as the Gtk3/Mac/Qt versions. I have made some improvements tot the LCL Gtk3 units which I will publish to Mantis as a patch when the Webkit web browser package is published. *Contributions:* I am going to be looking for ideas and testing with the JSC package relatively soon. The system I've come up with is very easy to use, and also quite powerful. Before publishing I want to create some demos, record a few videos, and of course test all platforms. The basic getting starting with JSC is this easy: uses JavaScript.Core; var Context: JSContext; begin Context := JSContext.Create; Context.ScriptRun(SomeJavaScriptString); end; Note, JSContext and all related JS types (JSValue, JSObject, JSString) are all managed for you, meaning you do not need to free them. To create a JevaScript object in Pascal you can use code like: O := Context.CreateObject('RegExp'); To define a callback for JavaScript to invoke your Pascal code you would write: function PascalHello(Context: JSContext; Args: JSValueArray; var Error: JSValue): JSValue; begin if Length(Args) > 0 then Result := Context.CreateString('Hi there ' + Args[0].AsString) else Result := Context.CreateString('Pascal says hello'); end; ... Context.GlobalObject.CreateFunction('hello', PascalHello); And in JavaScript you might write: console.log(hello("i am javascript")); I also provide a way to define and load entire Pascal modules in JavaScript. A Pascal module is a set of objects/functions that add functionality to JavaScript through native Pascal code. To use a Pascal module you write: JSEnabledModuleSystem(Context); And in JavaScript you might write: system.modules.load('file', 'process'); file.writeText('hello.txt', 'hello world'); let s = process.execute('ls', '-al'); console.log(s); Note, the module system provides a default console object even if you are operating outside a web browser. Also, the module system is available even if you are executing the JavaScript inside a web page. I will provide a reference on how to write your own modules. Finally, I have included with JSC a demo application named jsc. The jsc application is a scripting program that allows you to run scripts on Mac/Linux via shebangs: #!/home/user/bin/jsc console.log("Hello World"); You can load modules in jsc scripts as well. To run your script, assuming it is called hello.js, from a terminal: chmod +x hello.js ./hello.js -------------- next part -------------- An HTML attachment was scrubbed... URL: From joost at cnoc.nl Fri May 18 15:28:05 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Fri, 18 May 2018 15:28:05 +0200 Subject: [Lazarus] Lazarus-ccr Access In-Reply-To: <4f404068-7efd-e511-ecff-aa37421f2620@gmx.de> References: <90b616cf-5949-9b88-14f2-0cb4f59d6cf7@cnoc.nl> <4f404068-7efd-e511-ecff-aa37421f2620@gmx.de> Message-ID: On 05/17/2018 07:00 PM, John Landmesser via Lazarus wrote: > Am 17.05.2018 um 17:40 schrieb Joost van der Sluis via Lazarus: > just discovered "online package manager" > > it gets the packages from http://packages.lazarus-ide.org > > This online package manager is a great tool and this location seems to > be the right place? > > Howto upload to this URL? > p.s. never created a fpmake.pp :-( Forget it, for now. I see that it is about TStringGrid, not TStringList. Packages that depend on the LCL are a little bit hard in fpmake. I think adding it to packages.lazarus-ide.org is a good idea. I do not know how to do so, but others in this link must be able to tell you. I've had a look at your code. Woudn't it be a good idea to add a setting on how to sort. For example: float, string, date etc? And then an 'automatic' option for the current behaviour. Even better would be to add this option on a per-column basis. Regards, Joost. From werner.pamler at freenet.de Fri May 18 15:44:28 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 18 May 2018 15:44:28 +0200 Subject: [Lazarus] Lazarus-ccr Access In-Reply-To: References: Message-ID: Am 17.05.2018 um 13:20 schrieb John Landmesser via Lazarus: > is that a candidate for ccr and can i get access to it? It was Felipe who gave me commit rights for ccr, just contact him directly referring to this thread. You'll find his mail address by seeking his posts in this mailing list. But to be honest, having exerienced a series of severe downs of SourceFourge recently, I'd not recommend anybody to post new activities to CCR (=SourceForce) any more. You are already on github, why don't you stay there? You just should make sure that your package is added to OnlinePackageManager such that it is easily reachable by Lazarus - but in the forum there is already a discussion about this. From jmlandmesser at gmx.de Fri May 18 17:31:36 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 18 May 2018 17:31:36 +0200 Subject: [Lazarus] Lazarus-ccr Access In-Reply-To: References: Message-ID: <480127b6-ff64-d2a0-2a49-67d12049244f@gmx.de> Am 18.05.2018 um 15:44 schrieb Werner Pamler via Lazarus: > Am 17.05.2018 um 13:20 schrieb John Landmesser via Lazarus: >> is that a candidate for ccr and can i get access to it? > > It was Felipe who gave me commit rights for ccr, just contact him > directly referring to this thread. You'll find his mail address by > seeking his posts in this mailing list. > > But to be honest, having exerienced a series of severe downs of > SourceFourge recently, I'd not recommend anybody to post new > activities to CCR (=SourceForce) any more. You are already on github, > why don't you stay there? You just should make sure that your package > is added to OnlinePackageManager such that it is easily reachable by > Lazarus - but in the forum there is already a discussion about this. > done, its from today allready on Online Package Manager, OPM... a really great package for Lazarus IDE! From jmlandmesser at gmx.de Fri May 18 20:05:16 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Fri, 18 May 2018 20:05:16 +0200 Subject: [Lazarus] Package/New Package broken In-Reply-To: References: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> Message-ID: Am 17.05.2018 um 00:01 schrieb Cyrax via Lazarus: > On 16/05/18 10:44, John Landmesser via Lazarus wrote: >> Hi, >> >> Lazarus 1.9.0 r57942 FPC 3.0.0 x86_64-linux-gtk2 >> >> try Package/New Package >> >> and you get an Error Dialog. >> >>> "PackageEditor_Neues Package1" is not a valid component name. >> >> > > Lazarus 1.9.0 r57946 FPC 3.1.1-r39004 x86_64-linux-gtk2 > > I can't reprocude this bug. Maybe you can try to do full clean build > of the IDE and see if it fixes this? > No it occurs because of my german locale. Issue is gone with english and -> "NewPackage.lpk" There are spaces in "PackageEditor_Neues Package1" and thats not possible for package names! Too tired now to write the bug report :-( From werner.pamler at freenet.de Sat May 19 00:27:41 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 19 May 2018 00:27:41 +0200 Subject: [Lazarus] Package/New Package broken In-Reply-To: References: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> Message-ID: Am 18.05.2018 um 20:05 schrieb John Landmesser via Lazarus: > > No it occurs because of my german locale. Issue is gone with english > and -> "NewPackage.lpk" > > There are spaces in "PackageEditor_Neues Package1" and thats not > possible for package names! > > Too tired now to write the bug report :-( I cannot confirm the issue either (I am German, too). I do no see the space in the name. Are you sure that you did not enter it yourself? From listbox at martoks-place.de Sat May 19 01:35:27 2018 From: listbox at martoks-place.de (Martok) Date: Sat, 19 May 2018 01:35:27 +0200 Subject: [Lazarus] Package/New Package broken In-Reply-To: References: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> Message-ID: Am 19.05.2018 um 00:27 schrieb Werner Pamler via Lazarus: > I cannot confirm the issue either (I am German, too). I do no see the > space in the name. Are you sure that you did not enter it yourself? Happens for me too, no input required. This used to work at some point... Lazarus-1.9-57954_fpc-3.1.1-39024M Backtrace: > #0 0x0040f676 in fpc_raiseexception () > #1 0x004899e4 in CLASSES$_$TCOMPONENT_$__$$_SETNAME$ANSISTRING () > #2 0x0055f931 in SETNAME (this=0x2f1e68, VALUE=0xb79a07c 'PackageEditor_Neues Package') at include/control.inc:3492 > #3 0x00b247ad in PACKAGEEDITOR$_$TPACKAGEEDITORFORM_$__$$_UPDATEALL$BOOLEAN () > #4 0x00b23a70 in PACKAGEEDITOR$_$TPACKAGEEDITORFORM_$__$$_SETLAZPACKAGE$TLAZPACKAGE () > #5 0x00b28328 in PACKAGEEDITOR$_$TPACKAGEEDITORS_$__$$_CREATEEDITOR$TLAZPACKAGE$BOOLEAN$$TPACKAGEEDITORFORM () > #6 0x0892be18 in ?? () > #7 0x007fbee4 in PKGMANAGER$_$TPKGMANAGER_$__$$_DONEWPACKAGE$$TMODALRESULT () > #8 0x007f4a48 in PKGMANAGER$_$TPKGMANAGER_$__$$_MAINIDEITMPKGNEWPACKAGECLICK$TOBJECT () > #9 0x00732325 in MENUITEMCLICK (this=0xb4d13e0, SENDER=0xb4ce2f8) at menuintf.pas:544 > #10 0x00734df5 in MENUITEMCLICK (this=0xb4d13e0, SENDER=0xb4ce2f8) at menuintf.pas:1705 > #11 0x00585f40 in CLICK (this=0xb4ce2f8) at include/menuitem.inc:83 > #12 0x005865bf in DOCLICKED (this=0xb4ce2f8, MSG=0) at include/menuitem.inc:293 -- Regards, Martok From jmlandmesser at gmx.de Sat May 19 17:22:08 2018 From: jmlandmesser at gmx.de (John Landmesser) Date: Sat, 19 May 2018 17:22:08 +0200 Subject: [Lazarus] Package/New Package broken In-Reply-To: References: <8d5914ae-b309-2732-45fd-c5e429cda72c@gmx.de> Message-ID: <12117ca5-3b17-0ae0-af5a-e35ba6da1550@gmx.de> Fixed by Mattias: 2018-05-18 23:36 Mattias GaertnerBearbeitung durch => Mattias Gaertner Am 19.05.2018 um 01:35 schrieb Martok via Lazarus: > Am 19.05.2018 um 00:27 schrieb Werner Pamler via Lazarus: >> I cannot confirm the issue either (I am German, too). I do no see the >> space in the name. Are you sure that you did not enter it yourself? > Happens for me too, no input required. This used to work at some point... > > Lazarus-1.9-57954_fpc-3.1.1-39024M > > Backtrace: >> #0 0x0040f676 in fpc_raiseexception () >> #1 0x004899e4 in CLASSES$_$TCOMPONENT_$__$$_SETNAME$ANSISTRING () >> #2 0x0055f931 in SETNAME (this=0x2f1e68, VALUE=0xb79a07c 'PackageEditor_Neues Package') at include/control.inc:3492 >> #3 0x00b247ad in PACKAGEEDITOR$_$TPACKAGEEDITORFORM_$__$$_UPDATEALL$BOOLEAN () >> #4 0x00b23a70 in PACKAGEEDITOR$_$TPACKAGEEDITORFORM_$__$$_SETLAZPACKAGE$TLAZPACKAGE () >> #5 0x00b28328 in PACKAGEEDITOR$_$TPACKAGEEDITORS_$__$$_CREATEEDITOR$TLAZPACKAGE$BOOLEAN$$TPACKAGEEDITORFORM () >> #6 0x0892be18 in ?? () >> #7 0x007fbee4 in PKGMANAGER$_$TPKGMANAGER_$__$$_DONEWPACKAGE$$TMODALRESULT () >> #8 0x007f4a48 in PKGMANAGER$_$TPKGMANAGER_$__$$_MAINIDEITMPKGNEWPACKAGECLICK$TOBJECT () >> #9 0x00732325 in MENUITEMCLICK (this=0xb4d13e0, SENDER=0xb4ce2f8) at menuintf.pas:544 >> #10 0x00734df5 in MENUITEMCLICK (this=0xb4d13e0, SENDER=0xb4ce2f8) at menuintf.pas:1705 >> #11 0x00585f40 in CLICK (this=0xb4ce2f8) at include/menuitem.inc:83 >> #12 0x005865bf in DOCLICKED (this=0xb4ce2f8, MSG=0) at include/menuitem.inc:293 From sysrpl at gmail.com Sat May 19 17:35:24 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Sat, 19 May 2018 11:35:24 -0400 Subject: [Lazarus] Quick update Message-ID: I published a quick update to both my github repository and some documentation related to the ftp client example I posted earlier this week. -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Sun May 20 04:06:42 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sat, 19 May 2018 23:06:42 -0300 Subject: [Lazarus] Comparing strings case-insensitive and ignoring accents Message-ID: Hi, Is there any (fast) built-in function in RTL or LCL that compare two strings using case-insensitive and ignoring accents? These strings are UTF-8. Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Sun May 20 09:16:52 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 20 May 2018 10:16:52 +0300 Subject: [Lazarus] IDE multi-carets issue Message-ID: <680d9047-9b57-30c7-e42f-771130795f36@ya.ru> I have 4 carets on lines         c.SetValue('/dialog/fl_btm/posx', FFormFloatBottom.Left);         c.SetValue('/dialog/fl_btm/posy',  FFormFloatBottom.Top);         c.SetValue('/dialog/fl_btm/sizex', FFormFloatBottom.Width);         c.SetValue('/dialog/fl_btm/sizey', FFormFloatBottom.Height); at start of str. Now i press Right key to move carets to right==> they disappear. -- Regards, Alexey From lazarus at mfriebe.de Sun May 20 10:43:00 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 20 May 2018 10:43:00 +0200 Subject: [Lazarus] IDE multi-carets issue In-Reply-To: <680d9047-9b57-30c7-e42f-771130795f36@ya.ru> References: <680d9047-9b57-30c7-e42f-771130795f36@ya.ru> Message-ID: <1b60b0b7-3c01-bf2a-0b35-a13d9d9a013e@mfriebe.de> On 20/05/2018 09:16, AlexeyT via Lazarus wrote: > I have 4 carets on lines > >         c.SetValue('/dialog/fl_btm/posx', FFormFloatBottom.Left); >         c.SetValue('/dialog/fl_btm/posy',  FFormFloatBottom.Top); >         c.SetValue('/dialog/fl_btm/sizex', FFormFloatBottom.Width); >         c.SetValue('/dialog/fl_btm/sizey', FFormFloatBottom.Height); > > at start of str. Now i press Right key to move carets to right==> they > disappear. > There is an option (Tools > Option > Editor > General): "Multi Caret Move with cursor" Actually 2 options: - The "(column select)" is when you used alt-shift-(mouse or cursor keys) to get your carets. - The other is for all other multi carets (set by mouse: Shift Ctrl Left, or keys: Shift Ctrl Insert) Currently this option includes vertical AND horizontal moves. So you need to set a shortcut to clear all extra carets. (keymap options) To have an option for only horizontal moves is on the Todo. Equally TODO, if you press del at the end of the line (especially if only some carets are at the end of line), currently the line breaks are deleted and lines are joined. From marcov at stack.nl Sun May 20 19:09:39 2018 From: marcov at stack.nl (Marco van de Voort) Date: Sun, 20 May 2018 19:09:39 +0200 Subject: [Lazarus] new lcl CHMs. Message-ID: <20180520170939.GA36000@stack.nl> Hello, I generated trunk CHMs for LCL as a testcase after fixing bug #32325. Hopefully 4000+ cases of this issue (TStringgrid.align redirection in the index failed) were fixed. Experimental CHMs are at http:/www.stack.nl/~marcov/new304/lcl-chm.zip which are linked against the newer FPC 3.0.4 chms at http:/www.stack.nl/~marcov/new304/doc-chm.zip As an experiment, the Lazarus CHMs were generated on Windows. Please report any anomalies. A log is included and contains a warning/hint to list the cases where the fix engages. If there are new problems check against the log if the relevant symbol was fixed. Log looks like: resolved:grids/tstringgrid.align.html to controls/tcontrol.align.html The committed version minorly improved on the message. Marco From marc at dommelstein.nl Sun May 20 19:39:41 2018 From: marc at dommelstein.nl (Marc Weustink) Date: Sun, 20 May 2018 19:39:41 +0200 Subject: [Lazarus] Comparing strings case-insensitive and ignoring accents In-Reply-To: References: Message-ID: On May 20, 2018 4:06:42 AM GMT+02:00, "Marcos Douglas B. Santos via Lazarus" wrote: >Hi, > >Is there any (fast) built-in function in RTL or LCL that compare two >strings using case-insensitive and ignoring accents? > >These strings are UTF-8. For comparing case insensitive strings you can use SameText(). Don't know if there is a function to strip accents. Marc > From werner.pamler at freenet.de Sun May 20 20:05:45 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 20 May 2018 20:05:45 +0200 Subject: [Lazarus] new lcl CHMs. In-Reply-To: <20180520170939.GA36000@stack.nl> References: <20180520170939.GA36000@stack.nl> Message-ID: Am 20.05.2018 um 19:09 schrieb Marco van de Voort via Lazarus: > Hello, > > I generated trunk CHMs for LCL as a testcase after fixing bug #32325. > > Hopefully 4000+ cases of this issue (TStringgrid.align redirection in the > index failed) were fixed. > > Experimental CHMs are at http:/www.stack.nl/~marcov/new304/lcl-chm.zip which > are linked against the newer FPC 3.0.4 chms at > > http:/www.stack.nl/~marcov/new304/doc-chm.zip > > As an experiment, the Lazarus CHMs were generated on Windows. Please report > any anomalies. A log is included and contains a warning/hint to list the > cases where the fix engages. If there are new problems check against the log > if the relevant symbol was fixed. > > Log looks like: > resolved:grids/tstringgrid.align.html to controls/tcontrol.align.html > > The committed version minorly improved on the message. > > Marco I downloaded the chm-zips from your site, copied them into the folder (lazarus)/docs/chm of Laz 1.8.2, and followed the "steps to reproduce" of the bug report #32325 (on Windows): Yes, the new files seem to work fine. Thank you. From md at delfire.net Sun May 20 20:19:38 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 20 May 2018 15:19:38 -0300 Subject: [Lazarus] Comparing strings case-insensitive and ignoring accents In-Reply-To: References: Message-ID: On Sun, May 20, 2018 at 2:39 PM, Marc Weustink via Lazarus wrote: > > > > On May 20, 2018 4:06:42 AM GMT+02:00, "Marcos Douglas B. Santos via Lazarus" wrote: > >Hi, > > > >Is there any (fast) built-in function in RTL or LCL that compare two > >strings using case-insensitive and ignoring accents? > > > >These strings are UTF-8. > > For comparing case insensitive strings you can use SameText(). Don't know if there is a function to strip accents. Hey Marc. I know about SameText that calls CompareText, but I need to combine with other one that strip accents. I can make it, but I prefer use built-in functions for do not have issues about encode, etc. Thanks, anyway. Regards, Marcos Douglas From marcov at stack.nl Sun May 20 22:49:57 2018 From: marcov at stack.nl (Marco van de Voort) Date: Sun, 20 May 2018 22:49:57 +0200 Subject: [Lazarus] new lcl CHMs. In-Reply-To: References: <20180520170939.GA36000@stack.nl> Message-ID: <20180520204957.GA71118@stack.nl> On Sun, May 20, 2018 at 08:05:45PM +0200, Werner Pamler via Lazarus wrote: > I downloaded the chm-zips from your site, copied them into the folder > (lazarus)/docs/chm of Laz 1.8.2, and followed the "steps to reproduce" > of the bug report #32325 (on Windows): Yes, the new files seem to work > fine. Thank you. (note they are for trunk lazarus, not 1.8.x. Somebody might want to run them for 1.8.x. If the doc setup is the same, it should be very easy. I assume you know it, but for the benefits of the others: 0. build a trunk fpc to get a new fpdoc 1. fetch the FPC doc chm 2. get a 1.8.x source checkout and compile docs/html/build_lcl_docs.lpi 3. run it like this in docs/html: rem change path so that trunk FPDOC is found. path d:\fpc32\bin\i386-win32;%PATH% rem replace --fpcdocs argument with where you put the extract FPC chms build_lcl_docs.exe --warnings --fpcdocs d:\help --outfmt chm 2>&1 1> logs.txt rem drink coffee for 10 minutes or so. ) From Special at Joepgen.com Sun May 20 23:35:30 2018 From: Special at Joepgen.com (Joe) Date: Sun, 20 May 2018 23:35:30 +0200 Subject: [Lazarus] Lazarus Make error under Ubuntu Mate Message-ID: <6404f037-1f24-01ee-33e1-465d6f0f9b02@Joepgen.com> Hi, under Ubuntu Mate 16.04.4 LTS with Lazarus 1.6 and FPC 3.0.0 I tried to make Lazarus, Revision 57978. Compiling was aborted with this error message: '... guitestrunner.pas(682/24)  Error: (5083) Identifier idents no member "ChildTestCount"'. How to fix? --  Joe From mailinglists at geldenhuys.co.uk Mon May 21 00:34:44 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 20 May 2018 23:34:44 +0100 Subject: [Lazarus] new lcl CHMs. In-Reply-To: <20180520204957.GA71118@stack.nl> References: <20180520170939.GA36000@stack.nl> <20180520204957.GA71118@stack.nl> Message-ID: On 2018-05-20 21:49, Marco van de Voort via Lazarus wrote: > rem drink coffee for 10 minutes or so. Building the INF docs has a similar experience. Glad its not just me. :-) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From nc-gaertnma at netcologne.de Mon May 21 08:51:35 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 21 May 2018 08:51:35 +0200 Subject: [Lazarus] new lcl CHMs. In-Reply-To: <20180520170939.GA36000@stack.nl> References: <20180520170939.GA36000@stack.nl> Message-ID: <20180521085135.6702ab49@limapholos.matflo.wg> On Sun, 20 May 2018 19:09:39 +0200 Marco van de Voort via Lazarus wrote: > Hello, > > I generated trunk CHMs for LCL as a testcase after fixing bug #32325. > > Hopefully 4000+ cases of this issue (TStringgrid.align redirection in the > index failed) were fixed. > > Experimental CHMs are at http:/www.stack.nl/~marcov/new304/lcl-chm.zip which > are linked against the newer FPC 3.0.4 chms at > > http:/www.stack.nl/~marcov/new304/doc-chm.zip For the 1.8.4 release I downloaded this file on 17th May. Mattias From nc-gaertnma at netcologne.de Mon May 21 09:13:51 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 21 May 2018 09:13:51 +0200 Subject: [Lazarus] Lazarus Make error under Ubuntu Mate In-Reply-To: <6404f037-1f24-01ee-33e1-465d6f0f9b02@Joepgen.com> References: <6404f037-1f24-01ee-33e1-465d6f0f9b02@Joepgen.com> Message-ID: <20180521091351.3886c2ab@limapholos.matflo.wg> On Sun, 20 May 2018 23:35:30 +0200 Joe via Lazarus wrote: > Hi, > > under Ubuntu Mate 16.04.4 LTS with Lazarus 1.6 and FPC 3.0.0 I tried to > make Lazarus, Revision 57978. Compiling was aborted with this error message: > '... guitestrunner.pas(682/24)  Error: (5083) Identifier idents no > member "ChildTestCount"'. Fixed. Mattias From aaa5500 at ya.ru Mon May 21 11:07:20 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 21 May 2018 12:07:20 +0300 Subject: [Lazarus] IDE multi-caret options wishes Message-ID: In General tab of options we have 3 opts for multicarets. 1a) fix one of them- "multi caret" - "multi-caret" like others 1b) place all 3 under separator line (------------) below, name group like "Multi-caret". it is good to see all opts related to multi-crt. 1c) better name for "Multi caret move with cursor" is "Move multi-caret by arrow keys". coz CURSOR is mouse cursor. 2 options named with "with cursor". 2) IMHO better name for "Caret past end of line" is "Allow caret after end of line" 3) Where is option for "Allow to place multi-caret by Ctrl+Click"? -- Regards, Alexey From marcov at stack.nl Mon May 21 14:16:34 2018 From: marcov at stack.nl (Marco van de Voort) Date: Mon, 21 May 2018 14:16:34 +0200 Subject: [Lazarus] new lcl CHMs. In-Reply-To: <20180521085135.6702ab49@limapholos.matflo.wg> References: <20180520170939.GA36000@stack.nl> <20180521085135.6702ab49@limapholos.matflo.wg> Message-ID: <20180521121633.GA48855@stack.nl> On Mon, May 21, 2018 at 08:51:35AM +0200, Mattias Gaertner via Lazarus wrote: > > Hopefully 4000+ cases of this issue (TStringgrid.align redirection in the > > index failed) were fixed. > > > > Experimental CHMs are at http:/www.stack.nl/~marcov/new304/lcl-chm.zip which > > are linked against the newer FPC 3.0.4 chms at > > > > http:/www.stack.nl/~marcov/new304/doc-chm.zip > > For the 1.8.4 release I downloaded this file on 17th May. The point was more that if you already made 1.8.4 LCL docs before yesterday (20th), better redo them with a trunk fpdoc to get references in the index to properties that change visibility right. From nc-gaertnma at netcologne.de Mon May 21 15:10:09 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 21 May 2018 15:10:09 +0200 Subject: [Lazarus] new lcl CHMs. In-Reply-To: <20180521121633.GA48855@stack.nl> References: <20180520170939.GA36000@stack.nl> <20180521085135.6702ab49@limapholos.matflo.wg> <20180521121633.GA48855@stack.nl> Message-ID: <20180521151009.30ebee45@limapholos.matflo.wg> On Mon, 21 May 2018 14:16:34 +0200 Marco van de Voort via Lazarus wrote: > On Mon, May 21, 2018 at 08:51:35AM +0200, Mattias Gaertner via Lazarus wrote: > > > Hopefully 4000+ cases of this issue (TStringgrid.align redirection in the > > > index failed) were fixed. > > > > > > Experimental CHMs are at http:/www.stack.nl/~marcov/new304/lcl-chm.zip which > > > are linked against the newer FPC 3.0.4 chms at > > > > > > http:/www.stack.nl/~marcov/new304/doc-chm.zip > > > > For the 1.8.4 release I downloaded this file on 17th May. > > The point was more that if you already made 1.8.4 LCL docs before yesterday > (20th), better redo them with a trunk fpdoc to get references in the index > to properties that change visibility right. Good, I will do so for 1.8.6. Mattias From larrydalton71 at gmail.com Mon May 21 17:32:26 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Mon, 21 May 2018 11:32:26 -0400 Subject: [Lazarus] fpc installation error Message-ID: I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two different computers and cannot get the fpc package installed. I have downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and lazarus-project_1.8.2-0_amd64.deb. The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have uninstalled previous lazarus versions, and have tried to completely remove all associated files, both using Synaptic Package Manager and also chasing down each file and deleting them. Still, on both machines, when I try to install fpc.3.0.4-2, I get the following error: "errpr: breaks existing package fpc conflict 'fpc()'. On the laptop I even did a complete disc-cleaning installation of linux mint 18.2, and repeated the process. Still get the error. What do I need to do, now that I have two computers with no operating lazarus versions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Mon May 21 17:32:26 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Mon, 21 May 2018 11:32:26 -0400 Subject: [Lazarus] fpc installation error Message-ID: I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two different computers and cannot get the fpc package installed. I have downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and lazarus-project_1.8.2-0_amd64.deb. The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have uninstalled previous lazarus versions, and have tried to completely remove all associated files, both using Synaptic Package Manager and also chasing down each file and deleting them. Still, on both machines, when I try to install fpc.3.0.4-2, I get the following error: "errpr: breaks existing package fpc conflict 'fpc()'. On the laptop I even did a complete disc-cleaning installation of linux mint 18.2, and repeated the process. Still get the error. What do I need to do, now that I have two computers with no operating lazarus versions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thepiper at stny.rr.com Mon May 21 17:48:22 2018 From: thepiper at stny.rr.com (Barbara M. Harris-Pruitt) Date: Mon, 21 May 2018 11:48:22 -0400 Subject: [Lazarus] fpc installation error In-Reply-To: References: Message-ID: I had the same problem when I tried to install Lazarus on Ubuntu Mate 18.04.  I ended up installing it using the Synaptic Package Manager because I would get the same error that you got when I tried to install it from either the .deb files or via the regular Ubuntu Software application.  I made sure I had all possible source and binary options selected for installation.  It worked perfectly when I did it that way. Hope this helps. Bye, Barbara Barbara M. Harris thepiper at stny.rr.com https://www.handknitsbybarbara.com/ "There's no such thing as a normal cat." On 05/21/2018 11:32 AM, Larry Dalton via Lazarus wrote: > I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two > different computers and cannot get the fpc package installed. I have > downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and > lazarus-project_1.8.2-0_amd64.deb. > > The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have > uninstalled previous lazarus versions, and have tried to completely > remove all associated files, both using Synaptic Package Manager and > also chasing down each file and deleting them. Still, on both > machines, when I try to install fpc.3.0.4-2, I get the following > error: "errpr: breaks existing package fpc conflict 'fpc()'. On the > laptop I even did a complete disc-cleaning installation of linux mint > 18.2, and repeated the process. Still get the error.  What do I need > to do, now that I have two computers with no operating lazarus versions? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Mon May 21 19:26:04 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Mon, 21 May 2018 13:26:04 -0400 Subject: [Lazarus] fpc installation error In-Reply-To: Message-ID: <5b03010a.1c69fb81.b83ba.9e3c@mx.google.com> I am definitely not a linux expert. Where do I get all the packages that I need to install this version of lazarus? Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: "Barbara M. Harris-Pruitt via Lazarus" Date: 5/21/18 11:48 (GMT-05:00) To: Larry Dalton via Lazarus Cc: "Barbara M. Harris-Pruitt" Subject: Re: [Lazarus] fpc installation error I had the same problem when I tried to install Lazarus on Ubuntu Mate 18.04.  I ended up installing it using the Synaptic Package Manager because I would get the same error that you got when I tried to install it from either the .deb files or via the regular Ubuntu Software application.  I made sure I had all possible source and binary options selected for installation.  It worked perfectly when I did it that way.   Hope this helps. Bye, Barbara Barbara M. Harris thepiper at stny.rr.com https://www.handknitsbybarbara.com/ "There's no such thing as a normal cat." On 05/21/2018 11:32 AM, Larry Dalton via Lazarus wrote: I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two different computers and cannot get the fpc package installed. I have downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and lazarus-project_1.8.2-0_amd64.deb.  The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have uninstalled previous lazarus versions, and have tried to completely remove all associated files, both using Synaptic Package Manager and also chasing down each file and deleting them. Still, on both machines, when I try to install fpc.3.0.4-2, I get the following error: "errpr: breaks existing package fpc conflict 'fpc()'. On the laptop I even did a complete disc-cleaning installation of linux mint 18.2, and repeated the process. Still get the error.  What do I need to do, now that I have two computers with no operating lazarus versions?  -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Mon May 21 19:26:04 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Mon, 21 May 2018 13:26:04 -0400 Subject: [Lazarus] fpc installation error In-Reply-To: Message-ID: <5b0306d6.1c69fb81.85c11.5c76@mx.google.com> I am definitely not a linux expert. Where do I get all the packages that I need to install this version of lazarus? Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: "Barbara M. Harris-Pruitt via Lazarus" Date: 5/21/18 11:48 (GMT-05:00) To: Larry Dalton via Lazarus Cc: "Barbara M. Harris-Pruitt" Subject: Re: [Lazarus] fpc installation error I had the same problem when I tried to install Lazarus on Ubuntu Mate 18.04.  I ended up installing it using the Synaptic Package Manager because I would get the same error that you got when I tried to install it from either the .deb files or via the regular Ubuntu Software application.  I made sure I had all possible source and binary options selected for installation.  It worked perfectly when I did it that way.   Hope this helps. Bye, Barbara Barbara M. Harris thepiper at stny.rr.com https://www.handknitsbybarbara.com/ "There's no such thing as a normal cat." On 05/21/2018 11:32 AM, Larry Dalton via Lazarus wrote: I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two different computers and cannot get the fpc package installed. I have downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and lazarus-project_1.8.2-0_amd64.deb.  The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have uninstalled previous lazarus versions, and have tried to completely remove all associated files, both using Synaptic Package Manager and also chasing down each file and deleting them. Still, on both machines, when I try to install fpc.3.0.4-2, I get the following error: "errpr: breaks existing package fpc conflict 'fpc()'. On the laptop I even did a complete disc-cleaning installation of linux mint 18.2, and repeated the process. Still get the error.  What do I need to do, now that I have two computers with no operating lazarus versions?  -------------- next part -------------- An HTML attachment was scrubbed... URL: From joost at cnoc.nl Mon May 21 19:51:05 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Mon, 21 May 2018 19:51:05 +0200 Subject: [Lazarus] fpc installation error In-Reply-To: References: Message-ID: <82f6fa41-badd-bf33-a860-d7a146a5355d@cnoc.nl> Op 21-05-18 om 17:48 schreef Barbara M. Harris-Pruitt via Lazarus: > I had the same problem when I tried to install Lazarus on Ubuntu Mate > 18.04.  I ended up installing it using the Synaptic Package Manager > because I would get the same error that you got when I tried to install > it from either the .deb files or via the regular Ubuntu Software > application.  I made sure I had all possible source and binary options > selected for installation.  It worked perfectly when I did it that way. Better file a bug report on Linux Mint or Ubuntu, then. Regards, Joost From nc-gaertnma at netcologne.de Mon May 21 20:07:55 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 21 May 2018 20:07:55 +0200 Subject: [Lazarus] fpc installation error In-Reply-To: References: Message-ID: <20180521200755.39b53894@limapholos.matflo.wg> On Mon, 21 May 2018 11:32:26 -0400 Larry Dalton via Lazarus wrote: > I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two > different computers and cannot get the fpc package installed. I have > downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and > lazarus-project_1.8.2-0_amd64.deb. > > The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have > uninstalled previous lazarus versions, and have tried to completely remove > all associated files, both using Synaptic Package Manager and also chasing > down each file and deleting them. Still, on both machines, when I try to > install fpc.3.0.4-2, I get the following error: "errpr: breaks existing > package fpc conflict 'fpc()'. You can ignore that error message. Proceed to install the lazarus deb. I will see if I can create a fpc deb without that error. Mattias From larrydalton71 at gmail.com Mon May 21 20:25:22 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Mon, 21 May 2018 14:25:22 -0400 Subject: [Lazarus] fpc installation error In-Reply-To: <20180521200755.39b53894@limapholos.matflo.wg> Message-ID: <5b030eeb.1c69fb81.35847.a5c0@mx.google.com> Thanks, Mattias! Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Mattias Gaertner via Lazarus Date: 5/21/18 14:07 (GMT-05:00) To: lazarus at lists.lazarus-ide.org Cc: Mattias Gaertner Subject: Re: [Lazarus] fpc installation error On Mon, 21 May 2018 11:32:26 -0400 Larry Dalton via Lazarus wrote: > I have been trying to upgrade to Lazarus 1.8.2.-0_amd64.deb on two > different computers and cannot get the fpc package installed. I have > downloaded fpc_3.0.4-2_amd64.deb, fpc-src_3.0.4-2_amd64.deb, and > lazarus-project_1.8.2-0_amd64.deb. > > The laptop has Linux Mint 18.2, and the desktop has Linux 17.2. I have > uninstalled previous lazarus versions, and have tried to completely remove > all associated files, both using Synaptic Package Manager and also chasing > down each file and deleting them. Still, on both machines, when I try to > install fpc.3.0.4-2, I get the following error: "errpr: breaks existing > package fpc conflict 'fpc()'. You can ignore that error message. Proceed to install the lazarus deb. I will see if I can create a fpc deb without that error. Mattias -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Mon May 21 20:59:10 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 21 May 2018 20:59:10 +0200 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: References: Message-ID: <322278a3-54c5-21f6-f632-5eaedae43f9a@mfriebe.de> On 21/05/2018 11:07, AlexeyT via Lazarus wrote: > In General tab of options we have 3 opts for multicarets. > > 1a) fix one of them- "multi caret" - "multi-caret" like others > > 1b) place all 3 under separator line (------------) below, name group > like "Multi-caret". it is good to see all opts related to multi-crt. > > 1c) better name for "Multi caret move with cursor" is "Move > multi-caret by arrow keys". coz CURSOR is mouse cursor. 2 options > named with "with cursor". > > > 2) IMHO better name for "Caret past end of line" is "Allow caret after > end of line" Ideally but on Mantis. Depends how soon I get to have a look at it > > 3) Where is option for "Allow to place multi-caret by Ctrl+Click"? > Mouse options. Choose the button, and modifier keys and select from the dropdown. (This is for setting individual extra carets. To set a continues line, you can use the column selection via mouse) There are also additional keymap entries in the keymap From friess at gmx.at Mon May 21 21:44:59 2018 From: friess at gmx.at (Andreas =?UTF-8?B?RnJpZcOf?=) Date: Mon, 21 May 2018 21:44:59 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> Message-ID: If someone can backport this please. The fix from Bugreport 0031517 to the actual stable or must this a extra feature report ? Andreas Werner Pamler via Lazarus wrote: > Am 13.05.2018 um 12:00 schrieb zeljko via Lazarus: > > Hi, > > Using trunk lazarus r57911 and fpc-3.0.4 (32 bit), Windows 10. > > When rebuilding ide from lazarus got "No memory left" while linking > > IDE. I have bunch of 3rd party packages so I guess that too many > > units triggers this error since "make bigide" from cmd works fine. > > With fpc-3.0.0 everything works fine. Both win32 and win32-qt shows > > same error. > > Does anybody have such problem ? Is there any way to fix it ? > > Does 3.1.1 trunk have such problem ? > > I have that issue, too. It happens on the 32-bit IDE only, when > "many" packages are installed. Since I work on the JVCL port which > consists of a lot of packages, this happens regularly. I have to > remove other packages to get some memory back. > > There was a discussion on this issue recently: > https://forum.lazarus.freepascal.org/index.php/topic,40351.0.html. If > I read correctly they seemed to fix the issue by a modified pp.pas > (reply -62), I did not test it myself, though. From michael at freepascal.org Tue May 22 09:15:37 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 22 May 2018 09:15:37 +0200 (CEST) Subject: [Lazarus] Property editor is set ? Message-ID: Hello, How can I check whether a property editor is set for a certain property in the lazarus IDE interface ? I want to register a property editor for some properties, but only if it was not yet set. Michael. From mailinglists at geldenhuys.co.uk Tue May 22 09:37:34 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 22 May 2018 08:37:34 +0100 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: References: Message-ID: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> On 2018-05-21 10:07, AlexeyT via Lazarus wrote: > 1c) better name for "Multi caret move with cursor" is "Move multi-caret > by arrow keys". coz CURSOR is mouse cursor. The "text cursor" has been around for much longer than the mouse device existed. Think by how many years the terminal interface on Mainframes, UNIX workstations and even DOS predates the Mouse device. Probably the same reason the kids of today don't know why Windows allocates the first hard drive to the letter C: and not A: ;-) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From nc-gaertnma at netcologne.de Tue May 22 10:33:38 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 22 May 2018 10:33:38 +0200 Subject: [Lazarus] Property editor is set ? In-Reply-To: References: Message-ID: <20180522103338.43bef8d8@limapholos.matflo.wg> On Tue, 22 May 2018 09:15:37 +0200 (CEST) Michael Van Canneyt via Lazarus wrote: > Hello, > > How can I check whether a property editor is set for a certain property in > the lazarus IDE interface ? I guess you mean function GetEditorClass. Mattias From michael at freepascal.org Tue May 22 10:39:22 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 22 May 2018 10:39:22 +0200 (CEST) Subject: [Lazarus] Property editor is set ? In-Reply-To: <20180522103338.43bef8d8@limapholos.matflo.wg> References: <20180522103338.43bef8d8@limapholos.matflo.wg> Message-ID: On Tue, 22 May 2018, Mattias Gaertner via Lazarus wrote: > On Tue, 22 May 2018 09:15:37 +0200 (CEST) > Michael Van Canneyt via Lazarus wrote: > >> Hello, >> >> How can I check whether a property editor is set for a certain property in >> the lazarus IDE interface ? > > I guess you mean function GetEditorClass. Chances are pretty big I do... I should have thought of this myself :( Thanks! Michael. From aaa5500 at ya.ru Tue May 22 10:55:27 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 22 May 2018 11:55:27 +0300 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> Message-ID: <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> You're right, but: IDE is for major audience, so need to use major terms, of current time: cursor is mouse cursor. Thanks for your work on github Lazarus mirror.. PS. Russian people (age<35) don't know what are mainframes, Unix workstations: so cursor is always mouse cursor :) On 22.05.2018 10:37, Graeme Geldenhuys via Lazarus wrote: > The "text cursor" has been around for much longer than the mouse device > existed. Think by how many years the terminal interface on Mainframes, > UNIX workstations and even DOS predates the Mouse device. -- Regards, Alexey From michael at freepascal.org Tue May 22 11:03:43 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 22 May 2018 11:03:43 +0200 (CEST) Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> Message-ID: On Tue, 22 May 2018, AlexeyT via Lazarus wrote: > You're right, but: IDE is for major audience, so need to use major > terms, of current time: cursor is mouse cursor. What is the keyboard cursor then in modern day languag ? I thought it was the keyboard cursor and mouse pointer ? Michael. From mailinglists at geldenhuys.co.uk Tue May 22 11:10:36 2018 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 22 May 2018 10:10:36 +0100 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> Message-ID: On 2018-05-22 10:03, Michael Van Canneyt via Lazarus wrote: > I thought it was the keyboard cursor and mouse pointer ? My point exactly - you simply worded it much better than I did (no surprise). I've never regarded the mouse pointer as a "cursor", but I was concerned it might be my age showing. ;-) Regards, Graeme From aaa5500 at ya.ru Tue May 22 11:12:58 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 22 May 2018 12:12:58 +0300 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> Message-ID: <99898e61-e975-9707-4f92-66a46df538b5@ya.ru> Okay,  so better use "text cursor" and "mouse pointer". >I thought it was the keyboard cursor and mouse pointer ? -- Regards, Alexey From Special at Joepgen.com Tue May 22 11:44:30 2018 From: Special at Joepgen.com (Joe) Date: Tue, 22 May 2018 11:44:30 +0200 Subject: [Lazarus] Lazarus Make Parameters Message-ID: Some silly questions from an Make beginner: Where can I find a enumeration and explanations of the Lazarus Make parameters like OPT='-dLCLGtk2Fix30545' and '-dVerboseKeyboard'? Until now, I only did Lazarus SVN CheckOut and Lazarus Make with Trunk. How to do it with 'Release' and 'Fix' Versions? Whats the exact difference between these versions? Are there more versions available than Trunk, Release and Fix? Joe From nc-gaertnma at netcologne.de Tue May 22 11:57:33 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 22 May 2018 11:57:33 +0200 Subject: [Lazarus] Lazarus Make Parameters In-Reply-To: References: Message-ID: <20180522115733.58c815b2@limapholos.matflo.wg> On Tue, 22 May 2018 11:44:30 +0200 Joe via Lazarus wrote: > Some silly questions from an Make beginner: > Where can I find a enumeration and explanations of the Lazarus Make > parameters like OPT='-dLCLGtk2Fix30545' and '-dVerboseKeyboard'? These are experimental flags, used sometimes by Lazarus developers to hunt bugs. They are not supported. Mattias From vojtech.cihak at atlas.cz Tue May 22 13:00:15 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 22 May 2018 13:00:15 +0200 Subject: [Lazarus] =?utf-8?q?IDE_multi-caret_options_wishes?= In-Reply-To: 000000008b0c0001950001744ff8 References: 000000008b0c0001950001744ff8 Message-ID: <20180522130015.060EDF27@atlas.cz> Yes, even on my first PC - Commodore 64 - it was "cursor". Therefore it is stupid that Delphi named that property Cursor: TCursor and it means image of mouse pointer.   V. ______________________________________________________________ > Od: Graeme Geldenhuys via Lazarus The "text cursor" has been around for much longer than the mouse device existed. Think by how many years the terminal interface on Mainframes, UNIX workstations and even DOS predates the Mouse device. -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key:  http://tinyurl.com/graeme-pgp -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Tue May 22 13:16:12 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 22 May 2018 13:16:12 +0200 Subject: [Lazarus] Lazarus Make Parameters In-Reply-To: References: Message-ID: <20180522131612.739b64b4@limapholos.matflo.wg> On Tue, 22 May 2018 11:44:30 +0200 Joe via Lazarus wrote: >[ > Until now, I only did Lazarus SVN CheckOut and Lazarus Make with Trunk. > How to do it with 'Release' and 'Fix' Versions? The same. Just other svn URLs. For example: The 1.8.2 release: https://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_2 The fixes branch: https://svn.freepascal.org/svn/svn/lazarus/branches/fixes_1_8 > Whats the exact difference between these versions? http://wiki.lazarus.freepascal.org/Version_Numbering > Are there more versions available than Trunk, Release and Fix? These are the most important ones. Sometimes developers create a branch to work on a big feature, which is later merged. You can use the svn list command: svn list https://svn.freepascal.org/svn/lazarus/ Mattias From Special at Joepgen.com Tue May 22 13:30:14 2018 From: Special at Joepgen.com (Joe) Date: Tue, 22 May 2018 13:30:14 +0200 Subject: [Lazarus] Lazarus Make Parameters In-Reply-To: <20180522131612.739b64b4@limapholos.matflo.wg> References: <20180522131612.739b64b4@limapholos.matflo.wg> Message-ID: <87581177-b2ee-1819-5fa9-c353e891e9ac@Joepgen.com> Am 22.05.2018 um 13:16 schrieb Mattias Gaertner via Lazarus: > On Tue, 22 May 2018 11:44:30 +0200 > Joe via Lazarus wrote: > >> [ >> Until now, I only did Lazarus SVN CheckOut and Lazarus Make with Trunk. >> How to do it with 'Release' and 'Fix' Versions? > The same. > Just other svn URLs. For example: > The 1.8.2 release: > https://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_2 > The fixes branch: > https://svn.freepascal.org/svn/svn/lazarus/branches/fixes_1_8 > > >> Whats the exact difference between these versions? > http://wiki.lazarus.freepascal.org/Version_Numbering > > >> Are there more versions available than Trunk, Release and Fix? > These are the most important ones. > Sometimes developers create a branch to work on a big feature, which > is later merged. > > You can use the svn list command: > svn list https://svn.freepascal.org/svn/lazarus/ > > Mattias Mattias, this helps a lot. Thanx. Joe From aaa5500 at ya.ru Tue May 22 15:56:17 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 22 May 2018 16:56:17 +0300 Subject: [Lazarus] Gtk2 CheckListbox: items checked on simple click Message-ID: <0036c5ec-fb27-8a48-7adc-74c892a7af15@ya.ru> If i click items on text area (much rigther than checkbox), checkbox toggles. It's not good for UI, Win32 works not so. I see it as valid issue, pls fix? -- Regards, Alexey From serbod at gmail.com Tue May 22 15:57:19 2018 From: serbod at gmail.com (Sergey Bodrov) Date: Tue, 22 May 2018 16:57:19 +0300 Subject: [Lazarus] "End of source not found" error in Trunk. Message-ID: I got annoing "End of source not found" when use autocompletion (Ctrl-Space) on random places of code. After adding/removing empty line in such place, autocompletion works, but over some time error repeats again. What's wrong? It's Codetools bug or some incorrect options setting? I not sure, but maybe that's begins after installing LAMW and laz4android modules from fpcupdeluxe. -- *Bodrov Sergey* software development, IT consulting http://www.serbod.com *Phone (Belarus):* +375(25)794-21-58 *Skype:* sergey.bodrov1 *e-mail:* serbod at gmail.com, oxotnuk at yandex.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Tue May 22 16:54:41 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 22 May 2018 16:54:41 +0200 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: References: Message-ID: <20180522165441.4d7e8917@limapholos.matflo.wg> On Tue, 22 May 2018 16:57:19 +0300 Sergey Bodrov via Lazarus wrote: > I got annoing "End of source not found" when use autocompletion > (Ctrl-Space) on random places of code. After adding/removing empty line in > such place, autocompletion works, but over some time error repeats again. > What's wrong? It's Codetools bug or some incorrect options setting? I not > sure, but maybe that's begins after installing LAMW and laz4android modules > from fpcupdeluxe. Can you reproduce it? Mattias From mlnglsts at bgss.hu Tue May 22 17:51:47 2018 From: mlnglsts at bgss.hu (Gabor Boros) Date: Tue, 22 May 2018 17:51:47 +0200 Subject: [Lazarus] lazreport to fpReport converter In-Reply-To: References: Message-ID: <5c644db7-61b3-f4d3-e132-402372e69910@bgss.hu> 2018. 05. 06. 12:47 keltezéssel, Graeme Geldenhuys via Lazarus írta: > Kudos to Christian. The last push to finally say goodbye to LazReport. > Also well done to all that took the original fpReport and ran with it - > improving and fixing it further than the time I had available. The > absolute joy of seeing open source development at its best. FPC really > have a gem of a reporting tool now! Is it have LazReport like script feature? Gabor From wkitty42 at windstream.net Tue May 22 18:08:30 2018 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Tue, 22 May 2018 12:08:30 -0400 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> Message-ID: <3b9218b2-c699-9e63-4961-d50d178a6303@windstream.net> On 05/22/2018 04:55 AM, AlexeyT via Lazarus wrote: > You're right, but: IDE is for major audience, so need to use major terms, of > current time: cursor is mouse cursor. not when i'm typing in the/an editor... that mouse thing is just trash to be moved out of the way so i can read what is typed... the proper name for that mouse thing is "pointer"... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* From wkitty42 at windstream.net Tue May 22 18:09:09 2018 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Tue, 22 May 2018 12:09:09 -0400 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: <99898e61-e975-9707-4f92-66a46df538b5@ya.ru> References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> <99898e61-e975-9707-4f92-66a46df538b5@ya.ru> Message-ID: <6b2b8bba-658f-e58e-e999-bdb04b7d7648@windstream.net> On 05/22/2018 05:12 AM, AlexeyT via Lazarus wrote: > Okay,  so better use "text cursor" and "mouse pointer". yes! :) -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* From lazarus at mfriebe.de Tue May 22 18:36:12 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 22 May 2018 18:36:12 +0200 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: <3b9218b2-c699-9e63-4961-d50d178a6303@windstream.net> References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> <3b9218b2-c699-9e63-4961-d50d178a6303@windstream.net> Message-ID: On 22/05/2018 18:08, wkitty42--- via Lazarus wrote: > On 05/22/2018 04:55 AM, AlexeyT via Lazarus wrote: >> You're right, but: IDE is for major audience, so need to use major >> terms, of current time: cursor is mouse cursor. > > > not when i'm typing in the/an editor... that mouse thing is just trash > to be moved out of the way so i can read what is typed... the proper > name for that mouse thing is "pointer"... https://en.wikipedia.org/wiki/Cursor_(databases) > *cursor* is a control structure that enables traversal > over the records > in a database. SCNR But https://en.wikipedia.org/wiki/Cursor > Cursor (user interface) > , an > indicator used to show the current position for user interaction on a > computer monitor or other display device Current position can be mouse or text-mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hdv.jadev at gmail.com Tue May 22 19:18:41 2018 From: hdv.jadev at gmail.com (hdv@gmail) Date: Tue, 22 May 2018 19:18:41 +0200 Subject: [Lazarus] IDE multi-caret options wishes In-Reply-To: References: <8f04dd92-c4a0-6409-0924-de65ac56ed86@geldenhuys.co.uk> <33abce8a-dc0a-c107-89ac-e0270324c0e4@ya.ru> Message-ID: <7fcc887d-d22f-de3a-1fcc-029e07ea09ab@gmail.com> On 2018-05-22 11:03, Michael Van Canneyt via Lazarus wrote: > > > On Tue, 22 May 2018, AlexeyT via Lazarus wrote: > >> You're right, but: IDE is for major audience, so need to use major terms, of >> current time: cursor is mouse cursor. > > What is the keyboard cursor then in modern day languag ? > > I thought it was the keyboard cursor and mouse pointer ? To make things even more confusing, for fossils like me, there's also the "caret"... This is what the Apple Human User Interface Guidelines have to say on this topic (admittedly not the most recent version, as I don't have that one): [caret] A generic term for a symbol that indicates where the next text will be inserted. The caret used in Macintosh text is a vertical bar (|). [cursor] See pointer. [pointer] A small shape on the screen that follows the movement of the mouse or shows where the user’s next action will take place. The pointer can be an arrow, an I-beam, a crossbar, a wristwatch, or other appropriate image. Called the cursor in Macintosh technical manuals. See also insertion point. [insertion point] The position where text will be inserted, usually marked by a blinking vertical bar. As far as I can see from browsing the latest version on their site, the terminology hasn't changed since my version was published. Microsoft on their site state this in their Design guidelines: Physically moving the mouse moves the graphic pointer (also referred to as the cursor) on the screen. ... The caret is the flashing vertical bar that is displayed when the user is typing into a text box or other text editor. The caret is independent of the pointer; by default, Windows hides the pointer while the user is typing. See https://msdn.microsoft.com/en-us/library/windows/desktop/dn742466(v=vs.85).aspx So it seems as though for HID Guidelines "cursor" and "pointer" refer to the same thing. Grx HdV From nc-gaertnma at netcologne.de Tue May 22 23:30:23 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 22 May 2018 23:30:23 +0200 Subject: [Lazarus] Lazarus Release 1.8.4 Message-ID: <20180522233023.3d018f95@limapholos.matflo.wg> The Lazarus team is glad to announce the release of Lazarus 1.8.4. This is a bugfix release. The release was built with FPC 3.0.4. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.0.4 Here is the list of fixes for Lazarus 1.8.x: http://wiki.freepascal.org/Lazarus_1.8_fixes_branch The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 1.8.4" directory. Checksums for the SourceForge files: http://www.lazarus-ide.org/index.php?page=checksums#1_8_4 Minimum requirements: Windows: 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. optional qt 4.5 or 5.6 for qt apps FreeBSD/Linux: gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit. Mac OS X: 10.5 to 10.12; Carbon (32bit), Cocoa (64bit, not stable), qt and qt5 (32 or 64bit). The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_4 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/ and later at (after some time for synchronization) http://mirrors.iwi.me/lazarus/ Mattias From Special at Joepgen.com Wed May 23 02:31:32 2018 From: Special at Joepgen.com (Joe) Date: Wed, 23 May 2018 02:31:32 +0200 Subject: [Lazarus] Uninstalling of Lazarus 1.8.2 under Win 10 (64) incomplete Message-ID: <6b5bc1f5-f32b-9074-fc44-1fef61f40bbc@Joepgen.com> I clicked on 'Einstellungen', then 'Apps', then 'Lazarus 1.8.2' and 'Deinstallieren'. A message appeared: 'Diese App und alle dazugehörigen Infos werden deinstalliert.' Again I clicked on 'Deinstallieren' and rebootet. Lazarus was removed, but not the offer to remove it under Einstellungen ->  Apps. There is still 'Lazarus 1.8.2. I clicked on it, clicked again on 'Deinstallieren' and eventually got the error message 'D:\lazarus\unins000 konnte nicht gefunden werden. Stellen Sie sicher, dass Sie den Namen richtig eingegeben haben, und wiederholen Sie den Vorgang.' Happens under Windows Version 1803 Build 17134.48. joe From aaa5500 at ya.ru Wed May 23 12:00:24 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Wed, 23 May 2018 13:00:24 +0300 Subject: [Lazarus] Strange code in fpc syscodepages.inc Message-ID: //break after exit function CodePageToCodePageName(cp: TSystemCodePage): AnsiString; .. begin ...    if FoundCp = cp then     begin       Exit(CodePageNames[I].name);       Break;     end; -- Regards, Alexey From serbod at gmail.com Wed May 23 12:05:32 2018 From: serbod at gmail.com (Sergey Bodrov) Date: Wed, 23 May 2018 13:05:32 +0300 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: <20180522165441.4d7e8917@limapholos.matflo.wg> References: <20180522165441.4d7e8917@limapholos.matflo.wg> Message-ID: > > > Can you reproduce it? > Sure. Windows 10 (x64) under VirtualBox 5.2.6 1. download and run "fpcupdeluxe" 2. install FPC+Lazarus trunk 3. install arm-android crosscompiler 4. start Lazarus, open random project, test autocompletion (Ctrl-Space), it works. 5. run "fpcupdeluxe", install LAMW module 6. start Lazarus, open random project, test autocompletion (Ctrl-Space), it fail with message: ----------------------------------- Codetools, Errors: 1 mainform.pas(86,4) Error: End of source not found. ----------------------------------- JDK, SDK, NDK, and other Android stuff was not installed, paths not set. But same error present when all paths properly set and project succesfully compiles and run on Android device. -- *Bodrov Sergey* software development, IT consulting http://www.serbod.com *Phone (Belarus):* +375(25)794-21-58 *Skype:* sergey.bodrov1 *e-mail:* serbod at gmail.com, oxotnuk at yandex.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Wed May 23 12:09:45 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 23 May 2018 12:09:45 +0200 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: References: <20180522165441.4d7e8917@limapholos.matflo.wg> Message-ID: <20180523120945.4df944de@limapholos.matflo.wg> On Wed, 23 May 2018 13:05:32 +0300 Sergey Bodrov via Lazarus wrote: >[...] > 1. download and run "fpcupdeluxe" > 2. install FPC+Lazarus trunk > 3. install arm-android crosscompiler > 4. start Lazarus, open random project, test autocompletion (Ctrl-Space), it > works. > 5. run "fpcupdeluxe", install LAMW module > 6. start Lazarus, open random project, test autocompletion (Ctrl-Space), it > fail with message: > ----------------------------------- > Codetools, Errors: 1 > mainform.pas(86,4) Error: End of source not found. In any unit? Even in classes.pp? Mattias From lazarus at mfriebe.de Wed May 23 12:29:53 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 23 May 2018 12:29:53 +0200 Subject: [Lazarus] Uninstalling of Lazarus 1.8.2 under Win 10 (64) incomplete In-Reply-To: <6b5bc1f5-f32b-9074-fc44-1fef61f40bbc@Joepgen.com> References: <6b5bc1f5-f32b-9074-fc44-1fef61f40bbc@Joepgen.com> Message-ID: On 23/05/2018 02:31, Joe via Lazarus wrote: > I clicked on 'Einstellungen', then 'Apps', then 'Lazarus 1.8.2' and > 'Deinstallieren'. A message appeared: 'Diese App und alle > dazugehörigen Infos werden deinstalliert.' Again I clicked on > 'Deinstallieren' and rebootet. > > Lazarus was removed, but not the offer to remove it under > Einstellungen ->  Apps. There is still 'Lazarus 1.8.2. > I clicked on it, clicked again on 'Deinstallieren' and eventually got > the error message 'D:\lazarus\unins000 konnte nicht gefunden werden. > Stellen Sie sicher, dass Sie den Namen richtig eingegeben haben, und > wiederholen Sie den Vorgang.' > > Happens under Windows Version 1803 Build 17134.48. Sounds like an inno setup issue. I dont know if there are any conditions where innosetup would leave the info in the registry behind. Maybe if you had more than one installation, or moved to a new path (just guessing) Lazarus does not write anything to the registry. Inno setup does write (afaik only 2 things) 1) the info for the installer/uninstaller (this includes the install directory, so the installer knows it the next time) 2) file associations, unless you unchecked this On the filesystem, Lazarus only writes in the install directory and the primary config path (in your user directory) (config is not removed by the uninstaller, this is apparently the way it works on windows / config may contain project data !) The installer may also add links in startmenu/desktop If you install 3rd party packages, they may add other locations. So if you remove all of the above, then your system is clean. From serbod at gmail.com Wed May 23 12:47:38 2018 From: serbod at gmail.com (Sergey Bodrov) Date: Wed, 23 May 2018 13:47:38 +0300 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: <20180523120945.4df944de@limapholos.matflo.wg> References: <20180522165441.4d7e8917@limapholos.matflo.wg> <20180523120945.4df944de@limapholos.matflo.wg> Message-ID: > > In any unit? > Even in classes.pp? No, I can't reproduce it inside classes.pp. But it occurs inside one of components code. -- *Bodrov Sergey* software development, IT consulting http://www.serbod.com *Phone (Belarus):* +375(25)794-21-58 *Skype:* sergey.bodrov1 *e-mail:* serbod at gmail.com, oxotnuk at yandex.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Wed May 23 13:02:47 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 23 May 2018 13:02:47 +0200 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: References: <20180522165441.4d7e8917@limapholos.matflo.wg> <20180523120945.4df944de@limapholos.matflo.wg> Message-ID: <20180523130247.35922cb0@limapholos.matflo.wg> On Wed, 23 May 2018 13:47:38 +0300 Sergey Bodrov via Lazarus wrote: > > > > In any unit? > > Even in classes.pp? > > > No, I can't reproduce it inside classes.pp. But it occurs inside one of > components code. Please be more specific. Mattias From serbod at gmail.com Wed May 23 13:33:50 2018 From: serbod at gmail.com (Sergey Bodrov) Date: Wed, 23 May 2018 14:33:50 +0300 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: <20180523130247.35922cb0@limapholos.matflo.wg> References: <20180522165441.4d7e8917@limapholos.matflo.wg> <20180523120945.4df944de@limapholos.matflo.wg> <20180523130247.35922cb0@limapholos.matflo.wg> Message-ID: > > > > In any unit? > > > Even in classes.pp? > > > > No, I can't reproduce it inside classes.pp. But it occurs inside one of > > components code. > > Please be more specific. I installed module "synapse" from fpcupdeluxe, then open my project, that uses "blcksock" unit. Then I open blcksock.pas in editor, go to TUDPBlockSocket.SetMulticastTTL() implementation (line 3730), type "synsock." and press Ctrl-Space for autocompletion. Error occur at line 3720, at last line of previous method implementation. -- *Bodrov Sergey* software development, IT consulting http://www.serbod.com *Phone (Belarus):* +375(25)794-21-58 *Skype:* sergey.bodrov1 *e-mail:* serbod at gmail.com, oxotnuk at yandex.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From tc at epidata.info Wed May 23 15:17:35 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Wed, 23 May 2018 15:17:35 +0200 Subject: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc Message-ID: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> For some time now i have had the problem on my linux install that crosscompiling Lazarus trunk from linux -> win32 (also win64) fails with this error: win32lclintf.inc(123,7) Error: Identifier not found "SameStr" Is anyone else getting this error also? I'm using: Lazarus 1.9.0 r58010 FPC 3.0.0 x86_64-linux-gtk2 Best regards, Torsten From listbox at martoks-place.de Wed May 23 15:35:59 2018 From: listbox at martoks-place.de (Martok) Date: Wed, 23 May 2018 15:35:59 +0200 Subject: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc In-Reply-To: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> References: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> Message-ID: SameStr was introduced in FPC 3.0.2. I'm pretty sure Lazarus trunk requires 3.0.4 anyway? Where was that documented, again? -- Regards, Martok From vojtech.cihak at atlas.cz Wed May 23 16:07:22 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 May 2018 16:07:22 +0200 Subject: [Lazarus] =?utf-8?q?New_Image_Lists_question?= Message-ID: <20180523160722.5FFCAC0D@atlas.cz> Hi,   I have application where user can choose size of toolbars, i.e. I have several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI desktops. Now, I can load more images to each imagelist, with suffix _150 and _200. But it will cause dupicities, because icon16_150 and icon16_200 will have size 24 and 32 respectively, which are already stored in IL24 and IL32.   Question is: how can I do it without duplicities?   Thanks, V. From lazarus at kluug.net Wed May 23 17:33:54 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 17:33:54 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: <20180523160722.5FFCAC0D@atlas.cz> References: <20180523160722.5FFCAC0D@atlas.cz> Message-ID: On 23.05.2018 16:07, Vojtěch Čihák via Lazarus wrote: > I have application where user can choose size of toolbars, i.e. I have several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI desktops. > Now, I can load more images to each imagelist, with suffix _150 and _200. But it will cause dupicities, because icon16_150 and icon16_200 will have size 24 and 32 respectively, which are already stored in IL24 and IL32. > > Question is: how can I do it without duplicities? You don't need several image lists any more. Delete IL20, IL24, IL32 and IL48 use only IL16 where you load all the images. Read: http://wiki.freepascal.org/Lazarus_1.10.0_release_notes#TCustomImageList_.2F_TImageList http://wiki.freepascal.org/TImageList Demos: examples/imagelist_highdpi_designtime examples/imagelist_highdpi_runtime Ondrej From lazarus at kluug.net Wed May 23 17:46:09 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 17:46:09 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: References: <20180523160722.5FFCAC0D@atlas.cz> Message-ID: I forgot: you will probably want to use TImageList.OnGetWidthForPPI so that the original resolution 32px is used for 20px images on 150% instead of 30px (20*1.5 = 30). See the examples/imagelist_highdpi_designtime demo. Ondrej From nc-gaertnma at netcologne.de Wed May 23 17:59:47 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 23 May 2018 17:59:47 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: References: <20180523160722.5FFCAC0D@atlas.cz> Message-ID: <20180523175947.4d2f7cfd@limapholos.matflo.wg> On Wed, 23 May 2018 17:33:54 +0200 Ondrej Pokorny via Lazarus wrote: >[...] > Demos: > examples/imagelist_highdpi_runtime Can you add some comments please? Mattias From vojtech.cihak at atlas.cz Wed May 23 19:18:59 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 May 2018 19:18:59 +0200 Subject: [Lazarus] =?utf-8?q?New_Image_Lists_question?= In-Reply-To: 000000008b2f0001d72801745034 References: <20180523160722.5FFCAC0D@atlas.cz> 000000008b2f0001d72801745034 Message-ID: <20180523191859.2CFC72E4@atlas.cz> Thanks, I saw the demos, I see now how it works. But how can I add multiple resolution to ImageList? Is it possible only with suffixes and all images must be in the same directory? I need to push 10 resolution to one ImageList. Default res. is 16x16 and the others are 20, 24, 28, 32, 40, 48, 56, 64 and 80. How should I do it?   V.   ______________________________________________________________ > Od: Ondrej Pokorny via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 23.05.2018 17:33 > Předmět: Re: [Lazarus] New Image Lists question > On 23.05.2018 16:07, Vojtěch Čihák via Lazarus wrote: > I have application where user can choose size of toolbars, i.e. I have several image lists named IL16, IL20, IL24, IL32, IL48 and I switch them in property TToolBar.Images. In meanwhile, TImageList was redesigned to work with hi-DPI desktops. > Now, I can load more images to each imagelist, with suffix _150 and _200. But it will cause dupicities, because icon16_150 and icon16_200 will have size 24 and 32 respectively, which are already stored in IL24 and IL32. >   > Question is: how can I do it without duplicities? You don't need several image lists any more. Delete IL20, IL24, IL32 and IL48 use only IL16 where you load all the images. Read: http://wiki.freepascal.org/Lazarus_1.10.0_release_notes#TCustomImageList_.2F_TImageList http://wiki.freepascal.org/TImageList Demos: examples/imagelist_highdpi_designtime examples/imagelist_highdpi_runtime Ondrej -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed May 23 19:20:22 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 19:20:22 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: <20180523191859.2CFC72E4@atlas.cz> References: <20180523160722.5FFCAC0D@atlas.cz> <20180523191859.2CFC72E4@atlas.cz> Message-ID: <9de6c94a-1c20-ca8b-67d5-f60e38fd33e5@kluug.net> On 23.05.2018 19:18, Vojtěch Čihák via Lazarus wrote: > > Thanks, I saw the demos, I see now how it works. But how can I add > multiple resolution to ImageList? Is it possible only with suffixes > and all images must be in the same directory? I need to push 10 > resolution to one ImageList. Default res. is 16x16 and the others are > 20, 24, 28, 32, 40, 48, 56, 64 and 80. > > How should I do it? > See the demo examples/imagelist_highdpi_runtime again. Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed May 23 19:23:41 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 19:23:41 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: <20180523191859.2CFC72E4@atlas.cz> References: <20180523160722.5FFCAC0D@atlas.cz> <20180523191859.2CFC72E4@atlas.cz> Message-ID: <9f1d475d-d3d0-98d1-8265-1d7ca295941c@kluug.net> On 23.05.2018 19:18, Vojtěch Čihák via Lazarus wrote: > > Thanks, I saw the demos, I see now how it works. But how can I add > multiple resolution to ImageList? Is it possible only with suffixes > and all images must be in the same directory? I need to push 10 > resolution to one ImageList. Default res. is 16x16 and the others are > 20, 24, 28, 32, 40, 48, 56, 64 and 80. > > How should I do it? > Btw. for so many resolutions, I would just add 16x16 and then e.g. 128x128 or 256x256 and let the other resolutions get scaled automatically by the LCL. If 20x20 and 24x24 shouldn't scale nicely from the high resolution, you may want to add them explicitely as well. Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Wed May 23 19:29:23 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 May 2018 19:29:23 +0200 Subject: [Lazarus] =?utf-8?q?New_Image_Lists_question?= In-Reply-To: 000000008b340001e05001744ff8 References: <20180523160722.5FFCAC0D@atlas.cz>, <20180523191859.2CFC72E4@atlas.cz> 000000008b340001e05001744ff8 Message-ID: <20180523192923.7899BCFF@atlas.cz> But I need to add images at design-time via Image List Editor. I have my images at *.svg format and I use script for converting (I use rsvg tool).    #!/bin/bash   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 80 -h 80 -a -o ../png80/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -a -o ../png64/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 56 -h 56 -a -o ../png56/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -a -o ../png48/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 40 -h 40 -a -o ../png40/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -a -o ../png32/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 28 -h 28 -a -o ../png28/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -a -o ../png24/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 20 -h 20 -a -o ../png20/`echo $i | sed -e 's/svg$/png/'`; done   for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -a -o ../png16/`echo $i | sed -e 's/svg$/png/'`; done                                                                                                                     So I need to know where to store transfered images (one or more directories) and what names (or suffixes) give them to be able to load them via Image List Editor at once (if possible).   Thanks. ______________________________________________________________ > Od: Ondrej Pokorny via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 23.05.2018 19:20 > Předmět: Re: [Lazarus] New Image Lists question > On 23.05.2018 19:18, Vojtěch Čihák via Lazarus wrote:Thanks, I saw the demos, I see now how it works. But how can I add multiple resolution to ImageList? Is it possible only with suffixes and all images must be in the same directory? I need to push 10 resolution to one ImageList. Default res. is 16x16 and the others are 20, 24, 28, 32, 40, 48, 56, 64 and 80. How should I do it? See the demo examples/imagelist_highdpi_runtime again. Ondrej ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed May 23 19:35:01 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 19:35:01 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: <20180523192923.7899BCFF@atlas.cz> References: <20180523160722.5FFCAC0D@atlas.cz> <20180523191859.2CFC72E4@atlas.cz> <20180523192923.7899BCFF@atlas.cz> Message-ID: On 23.05.2018 19:29, Vojtěch Čihák via Lazarus wrote: > > But I need to add images at design-time via Image List Editor. I have > my images at *.svg format and I use script for converting (I use rsvg > tool). > > So I need to know where to store transfered images (one or more > directories) and what names (or suffixes) give them to be able to load > them via Image List Editor at once (if possible). > I don't understand you. The design-time Image List Editor is a click-here/click-there WYSIWYG dialog. There are absolutely no rules how you have to save your images... Just load the images one-by-one. The resolutions will be detected automatically. But I really advice you not to store all resolutions in the LFM. Instead, use one big resolution (typically 256x256). All needed resolutions will be automatically scaled from it in run-time. Add smaller resolutions only if they don't look good. Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed May 23 19:43:33 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 19:43:33 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: References: <20180523160722.5FFCAC0D@atlas.cz> <20180523191859.2CFC72E4@atlas.cz> <20180523192923.7899BCFF@atlas.cz> Message-ID: On 23.05.2018 19:35, Ondrej Pokorny via Lazarus wrote: > On 23.05.2018 19:29, Vojtěch Čihák via Lazarus wrote: >> >> But I need to add images at design-time via Image List Editor. I have >> my images at *.svg format and I use script for converting (I use rsvg >> tool). >> >> So I need to know where to store transfered images (one or more >> directories) and what names (or suffixes) give them to be able to >> load them via Image List Editor at once (if possible). >> > > I don't understand you. Oh, sorry, I missed the "at once". You can only load either several images in one resolution or one image list in multiple resolutions at once. For the former use "Add ...", for the latter use "Add more resolutions ..." (select all resolutions of the image in the open file dialog). Ondre -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Wed May 23 20:11:20 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 May 2018 20:11:20 +0200 Subject: [Lazarus] =?utf-8?q?New_Image_Lists_question?= In-Reply-To: 000000008b380001e7ac01745062 References: <20180523160722.5FFCAC0D@atlas.cz>, <20180523191859.2CFC72E4@atlas.cz>, <20180523192923.7899BCFF@atlas.cz>, 000000008b380001e7ac01745062 Message-ID: <20180523201120.6227C11E@atlas.cz>   ______________________________________________________________ > Od: Ondrej Pokorny via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 23.05.2018 19:43 > Předmět: Re: [Lazarus] New Image Lists question > On 23.05.2018 19:35, Ondrej Pokorny via Lazarus wrote:On 23.05.2018 19:29, Vojtěch Čihák via Lazarus wrote:But I need to add images at design-time via Image List Editor. I have my images at *.svg format and I use script for converting (I use rsvg tool).   So I need to know where to store transfered images (one or more directories) and what names (or suffixes) give them to be able to load them via Image List Editor at once (if possible). I don't understand you. Oh, sorry, I missed the "at once". You can only load either several images in one resolution or one image list in multiple resolutions at once. For the former use "Add ...", for the latter use "Add more resolutions ..." (select all resolutions of the image in the open file dialog). Ondre ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From vojtech.cihak at atlas.cz Wed May 23 20:16:39 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 May 2018 20:16:39 +0200 Subject: [Lazarus] =?utf-8?q?New_Image_Lists_question?= In-Reply-To: 000000008b380001e7ac01745062 References: <20180523160722.5FFCAC0D@atlas.cz>, <20180523191859.2CFC72E4@atlas.cz>, <20180523192923.7899BCFF@atlas.cz>, 000000008b380001e7ac01745062 Message-ID: <20180523201639.7B225D5C@atlas.cz> @ Oh, sorry, I missed the "at once". You can only load either several images in one resolution or one image list in multiple resolutions at once. For the former use "Add ...", for the latter use "Add more resolutions ..." (select all resolutions of the image in the open file dialog).   It's clear now.   @ But I really advice you not to store all resolutions in the LFM. Instead, use one big resolution (typically 256x256). All needed resolutions will be automatically scaled from it in run-time. Add smaller resolutions only if they don't look good.   I would prefer to store all resolutions, rsvg creates very good images. If you mean problem with *.lfm size I guess that all images at 256 size will be bigger.   I will try.   Thanks.   PS: Previous message was accidentaly send empty.   ______________________________________________________________ > Od: Ondrej Pokorny via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 23.05.2018 19:43 > Předmět: Re: [Lazarus] New Image Lists question > On 23.05.2018 19:35, Ondrej Pokorny via Lazarus wrote:On 23.05.2018 19:29, Vojtěch Čihák via Lazarus wrote:But I need to add images at design-time via Image List Editor. I have my images at *.svg format and I use script for converting (I use rsvg tool).   So I need to know where to store transfered images (one or more directories) and what names (or suffixes) give them to be able to load them via Image List Editor at once (if possible). I don't understand you. Oh, sorry, I missed the "at once". You can only load either several images in one resolution or one image list in multiple resolutions at once. For the former use "Add ...", for the latter use "Add more resolutions ..." (select all resolutions of the image in the open file dialog). Ondre ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From tc at epidata.info Wed May 23 21:07:26 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Wed, 23 May 2018 21:07:26 +0200 Subject: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc In-Reply-To: References: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> Message-ID: <832145ed-b7ca-cdba-cf9c-0ad176503cbb@epidata.info> On 2018-05-23 15:35, Martok via Lazarus wrote: > SameStr was introduced in FPC 3.0.2. > > I'm pretty sure Lazarus trunk requires 3.0.4 anyway? Where was that documented, > again? > That may very well be the case... i haven't been paying close attention to any notes in that regards. Can a core Lazarus developer confirm whether it IS required to fpc 3.0.4 or if the above is considered a bug? Best regards, Torsten. From vojtech.cihak at atlas.cz Wed May 23 21:11:30 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 23 May 2018 21:11:30 +0200 Subject: [Lazarus] =?utf-8?q?New_Image_Lists_question?= In-Reply-To: 000000008b380001e7ac01745062 References: <20180523160722.5FFCAC0D@atlas.cz>, <20180523191859.2CFC72E4@atlas.cz>, <20180523192923.7899BCFF@atlas.cz>, 000000008b380001e7ac01745062 Message-ID: <20180523211130.070F198C@atlas.cz> I have one more question: do I understand well that ImageList stores basic resolution uncompressed in node Bitmap and all other resolutions compressed in node BitmapAdv?   Thanks,   Vojtěch. ______________________________________________________________ > Od: Ondrej Pokorny via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 23.05.2018 19:43 > Předmět: Re: [Lazarus] New Image Lists question > On 23.05.2018 19:35, Ondrej Pokorny via Lazarus wrote: Ondrej ---------- -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed May 23 21:14:58 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 21:14:58 +0200 Subject: [Lazarus] New Image Lists question In-Reply-To: <20180523211130.070F198C@atlas.cz> References: <20180523160722.5FFCAC0D@atlas.cz> <20180523191859.2CFC72E4@atlas.cz> <20180523192923.7899BCFF@atlas.cz> <20180523211130.070F198C@atlas.cz> Message-ID: On 23.05.2018 21:11, Vojtěch Čihák via Lazarus wrote: > > I have one more question: do I understand well that ImageList stores > basic resolution uncompressed in node Bitmap and all other resolutions > compressed in node BitmapAdv? > Yes, this is due to forward compatibility with 1.8 and starting with Lazarus 1.11 the basic resolution will be compressed as well (because 1.10 will support compression of basic resolution). Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Wed May 23 21:17:10 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 21:17:10 +0200 Subject: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc In-Reply-To: <832145ed-b7ca-cdba-cf9c-0ad176503cbb@epidata.info> References: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> <832145ed-b7ca-cdba-cf9c-0ad176503cbb@epidata.info> Message-ID: <1b3fcde3-4124-2a5e-eb56-136d93701cf5@kluug.net> On 23.05.2018 21:07, Torsten Bonde Christiansen via Lazarus wrote: > On 2018-05-23 15:35, Martok via Lazarus wrote: >> SameStr was introduced in FPC 3.0.2. >> >> I'm pretty sure Lazarus trunk requires 3.0.4 anyway? Where was that >> documented, >> again? >> > That may very well be the case... i haven't been paying close > attention to any notes in that regards. > > Can a core Lazarus developer confirm whether it IS required to fpc > 3.0.4 or if the above is considered a bug? The rule is: Lazarus supports at least the 2 latest stable FPC versions. This means 3.0.4 and 3.0.2 currently. I don't know where this rule is documented. IIRC, there was an exception in this rule - we kept support for FPC 2.6.4 in Lazarus 1.8, but FPC 2.6.x support was dropped with 1.9. Ondrej From lazarus at kluug.net Wed May 23 21:35:31 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 23 May 2018 21:35:31 +0200 Subject: [Lazarus] Strange code in fpc syscodepages.inc In-Reply-To: References: Message-ID: On 23.05.2018 12:00, AlexeyT via Lazarus wrote: > //break after exit > > function CodePageToCodePageName(cp: TSystemCodePage): AnsiString; You wrote to wrong mailing list. The above code and unit is in FPC, thus one of the FPC mailing list is more appropriate because FPC developers read them. Ondrej From nc-gaertnma at netcologne.de Wed May 23 21:54:24 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 23 May 2018 21:54:24 +0200 Subject: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc In-Reply-To: <1b3fcde3-4124-2a5e-eb56-136d93701cf5@kluug.net> References: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> <832145ed-b7ca-cdba-cf9c-0ad176503cbb@epidata.info> <1b3fcde3-4124-2a5e-eb56-136d93701cf5@kluug.net> Message-ID: <20180523215424.1268118e@limapholos.matflo.wg> On Wed, 23 May 2018 21:17:10 +0200 Ondrej Pokorny via Lazarus wrote: >[...] > The rule is: Lazarus supports at least the 2 latest stable FPC versions. > This means 3.0.4 and 3.0.2 currently. And trunk - when possible. > I don't know where this rule is documented. It's not documented, since this depends on the FPC release. Supporting last two versions makes migrating to the new version easier. Supporting more than two depends on the amount of IFDEFs and the community. FPC 3 introduced a big incompatibility, so we tried to support 2.6.4 longer. > IIRC, there was an exception in this rule - we kept support for FPC > 2.6.4 in Lazarus 1.8, but FPC 2.6.x support was dropped with 1.9. Mattias From tc at epidata.info Thu May 24 08:01:18 2018 From: tc at epidata.info (Torsten Bonde Christiansen) Date: Thu, 24 May 2018 08:01:18 +0200 Subject: [Lazarus] Cross-compile Linux -> Win fails in win32lclintf.inc In-Reply-To: <20180523215424.1268118e@limapholos.matflo.wg> References: <3b3f4fca-ddd8-0ff3-ac78-530e59a7bfbe@epidata.info> <832145ed-b7ca-cdba-cf9c-0ad176503cbb@epidata.info> <1b3fcde3-4124-2a5e-eb56-136d93701cf5@kluug.net> <20180523215424.1268118e@limapholos.matflo.wg> Message-ID: <64ebfe51-11b3-2441-0f39-1f9625365731@epidata.info> On 2018-05-23 21:54, Mattias Gaertner via Lazarus wrote: > On Wed, 23 May 2018 21:17:10 +0200 > Ondrej Pokorny via Lazarus wrote: > >> [...] >> The rule is: Lazarus supports at least the 2 latest stable FPC versions. >> This means 3.0.4 and 3.0.2 currently. > And trunk - when possible. Okay, thanks. I guess it is time to update FPC then... :) -Torsten. From lazarus at kluug.net Thu May 24 09:05:33 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 24 May 2018 09:05:33 +0200 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: <20180522165441.4d7e8917@limapholos.matflo.wg> References: <20180522165441.4d7e8917@limapholos.matflo.wg> Message-ID: <74010578-db5d-5461-f9b1-371f46cbc4e5@kluug.net> On 22.05.2018 16:54, Mattias Gaertner via Lazarus wrote: > On Tue, 22 May 2018 16:57:19 +0300 > Sergey Bodrov via Lazarus wrote: > >> I got annoing "End of source not found" when use autocompletion >> (Ctrl-Space) on random places of code. After adding/removing empty line in >> such place, autocompletion works, but over some time error repeats again. >> What's wrong? It's Codetools bug or some incorrect options setting? I not >> sure, but maybe that's begins after installing LAMW and laz4android modules >> from fpcupdeluxe. > Can you reproduce it? I get this error massively as well after I updated trunk. Closing/reopening the file helps for some time but then the error is back again. I don't remember it happened before. Ondrej From lazarus at kluug.net Thu May 24 09:11:58 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 24 May 2018 09:11:58 +0200 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: <74010578-db5d-5461-f9b1-371f46cbc4e5@kluug.net> References: <20180522165441.4d7e8917@limapholos.matflo.wg> <74010578-db5d-5461-f9b1-371f46cbc4e5@kluug.net> Message-ID: Here the screenshot. Ondrej -------------- next part -------------- A non-text attachment was scrubbed... Name: CodeTools-EndOfSourceNotFound.png Type: image/png Size: 11782 bytes Desc: not available URL: From juha.manninen62 at gmail.com Thu May 24 09:45:14 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Thu, 24 May 2018 10:45:14 +0300 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> Message-ID: On Mon, May 21, 2018 at 10:44 PM, Andreas Frieß via Lazarus wrote: > If someone can backport this please. The fix from Bugreport 0031517 to > the actual stable or must this a extra feature report ? Backport where? The fix is in FPC's code, not in Lazarus. Juha From larrydalton71 at gmail.com Fri May 25 05:08:16 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Thu, 24 May 2018 23:08:16 -0400 Subject: [Lazarus] error code "Can't load default MySQL library("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation. Message-ID: My application was compiled on lazarus 1.8.2, along with mysql 5.7, running on linux 17.2. I have verified that both libmysqlclient.so and libmysqlclient.so.20 are in the unit directory that holds the executable program. I still get the above error when trying to access the mysql database. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri May 25 07:35:36 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 25 May 2018 07:35:36 +0200 (CEST) Subject: [Lazarus] error code "Can't load default MySQL library("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation. In-Reply-To: References: Message-ID: On Thu, 24 May 2018, Larry Dalton via Lazarus wrote: > My application was compiled on lazarus 1.8.2, along with mysql 5.7, running > on linux 17.2. I have verified that both libmysqlclient.so and > libmysqlclient.so.20 are in the unit directory that holds the executable > program. I still get the above error when trying to access the mysql > database. It must not be in the program directory. By default, the linux loader does not search in the program directory, that only happens on Windows. Normally, the mysql library is in the /usr/lib/* directory. That is where the loader will look for it. Did you install the mysql-dev package ? In that case, there should be a symlink libmysqlclient.so to libmysqlclient.so.20 in /usr/lib/ and the program should start. Michael. From JuuS at mailbox.org Fri May 25 08:24:05 2018 From: JuuS at mailbox.org (Julius) Date: Fri, 25 May 2018 08:24:05 +0200 Subject: [Lazarus] error code "Can't load default MySQL library("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation. In-Reply-To: References: Message-ID: On 05/25/2018 05:08 AM, Larry Dalton via Lazarus wrote: > My application was compiled on lazarus 1.8.2, along with mysql 5.7, > running on linux 17.2. I have verified that both libmysqlclient.so and > libmysqlclient.so.20 are in the unit directory that holds the executable > program. I still get the above error when trying to access the mysql > database. > > Hi, here is what I use and it works. They, I believe, always keep these files pointing to the correct locations: cSqliteDefaultLibraryLocation64 = '/usr/lib/x86_64-linux-gnu/libsqlite3.so.0'; cSqliteDefaultLibraryLocation32 = '/usr/lib/i386-linux-gnu/libsqlite3.so.0'; -- Julius From JuuS at mailbox.org Fri May 25 08:24:59 2018 From: JuuS at mailbox.org (Julius) Date: Fri, 25 May 2018 08:24:59 +0200 Subject: [Lazarus] error code "Can't load default MySQL library("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation. In-Reply-To: References: Message-ID: On 05/25/2018 05:08 AM, Larry Dalton via Lazarus wrote: > My application was compiled on lazarus 1.8.2, along with mysql 5.7, > running on linux 17.2. I have verified that both libmysqlclient.so and > libmysqlclient.so.20 are in the unit directory that holds the executable > program. I still get the above error when trying to access the mysql > database. > > Sorry, I realized as I hit send you wanted mysql. Excuse me. -- Julius From nc-gaertnma at netcologne.de Fri May 25 08:29:36 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 25 May 2018 08:29:36 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> Message-ID: <20180525082936.7783597a@limapholos.matflo.wg> On Mon, 21 May 2018 21:44:59 +0200 Andreas Frieß via Lazarus wrote: > If someone can backport this please. The fix from Bugreport 0031517 to > the actual stable or must this a extra feature report ? See https://bugs.freepascal.org/view.php?id=31517 Is the bug present in fpc 3.0.4? Mattias From friess at gmx.at Fri May 25 21:19:49 2018 From: friess at gmx.at (Andreas =?UTF-8?B?RnJpZcOf?=) Date: Fri, 25 May 2018 21:19:49 +0200 Subject: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem In-Reply-To: References: <9744936f-06c2-7566-042b-f794aedb6586@holobit.net> <445ad79f-f2a3-5189-f7f9-71c42bea18bf@freenet.de> <20180525082936.7783597a@limapholos.matflo.wg> Message-ID: Mattias Gaertner via Lazarus wrote: > On Mon, 21 May 2018 21:44:59 +0200 > Andreas Frieß via Lazarus wrote: > > > If someone can backport this please. The fix from Bugreport 0031517 > > to the actual stable or must this a extra feature report ? > > See > https://bugs.freepascal.org/view.php?id=31517 > > Is the bug present in fpc 3.0.4? > IMHO yes. I think its not direct a bug, but the linking of Lazarus need sometimes (with more packages) more memory in fpc. The same problem occours if you ask for more memory on windows. See also http://forum.lazarus.freepascal.org/index.php/topic,40351.0.html > Mattias Andreas A shot test for win 32 from the thread above ------------------ procedure TForm1.BuTestitClick(Sender: TObject); const coTestsize = 10*1024*1024; coKB = 1024; coMB = coKB * 1024; var list : TList; i,j,aktIDX : Integer; begin list := TList.Create; // for i := 1 to 10000 do begin if i mod 5 = 0 then Memo1.Append('Used size: ' + IntToStr((i*coTestsize) div (coMB))+ ' MB'); aktIDX := list.Add(getmem(coTestsize)); // List of PChar if list.Items[aktIDX] = pointer(0) then begin Memo1.Append('No memory at : ' + IntToStr(i)); exit; end; for j := 0 to coTestsize-1 do begin PChar(list.Items[aktIDX])[j] := #$FA; end; end; list.Free; end; From terry at haimann.us Sun May 27 22:04:09 2018 From: terry at haimann.us (Terry A. Haimann) Date: Sun, 27 May 2018 15:04:09 -0500 Subject: [Lazarus] Howto uninstall Lazarus and reinstall Message-ID: <1527451449.16151.5.camel@haimann.us> My Lazarus install seems messed up.  It is version 1.8.2 and it was installed from the download and after downloading from the website it auto install by what I am assuming is dpk. Frree Pascal seems to be fine. I am running Linux Mint 18.3 What would be my best method to remove Lazarus and reinstall. From nc-gaertnma at netcologne.de Mon May 28 00:43:38 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 28 May 2018 00:43:38 +0200 Subject: [Lazarus] Howto uninstall Lazarus and reinstall In-Reply-To: <1527451449.16151.5.camel@haimann.us> References: <1527451449.16151.5.camel@haimann.us> Message-ID: <20180528004338.1937c348@limapholos.matflo.wg> On Sun, 27 May 2018 15:04:09 -0500 "Terry A. Haimann via Lazarus" wrote: > My Lazarus install seems messed up. Why 'seems'? What is the error message? > It is version 1.8.2 and it was > installed from the download and after downloading from the website it > auto install by what I am assuming is dpk. Do you mean deb? > Frree Pascal seems to be > fine. > > I am running Linux Mint 18.3 > > What would be my best method to remove Lazarus and reinstall. Uninstall: dpkg --purge lazarus Maybe you messed up your configs. Rename or remove ~/.lazarus Mattias From terry at haimann.us Mon May 28 03:22:33 2018 From: terry at haimann.us (Terry A. Haimann) Date: Sun, 27 May 2018 20:22:33 -0500 Subject: [Lazarus] Howto uninstall Lazarus and reinstall In-Reply-To: <20180528004338.1937c348@limapholos.matflo.wg> References: <1527451449.16151.5.camel@haimann.us> <20180528004338.1937c348@limapholos.matflo.wg> Message-ID: <1527470553.18659.5.camel@haimann.us> On Mon, 2018-05-28 at 00:43 +0200, Mattias Gaertner wrote: > On Sun, 27 May 2018 15:04:09 -0500 > "Terry A. Haimann via Lazarus" wrote: > > > > > My Lazarus install seems messed up.  > Why 'seems'? > What is the error message? I am getting many duplicate errors like the following: Note: Duplicate unit "ZDbcLogging" in "zcore 7.1", orphaned ppu "/home/terry/zeosdbo/ZEOSDBO-7.1.3a-stable/packages/lazarus/lib/x86_64- linux/ZDbcLogging.ppu" So I think I messed up the zeosdbo install. Also this line isn't compiling, so I think a library might be missing. Chart2PieSeries1.AddPie(SaveRec.EV, State, clRed); > > > > > >  It is version 1.8.2 and it was > > installed from the download and after downloading from the website > > it > > auto install by what I am assuming is dpk. > Do you mean deb? Yes. > > > > > > Frree Pascal seems to be > > fine. > > > > I am running Linux Mint 18.3 > > > > What would be my best method to remove Lazarus and reinstall. > Uninstall: > dpkg --purge lazarus > > Maybe you messed up your configs. Rename or remove ~/.lazarus > > Mattias From luca at wetron.es Mon May 28 08:37:30 2018 From: luca at wetron.es (Luca Olivetti) Date: Mon, 28 May 2018 08:37:30 +0200 Subject: [Lazarus] Howto uninstall Lazarus and reinstall In-Reply-To: <1527470553.18659.5.camel@haimann.us> References: <1527451449.16151.5.camel@haimann.us> <20180528004338.1937c348@limapholos.matflo.wg> <1527470553.18659.5.camel@haimann.us> Message-ID: El 28/05/18 a les 03:22, Terry A. Haimann via Lazarus ha escrit: > I am getting many duplicate errors like the following: > > Note: Duplicate unit "ZDbcLogging" in "zcore 7.1", orphaned ppu > "/home/terry/zeosdbo/ZEOSDBO-7.1.3a-stable/packages/lazarus/lib/x86_64- > linux/ZDbcLogging.ppu" > > So I think I messed up the zeosdbo install. No, zeos packaging is somewhat messy but, in spite of those warnings, it works (but I'm using 7.1.4 while I wait for some bugs to be fixed in 7.2) > Also this line isn't compiling, so I think a library might be missing. > > Chart2PieSeries1.AddPie(SaveRec.EV, State, clRed); That's another issue. Did you check if is there an updated version of the package that doesn't compile? Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From larrydalton71 at gmail.com Tue May 29 05:36:01 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Mon, 28 May 2018 23:36:01 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost Message-ID: I am running lazarus 1.8.2 on linux mnt 17.2. I am trying to access a mysql database that was installed with Bitnami. - Server: Localhost via UNIX socket - Server type: MySQL - Server connection: SSL is not being used [image: Documentation] - Server version: 5.7.22 - MySQL Community Server (GPL) - Server: Server: localhost:3307 - Protocol version: 10 - User: root at localhost - Server charset: UTF-8 Unicode (utf8) - Apache - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ - PHP extension: mysqli[image: Documentation] curl[image: Documentation] mbstring[image: Documentation] - PHP version: 7.1.17 - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 - Web Address http://127.0.0.1:8080/phpmyadmin/ I am using localhost as hostname on Tmysql57Connection. I cannot connect the Tmysql57Connection to localhost. Help? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Tue May 29 07:57:47 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 29 May 2018 07:57:47 +0200 (CEST) Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: References: Message-ID: What is the error you are getting ? If you want to connect through unix socket, you should leave hostname empty. If you set it to localhost, TCP/IP will be used. Michael. On Mon, 28 May 2018, Larry Dalton via Lazarus wrote: > I am running lazarus 1.8.2 on linux mnt 17.2. > I am trying to access a mysql database that was installed with Bitnami. > > - Server: Localhost via UNIX socket > - Server type: MySQL > - Server connection: SSL is not being used [image: Documentation] > > - Server version: 5.7.22 - MySQL Community Server (GPL) > - Server: Server: localhost:3307 > > - Protocol version: 10 > - User: root at localhost > - Server charset: UTF-8 Unicode (utf8) > > > - Apache > - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - > $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ > - PHP extension: mysqli[image: Documentation] > > curl[image: Documentation] > > mbstring[image: Documentation] > > - PHP version: 7.1.17 > > > - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 > > - Web Address http://127.0.0.1:8080/phpmyadmin/ > > > I am using localhost as hostname on Tmysql57Connection. > > I cannot connect the Tmysql57Connection to localhost. > Help? > From jmlandmesser at gmx.de Tue May 29 13:24:44 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Tue, 29 May 2018 13:24:44 +0200 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: References: Message-ID: try Zeoslib,  i use it for an Oracle Connection, but they have allso MySQL https://sourceforge.net/projects/zeoslib/ they even handle german Umlauts correct :-) Am 29.05.2018 um 05:36 schrieb Larry Dalton via Lazarus: > I am running lazarus 1.8.2 on linux mnt 17.2. > I am trying to access a mysql database that was installed with Bitnami. > > * Server: Localhost via UNIX socket > * Server type: MySQL > * Server connection:SSL is not being usedDocumentation > > * Server version: 5.7.22 - MySQL Community Server (GPL) > * Server: Server: localhost:3307 > > * Protocol version: 10 > * User: root at localhost > * Server charset:UTF-8 Unicode (utf8) > > * Apache > * Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 > - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ > * PHP extension: mysqliDocumentation > curlDocumentation > mbstringDocumentation > > * PHP version: 7.1.17 > > * Phpmyadmin Version information:4.8.0.1, latest stable version: > 4.8.1 > * Web Address http://127.0.0.1:8080/phpmyadmin/ > > >        I am using localhost as hostname on Tmysql57Connection. >        I cannot connect the Tmysql57Connection to localhost. > Help? > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Wed May 30 02:16:44 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Tue, 29 May 2018 20:16:44 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: Message-ID: <5b0ded72.1c69fb81.8cf9.325e@mx.google.com> The error I am getting is simply "server connect failed." I am getting the same after I removed localhost from hostname. Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 5/29/18 01:57 (GMT-05:00) To: Larry Dalton via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost What is the error you are getting ? If you want to connect through unix socket, you should leave hostname empty. If you set it to localhost, TCP/IP will be used. Michael. On Mon, 28 May 2018, Larry Dalton via Lazarus wrote: > I am running lazarus 1.8.2 on linux mnt 17.2. > I am trying to access a mysql database that was installed with Bitnami. > >   - Server: Localhost via UNIX socket >   - Server type: MySQL >   - Server connection: SSL is not being used [image: Documentation] >   >   - Server version: 5.7.22 - MySQL Community Server (GPL) >   - Server: Server: localhost:3307 >   >   - Protocol version: 10 >   - User: root at localhost >   - Server charset: UTF-8 Unicode (utf8) > > >   - Apache >   - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - >   $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ >   - PHP extension: mysqli[image: Documentation] >   >    curl[image: Documentation] >   >    mbstring[image: Documentation] >   >   - PHP version: 7.1.17 > > >   - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 >   >   - Web Address http://127.0.0.1:8080/phpmyadmin/ > > >       I am using localhost as hostname on Tmysql57Connection. > >       I cannot connect the Tmysql57Connection to localhost. > Help? > -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Wed May 30 02:16:44 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Tue, 29 May 2018 20:16:44 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: Message-ID: <5b0df142.1c69fb81.ca7d2.2ca2@mx.google.com> The error I am getting is simply "server connect failed." I am getting the same after I removed localhost from hostname. Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 5/29/18 01:57 (GMT-05:00) To: Larry Dalton via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost What is the error you are getting ? If you want to connect through unix socket, you should leave hostname empty. If you set it to localhost, TCP/IP will be used. Michael. On Mon, 28 May 2018, Larry Dalton via Lazarus wrote: > I am running lazarus 1.8.2 on linux mnt 17.2. > I am trying to access a mysql database that was installed with Bitnami. > >   - Server: Localhost via UNIX socket >   - Server type: MySQL >   - Server connection: SSL is not being used [image: Documentation] >   >   - Server version: 5.7.22 - MySQL Community Server (GPL) >   - Server: Server: localhost:3307 >   >   - Protocol version: 10 >   - User: root at localhost >   - Server charset: UTF-8 Unicode (utf8) > > >   - Apache >   - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - >   $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ >   - PHP extension: mysqli[image: Documentation] >   >    curl[image: Documentation] >   >    mbstring[image: Documentation] >   >   - PHP version: 7.1.17 > > >   - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 >   >   - Web Address http://127.0.0.1:8080/phpmyadmin/ > > >       I am using localhost as hostname on Tmysql57Connection. > >       I cannot connect the Tmysql57Connection to localhost. > Help? > -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From larrydalton71 at gmail.com Wed May 30 04:52:52 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Tue, 29 May 2018 22:52:52 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: Message-ID: <5b0e1209.1c69fb81.6f71e.98b9@mx.google.com> How does TMysql57Connection know how to connect to the server if there is no hostname defined? Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 5/29/18 01:57 (GMT-05:00) To: Larry Dalton via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost What is the error you are getting ? If you want to connect through unix socket, you should leave hostname empty. If you set it to localhost, TCP/IP will be used. Michael. On Mon, 28 May 2018, Larry Dalton via Lazarus wrote: > I am running lazarus 1.8.2 on linux mnt 17.2. > I am trying to access a mysql database that was installed with Bitnami. > >   - Server: Localhost via UNIX socket >   - Server type: MySQL >   - Server connection: SSL is not being used [image: Documentation] >   >   - Server version: 5.7.22 - MySQL Community Server (GPL) >   - Server: Server: localhost:3307 >   >   - Protocol version: 10 >   - User: root at localhost >   - Server charset: UTF-8 Unicode (utf8) > > >   - Apache >   - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - >   $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ >   - PHP extension: mysqli[image: Documentation] >   >    curl[image: Documentation] >   >    mbstring[image: Documentation] >   >   - PHP version: 7.1.17 > > >   - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 >   >   - Web Address http://127.0.0.1:8080/phpmyadmin/ > > >       I am using localhost as hostname on Tmysql57Connection. > >       I cannot connect the Tmysql57Connection to localhost. > Help? > -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Wed May 30 05:38:12 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 30 May 2018 05:38:12 +0200 (CEST) Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: <5b0ded72.1c69fb81.8cf9.325e@mx.google.com> References: <5b0ded72.1c69fb81.8cf9.325e@mx.google.com> Message-ID: Hello, This means the mysql_real_connect() call failed. That means mysql itself reports an error. This means your connection parameters are somehow not correct: one of hostname, port, username or password. At this point the database name is not yet used. First a connection is made, then the database is selected... If you leave empty the hostname, it assumes localhost and will attempt a unix socket connection first. Do I understand it correctly that you are running the mysql in a bitnami virtual machine ? Is your lazarus also running in the virtual machine ? Or is lazarus running on the host computer ? Because if that is the case, you cannot use hostname localhost, but you must use the IP address of the virtual machine. If lazarus and mysql are running on the same (virtual) machine, then it is something else. For instance, what username did you use ? root at localhost or root ? Hopefully the latter :). Michael. On Tue, 29 May 2018, larrydalton71 wrote: > The error I am getting is simply "server connect failed." I am getting the same after I removed localhost from hostname. > > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 5/29/18 01:57 (GMT-05:00) To: Larry Dalton via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost > > What is the error you are getting ? > > If you want to connect through unix socket, you should leave hostname empty. > If you set it to localhost, TCP/IP will be used. > > Michael. > > On Mon, 28 May 2018, Larry Dalton via Lazarus wrote: > >> I am running lazarus 1.8.2 on linux mnt 17.2. >> I am trying to access a mysql database that was installed with Bitnami. >> >>    - Server: Localhost via UNIX socket >>    - Server type: MySQL >>    - Server connection: SSL is not being used [image: Documentation] >>    >>    - Server version: 5.7.22 - MySQL Community Server (GPL) >>    - Server: Server: localhost:3307 >>    >>    - Protocol version: 10 >>    - User: root at localhost >>    - Server charset: UTF-8 Unicode (utf8) >> >> >>    - Apache >>    - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - >>    $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ >>    - PHP extension: mysqli[image: Documentation] >>    >>     curl[image: Documentation] >>    >>     mbstring[image: Documentation] >>    >>    - PHP version: 7.1.17 >> >> >>    - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 >>    >>    - Web Address http://127.0.0.1:8080/phpmyadmin/ >> >> >>        I am using localhost as hostname on Tmysql57Connection. >> >>        I cannot connect the Tmysql57Connection to localhost. >> Help? >> > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From M.Santhoff at web.de Wed May 30 11:43:41 2018 From: M.Santhoff at web.de (Marc Santhoff) Date: Wed, 30 May 2018 11:43:41 +0200 Subject: [Lazarus] fpvectorial: TvPolygon missing? Message-ID: <1527673421.29117.1.camel@web.de> Hi, while trying to recompile a program using fpvectorials TvPolygon the declaration is not found: When grep'ing the directory whre fpvectorial lives there is nothing found in any file. Has this type been deleted or am I missing something? TIA, Marc -- Marc Santhoff From M.Santhoff at web.de Wed May 30 11:59:12 2018 From: M.Santhoff at web.de (Marc Santhoff) Date: Wed, 30 May 2018 11:59:12 +0200 Subject: [Lazarus] fpvectorial: TvPolygon missing? In-Reply-To: <1527673421.29117.1.camel@web.de> References: <1527673421.29117.1.camel@web.de> Message-ID: <1527674352.29117.2.camel@web.de> Hi, sorry for the noise, I had an old version of fpvectorial in the paths... On Wed, 2018-05-30 at 11:43 +0200, Marc Santhoff via Lazarus wrote: > Hi, > > while trying to recompile a program using fpvectorials TvPolygon the > declaration is not found: > > When grep'ing the directory whre fpvectorial lives there is nothing found in > any file. > > Has this type been deleted or am I missing something? > > TIA, > Marc > > -- > Marc Santhoff -- Marc Santhoff From donald at ziesig.org Wed May 30 16:24:30 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 30 May 2018 10:24:30 -0400 Subject: [Lazarus] How to debug DB errors. Message-ID: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> Hi Everyone, I have been developing database apps for years and I have finally reached my limit.  Occasionally I get exceptions in the db code but the Call Stack is truncated as is shown below.  I usually just "bite the bullet" and single step through the code till I find the offending line.  This time, I got an exception after 8 hours of execution.  Is there any way that I can set this up so that I get a location in my own code? The error message said there was a syntax error in the DBConnection object caused by the letter 's'???? #0 fpc_raiseexception at :0 #1 SQLITE3CONN$_$TSQLITE3CONNECTION_$__$$_CHECKERROR$LONGINT at :0 #2 SQLITE3CONN$_$TSQLITE3CURSOR_$__$$_CHECKERROR$LONGINT at :0 #3 ?? at :0 #4 SQLITE3CONN$_$TSQLITE3CURSOR_$__$$_PREPARE$ANSISTRING$TPARAMS at :0 #5 .Ld24 at :0 #6 ?? at :0 Thanks, Don Ziesig From joost at cnoc.nl Wed May 30 16:42:29 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Wed, 30 May 2018 16:42:29 +0200 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> Message-ID: <3efa08a3-48d1-d0b4-750d-7a93511fad71@cnoc.nl> Op 30-05-18 om 16:24 schreef Donald Ziesig via Lazarus: > I have been developing database apps for years and I have finally > reached my limit.  Occasionally I get exceptions in the db code but the > Call Stack is truncated as is shown below.  I usually just "bite the > bullet" and single step through the code till I find the offending > line.  This time, I got an exception after 8 hours of execution.  Is > there any way that I can set this up so that I get a location in my own > code? You could try to install the LazDebuggerFP package, and switch to the FPDebug debugger in your debugger-options. In a lot of cases it shows a more complete callstack. And did you already tried to use the fcl-db package with debug-info? If you want to, go to a terminal, change to current directory to the fcl-db source (where the fpmake.pp file is). Then do: fppkg install -o -gl Then build your application in Lazarus, and you will have fcl-db with debug-info. Regards, Joost. From mse00000 at gmail.com Wed May 30 16:46:52 2018 From: mse00000 at gmail.com (Martin Schreiber) Date: Wed, 30 May 2018 16:46:52 +0200 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> Message-ID: <201805301646.52103.mse00000@gmail.com> On Wednesday 30 May 2018 16:24:30 Donald Ziesig via Lazarus wrote: > Hi Everyone, > > I have been developing database apps for years and I have finally > reached my limit.  Occasionally I get exceptions in the db code but the > Call Stack is truncated as is shown below.  I usually just "bite the > bullet" and single step through the code till I find the offending > line.  This time, I got an exception after 8 hours of execution.  Is > there any way that I can set this up so that I get a location in my own > code? > Run the application in the IDE and activate the 'Stop on exception' option in IDE. I don't know how it is named in Lazarus, in MSEide it is 'Project'-'Options'-'Debugger'-'Stop on Excep.'. Martin From nc-gaertnma at netcologne.de Wed May 30 16:54:53 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 30 May 2018 16:54:53 +0200 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <201805301646.52103.mse00000@gmail.com> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> <201805301646.52103.mse00000@gmail.com> Message-ID: <20180530165453.40103826@limapholos.matflo.wg> On Wed, 30 May 2018 16:46:52 +0200 Martin Schreiber via Lazarus wrote: >[...] > Run the application in the IDE and activate the 'Stop on exception' option in > IDE. This is default. Mattias From donald at ziesig.org Wed May 30 17:38:28 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 30 May 2018 11:38:28 -0400 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <3efa08a3-48d1-d0b4-750d-7a93511fad71@cnoc.nl> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> <3efa08a3-48d1-d0b4-750d-7a93511fad71@cnoc.nl> Message-ID: On 05/30/2018 10:42 AM, Joost van der Sluis via Lazarus wrote: > Op 30-05-18 om 16:24 schreef Donald Ziesig via Lazarus: >> I have been developing database apps for years and I have finally >> reached my limit.  Occasionally I get exceptions in the db code but >> the Call Stack is truncated as is shown below.  I usually just "bite >> the bullet" and single step through the code till I find the >> offending line.  This time, I got an exception after 8 hours of >> execution.  Is there any way that I can set this up so that I get a >> location in my own code? > > You could try to install the LazDebuggerFP package, and switch to the > FPDebug debugger in your debugger-options. In a lot of cases it shows > a more complete callstack. > > And did you already tried to use the fcl-db package with debug-info? > If you want to, go to a terminal, change to current directory to the > fcl-db source (where the fpmake.pp file is). Then do: > > fppkg install -o -gl > > Then build your application in Lazarus, and you will have fcl-db with > debug-info. > > Regards, > > Joost. > > > Hi Joost! Thanks for the quick response. I found the fpmake.pp file in /usr/share/fpcsrc/3.0.4/packages/fcl-db.  Using sudo -i, I ran: fppkg install -o -gl It responded "Error code 301", then "Compile successful". I ran it again: hp-laptop fcl-db # fppkg install -o -gl Warning: Unexpected response status code: 301 The FPC Package tool encountered the following error: Found broken packages, run "fppkg fixbroken" first hp-laptop fcl-db # fppkg fixbroken Warning: Unexpected response status code: 301 Re-install packages which are dependent on just installed packages The FPC Package tool encountered the following error: Stream read error All google searches for error 301 showed "Moved permanently" as the meaning.  Unfortunately, it doesn't show where it was looking when it got the 301 error.  Any suggestions? Don From joost at cnoc.nl Wed May 30 18:05:58 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Wed, 30 May 2018 18:05:58 +0200 Subject: [Lazarus] How to debug DB errors. In-Reply-To: References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> <3efa08a3-48d1-d0b4-750d-7a93511fad71@cnoc.nl> Message-ID: <864ae5e7-c302-5f39-62ef-60cc75c9199b@cnoc.nl> Op 30-05-18 om 17:38 schreef Donald Ziesig via Lazarus: > I found the fpmake.pp file in /usr/share/fpcsrc/3.0.4/packages/fcl-db. > Using sudo -i, I ran: > > fppkg install -o -gl > > It responded "Error code 301", then "Compile successful". > > I ran it again: > > hp-laptop fcl-db # fppkg install -o -gl > Warning: Unexpected response status code: 301 > The FPC Package tool encountered the following error: > Found broken packages, run "fppkg fixbroken" first > > hp-laptop fcl-db # fppkg fixbroken > Warning: Unexpected response status code: 301 > Re-install packages which are dependent on just installed packages > The FPC Package tool encountered the following error: > Stream read error > > All google searches for error 301 showed "Moved permanently" as the > meaning.  Unfortunately, it doesn't show where it was looking when it > got the 301 error.  Any suggestions? The URL to the central repository has changed from 'http' to 'https', so that's why you see the redirect. But the main repository won't help you, it is almost empty. But in your case you can just ignore all this. Fppkg tries to recompile all packages which are depending on fcl-db. But the only change is that you added debug-info. So the recompile is not necessary. Try to build your project, and see what happens. (There is another repository you could try, search for your fppg.cfg (run 'fppkg listsettings') and adapt the url to the central repository to: http://fpc.cnoc.nl/repo/testing/mirrors.xml. If you still miss any packages, ask me to add them.) Regards, Joost. From donald at ziesig.org Wed May 30 18:44:12 2018 From: donald at ziesig.org (Donald Ziesig) Date: Wed, 30 May 2018 12:44:12 -0400 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <864ae5e7-c302-5f39-62ef-60cc75c9199b@cnoc.nl> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> <3efa08a3-48d1-d0b4-750d-7a93511fad71@cnoc.nl> <864ae5e7-c302-5f39-62ef-60cc75c9199b@cnoc.nl> Message-ID: <40f1a34d-8eee-c019-a0d1-b4d16e51430d@ziesig.org> On 05/30/2018 12:05 PM, Joost van der Sluis via Lazarus wrote: > Op 30-05-18 om 17:38 schreef Donald Ziesig via Lazarus: > >> I found the fpmake.pp file in >> /usr/share/fpcsrc/3.0.4/packages/fcl-db. Using sudo -i, I ran: >> >> fppkg install -o -gl >> >> It responded "Error code 301", then "Compile successful". >> >> I ran it again: >> >> hp-laptop fcl-db # fppkg install -o -gl >> Warning: Unexpected response status code: 301 >> The FPC Package tool encountered the following error: >> Found broken packages, run "fppkg fixbroken" first >> >> hp-laptop fcl-db # fppkg fixbroken >> Warning: Unexpected response status code: 301 >> Re-install packages which are dependent on just installed packages >> The FPC Package tool encountered the following error: >> Stream read error >> >> All google searches for error 301 showed "Moved permanently" as the >> meaning.  Unfortunately, it doesn't show where it was looking when it >> got the 301 error.  Any suggestions? > > The URL to the central repository has changed from 'http' to 'https', > so that's why you see the redirect. But the main repository won't help > you, it is almost empty. > > But in your case you can just ignore all this. Fppkg tries to > recompile all packages which are depending on fcl-db. But the only > change is that you added debug-info. So the recompile is not necessary. > > Try to build your project, and see what happens. > > > > (There is another repository you could try, search for your fppg.cfg > (run 'fppkg listsettings') and adapt the url to the central repository > to: http://fpc.cnoc.nl/repo/testing/mirrors.xml. > > If you still miss any packages, ask me to add them.) > > Regards, > > Joost. Well, the IDE recompiles, but my app is having problems with my own libraries that use *sqldb*.  The error message says that the checksum has changed.  I tried recompiling all or the dependencies, but the error does not change. I am now going to uninstall Lazarus and FPC and re-installing it from scratch.  Hopefully that will fix it.  If not, I'll let you know. BTW, is there any log file that I might be missing that will get me closer to the problem? Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From wkitty42 at windstream.net Wed May 30 18:59:59 2018 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Wed, 30 May 2018 12:59:59 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: <5b0e1209.1c69fb81.6f71e.98b9@mx.google.com> References: <5b0e1209.1c69fb81.6f71e.98b9@mx.google.com> Message-ID: On 05/29/2018 10:52 PM, larrydalton71 via Lazarus wrote: > How does TMysql57Connection know how to connect to the server if there is no > hostname defined? because if there's no host name it will try using a unix socket defined for the server... that /is/ local but not localhost and not using tcp/ip networking protocols... it is another way to connect to a server running on the same machine... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* From larrydalton71 at gmail.com Wed May 30 19:12:08 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Wed, 30 May 2018 13:12:08 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: Message-ID: <5b0edb6c.1c69fb81.3da76.f558@mx.google.com> So what settings do I need to use? Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: wkitty42--- via Lazarus Date: 5/30/18 12:59 (GMT-05:00) To: lazarus at lists.lazarus-ide.org Cc: wkitty42 at windstream.net Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost On 05/29/2018 10:52 PM, larrydalton71 via Lazarus wrote: > How does TMysql57Connection know how to connect to the server if there is no > hostname defined? because if there's no host name it will try using a unix socket defined for the server... that /is/ local but not localhost and not using tcp/ip networking protocols... it is another way to connect to a server running on the same machine... --   NOTE: No off-list assistance is given without prior approval.         *Please keep mailing list traffic on the list unless*         *a signed and pre-paid contract is in effect with us.* -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From mse00000 at gmail.com Wed May 30 19:57:04 2018 From: mse00000 at gmail.com (Martin Schreiber) Date: Wed, 30 May 2018 19:57:04 +0200 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <40f1a34d-8eee-c019-a0d1-b4d16e51430d@ziesig.org> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> <864ae5e7-c302-5f39-62ef-60cc75c9199b@cnoc.nl> <40f1a34d-8eee-c019-a0d1-b4d16e51430d@ziesig.org> Message-ID: <201805301957.04247.mse00000@gmail.com> On Wednesday 30 May 2018 18:44:12 Donald Ziesig via Lazarus wrote: > I am now going to uninstall Lazarus and FPC and re-installing it from > scratch. Hopefully that will fix it. If not, I'll let you know. > If the information in the stack window is insufficient in case of an exception stop *all* used units including the Free Pascal RTL, FCL and the LCL should be compiled with -gl -O-. If you are on a 64 bit Windows FPC version and there still is no usable stack trace compiling with 32 bit FPC may work better. Martin From michael at freepascal.org Wed May 30 20:50:57 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 30 May 2018 20:50:57 +0200 (CEST) Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: <5b0edb6c.1c69fb81.3da76.f558@mx.google.com> References: <5b0edb6c.1c69fb81.3da76.f558@mx.google.com> Message-ID: Please take a look at my reply for questions that need to be answered before we can further help you. Michael. On Wed, 30 May 2018, larrydalton71 via Lazarus wrote: > So what settings do I need to use? > > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message --------From: wkitty42--- via Lazarus Date: 5/30/18 12:59 (GMT-05:00) To: lazarus at lists.lazarus-ide.org Cc: wkitty42 at windstream.net Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost > On 05/29/2018 10:52 PM, larrydalton71 via Lazarus wrote: >> How does TMysql57Connection know how to connect to the server if there is no >> hostname defined? > > > because if there's no host name it will try using a unix socket defined for the > server... that /is/ local but not localhost and not using tcp/ip networking > protocols... it is another way to connect to a server running on the same machine... > > > -- >   NOTE: No off-list assistance is given without prior approval. >         *Please keep mailing list traffic on the list unless* >         *a signed and pre-paid contract is in effect with us.* > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From joost at cnoc.nl Wed May 30 22:52:09 2018 From: joost at cnoc.nl (Joost van der Sluis) Date: Wed, 30 May 2018 22:52:09 +0200 Subject: [Lazarus] How to debug DB errors. In-Reply-To: <40f1a34d-8eee-c019-a0d1-b4d16e51430d@ziesig.org> References: <99d6721a-0bf2-fd27-6317-24bceead79fb@ziesig.org> <3efa08a3-48d1-d0b4-750d-7a93511fad71@cnoc.nl> <864ae5e7-c302-5f39-62ef-60cc75c9199b@cnoc.nl> <40f1a34d-8eee-c019-a0d1-b4d16e51430d@ziesig.org> Message-ID: Op 30-05-18 om 18:44 schreef Donald Ziesig via Lazarus: >>> I found the fpmake.pp file in >>> /usr/share/fpcsrc/3.0.4/packages/fcl-db. Using sudo -i, I ran: >>> >>> fppkg install -o -gl >>> >>> It responded "Error code 301", then "Compile successful". >>> >>> I ran it again: >>> >>> hp-laptop fcl-db # fppkg install -o -gl >>> Warning: Unexpected response status code: 301 >>> The FPC Package tool encountered the following error: >>> Found broken packages, run "fppkg fixbroken" first >> But in your case you can just ignore all this. Fppkg tries to >> recompile all packages which are depending on fcl-db. But the only >> change is that you added debug-info. So the recompile is not necessary. >> >> Try to build your project, and see what happens. > > Well, the IDE recompiles, but my app is having problems with my own > libraries that use *sqldb*.  The error message says that the checksum > has changed.  I tried recompiling all or the dependencies, but the error > does not change. The compiler will tell you which .ppu's it uses. And it can not find the proper sources to recompile the .ppu. Best is just to remove the .ppu the compiler complains about, and try again. That way you know which sources you are missing and add those (or their path, or compile them and place the .ppu's in the path) > I am now going to uninstall Lazarus and FPC and re-installing it from > scratch.  Hopefully that will fix it.  If not, I'll let you know. I doubt that this will help. If you want to get rid of all (local) fppkg changes, you can just remove the ~/.fppkg directory. Same holds for Lazarus and ~/.lazarus > BTW, is there any log file that I might be missing that will get me > closer to the problem? The compiler log is you friend, I would say. (You could add the -va compiler option in Lazarus, but this will give you way too much information) Same holds for fppkg, add '-v' or '-d' and you will get more info. Btw: Martin's suggestion to add -O- also is also a good suggestion. So: fppkg -o -gl -o -O- Regards, Joost. From larrydalton71 at gmail.com Wed May 30 23:18:00 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Wed, 30 May 2018 17:18:00 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: Message-ID: <5b0f150c.1c69fb81.bc2bf.340c@mx.google.com> Michael, am I missing an email? The only question I found was 'what was the error message?'. Thanks, Larry Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 5/30/18 14:50 (GMT-05:00) To: larrydalton71 via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost Please take a look at my reply for questions that need to be answered before we can further help you. Michael. On Wed, 30 May 2018, larrydalton71 via Lazarus wrote: > So what settings do I need to use? > > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message --------From: wkitty42--- via Lazarus Date: 5/30/18  12:59  (GMT-05:00) To: lazarus at lists.lazarus-ide.org Cc: wkitty42 at windstream.net Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost > On 05/29/2018 10:52 PM, larrydalton71 via Lazarus wrote: >> How does TMysql57Connection know how to connect to the server if there is no >> hostname defined? > > > because if there's no host name it will try using a unix socket defined for the > server... that /is/ local but not localhost and not using tcp/ip networking > protocols... it is another way to connect to a server running on the same machine... > > > -- >   NOTE: No off-list assistance is given without prior approval. >         *Please keep mailing list traffic on the list unless* >         *a signed and pre-paid contract is in effect with us.* > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From l at c-m-w.me.uk Wed May 30 23:41:31 2018 From: l at c-m-w.me.uk (C Western) Date: Wed, 30 May 2018 22:41:31 +0100 Subject: [Lazarus] Location of executable Message-ID: Has something changed recently in fpc or Lazarus, with respect to the location of the executable produced? In my projects I have the target file name set including a directory name (including ...$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)...) and the same directory set for unit output. Using trunk for fpc and Lazarus very recently the output location has switched from the directory I was expecting to the project directory. The units are in the right place, implying the -FU flag is set correctly for fpc. Furthermore Lazarus after compiling the program (in the unexpected place) then tells me the file (in the expected place) can't be found for running. Colin From larrydalton71 at gmail.com Thu May 31 05:36:11 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Wed, 30 May 2018 23:36:11 -0400 Subject: [Lazarus] Ide won't Message-ID: <5b0f6dae.1c69fb81.362e1.0f11@mx.google.com> I recently installed linux mint 18.2 on a laptop I use for coding. I then installed lazarus 1.8.2, using fpc 3.04-2_amd64.deb and fpc-src_3.04-2_amd64.deb. Everything seemed to install OJ, but when I start the ide, the Free Pascal icon comes up, then disappears and the compiler doesn't run. I tried completely reinstalling but that didn't help. What ast do I try next? Sent from my Verizon, Samsung Galaxy smartphone -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Thu May 31 07:52:10 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 31 May 2018 07:52:10 +0200 (CEST) Subject: [Lazarus] TMysql57Connection won't connect to localhost (fwd) Message-ID: Resending, since Larry seems not to have received it. ----------------- Hello, This means the mysql_real_connect() call failed. That means mysql itself reports an error. This means your connection parameters are somehow not correct: one of hostname, port, username or password. At this point the database name is not yet used. First a connection is made, then the database is selected... If you leave empty the hostname, it assumes localhost and will attempt a unix socket connection first. Do I understand it correctly that you are running the mysql in a bitnami virtual machine ? Is your lazarus also running in the virtual machine ? Or is lazarus running on the host computer ? Because if that is the case, you cannot use hostname localhost, but you must use the IP address of the virtual machine. If lazarus and mysql are running on the same (virtual) machine, then it is something else. For instance, what username did you use ? root at localhost or root ? Hopefully the latter :). Michael. On Tue, 29 May 2018, larrydalton71 wrote: > The error I am getting is simply "server connect failed." I am getting the > same after I removed localhost from hostname. > > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message --------From: Michael Van Canneyt via Lazarus > Date: 5/29/18 01:57 (GMT-05:00) To: Larry > Dalton via Lazarus Cc: Michael Van Canneyt > Subject: Re: [Lazarus] TMysql57Connection won't > connect to localhost > What is the error you are getting ? > > If you want to connect through unix socket, you should leave hostname empty. > If you set it to localhost, TCP/IP will be used. > > Michael. > > On Mon, 28 May 2018, Larry Dalton via Lazarus wrote: > >> I am running lazarus 1.8.2 on linux mnt 17.2. >> I am trying to access a mysql database that was installed with Bitnami. >> >>    - Server: Localhost via UNIX socket >>    - Server type: MySQL >>    - Server connection: SSL is not being used [image: Documentation] >>    >>    - Server version: 5.7.22 - MySQL Community Server (GPL) >>    - Server: Server: localhost:3307 >>    >>    - Protocol version: 10 >>    - User: root at localhost >>    - Server charset: UTF-8 Unicode (utf8) >> >> >>    - Apache >>    - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - >>    $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ >>    - PHP extension: mysqli[image: Documentation] >>    >> >>     curl[image: Documentation] >>    >> >>     mbstring[image: Documentation] >>    >> >>    - PHP version: 7.1.17 >> >> >>    - Phpmyadmin Version information: 4.8.0.1, latest stable version: 4.8.1 >>    >>    - Web Address http://127.0.0.1:8080/phpmyadmin/ >> >> >>        I am using localhost as hostname on Tmysql57Connection. >> >>        I cannot connect the Tmysql57Connection to localhost. >> Help? >> > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From michael at freepascal.org Thu May 31 07:53:13 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 31 May 2018 07:53:13 +0200 (CEST) Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: <5b0f150c.1c69fb81.bc2bf.340c@mx.google.com> References: <5b0f150c.1c69fb81.bc2bf.340c@mx.google.com> Message-ID: Seems you are missing one. I've resent it. Sent also to your private email address. (At least I have seen it appearing on the mailing list) Michael. On Wed, 30 May 2018, larrydalton71 via Lazarus wrote: > Michael, am I missing an email? The only question I found was 'what was the error message?'. Thanks, Larry > > > Sent from my Verizon, Samsung Galaxy smartphone > -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 5/30/18 14:50 (GMT-05:00) To: larrydalton71 via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost > > Please take a look at my reply for questions that need to be answered before > we can further help you. > > Michael. > > On Wed, 30 May 2018, larrydalton71 via Lazarus wrote: > >> So what settings do I need to use? >> >> >> Sent from my Verizon, Samsung Galaxy smartphone >> -------- Original message --------From: wkitty42--- via Lazarus Date: 5/30/18  12:59  (GMT-05:00) To: lazarus at lists.lazarus-ide.org Cc: wkitty42 at windstream.net Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost >> On 05/29/2018 10:52 PM, larrydalton71 via Lazarus wrote: >>> How does TMysql57Connection know how to connect to the server if there is no >>> hostname defined? >> >> >> because if there's no host name it will try using a unix socket defined for the >> server... that /is/ local but not localhost and not using tcp/ip networking >> protocols... it is another way to connect to a server running on the same machine... >> >> >> -- >>   NOTE: No off-list assistance is given without prior approval. >>         *Please keep mailing list traffic on the list unless* >>         *a signed and pre-paid contract is in effect with us.* >> -- >> _______________________________________________ >> Lazarus mailing list >> Lazarus at lists.lazarus-ide.org >> https://lists.lazarus-ide.org/listinfo/lazarus From michael at freepascal.org Thu May 31 08:11:37 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 31 May 2018 08:11:37 +0200 (CEST) Subject: [Lazarus] Ide won't In-Reply-To: <5b0f6dae.1c69fb81.362e1.0f11@mx.google.com> References: <5b0f6dae.1c69fb81.362e1.0f11@mx.google.com> Message-ID: On Wed, 30 May 2018, larrydalton71 via Lazarus wrote: > > I recently installed linux mint 18.2 on a laptop I use for coding. I then installed lazarus 1.8.2, using fpc 3.04-2_amd64.deb and fpc-src_3.04-2_amd64.deb. Everything seemed to install OJ, but when I start the ide, the Free Pascal icon comes up, then disappears and the compiler doesn't run. I tried completely reinstalling but that didn't help. What ast do I try next? Try starting it from a terminal. You will then normally see any error messages that are output to the console. This should help us for further analysis of the problem. Michael. From nc-gaertnma at netcologne.de Thu May 31 08:21:38 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 31 May 2018 08:21:38 +0200 Subject: [Lazarus] Ide won't In-Reply-To: <5b0f6dae.1c69fb81.362e1.0f11@mx.google.com> References: <5b0f6dae.1c69fb81.362e1.0f11@mx.google.com> Message-ID: <20180531082138.353624e2@limapholos.matflo.wg> On Wed, 30 May 2018 23:36:11 -0400 larrydalton71 via Lazarus wrote: > I recently installed linux mint 18.2 on a laptop I use for coding. I then installed lazarus 1.8.2, using fpc 3.04-2_amd64.deb and fpc-src_3.04-2_amd64.deb. Everything seemed to install OJ, but when I start the ide, the Free Pascal icon comes up, Just to make sure: You mean the Lazarus splash screen, right? > then disappears and the compiler doesn't run. The IDE, not the compiler, right? > I tried completely reinstalling but that didn't help. What ast do I try next? Please open a terminal and run startlazarus You should get some output. Mattias From nc-gaertnma at netcologne.de Thu May 31 09:09:00 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Thu, 31 May 2018 09:09:00 +0200 Subject: [Lazarus] Location of executable In-Reply-To: References: Message-ID: <20180531090900.7000d5bf@limapholos.matflo.wg> On Wed, 30 May 2018 22:41:31 +0100 C Western via Lazarus wrote: > Has something changed recently in fpc or Lazarus, with respect to the > location of the executable produced? In my projects I have the target > file name set including a directory name (including > ...$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)...) and the same directory > set for unit output. Using trunk for fpc and Lazarus very recently the > output location has switched from the directory I was expecting to the > project directory. The units are in the right place, implying the -FU > flag is set correctly for fpc. Furthermore Lazarus after compiling the > program (in the unexpected place) then tells me the file (in the > expected place) can't be found for running. My fault. Sorry. Fixed. Mattias From l at c-m-w.me.uk Thu May 31 09:53:33 2018 From: l at c-m-w.me.uk (C Western) Date: Thu, 31 May 2018 08:53:33 +0100 Subject: [Lazarus] Location of executable In-Reply-To: <20180531090900.7000d5bf@limapholos.matflo.wg> References: <20180531090900.7000d5bf@limapholos.matflo.wg> Message-ID: <040b5e6c-bc07-b372-e19c-c724f15de394@c-m-w.me.uk> On 31/05/18 08:09, Mattias Gaertner via Lazarus wrote: > On Wed, 30 May 2018 22:41:31 +0100 > C Western via Lazarus wrote: > >> Has something changed recently in fpc or Lazarus, with respect to the >> location of the executable produced? In my projects I have the target >> file name set including a directory name (including >> ...$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)...) and the same directory >> set for unit output. Using trunk for fpc and Lazarus very recently the >> output location has switched from the directory I was expecting to the >> project directory. The units are in the right place, implying the -FU >> flag is set correctly for fpc. Furthermore Lazarus after compiling the >> program (in the unexpected place) then tells me the file (in the >> expected place) can't be found for running. > > My fault. Sorry. Fixed. > > Mattias > Indeed it is - thanks for fixing this so quickly. Colin From serbod at gmail.com Thu May 31 14:31:00 2018 From: serbod at gmail.com (Sergey Bodrov) Date: Thu, 31 May 2018 15:31:00 +0300 Subject: [Lazarus] "End of source not found" error in Trunk. In-Reply-To: <20180522165441.4d7e8917@limapholos.matflo.wg> References: <20180522165441.4d7e8917@limapholos.matflo.wg> Message-ID: > > > Can you reproduce it? > Upd: after some identifier edited (added-removed single character) pressing Ctrl-Space cause different line number in error message. On repeat, that number is decreased (points to other code block), and after some attempts error not occured. But on next try, error appear again with big line number. -- *Bodrov Sergey* software development, IT consulting http://www.serbod.com *Phone (Belarus):* +375(25)794-21-58 *Skype:* sergey.bodrov1 *e-mail:* serbod at gmail.com, oxotnuk at yandex.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: