• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

out of memory

Ive been working on a program for the last year working fine. I jsut made a change to it and now when I try to run it in debug mode i get an error saying 'Out of memory'. if i fix where it crashes it will just happen further on in execution. I have restarted the computer and only have vc6.0 running. no other programs. need help urgently
0
_versamps_
Asked:
_versamps_
  • 5
  • 3
  • 2
  • +2
1 Solution
 
PlanetCppCommented:
and whats the change you just made??
0
 
_versamps_Author Commented:
i added a cstatic and a cedit to the dialog and removed a button.
0
 
PlanetCppCommented:
i don't know its really just not enough information. i don't use dialogs either which makes it harder to think of what it can be.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
_versamps_Author Commented:
ye problem is that it happens within different sections(dlls) within my main project. i fixed it from one area where i try to anchor a edit box then once i fixed the 'out of memory' there it crashed on a CArchive.Serialize call in a totally different dll. Im beginning to think my compiler has gone up the creek.
0
 
WaffleSouffleCommented:
What compiler are you using ?

What is the precise wording of the error - are you out of memory on the stack (which probably means a recursive problem) or the heap (which would be difficult), or are you out of memory bounds in which case you're messing with an invalid pointer, or something else ?

Check the ids of your new resources - make sure there's no resource number clash because then you'll be casting one type of window to another type which is, well, bad.

What's the structure of the program. Who owns what - how is the archive related to the dialog, the edit control and the static ?

Have you tried recompiling all the portions of your program afresh ?

More info needed...
0
 
cmaryusCommented:
Basically you get Out of Memory when you allocate to much resources and you don't release them.
for example if you keep allocating a pointer and you don't release it you will end up with this error:
while(true)
{
     int *p = new int(1);
}

So check those nasty pointers.
0
 
daknight2000Commented:
in my view, could be many reasons..
1. are u using the debug mode dlls?
2. any recursion without an end condition?
???

dunnooooo
0
 
_versamps_Author Commented:
nah no recursion... the error message says only "Out Of Memory". thats it. i thought it maybe something to do with ID's but not so sure if its now crashing on a Serialize call. im using it in Debug.. if i try release mode i just get an exception instead of the Out Of Memory message
0
 
_versamps_Author Commented:
had something to do with the ID's. thanks
0
 
WaffleSouffleCommented:
Great - who gets the points nudge nudge
0
 
WaffleSouffleCommented:
Great - who gets the points nudge nudge
0
 
_versamps_Author Commented:
oops thort i did that already. it happens still every now and again which i believe a file must be corrupt sumwhere. neways thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now