• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
malloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

malloc


  • Subject: malloc
  • From: "andrea lucaroni" <email@hidden>
  • Date: Wed, 9 Jul 2008 17:55:23 +0200

Hi

I writing a code in C, i run my code with powerpc-apple-darwin8-g++-4.0.
1, my code compiles, to its inside demands an Array of 100000 elements (has controlled if I malloc the memory well) i get:

a.out(1232) malloc: *** vm_allocate(size=172032) failed (error code=3)
a.out(1232) malloc: *** error: can't allocate region
a.out(1232) malloc: *** set a breakpoint in szone_error to debug

-----
//code
int dimdatif=100000;
 chunk=(int *)malloc(dimdatif*sizeof(int));

....

delete chunk;
--------


what can have happened?

Thank
Andrea
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: malloc
      • From: "Clark Cox" <email@hidden>
    • Re: malloc
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: iPhone application going out of control
  • Next by Date: Re: iPhone application going out of control
  • Previous by thread: Re: Hide Console
  • Next by thread: Re: malloc
  • Index(es):
    • Date
    • Thread