Banks

BlitzPlus Forums/BlitzPlus Programming/Banks

rdodson41(Posted 2003) [#1]
I have a quick question about banks. Does any info that is put into a bank stay in memory? Or is it terminated after the program ends, even if it isn't told so with a function.

-Rich05


Perturbatio(Posted 2003) [#2]
It should be cleared by blitz on exit (assuming a normal exit).


CS_TBL(Posted 2003) [#3]
Interesting detail, if I don't freegadget my app before I quit it, it leaves a blank sqaure in my taskbar (click and it's gone). If I don't free-up my stuff, my taskbar is hidden, and I spend half an hour on running, coding etc. then I easily have 40++ blank squares in my taskbar .. :)

this:

Create/Load
Use
Clear
Quit

..is the proper order !


WolRon(Posted 2003) [#4]
Blitz cleans up after itself.

But that doesn't mean you should be sloppy...


rdodson41(Posted 2003) [#5]
But I mean, I want it to be sloppy, sort of. I want to beable to use info in a bank i made earlier (in a sepparate program) and use it for whatever i need now. Can I "save" a bank so I can use the info in it in a later app? CS_TBL you said something about loading... is there a loadbank thing?

-Rich05


Seldon(Posted 2003) [#6]
If you quit your program all the data in the bank is lost. But you can save a bank in a file on disk using the WriteBytes command.
To do what you want in memory you need to use a memory mapped file.