Hi Michael,
Try putting everyting in a procedure 'Test' and run that.
I did that and still see the unfreed memory error. I think Jonas might be onto something. I used the tiBaseObject unit from tiOPF. It has memory leak detection (derived from the IndySOAP project), but only if your classes decend from TtiBaseObject. When I use that, it gives no errors, but if Jonas is right, that is understandable, as the tiBaseObject only checks objects I create and not things in the RTL. Regards, - Graeme - _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal