Re: [Lazarus] IDE

2013-01-22 Thread Mark Morgan Lloyd

Martin wrote:

On 22/01/2013 00:44, Graeme Geldenhuys wrote:

On 01/21/13 21:41, Mark Morgan Lloyd wrote:

problems with the project does you, it, or in the current case the OP
any favours.

Hey Mark, read the first message... Timothy is experiencing the same
things as I am, so I'm not alone. Lazarus seems to be getting more buggy
than usual.  Sorry if that hurts your feelings.



Strange though... If you read all of his messages:

He had the problems with:  Lazarus 0.9.30.2-2 on XUbuntu 12.04-1 running 
KDE 4.
He then said, he tried the current deb from sourceforge, and it solved 
it for him.


Marc Hanisch also said that the upgrade did him good.

You have the problem with 1.0.x and you are fine with 0.9.30,2 (you 
reverted to that)

So apparently something was fixed, and something else broken


I've got problems with 1.0.4 on SPARC Linux which is probably something 
to do with alignment although there's an outside chance that it could be 
due to the computer having more CPUs than most- it's been little-used 
for several years so I've not been testing FPC/Lazarus on it regularly. 
http://bugs.freepascal.org/view.php?id=23703


Timothy, Graeme: I stress that I'm not seeing the sort of gross 
unreliability that you report, and I've probably run most 
(even-numbered) versions since around 0.9.24. If you've got specific 
problems then please raise them for discussion and if necessary 
bug-report them. From a support POV, I'm bothered that there's something 
unpleasant lurking: number or speed of CPUs, type of graphics card, 
amount or type of memory (testable on x86 using a MemTest CD).


My usual OS-of-choice, irrespective of CPU, is Debian+KDE. In some cases 
this is KDE3, in others KDE4; in most cases I run headless. I usually 
run the IDE with GTK rather than Qt, although where possible I try to 
build for Qt on occasion. Of the major platforms, I'm not at present 
able to test x86-64; of the minor ones I'm only able to run ARM and MIPS 
via emulation, and haven't yet attempted to run FreeBSD.



-

As for the rest of my messages, I responded ONLY to the style of your 
message. Not to the content of it.


When somebody makes that sort of complaint, the style becomes content.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Mark Morgan Lloyd

Daniel Gaspary wrote:

On Mon, Jan 21, 2013 at 4:10 PM, Mark Morgan Lloyd
markmll.laza...@telemetry.co.uk wrote:

I see nothing like that with 0.9.30- or with newer versions- on Debian+KDE4
on x86. Can't speak for x86-64, which in my case I have not got.



I'm using Kubuntu 12.10 (x86-64), no problems until now.

I have installed lazarus 1.0.4 sf package, but I'm using the
repositories packages of fpc and fpc-source.


By the way, ubuntu repositories offers a Lazarus(9.30)-qt package.

How can I create an 1.0.x equivalent of that?


