Hey I have been kicking myself with this problem for a week now and i was wondering if anyone can help. I am implementing cURL to fetch source code from a website. I am using fairly common code to do so. If I implement the functionality in my main.cpp, it works perfectly fine. when I create a class called url_handler to do it for me, it segfaults and returns really large sizes from the writer function. i literally copied and pasted the code from my main.cpp test to the url_handler.cpp so nothing is different. Any help would be greatly apprectiated. Here is my code: