• 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: warning: C++ constructors and destructors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: C++ constructors and destructors


  • Subject: Re: warning: C++ constructors and destructors
  • From: Scott Ribe <email@hidden>
  • Date: Sat, 18 Feb 2006 08:00:13 -0700
  • Thread-topic: warning: C++ constructors and destructors

> My application works anyway,

One more comment... This often happens for simple C++ classes because merely
filling all their members with 0s results in a consistent, useable object.
But it's just an accident. More complex classes will fail, and a change to
this class' constructor, for instance to allocate a pointer to some memory
or other instance,  can cause a failure, and of course the destructor not
being called will often lead to at least memory leaks.


--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


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

This email sent to email@hidden

References: 
 >warning: C++ constructors and destructors (From: Simon BrĂ©e <email@hidden>)

  • Prev by Date: Re: Resizing an image in a thread
  • Next by Date: Apple Sample directly accesses ivar. Heresy?
  • Previous by thread: Re: warning: C++ constructors and destructors
  • Next by thread: Re: warning: C++ constructors and destructors
  • Index(es):
    • Date
    • Thread