P
Pat
I am using VC++ 6.0 to develop my program.
class A
{
Object *obj
public:
A() { obj=new Object[10000] ; } ;
}
void main()
{
A *a=new A;
}
In my program, I need to allocate a huge memory for a Object obj (e.g. 10000
copies of object), which is inside the class A. However, when A's
constructor is being called. The program crash....
Could someone tell me how to solve this problem? Is it related to the C++
programming issue? BTW, my computer is 512MB RAM.
Pat
class A
{
Object *obj
public:
A() { obj=new Object[10000] ; } ;
}
void main()
{
A *a=new A;
}
In my program, I need to allocate a huge memory for a Object obj (e.g. 10000
copies of object), which is inside the class A. However, when A's
constructor is being called. The program crash....
Could someone tell me how to solve this problem? Is it related to the C++
programming issue? BTW, my computer is 512MB RAM.
Pat