Click here to Skip to main content
16,005,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What's going on? Please help me Pin
Ravi Bhavnani23-Jan-02 10:16
professionalRavi Bhavnani23-Jan-02 10:16 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 10:41
User 665823-Jan-02 10:41 
GeneralRe: What's going on? Please help me Pin
Le centriste23-Jan-02 10:57
Le centriste23-Jan-02 10:57 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 11:00
User 665823-Jan-02 11:00 
GeneralPROBLEM SOLVED!!! Pin
User 665823-Jan-02 11:06
User 665823-Jan-02 11:06 
GeneralProblem with WM_NOTIFY from a ClistViewCtrl Pin
uo200023-Jan-02 7:29
uo200023-Jan-02 7:29 
Generalwhatif (ptr = malloc ( nSize ) ) == NULL Pin
Mike Doner23-Jan-02 6:25
Mike Doner23-Jan-02 6:25 
GeneralRe: whatif (ptr = malloc ( nSize ) ) == NULL Pin
Joaquín M López Muñoz23-Jan-02 10:24
Joaquín M López Muñoz23-Jan-02 10:24 
When doing a "malloc" what causes it to return NULL?

The reason for malloc to return NULL is of course that the memory request could not be fulfilled. That can be caused by:
  1. Having consumed so much memory that too little remains available,
  2. requesting an exceedingly large amount of memory (nSize being too large),
  3. the memory being too fragmented to allocate a contiguous chukn of memory the size requested, which could happen if your program does massive allocations/deallocations of chunks of various sizes and runs for a sufficiently long time.

What are some of the limits of memory an application can use considering virutal memory/paging etc..
The maximum amount of addressable virtual memory is 2GB (subtract some memory consumed by C run-time library and so). That means the maximum memory a process can ever expect to be able to allocate. When it comes to reality, the total amount available depends on the size of the swap file --your 800MB limit seems reasonable.

Is there a function call I can use to see EXACTLY how much memory a process is using? (would implement this in the code to see if MAYBE we have a leak).

GlobalMemoryStatus. Regards,


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralDouble Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 4:56
Mark Lenz23-Jan-02 4:56 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 7:58
Mark Lenz23-Jan-02 7:58 
GeneralRe: Double Buffering vs. Private DC's Pin
Michael Dunn23-Jan-02 8:15
sitebuilderMichael Dunn23-Jan-02 8:15 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 10:16
Mark Lenz23-Jan-02 10:16 
GeneralRe: Double Buffering vs. Private DC's Pin
Shog923-Jan-02 15:28
sitebuilderShog923-Jan-02 15:28 
GeneralRe: Double Buffering vs. Private DC's Pin
Michael Dunn23-Jan-02 19:24
sitebuilderMichael Dunn23-Jan-02 19:24 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 11:22
Mark Lenz23-Jan-02 11:22 
GeneralCDROM Information Pin
Adrian Metcalfe23-Jan-02 4:42
Adrian Metcalfe23-Jan-02 4:42 
GeneralRe: CDROM Information Pin
moliate23-Jan-02 15:29
moliate23-Jan-02 15:29 
GeneralAFX_EXT_CLASS no assure export Pin
Franck George23-Jan-02 4:25
Franck George23-Jan-02 4:25 
GeneralRe: AFX_EXT_CLASS no assure export Pin
Joao Vaz23-Jan-02 4:43
Joao Vaz23-Jan-02 4:43 
GeneralRe: AFX_EXT_CLASS no assure export Pin
Joao Vaz23-Jan-02 4:46
Joao Vaz23-Jan-02 4:46 
GeneralRe: AFX_EXT_CLASS no assure export Pin
Member 18414215-Jul-10 0:23
Member 18414215-Jul-10 0:23 
GeneralPLEASE Help URGENT Pin
Sonu Kapoor23-Jan-02 4:11
Sonu Kapoor23-Jan-02 4:11 
GeneralVisual C++ & OpenGL Pin
Rajveer23-Jan-02 3:16
Rajveer23-Jan-02 3:16 
QuestionIs MFC thread-safe? DialogBar with DLGTEMPL? Pin
HintiFlo23-Jan-02 2:21
HintiFlo23-Jan-02 2:21 
GeneralOnInitDialog called in Release, but not in Debug! Pin
Jonnie White23-Jan-02 0:50
Jonnie White23-Jan-02 0:50 

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.