> So this ruin everything... semi-multithreading won't make its role...
Please elaborate.
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.
So this ruin everything... semi-multithreading won't make its role...
- Original Message -
From: "Dan" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, April 20, 2005 5:45 PM
Subject: Re: Re[4]: [twsocket] Multithreaded http...
> Before
o Garrels
>
> - Original Message -
> From: "Francois Piette" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
> Sent: Monday, April 18, 2005 9:23 AM
> Subject: Re: Re[4]: [twsocket] Multithreaded http...
>
>
>>>> in On requestDone
pport mailing"
Sent: Wednesday, April 20, 2005 3:05 PM
Subject: Re: Re[4]: [twsocket] Multithreaded http...
I don't really know what to do with TMemoryStream... i need
TStringList ...
the site isn't that big, so it should be any problem... But i still don't
know
AIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, April 20, 2005 3:05 PM
Subject: Re: Re[4]: [twsocket] Multithreaded http...
I don't really know what to do with TMemoryStream... i need TStringList ...
the site isn't that big, so it should be any problem... But i s
;[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Monday, April 18, 2005 9:23 AM
Subject: Re: Re[4]: [twsocket] Multithreaded http...
> > > in On requestDone:
> > > THttpCli(Sender).RcvdStream
>
> > But how do i convert it to StringList ?
>
> Convert
Hello Ann,
> AStream.Seek(0, sofromBeginning); <--- Access Violation...
Probably the stream is invalid or not assigned. Try this:
if Assigned(AStream) then
AStream.Seek(0, soFromBeginning);
This does a check if the pointer contain nill or a value.
---
Rgds, Wilfried
http://www.mestdagh.biz
- Original Message -
From: "Arno Garrels" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Monday, April 18, 2005 7:52 AM
Subject: Re: Re[4]: [twsocket] Multithreaded http...
>Ann wrote:
> But how do i convert it to StringList ?
>OT, but t
> > in On requestDone:
> > THttpCli(Sender).RcvdStream
> But how do i convert it to StringList ?
Convert the received stream to a string list ? Arno told you:
AStream.Seek(0, sofromBeginning);
StringList.LoadFromStream(AStream);
But if you want to convert to a string list for analysis, i
> Anyway i still dont know how can i get da whole recived document
> OnRequestDone...
The document is stored in the stream you supplyed to RcvdStream property before
starting GetAsync.
> and can i put in there some procedures and they still will be async?
If your processing take significative t
"
> Sent: Sunday, April 17, 2005 10:38 PM
> Subject: Re[4]: [twsocket] Multithreaded http...
>
>
>> Hello Ann,
>>
>> in On requestDone:
>> THttpCli(Sender).RcvdStream
>>
>> ---
>> Rgds, Wilfried
>> http://www.mestdagh.biz
>>
But how do i convert it to StringList ?
- Original Message -
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Sunday, April 17, 2005 10:38 PM
Subject: Re[4]: [twsocket] Multithreaded http...
> Hello Ann,
>
> in On request
Wilfried Mestdagh wrote:
you are ritght because working with float is more CPU. But GetTickCount
roll over every 49 day... So without extra code the timeout can fail if
it is (by Murphy's law) just on the particular moment..
It's not that much more code.
NewTime := GetTickCount();
if NewTime > OldT
> you are ritght because working with float is more CPU. But GetTickCount
> roll over every 49 day... So without extra code the timeout can fail if
> it is (by Murphy's law) just on the particular moment..
Perhaps, but Microsoft's law says that patches are released once a
month that invariably re
; Sent: Sunday, April 17, 2005 9:05 PM
> Subject: Re: Re[2]: [twsocket] Multithreaded http...
>> > you are ritght because working with float is more CPU. But GetTickCount
>> > roll over every 49 day... So without extra code the timeout can fail if
>> > it is (by M
- Original Message -
From: "Marco van de Voort" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Sunday, April 17, 2005 9:05 PM
Subject: Re: Re[2]: [twsocket] Multithreaded http...
> > you are ritght because working with float is more CPU. But Get
> you are ritght because working with float is more CPU. But GetTickCount
> roll over every 49 day... So without extra code the timeout can fail if
> it is (by Murphy's law) just on the particular moment..
One can still use gettickcount then. One only has to combine it with your
technique to keep
> > What will happen when someone will change the system time?
>
> Then you are in trouble :(
Not if she use GetTickCount which returns the nb of milliseconds since the
system is up and running. Restart to zero after approximately 49 days. That
is perfectly suitable for timeout determination.
--
Hello Angus,
you are ritght because working with float is more CPU. But GetTickCount
roll over every 49 day... So without extra code the timeout can fail if
it is (by Murphy's law) just on the particular moment..
---
Rgds, Wilfried
http://www.mestdagh.biz
Sunday, April 17, 2005, 19:35, Angus Rob
Hello Arno,
> Sorry for being OT
No it is not OT, it is interesting since timeouts are often handled in
comm programs. I have no Delphi open, but I have some programs where I
have separate class to get me elap seconds, minutes etc. Something like
this (whitch will rollover after 136 years, so ple
> What will happen when someone will change the system time?
> What does (TDataTime-TDataTime) return? miliseconds?
Never use TDateTime to measure time durations in Delphi, instead use
GetTickCount which returns milliseconds since Windows booted as a
simple longword.
Angus
--
To unsubscribe
Wilfried Mestdagh wrote:
> You can also use GetTickCount, however overrun every 28 day's or so.
Sorry for being OT, but that's why I suggested a tiny little
helper function also for use in ICS, something like:
function CalcTicksAppart(const T1: LongWord): LongWord;
var
T2 : LongWord;
begin
Hello Ann,
Sorry I was incomplete :(
> What will happen when someone will change the system time?
Then you are in trouble :(
> What does (TDataTime - TDataTime) return? miliseconds?
From the top of my head:
var
BeginTime: TDateTime;
EndTime: TDateTime;
begin
AllocConsole; // open a cons
Hello Ann,
> What will happen when someone will change the system time?
> What does (TDataTime-TDataTime) return? miliseconds?
DateTime returns the day's elapsed since 30 dec 1899. eg: 2 is 1 jan
1900 00:00, 1.5 is 1 jan 1900 12:00 etc. Meaning the fractions ar jsut
the fractions of the day. It g
- Original Message -
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Sunday, April 17, 2005 3:47 PM
Subject: Re: [twsocket] Multithreaded http...
> You need:
> - A TStringList with all URL to get, call it UrlToGetList
Understoo
> :-( I cant handle it ;- I dont really understand the HTTPAsy example
> ;-( Could anybody help me?
HttpAsy is a simple application which take a list of URL and either get
those URL one after the other (sequencially) or get all at the same time
using a component for each one.
> For example i
the end
> of the list ...
> Could anybody help me please... Im really new in delphi and i really need
> it...
> Desperaited Ann...
> - Original Message -
> From: "Francois Piette" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
delphi and i really need
it...
Desperaited Ann...
- Original Message -
From: "Francois Piette" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Thursday, April 14, 2005 9:58 AM
Subject: Re: [twsocket] Multithreaded http...
> > because there are a
upport mailing"
Sent: Wednesday, April 13, 2005 11:09 PM
Subject: Re: [twsocket] Multithreaded http...
>
> - Original Message -
> From: "Francois PIETTE" <[EMAIL PROTECTED]>
> To: "ICS support mailing"
> Sent: Wednesday, April 13, 2005 10:13
Hmm... i checked it out, and it doesnt work correctly ;-( When im trying
to
get http://www.google.com with Display Data checked it doesnt show any
data... ?
"Start item 1: http://www.google.com
Item 1 Data
Finished Item 1 StatusCode = 0 http://www.google.com Error = 0
All Finished"
Is there somet
- Original Message -
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, April 13, 2005 10:13 PM
Subject: Re: [twsocket] Multithreaded http...
> > I'm kinda new in Delphi but i really really need to write some
&g
- Original Message -
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, April 13, 2005 10:13 PM
Subject: Re: [twsocket] Multithreaded http...
> There is a demo that do almost what you mant to do: HttpAsy. You can enter
> I'm kinda new in Delphi but i really really need to write some
> application... My application would have some TStringList where it would
> contain urls... then i wouldlike to process this list in some threads...
for
> example 100 threads... the thread would get the content of url, run some
> pro
Do you really need threads? ICS is asynchronous so multiple components can
work in a single thread without blocking each other.
Dan
- Original Message -
From: "Flash Thunder" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, April 13, 2005 8:31 PM
Subject: [twsocket] Multithrea
Hi guys;-)
I'm kinda new in Delphi but i really really need to write some
application... My application would have some TStringList where it would
contain urls... then i wouldlike to process this list in some threads... for
example 100 threads... the thread would get the content of url, run some
p
35 matches
Mail list logo