Memory problem with BMP's and Tabs
- Posted by Renzo Beggia <renzo.beggia at VSK.BE> Mar 31, 2000
- 461 views
Hi again, in a few days from now i wil post a large program (source) i made in Euphoria .It is a visualisation program for intrusion systems and fire detection. The program works ok , but ...(and here comes the BIG problem) <<<<<It consumes a lot of memory when there are a lot of bmp's loaded>>>> I work with a tabcontrol with several (about 30)tabitems, on each of this tabitem there is bmp background. when i do a setbitmap() function for each of the bitmaps it uses up all the memory (it allocates the bmp's in memory) Could anyone tell me how i can free up the memory used for the bmp on non-visible Tabitems,when i display another Tabitem The program only needs to keep 1 bmp in memory and needs to load the other (from disk) when i change Tabitem. This way the program would only use about 2Mb of memory for the one background bmp (for a 1024x768 Truecolor BMP) Anyone who helps me will be mentioned in the about box of the prog. (also in the commercial release, if stable functioning) Thank you. (a second problem i have to find out is how to write in an MS Access file. but i dont think an odbc engine for Euphoria is easy to make, because I asked this question before and there was no respons from anyone, except for some people who could really use it too. Can i use ISAM or SQL?) Bye, Renzo Beggia from Belgium