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

C / C++ / MFC

 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Richard MacCutchan11-Jun-13 4:41
mveRichard MacCutchan11-Jun-13 4:41 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
JackDingler11-Jun-13 5:04
JackDingler11-Jun-13 5:04 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Falconapollo10-Jun-13 21:44
Falconapollo10-Jun-13 21:44 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
JackDingler11-Jun-13 4:24
JackDingler11-Jun-13 4:24 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Falconapollo12-Jun-13 0:32
Falconapollo12-Jun-13 0:32 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
JackDingler12-Jun-13 4:45
JackDingler12-Jun-13 4:45 
AnswerRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
jschell10-Jun-13 9:17
jschell10-Jun-13 9:17 
AnswerRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Stefan_Lang10-Jun-13 21:27
Stefan_Lang10-Jun-13 21:27 
Falconapollo wrote:
My problem is how to avoid thrid party lib to allocate memory from physical memory.

No, that is not your problem - that is a suggestion on how to solve your (as of yet unknown) problem. And it won't work for several reasons:
1. The operating system will do all memory allocations; most importantly even the most basic function you can call to allocate memory will allocate that within physical memory. There's no way to avoid that short of writing your own OS.
2. The OS will also move memory from and to hard disk as needed in order to keep the entire system running smoothly. Repeatedly. At runtime! Again, you cannot influence that short of rewriting the OS.
3. Technically, no application or library actually allocates or processes data in physical memory; instead they work on virtual memory. Under the hood, the OS will put the actual data anywhere into physical memory or on hard disk, but neither your application nor that library would even be able to tell where their data are currently residing, because from their point of view all data always resides in virtual memory. There is no way (and no sensible reason) to change that. Well, short of rewriting the OS Wink | ;)

So, please start again, and start by describing your problem, not by suggesting a solution. Are you running out of memory? Are you experiencing performance issues? Are you suffering from memory fragmentation? Any of these could be a problem, and there may be reasonable solutions. But either solution will not solve all of these problems, so knowing the problem would help.
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Falconapollo10-Jun-13 21:40
Falconapollo10-Jun-13 21:40 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Stefan_Lang11-Jun-13 0:07
Stefan_Lang11-Jun-13 0:07 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Falconapollo11-Jun-13 0:21
Falconapollo11-Jun-13 0:21 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
JackDingler11-Jun-13 4:28
JackDingler11-Jun-13 4:28 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
SoMad10-Jun-13 22:11
professionalSoMad10-Jun-13 22:11 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
jschell11-Jun-13 8:37
jschell11-Jun-13 8:37 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Falconapollo12-Jun-13 0:28
Falconapollo12-Jun-13 0:28 
AnswerRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
jschell11-Jun-13 8:43
jschell11-Jun-13 8:43 
GeneralRe: How to avoid thrid party lib(no source codes) to allocate memory from physical memory? Pin
Falconapollo12-Jun-13 0:29
Falconapollo12-Jun-13 0:29 
QuestionVC++ Convert file to base64 string and vice versa Pin
Member 84179548-Jun-13 8:34
Member 84179548-Jun-13 8:34 
AnswerRe: VC++ Convert file to base64 string and vice versa Pin
CPallini8-Jun-13 9:58
mveCPallini8-Jun-13 9:58 
AnswerRe: VC++ Convert file to base64 string and vice versa Pin
Richard MacCutchan8-Jun-13 21:43
mveRichard MacCutchan8-Jun-13 21:43 
Questionerror from using CString.GetBuffer (MAX_PATH), Pin
mrby1237-Jun-13 11:56
mrby1237-Jun-13 11:56 
AnswerRe: error from using CString.GetBuffer (MAX_PATH), Pin
jeron17-Jun-13 12:16
jeron17-Jun-13 12:16 
AnswerRe: error from using CString.GetBuffer (MAX_PATH), Pin
Richard MacCutchan7-Jun-13 22:21
mveRichard MacCutchan7-Jun-13 22:21 
QuestionRe: error from using CString.GetBuffer (MAX_PATH), Pin
David Crow8-Jun-13 3:19
David Crow8-Jun-13 3:19 
AnswerRe: error from using CString.GetBuffer (MAX_PATH), Pin
«_Superman_»9-Jun-13 5:04
professional«_Superman_»9-Jun-13 5: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.