Re: [Lazarus] Lots of access violations with TSQLConnection TSQLQuery on Linux

2019-04-03 Thread Sven Barth via lazarus
Anthony Walter via lazarus  schrieb am Do.,
4. Apr. 2019, 02:15:

> I don't normally use the Lazarus MS SQL components, but tried using them
> today on Ubuntu Linux and keep experiencing lots of random access
> violations. I wanted to know if this is a normal thing, or if perhaps the
> state of these components is fragile on Linux.
>
> Here is what is happening.
>
> I can place the TSQLConnection, TSQLTransaction, TSQLQuery, TDataSource
> and  data aware controls on a form and connect to the database at design
> time. It works fine. I can run my program and I can view and edit records
> just fine. But if I change any part of TSQLQuery down to TSQLConnection
> setting Active to False, then I get access violations.
>
> This is particularly problematic because certain changes to component
> properties require Active to be set to False, such as editing SQL. And very
> often, though not always, changing the Active property results in access
> violations. And after an AV happens then things start misbehaving in the
> IDE.
>
> Is this a common problem for some people on Linux using the MS SQL
> components? Am I doing something wrong? Are there people her who have
> worked with MS SQL components on Linux much and is familiar with this
> problem?
>

Just to be sure: do you have the necessary library installed on your
system? See here: http://wiki.freepascal.org/mssqlconn#Installation

Regards,
Sven

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


Re: [Lazarus] New XML format for project info files

2019-04-03 Thread Ondrej Pokorny via lazarus

On 03.04.2019 22:42, Werner Pamler via lazarus wrote:
Unfortunately this does not solve the issue for me personally. I post 
a lot of code in the forum, and since I normally work with Laz-trunk 
and, of course, forget to activate the compatibility option the code 
will be useless for users of legacy versions. I really would 
appreciate to have the previous solution (a global default setting for 
the compatibility option) in addition to the current solution. Of 
course this new option should now be off by default, but after once 
having switched it on all my demo projects would be readable also by 
legacy Lazarus. I reopened bug report 
https://bugs.freepascal.org/view.php?id=22752 for this request.


From the perspective of a legacy Laz user a stand-alone tool to 
convert the new format back to legacy would be helpful, too. 
Currently, a user not having Laz trunk is unable to open any projects 
saved by Laz trunk without editing the xml files manually!



Feel free to extend the feature to your wishes. I don't think anybody 
will be against such a global option or an external stand-alone 
converting tool.


Ondrej

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


Re: [Lazarus] Got Lazarus 2.0.0 from SVN, missing help files

2019-04-03 Thread Bo Berglund via lazarus
On Wed, 3 Apr 2019 18:44:27 +0200, Mattias Gaertner via lazarus
 wrote:

>You can download them from here:
>https://svn.freepascal.org/svn/lazarus/binaries/docs/chm/
>and put them into lazarus/docs/chm/
>

Thanks, I will do that.
Maybe I can even check them out from svn directly into that folder?


-- 
Bo Berglund
Developer in Sweden

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


Re: [Lazarus] Cross compile for Linux x64 on Windows 7 x64?

2019-04-03 Thread Bo Berglund via lazarus
On Wed, 3 Apr 2019 12:14:47 -0300, "Carlos Eduardo S. M. via lazarus"
 wrote:

>For me, the simplest solution is installing Ubuntu in a dual boot or, 
>even better, in a virtual machine (e.g. free VMWare Player) with access 
>to the Windows' Lazarus project folder. Independent install and 
>configuration of Lazarus and debugging for each platform.
>

I agree on the first part about the virtual machine. I have already
done so.
But no shared folder, I checked out the project using SVN to the linux
machine and opened the project there. Worked fine.
So I work in Linux on the same project via Subversion.


-- 
Bo Berglund
Developer in Sweden

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


[Lazarus] Lots of access violations with TSQLConnection TSQLQuery on Linux

