cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sample sepheader.c ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 15 May 2006 00:48:12 +0200 (CEST)

On Fri, 12 May 2006, Arthur Hung wrote:

> Hi:
> My program is compiled at Visual Studio .Net 2003 on Windows XP. It runs
> well in sample.c (http://curl.haxx.se/libcurl/c/example.html). But it has
> error when running sepheader.c (get HTTP with headers separate). It compiles
> successfully. But when it runs, it meets error "Unhandled exception at
> 0x7c938fea in MyProgram.exe: 0xC0000005:

Yes, when using a DLL on window you can't pass a file handle from the app to
the DLL, you need to also set a CURLOPT_HEADERFUNCTION.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-05-15