Provided that you've got the libqt4pas-dev 
 package (which should also imply that you've got libqt4pas5) just 
get the source and build with something like


make LCL_PLATFORM=qt bigide

Lazarus (particularly newer versions) is very tolerant of multiple 
copies: just make sure they're in their own directories.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

2013-01-22 Thread Bart
On 1/21/13, Mattias Gaertner nc-gaert...@netcologne.de wrote:


 The lower-than and greater-than operators are defined for
 strings. Do you want to remove them too?


 Ranges for strings are (countably) infinite, and this is (by design)
 not the case in the case of other cases (pun intended).

No, you are missing the analogy I meant (or I did not make myself clear enough).

Case was originally meant for Ordinal values.
With Ordinal values ranges (1..100, 'a'..'z') are never infinite.
Pascal has never had the concept of ranges (in this sense) that are
infinite (countable or uncoutable).
You cannot define ranges for Floats (they would be uncoutable
infinite), and by that analogy I would suggest you should not be able
to define ranges for strings, as they are (coutbale) infinite.

The ability to have an infinite (countable or uncoutable) range
between two values for a given type however, does not mean you should
not have lesser than, or greater than operators. If this were the case
we'ld have to remove them for floats as well, and that would be rather
silly.

So my analogy was more with floats (but they have uncoutable infinite
ranges, as opposed to coutable infinity for strings).

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

2013-01-22 Thread Mattias Gaertner
On Tue, 22 Jan 2013 09:20:28 +0100
Bart bartjun...@gmail.com wrote:

 On 1/21/13, Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
 
  The lower-than and greater-than operators are defined for
  strings. Do you want to remove them too?
 
 
  Ranges for strings are (countably) infinite, and this is (by design)
  not the case in the case of other cases (pun intended).
 
 No, you are missing the analogy I meant (or I did not make myself clear 
 enough).
 
 Case was originally meant for Ordinal values.
 With Ordinal values ranges (1..100, 'a'..'z') are never infinite.
 Pascal has never had the concept of ranges (in this sense) that are
 infinite (countable or uncoutable).
 You cannot define ranges for Floats (they would be uncoutable
 infinite), and by that analogy I would suggest you should not be able
 to define ranges for strings, as they are (coutbale) infinite.
 
 The ability to have an infinite (countable or uncoutable) range
 between two values for a given type however, does not mean you should
 not have lesser than, or greater than operators. If this were the case
 we'ld have to remove them for floats as well, and that would be rather
 silly.
 
 So my analogy was more with floats (but they have uncoutable infinite
 ranges, as opposed to coutable infinity for strings).

To implement a case LowerBound..UpperBound you only need a transitive
compare operator. You don't need fixed size ranges. 
If you have small fixed size range then you can implement the case
via jump tables. But that is only an implementation detail.

IMHO if you think that the string compare operator makes sense, then
strings in case makes sense too. They make exactly the same sense.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 00:58, Paul Breneman wrote:

http://www.lazarussupport.com/

On another note, I see that site was also short lived.
[yes I know it is not part of the Lazarus project per se]

  - copyright noticed last updated in 2011
  - Latest FPC release: 2.4.4
  - Latest stable Lazarus: 0.9.30 (this I actually agree with)
  - Last news article posted: Aug 2011


It's a pity. For their sake I was hoping some type of commercial venture
with FPC / Lazarus would be successful. On the up side, maybe they are
so busy with paid support, they don't have time to update their website. ;-)


Regards,
  - Graeme -



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

2013-01-22 Thread Hans-Peter Diettrich

Avishai schrieb:
Sorry, I'm late coming into this conversation and I may not be 
understanding the question/answer.  But if I am, then 
case sensitivity should be part of any sort/comparison, at least as an 
option.  I have had many problems when it is not.  aA-Bb-Cc-dD is a form 
of randomness.  If the result of a sort can not be reliably reproduced 
after adding new data, the sort fails.  Case sensitive sort is common. 
 Take a look at almost any spreadsheet program and you will see that it 
is an option.  It's also an option in TStringList.  In my opinion Case 
Sensitive should be the default behavior of any Sort/Comparison.


A case statement IMO should not rely on sort/compare options, unless 
there exists a syntax extension for such specifications. It also should 
be insensitive to string encodings (codepages).


If you want to be sure of the results, you replace the case statement by 
a chain of explicit comparisons, using the desired string comparison 
functions.


DoDi


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 01/21/13 20:47, Sven Barth wrote:
Did you report these problems? If not how should the Lazarus developers 
know they exist?


Yes - I'm probably the largest contributor of bug reports. But recently
I gave up reporting every single bug I find.


Looking at Mantis, it looks as though you've reported bugs against 
nothing more recent than 0.9.30 and all of them were handled adequately: 
either resolved or closed after you didn't supply more info.


Looking at something that I reported, there were changes in the IDE post 
0.9.30 that affected form display under some particularly contrived 
conditions (roughly translated: there was a better way to do something 
than I knew about). The particular one that I reported was fixed and I 
believe is now in 1.0.2, but there's always a possibility that there are 
related problems still in there.



Also some bugs are very hard to report because I can't reproduce all of
them on demand. And as a developer, I know that getting a bug report
that you can't reproduce is a big turn-down.


And speaking as somebody who's done a lot of support over the years, I 
know that the worst thing is somebody who refuses to be helped. And it's 
even worse when they're arrogant with it. And worst of all when all of 
this is for free.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 08:09, Mark Morgan Lloyd wrote:

 From a support POV, I'm bothered that there's something
 unpleasant lurking: number or speed of CPUs, type of graphics card, 
 amount or type of memory (testable on x86 using a MemTest CD).

The hardware I'm running on now is very new - 4 months old. It was a
whole new system. Intel i7-3770k at 3.5Ghz with 16GB high end non-ECC
RAM. 3x2TB HDD's in RAIDZ1 (ZFS filesystem) for data storage, 128GB SSD
boot disk, 850W PSU etc.

I did thorough tests of my hardware, and there doesn't seem to be any
problems. Also, all other software run fine - just not Lazarus. Also the
Windows copy that does run fine, runs in a VM session. So if it was
faulty memory or some other hardware failure (very unlikely), that VM
should be affected too. My current OS (FreeBSD 9.1) is rock solid though
- no other software issues.

I suspect the issue might be related to LCL-GTK2, because often the same
checkout of Lazarus runs way better under Windows than under Linux. I
always try and keep FPC and Lazarus versions in sync, across all my
development VM's. I never compile Lazarus with LCL-Qt, but maybe it is
time I try. The one major downside of switching to LCL-QT would mean I
can't have horizontal file tabs to the right of my editor. But if LCL-QT
solves the problems I experience, then the right positioned tab issue is
something I can live with.


Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Michael Van Canneyt



On Tue, 22 Jan 2013, Graeme Geldenhuys wrote:


On 01/22/13 08:09, Mark Morgan Lloyd wrote:


From a support POV, I'm bothered that there's something
unpleasant lurking: number or speed of CPUs, type of graphics card,
amount or type of memory (testable on x86 using a MemTest CD).


The hardware I'm running on now is very new - 4 months old. It was a
whole new system. Intel i7-3770k at 3.5Ghz with 16GB high end non-ECC
RAM. 3x2TB HDD's in RAIDZ1 (ZFS filesystem) for data storage, 128GB SSD
boot disk, 850W PSU etc.

I did thorough tests of my hardware, and there doesn't seem to be any
problems. Also, all other software run fine - just not Lazarus. Also the
Windows copy that does run fine, runs in a VM session. So if it was
faulty memory or some other hardware failure (very unlikely), that VM
should be affected too. My current OS (FreeBSD 9.1) is rock solid though
- no other software issues.

I suspect the issue might be related to LCL-GTK2, because often the same
checkout of Lazarus runs way better under Windows than under Linux.


I run lazarus with LCL-GTK2, and did not experience any problems lately ?

Can you send me (in private if you prefer) a list of tests I can do to 
reproduce the problems you have ?


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 01/22/13 08:09, Mark Morgan Lloyd wrote:


From a support POV, I'm bothered that there's something
unpleasant lurking: number or speed of CPUs, type of graphics card, 
amount or type of memory (testable on x86 using a MemTest CD).


The hardware I'm running on now is very new - 4 months old. It was a
whole new system. Intel i7-3770k at 3.5Ghz with 16GB high end non-ECC
RAM. 3x2TB HDD's in RAIDZ1 (ZFS filesystem) for data storage, 128GB SSD
boot disk, 850W PSU etc.


[Nod]


I did thorough tests of my hardware, and there doesn't seem to be any
problems. Also, all other software run fine - just not Lazarus. Also the
Windows copy that does run fine, runs in a VM session. So if it was
faulty memory or some other hardware failure (very unlikely), that VM
should be affected too. My current OS (FreeBSD 9.1) is rock solid though
- no other software issues.


Only things I'd note here are that different OSes can fail in different 
ways: a classic was that OS/2 used to bomb on systems that ran Windows 
fine because (it was believed) it stressed the cache. Also I've seen a 
system where MemTest ran fine but it locked up doing real work, I 
suspected a PCI bridge problem.



I suspect the issue might be related to LCL-GTK2, because often the same
checkout of Lazarus runs way better under Windows than under Linux. I
always try and keep FPC and Lazarus versions in sync, across all my
development VM's. I never compile Lazarus with LCL-Qt, but maybe it is
time I try. The one major downside of switching to LCL-QT would mean I
can't have horizontal file tabs to the right of my editor. But if LCL-QT
solves the problems I experience, then the right positioned tab issue is
something I can live with.


I think the things to try are (a) a remote X session if you can manage 
it conveniently and (b) a non-root ** VNC session whether it's 
convenient or not :-)  There are definitely issues about desktops and 
apps looking weird over remote or VNC connections, but at the very least 
this should isolate you from potential problems caused by your local X 
subsystem.


** By non-root, I mean VNC running as a completely separate X server. I 
don't mean it scraping an existing session which is the sort of thing 
you'd be doing in a remote support role. If necessary I can talk you 
through this.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Issues per reporter (was: Re: IDE)

2013-01-22 Thread Alexander Klenin
On Tue, Jan 22, 2013 at 8:46 AM, Martin laza...@mfriebe.de wrote:
 On 21/01/2013 20:56, Graeme Geldenhuys wrote:

 Yes - I'm probably the largest contributor of bug reports.

 Sorry, I am way ahead of you


That is actually a fun statistic:

Graeme has total of 380 bugs reported, of them 258 closed, 81
resolved, 41 remaining  (10.7%)
Martin has total of 392 bugs reported, of them 261 closed, 63
resolved, 68 remaining (17.3%)
I have total of 242 bugs reported, of them 182 closed, 19 resolved, 41
remaining (16.9%)

So it looks like Graeme's bug are actually getting twice almost twice
as mush attention as
Martin's or mine :))

Is there a way to extract this kind of statistics automatically from Mantis?

--
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Issues per reporter (was: Re: IDE)

2013-01-22 Thread Mark Morgan Lloyd

Vincent Snijders wrote:

2013/1/22 Alexander Klenin kle...@gmail.com:

Is there a way to extract this kind of statistics automatically from Mantis?


There is a summary page with top producers at
http://bugs.freepascal.org/summary_page.php, but it is restricted
because of the load it generates on the server, I guess.


I don't think it's a good idea to make that sort of thing too prominent, 
unless there's a way of scoring people not by the number of issues they 
raise but by the number of acceptable patches they contribute.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Issues per reporter (was: Re: IDE)

2013-01-22 Thread Vincent Snijders
2013/1/22 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk:

 I don't think it's a good idea to make that sort of thing too prominent,
 unless there's a way of scoring people not by the number of issues they
 raise but by the number of acceptable patches they contribute.

Then look only in  the patches sub project.

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 10:13, Mark Morgan Lloyd wrote:

 And worst of all when all of 
 this is for free.

Please don't play the free card. You work on Lazarus as your open
source project of choice. I work on other open source projects like
tiOPF, fpGUI, OnGuard, FPTest etc. I decided to stop contributing
development work to Lazarus, because I already work on enough other open
source projects. I don't get paid for those either, plus I have a full
time day job and a family that consumes 90% of my time.

If cost is such an issue to you, then stop working on open source
projects, or start charging for your work. Or just stop reading my messages.


Regards,
  - Graeme -


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Issues per reporter (was: Re: IDE)

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 10:45, Alexander Klenin wrote:
 
 Graeme has total of 380 bugs reported,

Wow, that many already. It's more than I thought.


 So it looks like Graeme's bug are actually getting twice almost twice
 as mush attention as Martin's or mine :))

Must be my wonderful personality. ;-)


Regards,
  - Graeme -



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 10:38, Mark Morgan Lloyd wrote:
 apps looking weird over remote or VNC connections, but at the very least 
 this should isolate you from potential problems caused by your local X 
 subsystem.

That is exactly why I setup a Ubuntu 10.04.4 LTS VM session. Ubuntu
10.04 was a very stable system for me. Back in the day when Ubuntu 10.04
came out, I ran that as my host OS, and Lazarus at the time run pretty
nice - as far as I can remember. So the X subsystem from that Ubuntu
worked pretty well.

I gave up on Ubuntu since they moved to Unity. So I have tried Mint and
OpenSUSE - the latter being pretty nice, except for KDE4 (I'm not a
fan). So no matter what system I now run, I always use JWM (a good
no-frills X11 window manager).

Almost two month ago, I moved to FreeBSD as my host OS. All development
environments were moved into different VM's. So I don't do any
development work in my host OS any more. So I'm now running the same
Linux (in a VM) as I did in 2010. The only difference now, is that I
have a much newer Lazarus installed.


 ** By non-root, I mean VNC running as a completely separate X server. 

Thanks for the suggestion, I'll give that a try. But first I'll switch
to LCL-Qt and see how that goes over the next couple of days.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 10:29, Michael Van Canneyt wrote:
 
 I run lazarus with LCL-GTK2, and did not experience any problems lately ?

Are you using a released version, fixes version, or Trunk?


 Can you send me (in private if you prefer) a list of tests I can do to 
 reproduce the problems you have ?

Thanks for the offer. As I mentioned to Mark, I'll switch to LCL-Qt
first for a couple of days. If that doesn't work I'll investigate further.

Now the question is, what version of Lazarus should I try, while testing
LCL-Qt. Stay with the released 1.0.4? Move to the fixes branch of 1.0.4,
or move to Trunk?


Regards,
  - Graeme -



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Michael Van Canneyt



On Tue, 22 Jan 2013, Graeme Geldenhuys wrote:


On 01/22/13 10:29, Michael Van Canneyt wrote:


I run lazarus with LCL-GTK2, and did not experience any problems lately ?


Are you using a released version, fixes version, or Trunk?


Trunk.





Can you send me (in private if you prefer) a list of tests I can do to
reproduce the problems you have ?


Thanks for the offer. As I mentioned to Mark, I'll switch to LCL-Qt
first for a couple of days. If that doesn't work I'll investigate further.

Now the question is, what version of Lazarus should I try, while testing
LCL-Qt. Stay with the released 1.0.4? Move to the fixes branch of 1.0.4,
or move to Trunk?


I can't advise on that. 
In windows I work with 1.0.4, but daily development happens with trunk 
(albeit a couple of months old)


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Martin

On 22/01/2013 13:41, Michael Van Canneyt wrote:



Now the question is, what version of Lazarus should I try, while testing
LCL-Qt. Stay with the released 1.0.4? Move to the fixes branch of 1.0.4,
or move to Trunk?


I can't advise on that. In windows I work with 1.0.4, but daily 
development happens with trunk (albeit a couple of months old)


