• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    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. :)
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »17.04.15 - 05:20
    Profile Visit Website