Click to See Complete Forum and Search --> : Out-Of-Memory


gurra_koo
April 15th, 2004, 07:24 AM
Hi!
I'm building a application in VC++ .NET.
But when i run it it says to me that it's Out-Of-Memory.
The memory on the computer is not full...

How do you get rid of this problem?
Can you give the program more memory?

Regards, Koo

Andreas Masur
April 15th, 2004, 08:37 AM
[Moved thread]

mburke
April 15th, 2004, 06:21 PM
You could be running out of stack space. Are you passing large objects by value to functions? Are you making large objects local to functions? Use new to utilize the heap . Use pass by referance to save stack space. You can increase the stack space but I can't think of how right now. I think its in the .def file. Better you make the program more efficient before you look at doing that.