[fpc-pascal]ReAlloc Question

James Mills prologic at prologitech.com
Fri May 16 12:08:39 CEST 2003


Hi,

Can any problems with stringsclass.pas ?
Reason I ask is that, yes my fairly large program works that uses
dynamic memory allocation, however it has memory leaks galore! :(
stringsclass.pas is a dynamic string class I created which I take pride
in, but I'm not convinced I wrote the: procedure del(index: Integer);
correctly...
Could someone have a look and comment on that please ? It will aid
greatly in my efforts to debug my memory leaks...

cheers
James
-------------- next part --------------
stringsTest=stringstest.pas

default: debug

debug: $(stringsTest)
	fpc -bl -gg -gh -gl -S2 $(stringsTest)

clean:
	rm -f *ppu* *.o stringstest *~ browser.log
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stringsclass.pas
Type: text/x-pascal
Size: 2269 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20030516/aaf2a705/attachment.pas>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stringstest.pas
Type: text/x-pascal
Size: 844 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20030516/aaf2a705/attachment-0001.pas>


More information about the fpc-pascal mailing list