Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread Ralf Quint
On 10/17/2016 7:47 PM, fredvs wrote: @fpc-team: Why not register the concept of "smart-linking", nobody knows that word in other language. IMO, it would be good to add in wikipedia a article about "smartlink" and not forget to say that the concept of "smart-linking" comes from fpc. Well, it

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread wkitty42
On 10/17/2016 10:47 PM, fredvs wrote: @fpc-team: Why not register the concept of "smart-linking", nobody knows that word in other language. IMO, it would be good to add in wikipedia a article about "smartlink" and not forget to say that the concept of "smart-linking" comes from fpc. it does

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread fredvs
Oops, I did not see this... > Is only Smart-Linking causing the problem? Yes I agree it is only a detail, all the rest is working perfectly. And I will survive, even with smart-link 32 bit not working in one of my system. ;-) Thanks a lot for helping. @fpc-team: Why not register the

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread fredvs
> Just curious. If you don't compile with Smart-Linking enabled, does your binary then run fine? Yes, without Smart-linking, a 32 bit fpc application runs fine in a multi-arch 64 bit system. With Smart-linking a 32 bit application runs fine only in a mono-arch 32 bit. Fred. - Many

Re: [fpc-pascal] 3.1.1 documentation in html on the website?

2016-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2016, David Emerson wrote: Michael Van Canneyt wrote: David Emerson wrote: Can the 3.1.1 documentation be viewed as html on the website? where? No. The 3.0.0 version is easy to find... but I'd like to see the one under development It is not under development. I only

Re: [fpc-pascal] 3.1.1 documentation in html on the website?

2016-10-17 Thread David Emerson
Michael Van Canneyt wrote: David Emerson wrote: Can the 3.1.1 documentation be viewed as html on the website? where? No. The 3.0.0 version is easy to find... but I'd like to see the one under development It is not under development. I only document released material. I guess I should

Re: [fpc-pascal] 3.1.1 documentation in html on the website?

2016-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2016, David Emerson wrote: Can the 3.1.1 documentation be viewed as html on the website? where? No. The 3.0.0 version is easy to find... but I'd like to see the one under development It is not under development. I only document released material. Michael.

[fpc-pascal] 3.1.1 documentation in html on the website?

2016-10-17 Thread David Emerson
Can the 3.1.1 documentation be viewed as html on the website? where? The 3.0.0 version is easy to find... but I'd like to see the one under development Thanks! David. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Piping: high level tool? Strong types sent via pipe

2016-10-17 Thread Lars
I was thinking: pipes are useful to communicate between processes. How about a high level communication system instead of just sending low level strings over the pipe? For example strong typing. If you want to send an integer over a pipe, you generally have to parse the string and ensure it is a

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread Sven Barth
Am 17.10.2016 17:11 schrieb "Martin Schreiber" : > > On Monday 17 October 2016 15:30:36 Graeme Geldenhuys wrote: > > On 2016-10-17 13:55, fredvs wrote: > > > So it seems that garbage collection must be enabled to do a smartlink. > > > > I'm not sure I follow you. From what I

Re: [fpc-pascal] How to know the encoding of a string?

2016-10-17 Thread Bart
On 10/17/16, Marcos Douglas B. Santos wrote: > Is there a way to know what encoding was used at a string? > > My system are receiving some files and I don't know the encoding. > I would like to know and then, convert it. As explained there is no certain way. Lazarus comes with

Re: [fpc-pascal] server down?

2016-10-17 Thread Bart
On 10/17/16, Mattias Gaertner wrote: > When clicking on the "Free Pascal Community" link it times out: > http://community.freepascal.org:1/ Posted to lazarus-dev ML and when I got no reply reported on Mantis in january 2016.

Re: [fpc-pascal] Generic way to pre-maturely exit TCustomApplication without memory leaks

2016-10-17 Thread Bart
On 10/17/16, grouchysmurf wrote: >> Why a hack? >> System.ExitCode is meant for returning exitcodes. > > Being forced to forfeit one or two layers of abstraction in an object > oriented environment does sound like a hack to me. A direct access to >

Re: [fpc-pascal] server down?

2016-10-17 Thread Torsten Bonde Christiansen
On 2016-10-17 17:28, Mattias Gaertner wrote: Hi, On the bug tracker login page http://mantis.freepascal.org/login_page.php?return=%2Fmy_view_page.php%3F I see this text: Do you already have a login at Free Pascal Community? You can use that login here (use your e-mail address as username).

[fpc-pascal] server down?