2019-04-03 Thread Anthony Walter via lazarus
I don't normally use the Lazarus MS SQL components, but tried using them
today on Ubuntu Linux and keep experiencing lots of random access
violations. I wanted to know if this is a normal thing, or if perhaps the
state of these components is fragile on Linux.

Here is what is happening.

I can place the TSQLConnection, TSQLTransaction, TSQLQuery, TDataSource
and  data aware controls on a form and connect to the database at design
time. It works fine. I can run my program and I can view and edit records
just fine. But if I change any part of TSQLQuery down to TSQLConnection
setting Active to False, then I get access violations.

This is particularly problematic because certain changes to component
properties require Active to be set to False, such as editing SQL. And very
often, though not always, changing the Active property results in access
violations. And after an AV happens then things start misbehaving in the
IDE.

Is this a common problem for some people on Linux using the MS SQL
components? Am I doing something wrong? Are there people her who have
worked with MS SQL components on Linux much and is familiar with this
problem?

Thank you.
Anthony
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] New XML format for project info files

2019-04-03 Thread Werner Pamler via lazarus

Am 18.03.2019 um 06:54 schrieb Juha Manninen via lazarus:


On Mon, Mar 18, 2019 at 1:12 AM Werner Pamler via lazarus
 wrote:

I saw that you activated legacy compatibility mode by default, thank
you. But now the checkbox in the project options is out of sync.
Shouldn't it be checked now by default, too?

Here it is checked now by default both in existing and in new projects.

Juha


Unfortunately this does not solve the issue for me personally. I post a 
lot of code in the forum, and since I normally work with Laz-trunk and, 
of course, forget to activate the compatibility option the code will be 
useless for users of legacy versions. I really would appreciate to have 
the previous solution (a global default setting for the compatibility 
option) in addition to the current solution. Of course this new option 
should now be off by default, but after once having switched it on all 
my demo projects would be readable also by legacy Lazarus. I reopened 
bug report https://bugs.freepascal.org/view.php?id=22752 for this request.


From the perspective of a legacy Laz user a stand-alone tool to convert 
the new format back to legacy would be helpful, too. Currently, a user 
not having Laz trunk is unable to open any projects saved by Laz trunk 
without editing the xml files manually!


Most users still are not aware of this change - see discussion following 
https://forum.lazarus.freepascal.org/index.php/topic,44161.msg316081.html#msg316081. 
I think this is an important point to be listed 
inhttp://wiki.freepascal.org/Lazarus_2.2.0_release_notes.


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


Re: [Lazarus] Got Lazarus 2.0.0 from SVN, missing help files

2019-04-03 Thread Mattias Gaertner via lazarus
On Wed, 03 Apr 2019 11:46:23 -0400
Bo Berglund via lazarus  wrote:

> I installed Lazarus 2.0.0 on Linux Mint 19 using svn to check out tag
> 2_0_0 and doing a make bigide inside.
> 
> It all worked well to get Lazarus up and running, but now I found a
> problem regarding help...
> When I want to check the syntax for a command using the F1 key there
> is a dialog saying it cannot find rtl.chm.
> 
> What can I do to rectify this?
> find does not find any such file on my system...

You can download them from here:
https://svn.freepascal.org/svn/lazarus/binaries/docs/chm/
and put them into lazarus/docs/chm/

Mattias

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


[Lazarus] Got Lazarus 2.0.0 from SVN, missing help files

2019-04-03 Thread Bo Berglund via lazarus
I installed Lazarus 2.0.0 on Linux Mint 19 using svn to check out tag
2_0_0 and doing a make bigide inside.

It all worked well to get Lazarus up and running, but now I found a
problem regarding help...
When I want to check the syntax for a command using the F1 key there
is a dialog saying it cannot find rtl.chm.

What can I do to rectify this?
find does not find any such file on my system...


-- 
Bo Berglund
Developer in Sweden

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


Re: [Lazarus] Cross compile for Linux x64 on Windows 7 x64?

