Re: Re[4]: [twsocket] Multithreaded http...

2005-04-21 Thread Francois Piette
> 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.

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Ann
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

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Arno Garrels
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

Re: [twsocket] Multithreaded http...

2005-04-20 Thread Marcello Vezzelli
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

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Dan
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

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Ann
;[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

Re[6]: [twsocket] Multithreaded http...

2005-04-20 Thread Wilfried Mestdagh
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

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-20 Thread Ann
- 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

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-18 Thread Francois Piette
> > 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

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-18 Thread Francois Piette
> 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

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Arno Garrels
" > 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 >>

Re: Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
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

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Steve Williams
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

Re[3]: [twsocket] Multithreaded http...

2005-04-17 Thread Angus Robertson - Magenta Systems Ltd
> 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

Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
; 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

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
- 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

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Marco van de Voort
> 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

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Francois PIETTE
> > 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. --

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
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

Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
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

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Angus Robertson - Magenta Systems Ltd
> 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

Re: Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Arno Garrels
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

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
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

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
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

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
- 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

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Francois PIETTE
> :-( 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

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
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"

Re: [twsocket] Multithreaded http...

2005-04-17 Thread Ann
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

Re: [twsocket] Multithreaded http...

2005-04-14 Thread Francois Piette
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

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Dan
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

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Flash Thunder
- 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

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Flash Thunder
- 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

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Francois PIETTE
> 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

Re: [twsocket] Multithreaded http...

2005-04-13 Thread Dan
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

[twsocket] Multithreaded http...

2005-04-13 Thread Flash Thunder
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