I found another little problem in strings.pas while testing the example program from <SIMEON.9710101739.A@@muahost.cc.keele.ac.uk>:
Since StrNew uses C's strdup() which in turn uses malloc(), you can't use Freemem in StrDispose. Using free() instead works. (There may be other places where such a change is necessary.)
Frank
Frank Heckenbach wrote:
I found another little problem in strings.pas while testing the example program from <SIMEON.9710101739.A@@muahost.cc.keele.ac.uk>:
Since StrNew uses C's strdup() which in turn uses malloc(), you can't use Freemem in StrDispose. Using free() instead works.
Thanks for pointing that out! I will check the other units to see whether there needs to be any amendment.
Best regards, The Chief -------- Dr. Abimbola A. Olowofoyeku (The African Chief) Email: laa12@keele.ac.uk Author of: Chief's Installer Pro 4.01 for Win16 and Win32: Winner of PC PLUS Magazine Gold Award (April 1995 U.K. edition) http://ourworld.compuserve.com/homepages/African_Chief/