2019-04-03 Thread Carlos Eduardo S. M. via lazarus
For me, the simplest solution is installing Ubuntu in a dual boot or, 
even better, in a virtual machine (e.g. free VMWare Player) with access 
to the Windows' Lazarus project folder. Independent install and 
configuration of Lazarus and debugging for each platform.


[]'s,

Carlos Eduardo S. Matuzaki
Curitiba / Parana' / Brazil

Em 02/04/2019 17:14, lazarus-requ...@lists.lazarus-ide.org escreveu:

Date: Tue, 02 Apr 2019 08:14:39 -0400
From: Bo Berglund
To: laza...@lists.lazarus.freepascal.org
Subject: [Lazarus] Cross compile for Linux x64 on Windows 7 x64?
Message-ID: 
Content-Type: text/plain; charset=us-ascii

I have a command line utility created in Lazarus 2.0.0/fpc 3.0.4 on
Windows 7 x64. I use the Lazarus/fpc downloaded via this page:
https://www.lazarus-ide.org/index.php?page=downloads

Now I want to compile this project for Linux on the same x64 Intel CPU
so I can run it under Ubuntu 16.4 LTS Server x64.
Since that is a headless machine (it is a server) I need to build the
utility by cross-compile on my Windows x64 Lazarus installation.

Is there a *simple* instruction on how to do this? I have looked at
the doc page:
http://wiki.lazarus.freepascal.org/Cross_compiling
but it is too complex for me to understand. I tried to just go to the
sections I deemed relevant to my simple (and probably very common)
case but they all cross-reference into a maze...

I need a "For Dummies" how-to which presupposes I have installed
Lazarus/Fpc for Windows x64 and then tells me what to download extra
(and from where) and also how to set up the project environment to
make the Linux target.
Is something like that available?




---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus

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


Re: [Lazarus] Cross compile for Linux x64 on Windows 7 x64?

2019-04-03 Thread Bo Berglund via lazarus
On Tue, 02 Apr 2019 16:00:18 -0400, DougC via lazarus
 wrote:

>I am VERY interested in how this question is answered and resolved. It 
>seems to be a weak point in how the Lazarus/FPC effort has developed. 
>
>This type of question has prevented me from diving into the Lazarus/FPC 
>ecosystem because there seem to be regular requests for help in resolving this 
>type of issue. 
>

I decided that it would be easier to just use a LinuxMint19x64 virtual
machine that I had already installed fpc 3.0.4/lazarus 1.8.5 into.

I checked out the lazarus 2.0.0 sources and issued the make bigide
inside of the checkout and then created the application launch desktop
file.

Then checked out the project files via svn into the LinuxMint vm and
opened the project inside Lazarus 2.0.0 and it built right away.
Simplest solution since I already had the virtual linux machine
available

Now I will go for what I really wanted to do, i.e create a command
line version of the utility, which I can use on a headless Ubuntu
16.04 server.


-- 
Bo Berglund
Developer in Sweden

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


[Lazarus] We are planning the next release: Lazarus 2.0.2

2019-04-03 Thread Mattias Gaertner via lazarus
The Lazarus team is glad to announce that:

      The release of Lazarus 2.0.2

has been scheduled for around

      16th to 18th April 2019

This release will be built with FPC 3.0.4.
The previous release Lazarus 2.0.0 was built with FPC 3.0.4 as well.

Here is the list of fixes for Lazarus 2.0.2 (since 2.0.0):
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

We would invite everyone to provide their feedback to help us improve
this upcoming release. Please let as know in particular:
- Any fixes made to trunk, that you believe should still be merged to
  the fixes branch (fixes that are not listed on the above wiki page)
- Any regressions that happened in fixes branch since the last release
- Other urgent matters, you believe we should know before the release.

Please attempt to provide your feedback by: 10th April 2019

More info on our release process can be found at (work in progress):
http://wiki.lazarus.freepascal.org/Lazarus_release_engineering

Information about the previous release:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

The intended minimum requirements for the release will be:

Windows:
   2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

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, beta), qt and qt5
   (32 or 64bit).


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