[twsocket] Httpserver and threads

2005-08-16 Thread Tom York
I am making a small server to display a page of images. In the getdocument method, I call a procedure passing all of the flags to my procedure ShowThumb(Sender, Client, Flags). What is happening is that the images are being displayed on the page, but they are coming out as garbage

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Francois Piette
://www.overbyte.be - Original Message - From: Tom York [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 4:36 PM Subject: [twsocket] Httpserver and threads I am making a small server to display a page of images. In the getdocument method, I

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Tom York
, '', 'image/jpeg', ''); end; - Original Message - From: Francois Piette [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 9:43 AM Subject: Re: [twsocket] Httpserver and threads First make this work single threaded, starting with ICS sample

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Francois Piette
I do not want multithreading. I assume that each connection is a thread, no? No ! ICS is asynchronous and event driven. It doesn't block when a user is being serviced. The images are broken, partially displayed, the image is displayed as text characters. Are you using the latest ICS

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Francois PIETTE
Message - From: Tom York [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 5:15 PM Subject: Re: [twsocket] Httpserver and threads I just downloaded and installed the latest, which I was using to start with. It still draws garbage, image as text, etc

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Tom York
I can use Windows explorer and look at every image just fine. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 11:06 AM Subject: Re: [twsocket] Httpserver and threads Does my code look okay

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Tom York
- Original Message - From: Tom York [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 11:40 AM Subject: Re: [twsocket] Httpserver and threads I can use Windows explorer and look at every image just fine. - Original Message - From

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Francois PIETTE
: Tuesday, August 16, 2005 6:40 PM Subject: Re: [twsocket] Httpserver and threads I can use Windows explorer and look at every image just fine. - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 11:06 AM

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Francois PIETTE
. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Tom York [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 6:46 PM Subject: Re: [twsocket] Httpserver and threads I should also add that if I hit refresh, I get very odd

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Wilfried Mestdagh
Hello Tom, I do not want multithreading. I assume that each connection is a thread, no? No it is not. ICS components are running in the thread they are created in, also the sockets. This is because non blocking is used. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Wilfried Mestdagh
Hello Tom, To try to debug you can make the document as short as possilbe (only some minimum of text and only 1 small image). Also you can try to make the connection trough SocketSpy, then you can see the data sent by the server and eventually make diagnositics out of it. If you dont get wise on

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Tom York
: [twsocket] Httpserver and threads Hello Tom, To try to debug you can make the document as short as possilbe (only some minimum of text and only 1 small image). Also you can try to make the connection trough SocketSpy, then you can see the data sent by the server and eventually make

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Dan
- Original Message - From: Tom York [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 16, 2005 3:48 PM Subject: Re: [twsocket] Httpserver and threads I do not want multithreading. I assume that each connection is a thread, no? The images are broken