Announcement

Collapse
No announcement yet.

Easy resource question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Easy resource question

    What's the difference between ICON and ICON DISCARDABLE in a resource file?


    Thanks, just curious


    Scott


    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    DISCARDABLE indicates that when memory is low, Windows can choose to free (release) the resource from memory, and if/when the resource is required again later it can be reloaded transparently. Importantly, the application is not made aware of this background memory management.

    Essentially, the DISCARDABLE characteristic stems from Win16 when lack of memory was (is!) a problem.

    In WIN32, this scheme is largly (completely?) irrelevent since low memory conditions are much less of a problem, thanks to the huge amounts of virtual memory than can be dynamically allocated, etc.

    I'm scratching *my* memory now, but I think that Win32 may actually ignore that characteristic of a resource object.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment

    Working...
    X