The fixes branch is currently well maintained.
I would suggest to start with a snapshot from fixes branch.

You can see which merges are outstanding: 
http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 01/22/13 10:13, Mark Morgan Lloyd wrote:

And worst of all when all of 
this is for free.


Please don't play the free card. You work on Lazarus as your open
source project of choice. I work on other open source projects like
tiOPF, fpGUI, OnGuard, FPTest etc. I decided to stop contributing
development work to Lazarus, because I already work on enough other open
source projects. I don't get paid for those either, plus I have a full
time day job and a family that consumes 90% of my time.

If cost is such an issue to you, then stop working on open source
projects, or start charging for your work. Or just stop reading my messages.


I want to make two points there. The first is that you are being highly 
selective in your quotation: I was not referring to the project as being 
free (beer+speech) but to the unpaid give-and-take nature of the support.


The second is that I am most definitely not one of the core team, or 
even at the periphery. I've got my own interests and responsibilities, 
for me it's just a tool.


But that doesn't stop me from trying to play nicely with people who have 
invested significant time and effort into it.


It does not help when somebody comes along and says this is crap. It 
does not help when somebody comes along and says the project team is 
crap. It does not help when somebody comes along and says I see 
somebody else is having problems which vindicates my attitude that 
everything's crap. So let's just try to cut the crap and find what's 
giving you problems, before anybody else gets screwed up. Please.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Graeme Geldenhuys
On 01/22/13 13:48, Michael Van Canneyt wrote:
 
 Why not Kubuntu then ? I've been using it for many years now, no problems.

Not a KDE4 fan. It just doesn't fit my workflow, is sluggish, and basic
things are too hard to accomplish.

Anyway, as a host OS goes, I think I found my ultimate favourite -
FreeBSD. Rock solid system, super easy to setup, fantastic
documentation, the ports system is great and couldn't be easier to use.
And unlike Linux, they don't re-implement most existing technology every
couple of months. The FreeBSD guys are way more consistent, and rather
improve and evolve the existing technologies, which gives fantastic
backwards compatibility. eg: How many sound servers has Linux already
had? How many file systems? How many directory layouts? How many distros
exist? All slightly different to the next. I have a commercial mail
server running on a separate FreeBSD 9.1 system. The mail server
software was a binary release that was compiled for FreeBSD 8, years
ago. The installation, documentation and binaries are still compatible
with FreeBSD 9.1

Anyway, enough about my OS choices.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Dynamic library dependency error

2013-01-22 Thread xrfang
Hi All,

I try to make a dynamic library and get this error:

paintrect.pas(0,0) Fatal: Can not find unit Controls used by paintrect. Check 
if package LCLBase is in the dependencies.

The source code of my library is:

library liboval;

{$mode objfpc}{$H+}

uses
  paintrect, oval;
function GetPainter: TPainter;
begin
end;
exports GetPainter;
begin
end.    

And the used paintrect.pas is attached.

Any hint is greatly appreciated.

Thanks,
Shannonunit paintrect;

{$mode objfpc}{$H+}

interface

uses
  Classes, Controls, ExtCtrls, Graphics, Types, SysUtils, LCLType;
type
  TPainter = class abstract
  public
OnKeyDown: TKeyEvent;
OnKeyUp: TKeyEvent;
OnUTF8KeyPress: TUTF8KeyPressEvent;
OnMouseDown: TMouseEvent;
OnMouseEnter: TNotifyEvent;
OnMouseLeave: TNotifyEvent;
OnMouseMove: TMouseMoveEvent;
OnMouseUp: TMouseEvent;
OnMouseWheel: TMouseWheelEvent;
OnMouseWheelDown: TMouseWheelUpDownEvent;
OnMouseWheelUp: TMouseWheelUpDownEvent;
procedure Paint(Canvas: TCanvas; Rect: TRect); virtual abstract;
  end;
  { TPaintRect }
  TPaintRect = class
  private
