[Lazarus] Video: Example Project Ftp Client

2018-05-13 Thread Anthony Walter via Lazarus
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.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-13 Thread zeljko via Lazarus

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Is it possible to find the location of an EAccessViolation, with Lazarus?

2018-05-13 Thread Carlos E. R. via Lazarus
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)



signature.asc
Description: OpenPGP digital signature
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-13 Thread Martin Frb via Lazarus

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.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] IDE form visibility bug on Linux

2018-05-13 Thread AlexeyT via Lazarus

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus win32 with fpc-3.0.4 no memory left problem

2018-05-13 Thread 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 ?

Thanks,

zeljko
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] errno 13 permission denied

2018-05-13 Thread Michael Van Canneyt via Lazarus



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.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to use two different versions of FPC

2018-05-13 Thread patspiper via Lazarus

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
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus