Results 1 to 1 of 1

Thread: cURL memory violation?

Hybrid View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    cURL memory violation?

    I downloaded http://curl.haxx.se/download.html win32 - generic and it compiles fine but it gives a memory violation when I use it.

    Code:
    #include "stdafx.h"
    #include <string>
    
    #include "curl/curl.h"
    #pragma comment(lib, "lib/libcurl.a")
    #pragma comment(lib, "lib/libcurldll.a")
    
    using namespace std;
    
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
        return TRUE;
    }
    
    
    void Func()
    {
    	CURL * c = curl_easy_init();
    }
    It gives the error when I run it. I am going to try the version built for MSVC++ but anyone know why it gives a violation?

    The one built for MSVC++ has a problem with zlib.


    For cURL being so easy it is a pain to get working...


    Well I got the MSVC++ one working but I don't want to have to include a 500kb dll with my project...
    Last edited by high6; Aug 31st, 2008 at 02:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width