• 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: C++ std::string tries to free() a not allocated pointer ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ std::string tries to free() a not allocated pointer ?


  • Subject: Re: C++ std::string tries to free() a not allocated pointer ?
  • From: "Paul Sanders" <email@hidden>
  • Date: Thu, 19 Nov 2009 15:26:44 -0000

What does your destructor do?  Your copy constructors / assignment operators
appear to copy the pointer, rather than making a copy of the data pointed
to, so perhaps you end up freeing the pointer twice (once for each SQLString
object destroyed).

Paul Sanders.



 _______________________________________________
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: C++ std::string tries to free() a not allocated pointer ?
      • From: Howard Moon <email@hidden>
References: 
 >Re: C++ std::string tries to free() a not allocated pointer ? (From: Robert Schwalbe <email@hidden>)
 >Re: C++ std::string tries to free() a not allocated pointer ? (From: Jean-Denis Muys <email@hidden>)

  • Prev by Date: Re: C++ std::string tries to free() a not allocated pointer ?
  • Next by Date: Re: C++ std::string tries to free() a not allocated pointer ?
  • Previous by thread: Re: C++ std::string tries to free() a not allocated pointer ?
  • Next by thread: Re: C++ std::string tries to free() a not allocated pointer ?
  • Index(es):
    • Date
    • Thread