Forum > Suggestions

[Problem solved] Wish: stop the race after Delphi

<< < (13/13)

Fred vS:

--- Quote from: funlw65 on February 28, 2021, 02:20:38 am ---Fred, is that parameter included by default? Because it showed me no warnings. If is not default, then that is true also for Lazarus.

--- End quote ---

Hello.

Not sure to understand.

Using Lazarus, you need to enable gl + gh in project option: see picture.

For mseide (or ideU) you set it in project options too: see picture.

When you close your application, there should have some info about the memory leak: see picture of the mseide-console:
It should be the same with Lazarus.

Fre;D


Fred vS:
Re-hello.


--- Quote from: funlw65 on February 28, 2021, 02:20:38 am ---Fred, is that parameter included by default? Because it showed me no warnings. If is not default, then that is true also for Lazarus.

--- End quote ---

No, -ghl is not set as default (imho).
But (imho too) it seems to me that this is a good practice to always use the -ghl parameter for each project.

This to directly see, after each change, if no memory leak was added.
And when your project is ready for release, remove that -ghl parameter to have a clean binary without any debug code added.

Fre;D

FTurtle:

--- Quote from: funlw65 on February 28, 2021, 02:20:38 am ---
--- Quote from: FTurtle on February 27, 2021, 05:29:05 pm ---
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---      result := (FindFirst('*',faDirectory, _fsearch) = 0);

--- End quote ---

Thank you @FTurtle, is that binary evaluation true also for Basic (Gambas3) and Python?

--- End quote ---

If some language has boolean type then such approach is applicable.

Navigation

[0] Message Index

[*] Previous page

Go to full version