Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExperts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 4:37
oren frenkel16-Dec-03 4:37 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 5:31
Felix Gartsman16-Dec-03 5:31 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 5:44
oren frenkel16-Dec-03 5:44 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 7:39
Felix Gartsman16-Dec-03 7:39 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:40
oren frenkel16-Dec-03 22:40 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher16-Dec-03 7:56
John M. Drescher16-Dec-03 7:56 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:38
oren frenkel16-Dec-03 22:38 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher17-Dec-03 4:11
John M. Drescher17-Dec-03 4:11 
oren frenkel wrote:
This is the exact kind of tip that i cannot get in the MSDN.

I found this out the hard way. I have an application that digitizes mamograms. A case of 4 images can be as much as 256MB. The digitizer only has a buffer to hold about 1/2 of an image so if you don't read the data in a 20 to 30 second period it will overflow. Well if the user pressed the minimize button the whole application thrashed for atleast that time and we got an overflow of the buffer and the pc had 512 MB of memory with almost atleast 150MB free. This was tested on NT4 and I believe Win2k but I have not tested it recently. Anyways this was because when the application minimizes the working set is trimmed. I did verify that was indeed what was happening on these operating systems.

oren frenkel wrote:
if the window is in the background (not in focus - another application is in focus) - does the same thing happen?

No. Only when the application is minimized. My solution was to not let the application minimize only during digitization.

oren frenkel wrote:
More important - if i set the working set to 64 MB, and allocated a 64 MB buffer and locked it, and only AFTERWARDS the user minimizes the window - does this also happen?
Yes. It would happen there too.


John
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel17-Dec-03 4:18
oren frenkel17-Dec-03 4:18 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher17-Dec-03 4:27
John M. Drescher17-Dec-03 4:27 
GeneralStarter Pin
neo2k316-Dec-03 3:58
neo2k316-Dec-03 3:58 
GeneralRe: Starter Pin
valikac16-Dec-03 5:11
valikac16-Dec-03 5:11 
GeneralRe: Starter Pin
Anonymous17-Dec-03 3:26
Anonymous17-Dec-03 3:26 
GeneralRe: Starter Pin
LittleYellowBird16-Dec-03 5:16
LittleYellowBird16-Dec-03 5:16 
GeneralRe: Starter Pin
Roger Wright16-Dec-03 5:23
professionalRoger Wright16-Dec-03 5:23 
GeneralRe: Starter Pin
BaldwinMartin16-Dec-03 11:19
BaldwinMartin16-Dec-03 11:19 
GeneralHEAP[MyProgram.exe]: Invalid Address specified to RtlSizeHeap( 00140000, 001E8D10 ) Pin
UOzkan16-Dec-03 3:02
UOzkan16-Dec-03 3:02 
GeneralRe: HEAP[MyProgram.exe]: Invalid Address specified to RtlSizeHeap( 00140000, 001E8D10 ) Pin
Abebe16-Dec-03 3:38
Abebe16-Dec-03 3:38 
GeneralRe: HEAP[MyProgram.exe]: Invalid Address specified to RtlSizeHeap( 00140000, 001E8D10 ) Pin
John M. Drescher16-Dec-03 7:58
John M. Drescher16-Dec-03 7:58 
GeneralMATLAB C++ problems, help~! Pin
Vincent Sim16-Dec-03 3:01
Vincent Sim16-Dec-03 3:01 
GeneralCTabCtrl - An Introduction to... Pin
Jock197916-Dec-03 2:17
Jock197916-Dec-03 2:17 
GeneralRe: CTabCtrl - An Introduction to... Pin
Abebe16-Dec-03 3:40
Abebe16-Dec-03 3:40 
Generalerror C2065: 'DDX_Time' : undeclared identifier Pin
Neha16-Dec-03 0:32
Neha16-Dec-03 0:32 
GeneralRe: error C2065: 'DDX_Time' : undeclared identifier Pin
Michael P Butler16-Dec-03 0:44
Michael P Butler16-Dec-03 0:44 
QuestionWhere can i get specification for GDI+ images encoders/decoders? Pin
YuriSp16-Dec-03 0:04
YuriSp16-Dec-03 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.