align: TAlign;
box: TPaintBox;
_span: Real;
painters: TStringList; //array of TPainter;
prect: TPaintRect;
FOnKeyDown: TKeyEvent;
FOnKeyUp: TKeyEvent;
FOnMouseDown: TMouseEvent;
FOnMouseEnter: TNotifyEvent;
FOnMouseLeave: TNotifyEvent;
FOnMouseMove: TMouseMoveEvent;
FOnMouseUp: TMouseEvent;
FOnMouseWheel: TMouseWheelEvent;
FOnMouseWheelDown: TMouseWheelUpDownEvent;
FOnMouseWheelUp: TMouseWheelUpDownEvent;
FOnPaint: TNotifyEvent;
FOnUTF8KeyPress: TUTF8KeyPressEvent;
function GetRect(Invert: Boolean = False): TRect;
function GetSpan: Real;
procedure SetSpan(AValue: Real);
procedure OnKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure OnKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure OnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
procedure OnMouseEnter(Sender: TObject);
procedure OnMouseLeave(Sender: TObject);
procedure OnMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
procedure OnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
procedure OnMouseWheel(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
procedure OnMouseWheelDown(Sender: TObject; Shift: TShiftState; MousePos: TPoint; var Handled: Boolean);
procedure OnMouseWheelUp(Sender: TObject; Shift: TShiftState; MousePos: TPoint; var Handled: Boolean);
procedure OnPaint(Sender: TObject);
procedure OnUTF8KeyPress(Sender: TObject; var UTF8Key: TUTF8Char);
procedure Initialize;
  public
property Span: Real read GetSpan write SetSpan;
constructor Create(ABox: TPaintBox; AnAlign: TAlign; ASpan: Real);
constructor Create(ARect: TPaintRect; AnAlign: TAlign; ASpan: Real);
destructor Destroy; override;
procedure AddPainter(AName: string; APainter: TPainter);
  end;

implementation

{ TPaintRect }

function TPaintRect.GetRect(Invert: Boolean): TRect;
var
  pr : TRect;
  function Size: Integer;
  begin
case align of
  alBottom, alTop: Result := pr.Bottom - pr.Top;
  else Result := pr.Right - pr.Left;
end;
if _span  1 then begin
  Result := Round(_span * Result);
end else begin
  if _span  0 then
Result := 0
  else if _span  Result then
Result := Trunc(_span);
end;
  end;
begin
  if Assigned(prect) then
pr := prect.GetRect(True)
  else
pr := Rect(0, 0, box.ClientWidth - 1, box.ClientHeight - 1);
  if align in [alNone, alClient, alCustom] then begin
if Invert then
  Result := Rect(0, 0, 0, 0)
else
  Result := pr;
  end else if Invert then begin
case align of
  alBottom: Result := Rect(pr.Left, pr.Top, pr.Right, pr.Bottom-Size);
  alLeft: Result := Rect(pr.Left+Size, pr.Top, pr.Right, pr.Bottom);
  alRight: Result := Rect(pr.Left, pr.Top, pr.Right-Size, pr.Bottom);
  alTop: Result := Rect(pr.Left, pr.Top+Size, pr.Right, pr.Bottom);
end;
  end else begin
case align of
  alBottom: Result := Rect(pr.Left, pr.Bottom-Size+1, pr.Right, pr.Bottom);
  alLeft: Result := Rect(pr.Left, pr.Top, pr.Left+Size-1, pr.Bottom);
  alRight: Result := Rect(pr.Right-Size+1, pr.Top, pr.Right, pr.Bottom);
  alTop: Result := Rect(pr.Left, pr.Top, pr.Right, pr.Top+Size-1);
end;
  end;
end;

function TPaintRect.GetSpan: Real;
begin
  Result := _span;
end;

procedure TPaintRect.SetSpan(AValue: Real);
begin
  _span := AValue;
  box.Invalidate;
end;

procedure TPaintRect.OnKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
var
  i: Integer;
  p: TPainter;
begin
  for i := 0 to painters.Count - 1 do begin
p := TPainter(painters.Objects[i]);
if Assigned(p.OnKeyDown) then p.OnKeyDown(Sender, Key, Shift);
  end;
  if Assigned(FOnKeyDown) then 

Re: [Lazarus] Dynamic library dependency error

2013-01-22 Thread Howard Page-Clark

On 22/1/13 2:22, xrfang wrote:


I try to make a dynamic library and get this error:

paintrect.pas(0,0) Fatal: Can not find unit Controls used by paintrect.
Check if package LCLBase is in the dependencies.


You need to add LCLBase as a project dependency.
Use the Project Inspector's Add button to show the Add to Project dialog.
Project - Project Inspector,
then in the Project Inspector click the middle tab to open the New 
Requirement page, and in the Package Name combo dropdown choose LCLBase 
from the long list presented.
Then click the [Create New Requirement] button, and you're done - the 
new package requirement will be listed under Required Packages node in 
the Project Inspector.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dynamic library dependency error

2013-01-22 Thread xrfang
Hi Howard,

Thanks for your info.  After adding LCLBase to dependencies, I get these errors:

/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: /home/xrfang/Desktop/paintrect/lib/x86_64-linux/paintrect.o: 
relocation R_X86_64_32S against `_$PAINTRECT$_Ld1' can not be used when making 
a shared object; recompile with -fPIC
/home/xrfang/Desktop/paintrect/lib/x86_64-linux/paintrect.o: 无法读取符号: 错误的值
liboval.lpr(14) Error: Error while linking

where 无法读取符号: 错误的值 means cannot read symbol: illegal value.

What's wrong here?

Thanks,
Shannon


在 二, 1月 22, 2013 at 10:41 下午,Howard Page-Clark h...@talktalk.net 写道:
On 22/1/13 2:22, xrfang wrote: 

 I try to make a dynamic library and get this error: 
 
 paintrect.pas(0,0) Fatal: Can not find unit Controls used by paintrect. 
 Check if package LCLBase is in the dependencies. 

You need to add LCLBase as a project dependency. 
Use the Project Inspector's Add button to show the Add to Project dialog. 
Project - Project Inspector, 
then in the Project Inspector click the middle tab to open the New Requirement 
page, and in the Package Name combo dropdown choose LCLBase from the long list 
presented. 
Then click the [Create New Requirement] button, and you're done - the new 
package requirement will be listed under Required Packages node in the Project 
Inspector.

-- 
___ 
Lazarus mailing list 
Lazarus@lists.lazarus.freepascal.org 
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE

2013-01-22 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 01/22/13 13:48, Michael Van Canneyt wrote:

Why not Kubuntu then ? I've been using it for many years now, no problems.


Not a KDE4 fan. It just doesn't fit my workflow, is sluggish, and basic
things are too hard to accomplish.

Anyway, as a host OS goes, I think I found my ultimate favourite -
FreeBSD.


Definitely something that's on my list of things to try.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TOpenGLControl.DepthBits default value

2013-01-22 Thread Reimar Grabowski
Hi,

the in the topic mentioned property defaults to a value of 16. Is there any 
special reason for it? IMHO the default value should be 24. After all it's 2013 
and not 1998.
It's not really a problem, I just want to know the reason why this value was 
chosen.

R.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TFPHTTPClient: Redirection

2013-01-22 Thread silvioprog
Hello,

TFPHTTPClient supports automatic redirection?

Please see Indy redirection:

http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects

Thank you!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFPHTTPClient: Redirection

2013-01-22 Thread Michael Van Canneyt



On Tue, 22 Jan 2013, silvioprog wrote:


Hello,
TFPHTTPClient supports automatic redirection?

Please see Indy redirection:

http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects


No. But it should not be difficult to add.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFPHTTPClient: Redirection

2013-01-22 Thread silvioprog
2013/1/22 Michael Van Canneyt mich...@freepascal.org

 On Tue, 22 Jan 2013, silvioprog wrote:

 Hello,
 TFPHTTPClient supports automatic redirection?

 Please see Indy redirection:

 http://stackoverflow.com/**questions/4549809/indy-idhttp-**
 how-to-handle-page-redirectshttp://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects


 No. But it should not be difficult to add.

 Michael.


Very good! :)

I open an issue in the bugtracker?

ps. The two codes that implements redirection in Indy:

ConnectToHost - http://pastebin.com/kLJbinDp
ProcessResponse - http://pastebin.com/88frpEaX

It really seems to be easy to implement!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFPHTTPClient: Redirection

2013-01-22 Thread Michael Van Canneyt



On Tue, 22 Jan 2013, silvioprog wrote:


2013/1/22 Michael Van Canneyt mich...@freepascal.org
  On Tue, 22 Jan 2013, silvioprog wrote:
Hello,
TFPHTTPClient supports automatic redirection?

Please see Indy redirection:


http://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects


No. But it should not be difficult to add.

Michael.


Very good! :)

I open an issue in the bugtracker?


And will you append a patch implementing it ? :-)



ps. The two codes that implements redirection in Indy:

ConnectToHost - http://pastebin.com/kLJbinDp


This has nothing to do with redirection ?


ProcessResponse - http://pastebin.com/88frpEaX


This does.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFPHTTPClient: Redirection

2013-01-22 Thread silvioprog
2013/1/22 Michael Van Canneyt mich...@freepascal.org

  On Tue, 22 Jan 2013, silvioprog wrote:

 2013/1/22 Michael Van Canneyt mich...@freepascal.org
   On Tue, 22 Jan 2013, silvioprog wrote:
 Hello,
 TFPHTTPClient supports automatic redirection?

 Please see Indy redirection:

 http://stackoverflow.com/**questions/4549809/indy-idhttp-**
 how-to-handle-page-redirectshttp://stackoverflow.com/questions/4549809/indy-idhttp-how-to-handle-page-redirects


 No. But it should not be difficult to add.

 Michael.


 Very good! :)

 I open an issue in the bugtracker?


 And will you append a patch implementing it ? :-)


Hehehe... I'll try it. I opened the issue (
http://bugs.freepascal.org/view.php?id=23727), but I'll send a patch soon.



 ps. The two codes that implements redirection in Indy:

 ConnectToHost - http://pastebin.com/kLJbinDp


 This has nothing to do with redirection ?


No no... In this method have only a infinity loop (repeat ... until false),
that calls the method with redirection. :)

 ProcessResponse - http://pastebin.com/88frpEaX


 This does.


 Michael.


Tonight I will try implementing it and send a patch. After that, I think
that I'll retire the plugin HttpUtils(
https://github.com/silvioprog/httputils)/Synapse hehehe...

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TFPHTTPClient: HTTPS support.

2013-01-22 Thread silvioprog
Hello,

There are plans to TFPHttpClient implement support to HTTPS? (If yes, I
will be one step closer to abandoning Synapse :) )

I'm trying this:

program project1;

{$mode objfpc}{$H+}

uses
  fphttpclient;

var
  Http: TFPHTTPClient;
begin
  Http := TFPHTTPClient.Create(nil);
  try
  Write(Http.Get('
https://raw.github.com/silvioprog/brookframework/master/CONTRIBUTORS.txt'));
  finally
Http.Free;
  end;
end.

But the result is:

C:\Users\silvioprog\Desktop\fphttpclient_testsproject1.exe
An unhandled exception occurred at $004114F1:
EHTTPClient: Invalid protocol : https
  $004114F1  TFPCUSTOMHTTPCLIENT__DOMETHOD,  line 743 of
C:/lazarus/fpc/2.7.1/so
urce/packages/fcl-web/src/base/fphttpclient.pp
  $004117B8  TFPCUSTOMHTTPCLIENT__GET,  line 776 of
C:/lazarus/fpc/2.7.1/source/
packages/fcl-web/src/base/fphttpclient.pp
  $0041180E  TFPCUSTOMHTTPCLIENT__GET,  line 806 of
C:/lazarus/fpc/2.7.1/source/
packages/fcl-web/src/base/fphttpclient.pp
  $00401675  main,  line 13 of project1.lpr

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] GTK2 threading

2013-01-22 Thread Anton Kavalenka

Dear Lazarus developers!

I'm examining the problem disturbing me for years.

GTK2 applications provide thread-safety using internal mutexes passed 
through gdk_thread_init()

And it works.

Pure X-Applcation does so (orders X-messages per-thread) using 
XInitThreads at early start of application.

And it also works

But GTK Widgetset uses pure Xlib calls for determining keyboard states.
Xlib thread-safety is not initialized in GTK2 widgetset.

IMO the problem half-way to resolve - either not use Xlib calls (pure 
GTK2,3 - it is threadsafe) or make GTK and Xlib interoperable.

Or block GTK calls until Xlib call returned.

with best regards,
Anton
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 threading

2013-01-22 Thread zeljko
On Tuesday 22 of January 2013 18:52:31 Anton Kavalenka wrote:
 Dear Lazarus developers!
 
 I'm examining the problem disturbing me for years.
 
 GTK2 applications provide thread-safety using internal mutexes passed
 through gdk_thread_init()
 And it works.
 
 Pure X-Applcation does so (orders X-messages per-thread) using
 XInitThreads at early start of application.
 And it also works
 
 But GTK Widgetset uses pure Xlib calls for determining keyboard states.
 Xlib thread-safety is not initialized in GTK2 widgetset.
 
 IMO the problem half-way to resolve - either not use Xlib calls (pure
 GTK2,3 - it is threadsafe) or make GTK and Xlib interoperable.
 Or block GTK calls until Xlib call returned.

Feel free to provide patch.

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 threading

2013-01-22 Thread Anton Kavalenka

On 22.01.2013 20:56, zeljko wrote:

On Tuesday 22 of January 2013 18:52:31 Anton Kavalenka wrote:

Dear Lazarus developers!

I'm examining the problem disturbing me for years.

GTK2 applications provide thread-safety using internal mutexes passed
through gdk_thread_init()
And it works.

Pure X-Applcation does so (orders X-messages per-thread) using
XInitThreads at early start of application.
And it also works

But GTK Widgetset uses pure Xlib calls for determining keyboard states.
Xlib thread-safety is not initialized in GTK2 widgetset.

IMO the problem half-way to resolve - either not use Xlib calls (pure
GTK2,3 - it is threadsafe) or make GTK and Xlib interoperable.
Or block GTK calls until Xlib call returned.

Feel free to provide patch.

zeljko
I'd like to, but i'm not a great expert in X - so i've subscribed to the 
list to discuss.


using XinitThreads at start of the program blocks GTK painting.
Forms are shown, but no text output.

So - no way to alter XLib internals. The only way - to initialize GTK 
threading in a way compatibel with X.


regards,
Anton

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 threading

2013-01-22 Thread zeljko
On Tuesday 22 of January 2013 19:04:43 Anton Kavalenka wrote:
 On 22.01.2013 20:56, zeljko wrote:
  On Tuesday 22 of January 2013 18:52:31 Anton Kavalenka wrote:
  Dear Lazarus developers!
  
  I'm examining the problem disturbing me for years.
  
  GTK2 applications provide thread-safety using internal mutexes passed
  through gdk_thread_init()
  And it works.
  
  Pure X-Applcation does so (orders X-messages per-thread) using
  XInitThreads at early start of application.
  And it also works
  
  But GTK Widgetset uses pure Xlib calls for determining keyboard states.
  Xlib thread-safety is not initialized in GTK2 widgetset.
  
  IMO the problem half-way to resolve - either not use Xlib calls (pure
  GTK2,3 - it is threadsafe) or make GTK and Xlib interoperable.
  Or block GTK calls until Xlib call returned.
  
  Feel free to provide patch.
  
  zeljko
 
 I'd like to, but i'm not a great expert in X - so i've subscribed to the
 list to discuss.
 
 using XinitThreads at start of the program blocks GTK painting.
 Forms are shown, but no text output.
 
 So - no way to alter XLib internals. The only way - to initialize GTK
 threading in a way compatibel with X.

So no way to use critical sections while calling xlib directly ?
Can you open an issue and attach example ?

z.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 threading

2013-01-22 Thread Anton Kavalenka

On 22.01.2013 21:11, zeljko wrote:

On Tuesday 22 of January 2013 19:04:43 Anton Kavalenka wrote:

On 22.01.2013 20:56, zeljko wrote:

On Tuesday 22 of January 2013 18:52:31 Anton Kavalenka wrote:

Dear Lazarus developers!

I'm examining the problem disturbing me for years.

GTK2 applications provide thread-safety using internal mutexes passed
through gdk_thread_init()
And it works.

Pure X-Applcation does so (orders X-messages per-thread) using
XInitThreads at early start of application.
And it also works

But GTK Widgetset uses pure Xlib calls for determining keyboard states.
Xlib thread-safety is not initialized in GTK2 widgetset.

IMO the problem half-way to resolve - either not use Xlib calls (pure
GTK2,3 - it is threadsafe) or make GTK and Xlib interoperable.
Or block GTK calls until Xlib call returned.

Feel free to provide patch.

zeljko

I'd like to, but i'm not a great expert in X - so i've subscribed to the
list to discuss.

using XinitThreads at start of the program blocks GTK painting.
Forms are shown, but no text output.

So - no way to alter XLib internals. The only way - to initialize GTK
threading in a way compatibel with X.

So no way to use critical sections while calling xlib directly ?
Can you open an issue and attach example ?

z.


http://www.remlab.net/op/xlib.shtml

They say - there is a way

Xlib provides two groups of functions for multi-thread use:

   /* Thread-safety for global data */
   Status XInitThreads(void);

   /* Thread-safety for an individual display */
   void XLockDisplay(Display *display);
   void XUnlockDisplay(Display *display);

GNOMErs blame Xlib
https://mail.gnome.org/archives/gtk-list/2007-November/msg00122.html

I'll try to provide example.

Actually GUI does not need the multhreading.
But rendering into TBimap invokes Xlib calls as side effects.
So no way to compose off-screen.

regards,
Anton




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFPHTTPClient: HTTPS support.

2013-01-22 Thread Michael Van Canneyt



On Tue, 22 Jan 2013, silvioprog wrote:


Hello,

There are plans to TFPHttpClient implement support to HTTPS? (If yes, I will be 
one step closer to abandoning Synapse :) )


Originally not.

But then I started needing it myself, so: yes there are plans.

But do not expect this the nearest months, unless you implement it yourself.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

2013-01-22 Thread Eric Kom

On 21/01/2013 21:11, Sven Barth wrote:

On 21.01.2013 15:37, Flávio Etrusco wrote:
On Mon, Jan 21, 2013 at 7:00 AM, Sven Barth 
pascaldra...@googlemail.com wrote:

Am 21.01.2013 04:54, schrieb Alexander Klenin:

On Mon, Jan 21, 2013 at 4:43 AM, Sven Barth 
pascaldra...@googlemail.com

wrote:


  case gradeSelected of
   '12'..'12': tuitionFee := '14500.00';



 ^   ^   This should be easy to spot...


No, the error is in the line below.


   '8'..'11' : tuitionFee := '13500.00';


Note that strings are not numbers, so '8'  '11'.
Also, '1'  '11'  '7'  '8', so case branch labels intersect, which
is the reason for the second error.

it works! after I have removed  the single quote and converted 
gradeSelected from string to integer.


Thanks for your contributions.

Right... I forgot that this is a case of string -.-

Regards,
Sven


Should case of string really allow ranges?


THAT is an interesting question.

Regards,
Sven


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




--
Kind Regards

Eric Kom

System Administrator  Programmer - Metropolitan College
 _
/ You are scrupulously honest, frank, and \
| straightforward. Therefore you have few |
\ friends./
 -
   \
\
.--.
   |o_o |
   |:_/ |
  //   \ \
 (| Kom | )
/'\_   _/`\
\___)=(___/

2 Hennie Van Till, White River, 1240
Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334
eric...@kom.za.net | eric...@metropolitancollege.co.za
www.kom.za.net | www.kom.za.org | www.erickom.co.za

Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

2013-01-22 Thread Alexander Klenin
On Tue, Jan 22, 2013 at 7:20 PM, Bart bartjun...@gmail.com wrote:
 You cannot define ranges for Floats (they would be uncoutable infinite)

Huh? Actually, you can. Real number interval is a well-known
mathematical concept (see
http://en.wikipedia.org/wiki/Interval_%28mathematics%29),
so I would actually suggest that they should be added to case operator too.
Also note that, contrarty to true real numbers, floats are a finite set.

--
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] [BUG] TFPHTTPClient: HEAD method

2013-01-22 Thread silvioprog
Hello,

Please see:

http://bugs.freepascal.org/view.php?id=23729

Thank you!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

2013-01-22 Thread Bart
On 1/22/13, Alexander Klenin kle...@gmail.com wrote:

 On Tue, Jan 22, 2013 at 7:20 PM, Bart bartjun...@gmail.com wrote:
 You cannot define ranges for Floats (they would be uncoutable infinite)

 Huh? Actually, you can. Real number interval is a well-known
 mathematical concept (see

I did hope the context made it clear I meant range as in Ordinal.

 Also note that, contrarty to true real numbers, floats are a finite set.

Of course.
Also, Strings (as defined in Pascal currently) are also not infinite,
due to length limitation.

So, my argument was meant as some sort of philosophical perspective.
I really don't care wether fpc implements it or not.

In the manner used by OP I would never use it, since it makes the code
more diffcult to understand (just because of the ranges and the way 
and  act on strings).
IMO Case should be used to make code more understandable.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [BUG] TFPHTTPClient: HEAD method

2013-01-22 Thread silvioprog
Fixed (well, worked fine for me. :D ).

2013/1/22 silvioprog silviop...@gmail.com

 Hello,

 Please see:

 http://bugs.freepascal.org/view.php?id=23729

 Thank you!


-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] using spanish language

2013-01-22 Thread Héctor F . Fiandor Rosario
I´m using the Lazarus version 1.0.4 and I have completed an application using 
units from prior applications inclusive some of then from Delphi5-

I have found that some label.caption are written correctly in spanish, but 
other don´t admit the accents as for example in the word Terminó.

i will appreciate any help 

thanks in advance,

yours truly,

Ing. Héctor F. Fiandor Rosario
hfian...@infomed.sld.cu


--

Este mensaje le ha llegado mediante el servicio de correo electronico 
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
 usar el servicio a tales fines y cumplir con las regulaciones establecidas


Infomed: http://www.sld.cu/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TOpenGLControl.DepthBits default value

2013-01-22 Thread Michalis Kamburelis

Reimar Grabowski wrote:

Hi,

the in the topic mentioned property defaults to a value of 16. Is
there any special reason for it? IMHO the default value should be 24.
After all it's 2013 and not 1998.

It's not really a problem, I just want to know the reason why this
value was chosen.



Before my patch on http://bugs.freepascal.org/view.php?id=22170 the 
depth bits were hardcoded (16 on WinAPI and 1 on GLX). So I set the 
default value for TOpenGLControl.DepthBits at safe 16.


The general idea is that TOpenGLControl has safe default values, that 
are guaranteed to work (and be fast) even on really really ancient 
graphic cards or when the system is running under virtual machine (which 
often means you don't get hardware-accelarated 3D until you explicitly 
install/enable something). For the same reason e.g. 
TOpenGLControl.StencilBits is by default 0, even though all modern GPUs 
can give you at least 8-bit stencil buffer.


Other APIs to get OpenGL context, like GtkGLExt or Glut or low-level 
WinAPI or GLX follow the same convention. The defaults are very 
conservative.


That said, I would be personally fine with changing this default to 24, 
if others think it's a good idea. A developer can always lower it to 16 
when that's enough. So, I don't really have a strong preference about it.


Michalis

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TFPHTTPClient: HTTPS support.

2013-01-22 Thread waldo kitty

On 1/22/2013 12:34, silvioprog wrote:

Hello,

There are plans to TFPHttpClient implement support to HTTPS? (If yes, I will be
one step closer to abandoning Synapse :) )


