Recent

Author Topic: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile  (Read 2212 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 15210
  • Censorship about opinions does not belong here.
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #15 on: June 13, 2024, 12:50:17 pm »
The code is (from memory) in koladd.pas. Needs little change.
Of course the national anthem of the U.S.A. was written by Jimi Hendrix, didn't you know that?

MarkMLl

  • Hero Member
  • *****
  • Posts: 7120
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #16 on: June 13, 2024, 01:06:17 pm »
The code is (from memory) in koladd.pas. Needs little change.

From what project or repository... this one https://github.com/rofl0r/KOL ?

OK, so in the larger picture what does that stuff do?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

TRon

  • Hero Member
  • *****
  • Posts: 2921
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #17 on: June 13, 2024, 01:16:52 pm »
OK, so in the larger picture what does that stuff do?
See also first readme

In very few words: KOL allows you to create the smallest most efficient applications possible without too much sacrificing convenience.

It is truly an amazing piece of work.

MarkMLl

  • Hero Member
  • *****
  • Posts: 7120
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #18 on: June 13, 2024, 01:39:40 pm »
I take it that's a "yes" :-)

In very few words: KOL allows you to create the smallest most efficient applications possible without too much sacrificing convenience.

It is truly an amazing piece of work.

So in short, it's an application-level object framework, but not a replacement for the LCL etc.

I also found this earlier which might be of interest if anybody's looking at this sort of thing from a database POV:

https://forum.lazarus.freepascal.org/index.php/topic,48796.msg359076.html#msg359076

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 15210
  • Censorship about opinions does not belong here.
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #19 on: June 13, 2024, 02:45:09 pm »
this one https://github.com/rofl0r/KOL ?
@Mark,
It is a replacement. Mixing with vcl/lcl code defeats its purpose.
For now, yes, that is a good place to start.

KOL is simply is a replacement for the VCL/LCL that creates much smaller executables.
It is a framework on its own: do not mix with VCL/LCL code.
It is originally written in the early 2000's by my good friend Vladimir Kladov with many additions by other authors, including me. (also maintainer)
It is also, for all intend and purpose, win32/64 only although some linux efforts have been made in the past: only usable for console/terminal applications, Kylix based.
It also has a learning curve if you are not familiar with old school objects instead of classes.
But the result is that your executables become about 75-90% smaller.
A full simple GUI app in FPC is around 50K...
(I am one of three that actually can maintain it: it is good for parser testing...)
« Last Edit: June 13, 2024, 02:57:53 pm by Thaddy »
Of course the national anthem of the U.S.A. was written by Jimi Hendrix, didn't you know that?

MarkMLl

  • Hero Member
  • *****
  • Posts: 7120
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #20 on: June 13, 2024, 03:29:52 pm »
Got it, and kudos for the work you and others have expended.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 15210
  • Censorship about opinions does not belong here.
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #21 on: June 13, 2024, 06:04:31 pm »
I forgot CE...
Of course the national anthem of the U.S.A. was written by Jimi Hendrix, didn't you know that?

MarkMLl

  • Hero Member
  • *****
  • Posts: 7120
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #22 on: June 13, 2024, 07:34:54 pm »
Doesn't everybody...

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 15210
  • Censorship about opinions does not belong here.
Re: Heap overflow error in GetControlText after TMemo.Lines.LoadFromFile
« Reply #23 on: June 13, 2024, 07:45:28 pm »
Well, actually, me and Marcov did a presentation about using FPC on CE, long time ago.
2006 like?
« Last Edit: June 13, 2024, 07:47:53 pm by Thaddy »
Of course the national anthem of the U.S.A. was written by Jimi Hendrix, didn't you know that?

 

TinyPortal © 2005-2018