Hi,
currently, my Mailclient needs approx. 2100k memory.
If I add the following two lines at the beginning, it only needs approx. 940k memory.



[...]
.code
start:
call GetCurrentProcess
invoke SetProcessWorkingSetSize, eax, 0FFFFFFFFh, 0FFFFFFFFh
[...]


Are there any known disadvantages if I use this tiny trick to strip down the memory usage? (so far, my App runs without any error)

TIA,
bAZiK

EDIT
Just saw one disadvantage:

Windows NT: Requires version 3.5 or later.
Windows: Unsupported. ; <-- :(
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Posted on 2001-09-29 20:28:59 by bazik
I don't think there's any real advantage of using it... you should only
be really concerned with committed pages, not just allocated memory.
Also, I believe stack size and such is included in the needed memory.
Posted on 2001-09-30 11:09:46 by f0dder