Re: [Lazarus] HEAPTRACE IFDEF
Thanks for the explanation Michael but I didnt have an idea about this ability. Regards, Ara -- http://www.fastmail.com - Or how I learned to stop worrying and love email again -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
On Tue, 3 May 2016, Aradeonas wrote: We do have documentation, you know. Is it so much to ask to look at it ? http://www.freepascal.org/docs-html/current/prog/progsu128.html No it is not but it is not came to my searches and FPC documentation is not much good for searching at least from google and if I know what I want I couldn't guess there is such like this ability and one way I will be left to know about this is that is reading doc for fun everyday like a book and keep reading it's changelog! I don't know what you typed in Google, but it definitely shows it: Google search: "conditional compilation free pascal" Entry 4. But entries 1-3 also will lead you the answer. And the documentation changes only once per release. No-one asks you to read it daily. UseHeapTrace is a variable in unit heaptrc, which is silently used when compiling with -gh. Thanks for the explanation. $IF DECLARED is not supported by codetools. Should I report it as a bug or it already reported? IMHO it is useless to report it for this case. As I tried to explain: it cannot be done *correct* by the codetools. It depends, for example, on actual compiler options. So, in case of lazarus, it depends on build modes. It can also depend on @someconfig.cfg compiler options files. etc. At best, the codetools can make a guess. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
Am 03.05.2016 15:49 schrieb "Aradeonas": >> >> AFAIK, it's because it's not technically possible. > > As an amateur can I ask why? Because -gh does not trigger the recompilation of used units as internally it basically only adds another unit to the main program's uses clause. Thus any define for the presence of the heaptrace unit would only work in the main program file and there you use the variant with declared() anyway... Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
> We do have documentation, you know. Is it so much to ask to > look at it ? > http://www.freepascal.org/docs-html/current/prog/progsu128.html No it is not but it is not came to my searches and FPC documentation is not much good for searching at least from google and if I know what I want I couldn't guess there is such like this ability and one way I will be left to know about this is that is reading doc for fun everyday like a book and keep reading it's changelog! > UseHeapTrace is a variable in unit heaptrc, which is silently used > when compiling with -gh. Thanks for the explanation. > $IF DECLARED is not supported by codetools. Should I report it as a bug or it already reported? Regards, Ara -- http://www.fastmail.com - Access all of your messages and folders wherever you are -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
On Tue, 3 May 2016, Aradeonas wrote: AFAIK, it's because it's not technically possible. As an amateur can I ask why? Use {$IF DECLARED(useheaptrace)} in your main project file (just like lazarus.pp uses it). Very interesting! I didnt know this ability,Thanks. How it works? what key names it has? We do have documentation, you know. Is it so much to ask to look at it ? http://www.freepascal.org/docs-html/current/prog/progsu128.html But it has a problem, if you use this define IDE wont color it properly like you use normal defines, it that case it if define is not true it will pale. The IDE cannot do this, since it is known only when the compiler is invoked. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
On Tue, 03 May 2016 06:49:42 -0700 Aradeonaswrote: > > AFAIK, it's because it's not technically possible. > As an amateur can I ask why? > > Use {$IF DECLARED(useheaptrace)} in your main project file (just like > > lazarus.pp uses it). > Very interesting! I didnt know this ability,Thanks. How it works? what > key names it has? UseHeapTrace is a variable in unit heaptrc, which is silently used when compiling with -gh. > But it has a problem, if you use this define IDE wont color it properly > like you use normal defines, it that case it if define is not true it > will pale. $IF DECLARED is not supported by codetools. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
> AFAIK, it's because it's not technically possible. As an amateur can I ask why? > Use {$IF DECLARED(useheaptrace)} in your main project file (just like > lazarus.pp uses it). Very interesting! I didnt know this ability,Thanks. How it works? what key names it has? But it has a problem, if you use this define IDE wont color it properly like you use normal defines, it that case it if define is not true it will pale. Regards, Ara -- http://www.fastmail.com - Does exactly what it says on the tin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
My bad, I missed this http://bugs.freepascal.org/view.php?id=24681 But as it marked as "no change required" but I cant understand why we cant benefit from something like this that have an internal option in project option but we cant control to save the output without defining an internal define for project?! I think using heaptrc unit without this option is not useful enough because showing a program hep output in a message box is not even readable! Regards, Ara -- http://www.fastmail.com - Access all of your messages and folders wherever you are -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] HEAPTRACE IFDEF
On 03.05.2016 15:26, Aradeonas wrote: My bad, I missed this http://bugs.freepascal.org/view.php?id=24681 But as it marked as "no change required" but I cant understand why we cant benefit from something like this that have an internal option in project option but we cant control to save the output without defining an internal define for project?! AFAIK, it's because it's not technically possible. Use {$IF DECLARED(useheaptrace)} in your main project file (just like lazarus.pp uses it). Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Cannot compile trunk from rev. 52266
Hi list. With the rev. 52266 it is no longer possible to compile trunk due to the following error: /home/torsten/FreePascal/lazarus/packager/openinstalledpkgdlg.pas(204,30) Error: (4025) Incompatible type for arg no. 1: Got "TStringArray", expected "TListViewDataItem" /home/torsten/FreePascal/lazarus/ide/listviewfilteredit.pas(132,14) Hint: (5039) Found declaration: Add(const TListViewDataItem):LongInt; openinstalledpkgdlg.pas(233) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Makefile:4004: recipe for target 'lazarus' failed From the looks of it, the code in "openinstalledpkgdlg.pas" was not updated to support the changes made in "listviewfilteredit.pas". Regards, TorstenBonde Christiansen. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus