Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Basic UDP Connection Pin
Jon Sagara2-Dec-01 10:50
Jon Sagara2-Dec-01 10:50 
GeneralRetrieving dialog box values Pin
2-Dec-01 7:24
suss2-Dec-01 7:24 
GeneralRe: Retrieving dialog box values Pin
Igor Sukhov2-Dec-01 12:48
Igor Sukhov2-Dec-01 12:48 
Generaltoolbar buttons problem Pin
2-Dec-01 6:09
suss2-Dec-01 6:09 
GeneralRe: toolbar buttons problem Pin
Igor Sukhov2-Dec-01 6:11
Igor Sukhov2-Dec-01 6:11 
GeneralRe: toolbar buttons problem Pin
2-Dec-01 15:27
suss2-Dec-01 15:27 
GeneralSetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 6:05
John M. Drescher2-Dec-01 6:05 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
Gert Boddaert2-Dec-01 7:36
Gert Boddaert2-Dec-01 7:36 
A couple of years ago, I was in a team writing a raster image processor system. That means doing manipulations on postscript image files of several Gigabytes. Every component does its task on the file and passes it on to the next stage or component, like a conveyor belt… These components where running on the same system or were distributed over different networked computers. What we learned - when using memory-mapped files (every stage, an intermediate file was saved on the disk of the process doing the next manipulation) - is also the phenomenon you noticed: the system starts trashing when a certain memory usage limit is reached. The solution: Although memory mapped files are great, you have to limit the amount of memory that remains mapped or face the fact that for huge files the system will grind to a halt. You can do that by looking at the parameters of the functions that create the memory mapped file and view. However, the best and most efficient way to do the work is to program the file manipulation yourself. Yes, ReadHandle, WriteHandle and Seek stuff, allocating your own buffers, etc… A lot more work, but I guess in your case well worth it. It is never easy to admit you have to go back to the drawing board, but we did just that and eventually we were very pleased with the end result. IMHO using SetProcessWorkingSetSize, VirtualLock, etc... will not solve the design issue.
Just my 2 cents,

BR,

Gert.


--------------------------------------------------
If my messages appear curt, I apologize.
I try to be brief to save your time as well as mine.
--------------------------------------------------

GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 8:07
John M. Drescher2-Dec-01 8:07 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
Tim Smith2-Dec-01 8:37
Tim Smith2-Dec-01 8:37 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher2-Dec-01 17:01
John M. Drescher2-Dec-01 17:01 
GeneralRe: SetProcessWorkingSetSize AND Background Processes Pin
John M. Drescher3-Dec-01 6:21
John M. Drescher3-Dec-01 6:21 
Generalproblem with socket Pin
Fumiseki2-Dec-01 4:59
Fumiseki2-Dec-01 4:59 
GeneralRe: problem with socket Pin
markkuk3-Dec-01 1:52
markkuk3-Dec-01 1:52 
GeneralChanging bitmap of single toolbar button Pin
Erik Hammar2-Dec-01 2:06
Erik Hammar2-Dec-01 2:06 
GeneralRe: Changing bitmap of single toolbar button Pin
Steve L.2-Dec-01 5:15
Steve L.2-Dec-01 5:15 
QuestionHow to get rid of Visual Studio's automatic debugging? Pin
1-Dec-01 23:30
suss1-Dec-01 23:30 
AnswerRe: How to get rid of Visual Studio's automatic debugging? Pin
Michael P Butler2-Dec-01 1:32
Michael P Butler2-Dec-01 1:32 
GeneralError Starting Program Pin
SixString1-Dec-01 18:02
SixString1-Dec-01 18:02 
GeneralRe: Error Starting Program Pin
Michael P Butler2-Dec-01 1:39
Michael P Butler2-Dec-01 1:39 
GeneralDefine controller in VC 7 Pin
mazy1-Dec-01 17:52
mazy1-Dec-01 17:52 
GeneralSTL to: Cin, Cout, ifstream & ofstream Pin
valikac1-Dec-01 16:32
valikac1-Dec-01 16:32 
GeneralRe: STL to: Cin, Cout, ifstream & ofstream Pin
Michael P Butler2-Dec-01 1:42
Michael P Butler2-Dec-01 1:42 
GeneralRe: STL to: Cin, Cout, ifstream & ofstream Pin
Igor Sukhov2-Dec-01 6:05
Igor Sukhov2-Dec-01 6:05 
GeneralRe: STL to: Cin, Cout, ifstream & ofstream Pin
Erik Funkenbusch3-Dec-01 9:28
Erik Funkenbusch3-Dec-01 9:28 

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.