Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Failed to Create Empty Document Pin
David Crow9-Mar-04 4:03
David Crow9-Mar-04 4:03 
GeneralCreateNamedPipe Pin
hph9-Mar-04 3:32
hph9-Mar-04 3:32 
GeneralRe: CreateNamedPipe Pin
David Crow9-Mar-04 3:37
David Crow9-Mar-04 3:37 
GeneralRe: CreateNamedPipe Pin
hph9-Mar-04 3:44
hph9-Mar-04 3:44 
GeneralRe: CreateNamedPipe Pin
David Crow9-Mar-04 4:07
David Crow9-Mar-04 4:07 
GeneralRe: CreateNamedPipe Pin
hph9-Mar-04 4:24
hph9-Mar-04 4:24 
GeneralDebug System Wide Hooks Pin
bilal789-Mar-04 1:53
bilal789-Mar-04 1:53 
GeneralOut of virtual memory Pin
martin_j9-Mar-04 1:44
martin_j9-Mar-04 1:44 
Hi all!

I have a question regarding the computer's virtual memory.
I am writing a program to simulate all kind's of combinations of a poker hand. To do this I wrote 5 while statements. This will give a complexity of about O(50 exp 5) = O(312 500 000) in the last while statement I will do some calculations. The problem is that when I run the program a run out of virtual memory ( I have increased the limit to 4GB ). I am confused why I run out of memory, I did't think the while statements would consume any memory (almost)Confused | :confused: . Could it be that I have a memory leak in the calculations that I make.
So I guess my question is; will these while statements use all the computer's virtual memory depending on the complexity?

Thanx!

Martin_j
GeneralRe: Out of virtual memory Pin
David Crow9-Mar-04 2:18
David Crow9-Mar-04 2:18 
GeneralRe: Out of virtual memory Pin
Prakash Nadar9-Mar-04 2:38
Prakash Nadar9-Mar-04 2:38 
GeneralRe: Out of virtual memory Pin
martin_j9-Mar-04 2:59
martin_j9-Mar-04 2:59 
GeneralRe: Out of virtual memory Pin
wb9-Mar-04 3:31
wb9-Mar-04 3:31 
GeneralRe: Out of virtual memory Pin
David Crow9-Mar-04 3:33
David Crow9-Mar-04 3:33 
GeneralRe: Out of virtual memory Pin
martin_j9-Mar-04 3:41
martin_j9-Mar-04 3:41 
GeneralRe: Out of virtual memory Pin
wb9-Mar-04 3:46
wb9-Mar-04 3:46 
GeneralRe: Out of virtual memory Pin
martin_j9-Mar-04 3:48
martin_j9-Mar-04 3:48 
GeneralRe: Out of virtual memory Pin
David Crow9-Mar-04 3:57
David Crow9-Mar-04 3:57 
GeneralRe: Out of virtual memory Pin
martin_j9-Mar-04 4:06
martin_j9-Mar-04 4:06 
GeneralRe: Out of virtual memory Pin
Prakash Nadar9-Mar-04 4:40
Prakash Nadar9-Mar-04 4:40 
GeneralRelease <-> Debug woes Pin
Phil.Benson9-Mar-04 1:12
professionalPhil.Benson9-Mar-04 1:12 
GeneralRe: Release <-> Debug woes Pin
wb9-Mar-04 3:33
wb9-Mar-04 3:33 
GeneralRe: Release <-> Debug woes Pin
Phil.Benson9-Mar-04 3:42
professionalPhil.Benson9-Mar-04 3:42 
GeneralRe: Release <-> Debug woes Pin
wb9-Mar-04 3:56
wb9-Mar-04 3:56 
GeneralRe: Release <-> Debug woes Pin
Phil.Benson9-Mar-04 4:13
professionalPhil.Benson9-Mar-04 4:13 
GeneralRe: Release <-> Debug woes Pin
Phil.Benson22-Apr-04 1:48
professionalPhil.Benson22-Apr-04 1:48 

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.