Doesn't Free() and Release() check for nil-pointers?
Posted on 2004-09-26
I'm creating a form at runtime, like this:
ControlWindow := TControlWIndow.Create(MainWindow);
When I am done using the form, I call the Release() -method like this:
if Assigned(ControlWindow) then
My question is this:
When I check the memoryusage via AllocMemCount, first it shows 452. After I have created ControlWindow it shows 683, and after I have Released ControlWIndow it shows 472. Why is there a difference of 20 (472 - 452)..? Shouldn't it show 452 after Release too?