2 Replies - 2342 Views - Last Post: 12 October 2011 - 08:04 PM Rate Topic: -----

#1 and1dre   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 69
  • Joined: 30-March 09

Silly C++ error (pointer being freed was not allocated )

Posted 12 October 2011 - 12:17 PM

Hey guys,

I'm wondering if anyone can help me get rid of this error. I recently installed curlpp on my mac and I'm running (on xcode) one of the examples they provide just to see if the library works. However, I get this error when I run the program.

curlppexample(779) malloc: *** error for object 0x10051fb40: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Program received signal: “SIGABRT”.
sharedlibrary apply-load-rules all


Here is the example I'm using:
http://curlpp.org/in...s/47-example-00

I been googling for solutions, I found a few ways that people solved this problem but it did not work for me.


Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: Silly C++ error (pointer being freed was not allocated )

#2 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6260
  • View blog
  • Posts: 24,030
  • Joined: 23-August 08

Re: Silly C++ error (pointer being freed was not allocated )

Posted 12 October 2011 - 03:37 PM

That's EXACTLY the code you're using? I know curlpp works on Mac OS X, as I wrote and ran this on my Mac.
Was This Post Helpful? 0
  • +
  • -

#3 and1dre   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 69
  • Joined: 30-March 09

Re: Silly C++ error (pointer being freed was not allocated )

Posted 12 October 2011 - 08:04 PM

Thx for the reply.
Yup thats the exact code I'm using. Didn't change one line!

Weird :(
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1