Re: Urgent! Memory/Resource Limitations when creating new frame in MFC
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 01 May 2009 17:06:03 -0400
See below...
On Fri, 1 May 2009 12:11:01 -0700, NoobCoder <NoobCoder@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hey guys, I am really need urgent help with a problem relating to the****
Microsoft Foundation Classes (MFC),
My question is: are there any resource limitations when creating a new frame
in MFC?
When I create a new frame, CMDIChildWnd, CreateNewFrame, etc... basically
any functions that
creates new frames, is causing my program to crash.
I have no idea what "crash" means. I'm sure that something identifiable happened that
caused the process to terminate, but since I have no psychic powers, I am unable to deduce
from this meaningless term what exactly happened. Whatever happened, you *will* give a
detailed explanation before you can expect a meaningful answer
****
I am writing a large*****
scale program and
it looks like there are some resource limitations on creating new frames in
MFC, When I ran my program, I can only have so much stuff going on in one
frame, it crashes when the frame has too many data in it.
I thought you said it crashed when you created it. Since you cannot put any data in it
until *after* it has been created, when does this "crash" (whatever that means!) occur?
****
To sum it up, when I take out a lot of data in the frame, the frame works****
fine, but when I add in more data, like stuff to be displayed in the frame,
the program crash due to out of virtual memory problems
Here's a thought: could you be running out of virtual memory? Since you give no details,
say nothing of data sizes, quantity of objects, or anything else that might actually be
useful in deducing what is going on, what are we supposed to think?
****
****
So is there any resource/memory limitations when creating frames in MFC? If
so what is it? And is there any way to go around this limit?
There is approximately a 2GB limit on a per-process basis; if you manage to fill that
memory up, you will not be able to continue.
****
****
Much help would be appreciated, I am stuck on this problem for weeks.
Help is possible only with sufficient information to understand the problem.
joe
****
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- References:
- Prev by Date: Re: Custom Resource, XML problem
- Next by Date: Re: Urgent! Memory/Resource Limitations when creating new frame in MFC
- Previous by thread: Urgent! Memory/Resource Limitations when creating new frame in MFC
- Next by thread: Re: Urgent! Memory/Resource Limitations when creating new frame in
- Index(es):
Relevant Pages
|