W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Re: Segmentation fault after HTLibTerminate()

From: Sven Laaks <slaaks@informatik.uni-essen.de>
Date: Thu, 28 Jun 2001 20:00:45 +0200
Message-Id: <5.0.2.1.2.20010628195553.00a68768@pop3.norton.antivirus>
To: Thorsten Rinkenberger <rinkenberger@falkag.de>, "'www-lib@w3.org'" <www-lib@w3.org>
At 28.06.2001 18:35 +0100, Thorsten Rinkenberger wrote:
Hi,
inside of my terminate handler my program calls the function 
HTLibTerminate() at last.
After this I get a segmentation fault.

When I set the line HTLibTerminate() in comment my program works 
fine.
But regarding to the libwww documentation HTLibTerminate(); must be 
used.

The terminate handler works like this:
int RequestTerminateHandler(HTRequest* request, HTResponse* response, 
void* param, int status)
{
	HTRequest_delete(request);
	if (--remainingRequests <= 0)
	{
		HTProfile_delete();
		HTLibTerminate();
		exit(status);		
	}
	return HT_OK;
}

Does anyone have a clue?

Thorsten

Hi Thorsten.

the function HTProfile_delete() calls HTLibTerminate(), so you should 
not call it after it. (HTProfil.html)

Sven
Received on Thursday, 28 June 2001 14:01:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT