|
제가 이런경우는 처음 당하는데요
typedef struct
{
int a;
}struct_a;
void init()
{
struct_a A= new struct_a();
// 여기서 메모리 할당이 실패합니다
struct_a A= new struct_a;
// 이렇게 해도 실패합니다
struct_a A = (struct_a *)malloc(sizeof(struct_a));
// 이렇게 해도 실패하구요
}
도대체 왜 C++Builder에선 왜 메모리 할당이 실패하는지요 혹시 Heap 메모리 용량을 늘리는 옵션이 있는지요
답변 부탁드립니다
|