Hello Jeff,

> I followed the example (I think!) and created the stream in DocBegin,
> used it RequestDone and freed it in DocEnd - which seems logical but in
> debugging I see that DocEnd comes before RequestDone.

DocBegin: fires at begin of the document
DocEnd: fire at end of the document
RequestDone: the component has done the request

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Friday, March 13, 2009, 22:18, Jeff Cook wrote:

> Thanks for that Piotr

> Indeed it is nil.  Obviously I done understand the order of firing of
> events.

> I followed the example (I think!) and created the stream in DocBegin,
> used it RequestDone and freed it in DocEnd - which seems logical but in
> debugging I see that DocEnd comes before RequestDone.

> Moving the freeing of the stream to RequestDone makes it work - but
> then why doesn't the example AV???

> -----Original Message-----
> From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
> On Behalf Of Piotr Da©øek
> Sent: Friday, 13 March 2009 10:51 a.m.
> To: ICS support mailing
> Subject: Re: [twsocket] AV trying to download from a website


> Probably you're freeing destination stream before using it. Put
> something like

> if HttpCli.RcvdStream=nil then
>       ShowMessage('RcvdStream is NIL, click OK to crash.');

> before "sl.LoadFromStream(HttpCli.RcvdStream);" to check whether that's
> the case.

> -- 
> Piotr Da©©ek
> enigmati...@interia.pl

> ----------------------------------------------------------------------

> Zyskaj tak jak ja 9% na lokacie w pierwszym miesiacu! 
> Sprawdz! http://link.interia.pl/f207b


> -- 
> To unsubscribe or change your settings for TWSocket mailing list please
> goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to