curl-library
R: run time error with test_curl.exe
Date: Wed, 7 Nov 2012 12:42:14 +0100
I send again this mail because I sent it half an hour ago before my
confirmation of subscription.
Sorry.
Thanks fo attention;
Donato
Da: Donato Settembre [mailto:dsettembre_at_gmail.com]
Inviato: mercoledì 7 novembre 2012 12:11
A: 'curl-library_at_cool.haxx.se'
Oggetto: run time error with test_curl.exe
I succesfully installed Curl 7.28.0 on my Window7 (64 bit) PC, according
with the content of Andrey Jacab’s “Using libcurl with SSH support in Visual
Studio 2010”.
For testing porpoise I’m using the same proposed test program included in
the foresaid guide.
All went fine until I compiled end run the test program in debug mode.
But, when I compiled in “release mode” , the compiling process goes
successfully, but the execution fails immediately, with the following
message:
Unhandled exception at 0x772fe3be in test_curl.exe: 0xC0000005: Access
violation reading location 0x520b8a27.
(Original message in Italian: “Eccezione non gestita a 0x772fe3be in
test_curl.exe: 0xC0000005: Violazione di accesso nella lettura del percorso
0x520b8a27”).
According with Visual Studio 2010 displayed info, the error is related to Ms
“free.c” function when it attempts to free a block in the heap;
Only for timesaving porpoise, here is free,c code:
==== CODE START
============================================================================
============================
/***
*free.c - free an entry in the heap
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines the following functions:
* free() - free a memory block in the heap
*
****************************************************************************
***/
#include <cruntime.h>
#include <malloc.h>
#include <winheap.h>
#include <windows.h>
#include <internal.h>
#include <mtdll.h>
#include <dbgint.h>
#include <rtcsup.h>
/***
*void free(pblock) - free a block in the heap
*
*Purpose:
* Free a memory block in the heap.
*
* Special ANSI Requirements:
*
* (1) free(NULL) is benign.
*
*Entry:
* void *pblock - pointer to a memory block in the heap
*
*Return:
* <void>
*
****************************************************************************
***/
void __cdecl _free_base (void * pBlock)
{
int retval = 0;
if (pBlock == NULL)
return;
RTCCALLBACK(_RTC_Free_hook, (pBlock, 0));
retval = HeapFree(_crtheap, 0, pBlock);
è if (retval == 0)
{
errno = _get_errno_from_oserr(GetLastError());
}
}
==== CODE END
============================================================================
============================
The symbol => Included in the free.c code (put by Visual Studio) shows the
next instruction that will be performed when the thread will be returned by
current function.
Any help?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-07