this is why i went to synapse for one of my projects... that then also required 
work to get it working for my chosen platform (os/2)... that work was done by 
another and submitted back to the synapse team... i hope to get a chance to get 
back to my project soon...


thanks again tomas hajny! :)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] using spanish language

2013-01-22 Thread Sven Barth

Am 23.01.2013 07:16, schrieb Héctor F. Fiandor Rosario:
I´m using the Lazarus version 1.0.4 and I have completed an 
application using units from prior applications inclusive some of then 
from Delphi5-
I have found that some label.caption are written correctly in spanish, 
but other don´t admit the accents as for example in the word Terminó.

i will appreciate any help
thanks in advance,

As was said many times already: do not post to an existing thread as 
this decreases the likelyhood that someone reads your message.


Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dynamic library dependency error

2013-01-22 Thread Antonio Fortuny



Le 22/01/2013 16:14, xrfang a écrit :

Hi Howard,

Thanks for your info. Â After adding LCLBase to dependencies, I get these 
errors:

/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: /home/xrfang/Desktop/paintrect/lib/x86_64-linux/paintrect.o: 
relocation R_X86_64_32S against `_$PAINTRECT$_Ld1' can not be used when making 
a shared object; recompile with -fPIC
/home/xrfang/Desktop/paintrect/lib/x86_64-linux/paintrect.o: æ— 
法读�符�: 错误的值
liboval.lpr(14) Error: Error while linking

where æ— æ³•è¯»å�–符å�·: 错误的值 means cannot read symbol: illegal 
value.

What's wrong here?


Try adding
-fPIC
-dFPC_PIC
into program's options, Other section
Tha's what I use when building shared libraries.

Antonio.




--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Dynamic library dependency error

2013-01-22 Thread Xiangrong Fang
Thanks,  I added -fPIC and it worked, it seems no need to add -dFPC_PIC?

Also I found a small problem.   While create a new shared library and
compile fpc always complain that -WR is invalid.   I have to uncheck
Relocatable option to fix this.

I think this is a bug in lazarus project template, what do you think?

2013/1/23 Antonio Fortuny a.fort...@sitasoftware.lu



 Le 22/01/2013 16:14, xrfang a écrit :

 Hi Howard,

 Thanks for your info. Â After adding LCLBase to dependencies, I get these
 errors:


 /usr/bin/ld: warning: link.res contains output sections; did you forget
 -T?
 /usr/bin/ld: /home/xrfang/Desktop/**paintrect/lib/x86_64-linux/**paintrect.o:
 relocation R_X86_64_32S against `_$PAINTRECT$_Ld1' can not be used when
 making a shared object; recompile with -fPIC
 /home/xrfang/Desktop/**paintrect/lib/x86_64-linux/**paintrect.o: æ—
 æ³•è¯»å –ç¬¦å ·: 错误的值

 liboval.lpr(14) Error: Error while linking

 where æ— æ³•è¯»å –ç¬¦å ·: 错误的值 means cannot read symbol:
 illegal value.

 What's wrong here?

  Try adding
 -fPIC
 -dFPC_PIC
 into program's options, Other section
 Tha's what I use when building shared libraries.

 Antonio.





 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus