Priest of the Order of the Butterfly
Posts: 540 from 2003/2/25
From: France
@Bastiaan : important thing to know. Everything you allocated (memory, port, whatever) shall be *explicitly* released when exiting. There is no resource tracking at all.
Everything you forgot to release is definitly *lost* (you could remove stuff in system struct afterward, but well, that's a call for disaster).
Function that returns something and has FreeFunctionName counterpart must work in pair.
Do not forget to release Lock()ed file either. Upon program exit, the operating system will not unlock the file for you.
Programming AmigaOS operating system is like dancing on eggs. :)