Recent

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

Thaddy

  • Hero Member
  • *****
  • Posts: 16363
  • 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.
There is nothing wrong with being blunt. At a minimum it is also honest.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8101
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.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
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: 3787
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.
I do not have to remember anything anymore thanks to total-recall.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8101
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.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
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: 16363
  • 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 »
There is nothing wrong with being blunt. At a minimum it is also honest.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8101
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.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
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: 16363
  • 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...
There is nothing wrong with being blunt. At a minimum it is also honest.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8101
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.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
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: 16363
  • 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 »
There is nothing wrong with being blunt. At a minimum it is also honest.

 

TinyPortal © 2005-2018