Graeme Geldenhuys schreef: > > What is wrong with enabling the heaptrc unit (-gh)? It works only for memory allocated by the fpc heap manager, so a winapi CreateWindow call, or a gtk gtk_button_new call would create an undetected memory leak, if the returned handle/pointer is not release properly. Vincent