www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Curl HTTP segfault

reply skilion <andrea.9940 gmail.com> writes:
Hello everyone,
I have had this problem for a little while but I don't understand 
if I'm am not using correctly the HTTP struct, or if it is a 
library bug.

Hear is my code: http://pastebin.com/Pgx7bqum

I get a segfault on exit in the destructor calling 

Workarounds that I found are :
- call http.shutdown() before the end of main
- make http static
Feb 24 2016
parent reply Kagamin <spam here.lot> writes:
http://pastebin.com/JfPtGTD8 ?
Feb 24 2016
parent Kagamin <spam here.lot> writes:
Oops, no, looks like you can't put HTTP in a class, because it 
works with GC and is ref counted.
Feb 24 2016