W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: Problem registering link callback

From: Vaclav Barta <vbar@comp.cz>
Date: Thu, 02 Sep 1999 17:39:08 +0000
Message-ID: <37CEB63C.9B853556@comp.cz>
To: www-lib@w3.org
Matt Johnson wrote:
> 
> I've created a simple client application using HTProfile_newPreemptiveClient for the profile.
> 
> I've created a link callback function and registered it with 'HText_registerLinkCallback'.
> 
> The problem is that my callback function doesn't get called at all.  I'm using HTLoadToChunk to
> retrieve a web page.  Is there something else I need to do to parse this chunk?  I assumed it
> occured when downloading the page.
Well, callbacks are called during download, but the download
is asynchronous - it isn't complete (AFAIK it isn't even started)
by the time control returns from HTLoadToChunk. To get registered
requests going, you must call HTEventList_newLoop.

Disclaimer: I never tried to use HTProfile_newPreemptiveClient
nor HTLoadToChunk, so YMMV... :-)

	Bye
		Vasek
--
I have a web spider, too!
http://www.locus.cz/linkcheck/
Received on Friday, 3 September 1999 13:36:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:17 UTC