Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8769305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:18:24+00:00 2026-06-13T17:18:24+00:00

I am getting up to speed on using ARC for my iOS app development.

  • 0

I am getting up to speed on using ARC for my iOS app development. Occasionally a plain ole c-array of plain old c-structs is all I need to get the job done. Prior to ARC I would just add free() to my dealloc method. With ARC there is nolonger any need for dealloc. Is there an ARC directive I can add to tell the compiler to handle free-ing my c-array(s)?

Per Tom’s answer here is the dealloc method

// EIVertex
struct EIVertex {
    GLKVector3 p;
    GLKVector3 n;
    GLKVector3 barycentric;
    GLKVector2 st;
};

typedef struct EIVertex EIVertex;

// ivar declaration
EIVertex *_vertices;

// malloc an array of EIVertex
_vertices = (EIVertex *)malloc([_triangles count] * sizeof(EIVertex));

// Note lack of [super dealloc]
- (void)dealloc{

    // ARC will not handle mem. management for plain ole c arrays.
    free(_vertices);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:18:26+00:00Added an answer on June 13, 2026 at 5:18 pm

    You can still overload dealloc. The only thing is you can not explicitly call it. So write dealloc as you used to, but dont call [super dealloc] in it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ARM926EJS. I am getting 20 % more memory speed in memory
I'm just getting up to speed on MVVM, but all the examples I've seen
I'm getting no improvement in speed when using Ehcache with Hibernate Here are the
Using Getting back up to speed on Java after 8-10 years as a starting
I am in need of getting up to speed with JSF 2.0. I have
Without getting into too much detail, I have a process in my iOS app
Just getting up to speed with YAML and want to confirm whether it's possible
I'm just getting up to speed with Rails 3.2, and when I use create
Possible Duplicate: Getting a clue at / debug a huge Java Swing App I’ve
Using: HTC Legend and HTC Salsa I'm calculating the speed using: while(true) { try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.