![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
In a program I load three new bitmaps each time when the user clicks on a table. Each bitmap has a size of 320 *240 and is displayed with a size of 80 * 60. The code used to load and display the three bitmaps is: bmpsrc1.New1(PhotoPath & Photo1) drawer1.DrawImage1(bmpsrc1.Value,rectsrc1.Value,re ctdes1.Value,true) drawer1.Refresh2(rectdes1.Value) bmpsrc2.New1(PhotoPath & Photo2) drawer2.DrawImage1(bmpsrc2.Value,rectsrc2.Value,re ctdes2.Value,true) drawer2.Refresh2(rectdes2.Value) bmpsrc3.New1(PhotoPath & Photo3) drawer3.DrawImage1(bmpsrc3.Value,rectsrc3.Value,re ctdes3.Value,true) drawer3.Refresh2(rectdes3.Value) On the PDA only, after 21 clicks I get the error message: OutOfMemoryException on the line bmpsrc3.New1(PhotoPath & Photo3) I fear that each bmpsrc*.New1 statement claims additional memory, but I do not know: 1) How to free the memory used by previous bitmaps. 2) What the maximum size is of the memory made available for an application. Please some help. Harry |
|
||||
|
I think that all libs have a dispose property, so you can ...dispose.... of the previous image before showing the new one....
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out of Memory when loading a photo | Mr_Gee | Questions & Help Needed | 6 | 10-23-2008 08:49 PM |
| Proper use of the .New methods, out of memory error | kolbe | Questions & Help Needed | 5 | 09-05-2008 02:37 PM |
| Out of Memory Exception Error on Load | willisgt | Questions & Help Needed | 9 | 03-01-2008 12:18 PM |
| out-of-memory-error based on timer after switching to V6 | Frank | Questions & Help Needed | 2 | 01-17-2008 04:26 PM |
| Error loading SQL Component | conniemalan | Questions & Help Needed | 1 | 07-27-2007 09:29 AM |