Recent

Author Topic: TStringList in Windows10 vs Windows7 work  (Read 9627 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 11623
Re: TStringList in Windows10 vs Windows7 work
« Reply #15 on: January 14, 2022, 01:20:14 pm »
Thaddy:
I am 64 Years old.
Me too, but my daughters are 28 and 13... :) I was a bit slow.. 8-)
Black themes should be banned.

Thaddy

  • Hero Member
  • *****
  • Posts: 11623
Re: TStringList in Windows10 vs Windows7 work
« Reply #16 on: January 14, 2022, 01:24:23 pm »
One day, we may be able to see a stringlist's content in the watches window, now, that might be cool but could also be messy  ;-)
Never needed that, but that should be already possible. maybe that GDB needs a workaround for that. Delphi can do it for sure.
Black themes should be banned.

dbannon

  • Hero Member
  • *****
  • Posts: 2037
    • tomboy-ng, a rewrite of the classic Tomboy
Re: TStringList in Windows10 vs Windows7 work
« Reply #17 on: January 14, 2022, 01:44:14 pm »
One day, we may be able to see a stringlist's content in the watches window, now, that might be cool but could also be messy  ;-)
Never needed that, but that should be already possible. maybe that GDB needs a workaround for that. Delphi can do it for sure.

It would not be very useful IMHO, if you are using a TStringList, you probably have a list of data, would be hard to present in a the Watches Window. Hmm, unless you could open a new window with one of masy's listboxes ??  ;D  ;D
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

masy

  • New member
  • *
  • Posts: 7
Re: TStringList in Windows10 vs Windows7 work
« Reply #18 on: January 14, 2022, 01:48:53 pm »
Thanks...

I put away the Linux versions.
Within Windows 2 lines of source-code is efficiënt to block a second and more startup:

Go with me in TApplication:
var
hMutex       : THandle;    //run once

  // RUN ONCE
  // ========
  hMutex:=CreateMutex(nil,True,'//programma naam');
  if GetLastError=ERROR_ALREADY_EXISTS then Halt(255);
  // START PROGRAMMA
  // =============


 // Next/eigen code//


masy

  • New member
  • *
  • Posts: 7
Re: TStringList in Windows10 vs Windows7 work
« Reply #19 on: January 15, 2022, 04:47:44 am »
This is old (Delphi) school.

No trickx, try it out. It works fine.
Just 2 lines of code and a Variable..

Within Linux You have to load 2 units into You're programm.
Separated and several calls to it to get the same result.
(Tested on Ubuntu/Mint...)  //RUN ONCE UNTHER LINUX
                                           ------------------------------

I Could have posted these units. But I have no authorisations to add these files...
Thats why I keep Windows(11) and Linux separated...
What is working within Windows is also tested on Linux/Mint...

Or shell I?

I like to share my programming issues...
Stand open in it and don't send me RED devils....
I hate that. It's so easy to send them back.
You're/We building a fake issue

Programming in Lazarus is oure first goal/issue...
Let me in...

Greetings Marcel/Masy

Love Lazarus...




masy

  • New member
  • *
  • Posts: 7
Re: TStringList in Windows10 vs Windows7 work
« Reply #20 on: January 15, 2022, 08:53:01 am »
Lazarus and TStringlist(s)  are PHP related.
Weekly hunderd/thousands try to attack my website see:

Just a screenshot of the attacks on my website...

I defend  myself with Lazarus/PHP/Apache/

Throwing the visitors in a TStringlist.
If  You see the Chinese visitors  they don't leave a cart or Browser/Operating System (OS)
filled in. So blanked items...

And if You don't control You're stringlist: Here it goes wrong.
There are unknown issues in it!!!!
Lazarus crashes completely if You try to read a unknown value...

Work around that!!!

Love You/Lazarus







 

TinyPortal © 2005-2018