[adasockets] Re: Memory leak in examples

Samuel Tardieu sam at rfc1149.net
Tue Aug 10 15:08:58 CEST 2004


Wojtek> So, as far as I can understand it, in Ada 95, if the task is
Wojtek> not discriminated, you can call Free on an access to it.
Wojtek> Last but not least, the fix actually works under load from a
Wojtek> test script.

It works only by chance. Dmitriy is right: as long as the task is not
terminated, effects on calling Free is not an error but won't do
anything. Task termination happens asynchronously and in your example
you have no guarantee that this will be the case.

  Sam
-- 
Samuel Tardieu -- sam at rfc1149.net -- http://www.rfc1149.net/sam



More information about the AdaSockets mailing list