• 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
Re: releasing a NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: releasing a NSArray


  • Subject: Re: releasing a NSArray
  • From: Shawn Erickson <email@hidden>
  • Date: Sun, 21 Apr 2002 09:47:36 -0700

The cocoa-dev list would be the best place to ask this (http://www.lists.apple.com/mailman/listinfo/cocoa-dev).

Assuming that the autorelease pool that should contain the NSBitmapImageRep has been released, either it is being retained by something else (what do you do with the bitmap?), you have identified a bug in NSBitmapImageRep, or NSBitmapImageRep doesn't conform to the expected pattern (its documentation should state this if so).

(I suggest all replies if any target cocoa-dev only, thanks and sorry for the cross posting)

-Shawn

On Sunday, April 21, 2002, at 07:23 AM, Ivan Gsmez wrote:

Thanks for yours answers, I was making a fuss on how releasing works, despite having read the documentation. Now I think I understand.
But I still have a matter about this question. As you explained me when executing this code:

GLvoid LoadTexture (GLuint* texture,NSString* fichImg)
{
NSBitmapImageRep *bitmap;
//other declarations...

bitmap = [NSBitmapImageRep imageRepWithContentsOfFile:fichImg];

//..... code.....

}

bitmap should be released. However when using MallocDebug, I discover that the NSBitmapImageRep is still there.

Thanks and sorry for disturbing you with my newie questions.

Saludos

Ivan Gsmez ------> Laf
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Debugging suggestion for memory leak?
  • Next by Date: Re: Debugging suggestion for memory leak?
  • Previous by thread: Re: Debugging suggestion for memory leak?
  • Next by thread: Compile times.
  • Index(es):
    • Date
    • Thread