![]() |
|
|||||||
| 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 |
|
||||
|
The .NET Framework has good memory management code. I wouldn't bypass that by calling the native API. Let the Framework worry about looking after memory.
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. |
|
||||
|
Andrew, as i know .Net allocate a "working set" in memory (when program start) and size of this set bigger than needed (for future) (and if we have many RAM this set bigger).
this code must change a working set to minimum needed. for example our program have only one form and button,showed msgbox. but in memory this program use (!) 12mb in virtual memory (i have 2gb RAM) and it's working set 9mb! as i'm understand with code,posted by me our program must use only ~1mb
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
-------------------------------------------------- Qtek s110; o2 XDA Flame; Nokia E63 red; ASUS Eee PC 901 (Windows XP sp3) + TouchScreen; |
|
||||
|
Don't worry about it. The memory is allocated virtual memory, it does not mean that any actual physical RAM is mapped to it. If the OS does come under memory pressure then the Framework can surrender unused memory back to the OS. Just leave it to OS and the Framework to look after memory, that's what they are designed to do efficiently.
__________________
Sorry, but I don't answer questions by PM or email. Please post your queries in the forum. |
![]() |
| 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 |
| Exceptions usage | ghale | Questions & Help Needed | 6 | 07-29-2009 04:57 PM |
| Image usage with sqllite | tremara1 | Questions & Help Needed | 9 | 07-10-2009 08:31 PM |
| Dim memory usage | JamesC | Questions & Help Needed | 2 | 07-21-2008 08:09 AM |
| Way to decrease memory usage | Andrew_572 | Questions & Help Needed | 3 | 01-04-2008 09:44 AM |
| Memory Usage | Scubaticus | Questions & Help Needed | 6 | 07-03-2007 05:37 PM |