Re: Win32Lib: running out of memory with createDIB()

new topic     » goto parent     » topic index » view thread      » older message » newer message

If you are sure you're done with a bitmap for a while, you should release the
memory with:
deleteObject().....
example:
dib=createDIB(myBitmap)
dib2=createDIB(myOtherBitmap
-- then, when you're done with these...
deleteObject(dib)
deleteObject(dib2)

> If I create a DIB like this (using Win32Lib)
>         dib = createDIB(myBitmap)
> and then later create another DIB using the same variable:
>         dib = createDIB(myOtherBitmap),
> does the memory taken by the first DIB get released? *NO*
Wolf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu