Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 6:26 PM, Marcos Douglas B. Santos wrote: > On Sun, May 6, 2018 at 6:05 PM, leledumbo via fpc-pascal > wrote: >>> Create a call that calls Application.Terminate. >> >> I just call DumpHeap(false); instead > > Where is this

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 6:05 PM, leledumbo via fpc-pascal wrote: >> Create a call that calls Application.Terminate. > > I just call DumpHeap(false); instead Where is this function or method? Could you give so more information how is this works with heaptrc? About

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Am 05.05.2018 um 19:53 schrieb Tomas Hajny: On Sat, May 5, 2018 19:23, Sven Barth via fpc-pascal wrote: Hi Sven, . . (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar -F parameters -FN only takes a single value, but can be specified multiple times. . . I'm not

Re: [fpc-pascal] detecting recursive loops

2018-05-06 Thread leledumbo via fpc-pascal
> Any ideas how to identify potential unintentional loops? That depends on your design. Is it intended that the 3 procedures can call each other, directly or indirectly? If no, then things are a lot easier. You can just put on the currently entered procedure name to a map shared by the 3 (or just

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread leledumbo via fpc-pascal
> Create a call that calls Application.Terminate. I just call DumpHeap(false); instead -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fpWeb: How can I use heaptrc in standalone mode?

2018-05-06 Thread Marcos Douglas B. Santos
On Sat, May 5, 2018 at 11:51 AM, Michael Van Canneyt wrote: > > > On Sat, 5 May 2018, Marcos Douglas B. Santos wrote: > >> I'm using fpWeb in standalone mode (fphttpapp unit) to develop and debug. >> I would like to see the heaptrc log in the end, as we can do in normal >>

Re: [fpc-pascal] Cross compiling: Win 32 to 64

2018-05-06 Thread Marcos Douglas B. Santos
Sorry guys, I've just forgot to setup in Lazarus, Config and Target this: -Twin64 _AND_ -Px86_64 parameters. In the first time, I just set -Twin32 but -P stayed "(default)":| ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Cross compiling: Win 32 to 64

2018-05-06 Thread Marcos Douglas B. Santos
I have a script for a long time that I use to compile FPC from sources. Today I'm configuring a new machine and I would like to use this script to configure FPC and Lazarus — I have another script for Lazarus as well. I've compiled FPC with no errors using this script. I use `crossinstall` too.

Re: [fpc-pascal] Feature announcement: default namespacesy

2018-05-06 Thread Marco van de Voort
In our previous episode, Marcos Douglas B. Santos said: > wrote: > > [...] > > > > In FPC we currently don't use dotted unit names much, but maybe that will > > change in the future. > > Would be good if all units could be prefixed to make a pattern, like >

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 10:45 AM, Vojtěch Čihák wrote: > i, > > LCLIntf, LCLProc, LCLType isn't enough? I will use dotted units only if > there will be absolutely no other way around. There are many others without LCL prefix... > I believe it can be useful but I don't

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Vojtěch Čihák
i,   LCLIntf, LCLProc, LCLType isn't enough? I will use dotted units only if there will be absolutely no other way around. I believe it can be useful but I don't think it's "must have" (when I don't consider Delphi compat.).    V. __

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marcos Douglas B. Santos
On Sun, May 6, 2018 at 4:40 AM, Sven Barth via fpc-pascal wrote: > [...] > > In FPC we currently don't use dotted unit names much, but maybe that will > change in the future. Would be good if all units could be prefixed to make a pattern, like `fpc.web, fpc.xml,

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marco van de Voort
In our previous episode, Sven Barth via fpc-pascal said: > > In FPC we currently don't use dotted unit names much, but maybe that will > change in the future. Afaik FV and LCL have conflicts. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] detecting recursive loops

2018-05-06 Thread Mark Morgan Lloyd
On 05/05/18 21:15, James Richters wrote: I'm having an issue with one of my programs that I suspect is being caused by a recursive loop... in simplified form... something like this: Procedure Proc1;Begin Proc2;End;Procedure Proc2;Begin Proc1;End; I ended up getting a runtime error and the

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > He meant: > If you use units with namespaces and you can't use the -FN option, then > it becomes cumbersome to write them. Then a unit directive would be > nice to have. Yes, but both the directive and the uses would be a modification anyway. I

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Ryan Joseph
> On May 6, 2018, at 2:40 PM, Sven Barth via fpc-pascal > wrote: > > The namespaces in Object Pascal are merely a convenience thing. E.g. Delphi > prefixed many of the existing units (like SysUtils became System.SysUtils, > Windows became WinApi.Windows and

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Tomas Hajny schrieb am Sa., 5. Mai 2018, 19:52: > On Sat, May 5, 2018 19:23, Sven Barth via fpc-pascal wrote: > > > Hi Sven, > > . > . > > (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar > > -F parameters -FN only takes a single value, but can be

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am So., 6. Mai 2018, 09:16: > > > > On May 6, 2018, at 1:46 PM, Mattias Gaertner > wrote: > > > > He meant: > > If you use units with namespaces and you can't use the -FN option, then > > it becomes cumbersome to write

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Sven Barth via fpc-pascal
Ben Grasset schrieb am So., 6. Mai 2018, 03:16: > Cool I guess. Kind of seems not very important at all though. FPC lacks > compatibility with current Delphi in various other far more significant > areas... > It was something that was relatively easy to implement and what

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Ryan Joseph
> On May 6, 2018, at 1:46 PM, Mattias Gaertner > wrote: > > He meant: > If you use units with namespaces and you can't use the -FN option, then > it becomes cumbersome to write them. Then a unit directive would be > nice to have. But does FPC have actual namespaces

Re: [fpc-pascal] Feature announcement: default namespaces

2018-05-06 Thread Mattias Gaertner
On Sun, 6 May 2018 09:11:23 +0700 Ryan Joseph wrote: > > On May 6, 2018, at 12:23 AM, Sven Barth via fpc-pascal > > wrote: > > > > For some users it might be cumbersome however to write the complete names > > (even though their IDE