Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-09

Re: using crypt() in freepascal (Martyn Ranyard)

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Yet Another Geek
Inconsistency detected by ld.so: dl-minimal.c: 114:

realloc: Assertion

`ptr == alloc_last_block' failed!

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.

Sometimes this will help...

uses cmem;

__________________________________________________ Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

Martyn Ranyard
to Yet Another Geek
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?

Thanks again for solving this particular mystery for me, and here's hoping someone will enlighten me further.

-
Martyn Ranyard
Free Software Advocate

jabber -
icq - 122500800
irc - Joran on oftc
msn -
e -

Michael Van Canneyt
to Martyn Ranyard
Martyn Ranyard wrote 15 lines
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...

Michael.

Martyn Ranyard
to Michael Van Canneyt
Michael Van Canneyt wrote 5 lines
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... Michael.

Thanks! Woo Hoo! I have authentication within my program! (once I get round to sorting it out).

-
Martyn Ranyard
Free Software Advocate

jabber -
icq - 122500800
irc - Joran on oftc
msn -
e -