2016-10-17 Thread Mattias Gaertner
Hi, On the bug tracker login page http://mantis.freepascal.org/login_page.php?return=%2Fmy_view_page.php%3F I see this text: Do you already have a login at Free Pascal Community? You can use that login here (use your e-mail address as username). When clicking on the "Free Pascal Community"

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread Martin Schreiber
On Monday 17 October 2016 15:30:36 Graeme Geldenhuys wrote: > On 2016-10-17 13:55, fredvs wrote: > > So it seems that garbage collection must be enabled to do a smartlink. > > I'm not sure I follow you. From what I understand from the FPC > documentation, is that FPC (when smartlinking is enabled)

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread Graeme Geldenhuys
On 2016-09-21 18:07, fredvs wrote: > In a multi-arch system (64 bit system that can run 32 bit apps too) FreeBSD > 64, there is problem if a fpc 32 bit application was compiled with smart > link (-XX). Just curious. If you don't compile with Smart-Linking enabled, does your binary then run fine?

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread fredvs
Yeh, the cavalry finally arrives, I am saved. ;-) > it is then the linkers job to link only the object files that are needed > (and really used in the application) to make the executable. Yes, yes, yes and re-yes. > I guess showing them the content of the ppas.sh file is all that they > should

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread Graeme Geldenhuys
On 2016-10-17 13:55, fredvs wrote: > So it seems that garbage collection must be enabled to do a smartlink. I'm not sure I follow you. From what I understand from the FPC documentation, is that FPC (when smartlinking is enabled) generates multiple object files per unit, trying to make a object

Re: [fpc-pascal] How to know the encoding of a string?

2016-10-17 Thread Graeme Geldenhuys
On 2016-10-17 14:14, Marcos Douglas B. Santos wrote: > My system are receiving some files and I don't know the encoding. > I would like to know and then, convert it. No such function [with exact results] exists anywhere (no matter the programming language). The best programs can do is to

Re: [fpc-pascal] How to know the encoding of a string?

2016-10-17 Thread Jonas Maebe
Marcos Douglas B. Santos wrote: > Is there a way to know what encoding was used at a string? > > My system are receiving some files and I don't know the encoding. > I would like to know and then, convert it. There are some heuristics you could try to apply (see e.g. http://chsdet.sourceforge.net

[fpc-pascal] How to know the encoding of a string?

2016-10-17 Thread Marcos Douglas B. Santos
Hi, Is there a way to know what encoding was used at a string? My system are receiving some files and I don't know the encoding. I would like to know and then, convert it. Best regards, Marcos Douglas ___ fpc-pascal maillist -

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread fredvs
Thanks Michael. > No, simply probably no-one knows the answer or the few knowledgable people > didn't see your message. OK I agree the problem is complicated it is the reason why I ask this to fpc + freebsd forum. But here I ask something simple : What option is added to linker when -XX

Re: [fpc-pascal] Error: Identifier not found "Heap Error"

2016-10-17 Thread Jonas Maebe
Luiz Gonzaga de Oliveira Neto wrote: > Would be it be better to try to compile this with the Turbo Pascal > compiler then? Or do you think it would be easier to try to remove the > lines with these codes and continue with FPC? My fear is that in some of > these modifications I change what the code

Re: [fpc-pascal] Error: Identifier not found "Heap Error"

2016-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2016, Luiz Gonzaga de Oliveira Neto wrote: Hi all, Thanks for the help. Would be it be better to try to compile this with the Turbo Pascal compiler then? Or do you think it would be easier to try to remove the lines with these codes and continue with FPC? My fear is that in

Re: [fpc-pascal] Error: Identifier not found "Heap Error"

2016-10-17 Thread Luiz Gonzaga de Oliveira Neto
Hi all, Thanks for the help. Would be it be better to try to compile this with the Turbo Pascal compiler then? Or do you think it would be easier to try to remove the lines with these codes and continue with FPC? My fear is that in some of these modifications I change what the code was supposed

Re: [fpc-pascal] Compiler option -gt (Trash local variables)

2016-10-17 Thread Graeme Geldenhuys
On 2016-10-17 10:23, Marco van de Voort wrote: > I've used it in debugging/hardening fpdoc a few years ago, and had good > experiences. I also benefited a lot from -CR Thank you both Marco and Jonas. I only discovered the setting over the weekend, and it does seem like a useful option to use

Re: [fpc-pascal] Compiler option -gt (Trash local variables)

2016-10-17 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > How well does the -gt compiler option work? Is it worth enabling during > debugging? I've used it in debugging/hardening fpdoc a few years ago, and had good experiences. I also benefited a lot from -CR

Re: [fpc-pascal] Compiler option -gt (Trash local variables)

2016-10-17 Thread Jonas Maebe
Graeme Geldenhuys wrote on Mon, 17 Oct 2016: How well does the -gt compiler option work? I don't think there are any known bugs with it in either 3.0 or trunk. 3.0 does not trash ansi/unicodestring function results though, while trunk does. Is it worth enabling during debugging? I

[fpc-pascal] Compiler option -gt (Trash local variables)

2016-10-17 Thread Graeme Geldenhuys
Hi, How well does the -gt compiler option work? Is it worth enabling during debugging? Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generic way to pre-maturely exit TCustomApplication without memory leaks

2016-10-17 Thread grouchysmurf
Hi. >> I ended up doing exactly that though it feels like an ugly thoug[h] >> incomplete hack. Thanks for the tip. > Why a hack? > System.ExitCode is meant for returning exitcodes. Being forced to forfeit one or two layers of abstraction in an object oriented environment does sound like a hack