Recent

Author Topic: Chasing memory leaks: strange thing  (Read 796 times)

andresayang

  • Full Member
  • ***
  • Posts: 108
Chasing memory leaks: strange thing
« on: July 01, 2022, 08:39:17 am »
Hello,

When debugging, It seems that I have some leaks ...
(Under linux)
- When running from terminal I have memory leaks
- When running from IDE, with "console output" I do not have leaks.

I do not understand ...

Cheers 
Linux, Debian 12
Lazarus: always latest release

Zvoni

  • Hero Member
  • *****
  • Posts: 2314
Re: Chasing memory leaks: strange thing
« Reply #1 on: July 01, 2022, 11:59:00 am »
I do not understand ...
Cheers
Me neither, since i don't see your screen with the Code
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

andresayang

  • Full Member
  • ***
  • Posts: 108
Re: Chasing memory leaks: strange thing
« Reply #2 on: July 01, 2022, 09:48:52 pm »
Well,

Sorry for my first message, to tired this morning to see it after a "night on shift" at work:
My trouble has nothing to do with memory leaks (event if the message shows it).

All is coming from shell which is interpreting "wildcard" in my parameter string, having the effect of launching my app with hundreds of files in input instead of the wildcard itself, using Apostrophe or quotation marks in my parameter string solve my trouble.

Code: Bash  [Select][+][-]
  1. set -o noglob && ./myapp  -i ./test/*.txt -s -o ./tested.csv && set +o noglob
also works ...

Cheers
« Last Edit: July 01, 2022, 09:50:54 pm by andresayang »
Linux, Debian 12
Lazarus: always latest release

 

TinyPortal © 2005-2018