[fpc-pascal]Memory Model - was: using crypt() in freepascal

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Sep 13 12:03:11 CEST 2002

On Fri, 13 Sep 2002, Martyn Ranyard wrote:

> At 11:51 PM 9/12/02 -0700, you wrote:
> >Try adding the cmem unit to your uses clause.
> >It will make you program use the external c-style
> >memory manager instead of the native pascal model.
> FANTASTIC!  This made my test program work. :-) :-) :-)
> >Sometimes this will help...
> >
> >uses cmem;
> Okay, Now I understood what you said, and I understood what it did, but how
> will it affect the rest of the big program I have to implement this
> procedure into.
> Does it mean more pchar problems or does it only affect externals?

It only 'affects' externals. It just means you use the C memory manager to
allocate memory on the heap. This has no effect on the workings of your
pascal program other maybe than some slight slowdown...


More information about the fpc-pascal mailing list