Results 1 to 3 of 3

Thread: Freeing Bitmap's

  1. #1
    Join Date
    Apr 2007
    Location
    Rimmington
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Freeing Bitmap's

    Hey all just a quick question

    should freeing bitmaps be done every time they are used or upon terminating a script?

    are they similar to dtmz? and if i don't free this will it just clog up memory?

    thanks in advanced =]
    Learning To Code - So Excuse the n00b questions!

  2. #2
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    I like load them once at the start and free them at the end.
    Best way imo.

    And yes, if you repeatedly call them and don't free them, they will clog up memory just like DTM's.

    I highly recommend you use SetBitmapName to name your Bitmaps, so you know which one's are not being freed.

  3. #3
    Join Date
    Apr 2007
    Location
    Rimmington
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    im only really using it for a on screen proggy but though i best check if i should add it to freeing DTMZ up on script terminating

    thanks for clearing that up for me =]
    Learning To Code - So Excuse the n00b questions!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •