LB Booster
« GetBmp without UnloadBmp? »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:46am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: GetBmp without UnloadBmp?  (Read 310 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx GetBmp without UnloadBmp?
« Thread started on: Jan 23rd, 2015, 10:59pm »

The docs for GETBMP state "When no longer needed, unload from memory with UNLOADBMP" and that's certainly true in LBB: if you don't, your program will leak bitmap handles.

However my experiments suggest that in LB 4.04 it's not always essential to do so. If you do another GETBMP, with the same bitmap name, it looks as though it does an automatic UNLOADBMP 'behind the scenes'.

I should probably modify LBB to behave the same way, but in the meantime be aware that if your program uses GETBMP repetitively, without doing an UNLOADBMP in between, it will consume resources and eventually fail.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls