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