Re: [twsocket] TWSocketServer and backlog
On Nov 29, 2007, at 14:20, Arno Garrels wrote: Hard to tell, a good compromise is using TWSocketServer given any lengthy task is run in worker threads. I think separating socket IO work from other tasks by using worker threads for those tasks considered lengthy is the way to go. The definition of lengthy however is another story then. g The problem I have is that most of the processing is atomical to the client transaction, that is, -- 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
Re: [twsocket] ICS wiki templates (are there any?)
There are some templates but I normally copy the layout from some existing one that fits what I want to enter. /Fredrik. -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För [EMAIL PROTECTED] Skickat: den 30 november 2007 21:07 Till: twsocket@elists.org Ämne: [twsocket] ICS wiki templates (are there any?) Hello: I noticed that a lot of the components and their methods/properties wiki pages have basically the same layout and sections, and I was wondering (before I endeavor to start from scratch) if there was a template, or if it's just copy+paste from a previous one? -dZ. -- 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
[twsocket] ICS wiki templates (are there any?)
Hello: I noticed that a lot of the components and their methods/properties wiki pages have basically the same layout and sections, and I was wondering (before I endeavor to start from scratch) if there was a template, or if it's just copy+paste from a previous one? -dZ. -- 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
Re: [twsocket] Trying to do some old stuff
The last version of Turbo Pascal was 7 hence the first version of Delphi was 8 Darin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Baxter Sent: Friday, November 30, 2007 8:46 AM To: ICS support mailing Subject: Re: [twsocket] Trying to do some old stuff Thanks Francois.. I removed (rem'd out) references to the VC32 folders in the InsDel1.BAT file, so the first part looks like this.. SET DELPHI_PATH=C:\D1\DELPHI SET ICS_PATH=C:\D_32\ICS PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%DELPHI_PATH%\BIN echo /cwdcc.cfg echo /mdcc.cfg echo /r%DELPHI_PATH%\LIB dcc.cfg echo /u%DELPHI_PATH%\LIB dcc.cfg echo /i%DELPHI_PATH%\LIB dcc.cfg echo /E%ICS_PATH%\DELPHI1 dcc.cfg echo /O%ICS_PATH%\DELPHI1 dcc.cfg echo /I%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /I%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /I%ICS_PATH%\DELPHI\INTERNET dcc.cfg echo /R%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /R%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /R%ICS_PATH%\DELPHI\INTERNET dcc.cfg echo /U%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /U%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /U%ICS_PATH%\DELPHI\INTERNET dcc.cfg C:rem *** I also changed this to C:, it was D: hence the devide not ready errors earlier. cd %ICS_PATH%\delphi\internet call ..\..\delphi1\dcc1 clidemo if errorlevel 1 goto error And so on However, now I get this, when I run the batch file at... C:\D_32\ICS\Delphi1IcsDel1.bat Delphi Compiler Version 8.0 Copyright (c) 1983,95 Borland International CliDemo1.pas(56): Error 15: File not found (WSOCKET.DCU). WSocket; ^Compile error C:\D_32\ICS\Delphi1 I'm still not convinced it's picking up the correct version of Delphi, as the command line compiler signs itself as version 8.0 ? Though it is dated 1995... Still mildly confused. Cheers. Dave B. -Original Message- From: Francois PIETTE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 7:33 PM To: ICS support mailing Subject: Re: [twsocket] Trying to do some old stuff VC32 folder is for 32 bit. use VC folder in D1 path. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Dave Baxter [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, November 29, 2007 6:31 PM Subject: [twsocket] Trying to do some old stuff Hi All... This in regards to ICS V5. I think... I wish to do some legacy stuff, involving Delphi1 (!!) I'd like to implement a simple UDP conversation, to link an old Win16 app, to a new Win32 only driver via the LocalHost. (I sort of understand this way of doing things, I most defiantely do not understand Thunking, and my C is worse than not good.) Oh yes, this is for my own personal use, an old Win3.11 program I made many years ago, that uses DLLs to interface to hardware. Trouble is, WinNT (2000) does not allow that sort of thing, direct port access, and as it'd be good to have the app running on one machine, talking to ports etc on another one on my LAN, like I have later Win32 stuff, I thought of doing a UDP peer-2-peer thing. I already have UDP stuff working that way between other app's and PC's in the Win32 world. Trouble is, I no longer have readable sources, they are all on 5 1/4 360k floppies! And the only person I know who has old hardware like that, says that the disks are unreadable, Otherwise I'd rework it in D7. However I seem to be having a little trouble getting ICS installed into the D1 IDE. I edited the IcsDel1.bat file in \ICS\Delphi1 to represent the actual paths used on this system. But when I run it, it does this C:\D_32\ICS\Delphi1IcsDel1 The device is not ready.[ Huh ? ] Delphi Compiler Version 8.0 Copyright (c) 1983,95 Borland International C:\D_32\ICS\DELPHI\VC32\ICSDEFS.INC(443) C:\D_32\ICS\DELPHI\VC32\ICSDEFS.INC(443) C:\D_32\ICS\DELPHI\VC32\WSOCKBUF.PAS(255) C:\D_32\ICS\DELPHI\VC\WINSOCK.PAS(640) C:\D_32\ICS\DELPHI\VC32\WSOCKET.PAS(7378) CliDemo1.pas(279) CLIDEMO.DPR(12) Error 164: Duplicate resource identifier (CLIDEMO.RES). Compile error C:\D_32\ICS\Delphi1 I also have D7 installed on this PC, is that conflicting? Looking at the Version 8.0 announcement... So what have I done wrong? I did get it installed and working in D7 with no problem. D1 is fully functional on here too, there don't seem to be any clashes that I know of. Oh yes, the PC, Win XP Pro, all updates etc... The target machine run's Win2k. The IcsDel1.bat file is like this... @echo off REM * * * * * * * * * * * * * * * * * * * * * * * * * * * REM *
Re: [twsocket] Multi Thread error.
Hello Yvan, It is only one memory location because it is just a typecast, no converstion is done. Can you tell also what access violation it exacly is ? Are you calling sendStr from same thread context as the one where TWSocket is created ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, November 29, 2007, 23:16, Yvan Boutin wrote: Hello, We have a problem with an application that have 2 threads, when we try to send 2 different messages by 2 thread using 2 instances of twSocket V5.25. Each thread got their own socket connection. If the threads are sending at the same time the application crash with an access violation error. I am using the function sendstr and I notice the str parameter is declare as constant. Then it is convert to a pointer and send to the function PutDataInSendBuffer(Data : Pointer; Len : Integer); . It is possible that the compiler will use only one memory location for the variable str declare in sendstr? Did some one have seen the behaviour ? Thanks Yvan --- J'ai un problème lorsque que je retrouve dans une application 2 THREADS qui envoyer des messages dans des sockets différents. Si les threads envoient un message en même temps en utilisant 2 instances de tWSocket j'obtient un Access violation. J'utilise la fonction SENDSTR pour l'envois du message. Jai cette erreur a la ligne cWritten := oBuffer.Write(Data, Len); dans la fonction PutDataInSendBuffer(Data : Pointer; Len : Integer); Jai remarqué que la fonction sendStr déclare le ses paramètres avec une constance (const Str : String). Celui-ci est acheminé en pointeur a la fonction PutDataInSendBuffer. Est-ce possible que le compilateur garde quune seul espace de mémoire pour cette variable? Est-ce que quelqu'un à déjà vécu cette problématique? Merci Yvan Yvan Boutin [EMAIL PROTECTED] -- 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
Re: [twsocket] Trying to do some old stuff
Thanks Francois.. I removed (rem'd out) references to the VC32 folders in the InsDel1.BAT file, so the first part looks like this.. SET DELPHI_PATH=C:\D1\DELPHI SET ICS_PATH=C:\D_32\ICS PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%DELPHI_PATH%\BIN echo /cwdcc.cfg echo /mdcc.cfg echo /r%DELPHI_PATH%\LIB dcc.cfg echo /u%DELPHI_PATH%\LIB dcc.cfg echo /i%DELPHI_PATH%\LIB dcc.cfg echo /E%ICS_PATH%\DELPHI1 dcc.cfg echo /O%ICS_PATH%\DELPHI1 dcc.cfg echo /I%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /I%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /I%ICS_PATH%\DELPHI\INTERNET dcc.cfg echo /R%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /R%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /R%ICS_PATH%\DELPHI\INTERNET dcc.cfg echo /U%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /U%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /U%ICS_PATH%\DELPHI\INTERNET dcc.cfg C:rem *** I also changed this to C:, it was D: hence the devide not ready errors earlier. cd %ICS_PATH%\delphi\internet call ..\..\delphi1\dcc1 clidemo if errorlevel 1 goto error And so on However, now I get this, when I run the batch file at... C:\D_32\ICS\Delphi1IcsDel1.bat Delphi Compiler Version 8.0 Copyright (c) 1983,95 Borland International CliDemo1.pas(56): Error 15: File not found (WSOCKET.DCU). WSocket; ^Compile error C:\D_32\ICS\Delphi1 I'm still not convinced it's picking up the correct version of Delphi, as the command line compiler signs itself as version 8.0 ? Though it is dated 1995... Still mildly confused. Cheers. Dave B. -Original Message- From: Francois PIETTE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 7:33 PM To: ICS support mailing Subject: Re: [twsocket] Trying to do some old stuff VC32 folder is for 32 bit. use VC folder in D1 path. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Dave Baxter [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, November 29, 2007 6:31 PM Subject: [twsocket] Trying to do some old stuff Hi All... This in regards to ICS V5. I think... I wish to do some legacy stuff, involving Delphi1 (!!) I'd like to implement a simple UDP conversation, to link an old Win16 app, to a new Win32 only driver via the LocalHost. (I sort of understand this way of doing things, I most defiantely do not understand Thunking, and my C is worse than not good.) Oh yes, this is for my own personal use, an old Win3.11 program I made many years ago, that uses DLLs to interface to hardware. Trouble is, WinNT (2000) does not allow that sort of thing, direct port access, and as it'd be good to have the app running on one machine, talking to ports etc on another one on my LAN, like I have later Win32 stuff, I thought of doing a UDP peer-2-peer thing. I already have UDP stuff working that way between other app's and PC's in the Win32 world. Trouble is, I no longer have readable sources, they are all on 5 1/4 360k floppies! And the only person I know who has old hardware like that, says that the disks are unreadable, Otherwise I'd rework it in D7. However I seem to be having a little trouble getting ICS installed into the D1 IDE. I edited the IcsDel1.bat file in \ICS\Delphi1 to represent the actual paths used on this system. But when I run it, it does this C:\D_32\ICS\Delphi1IcsDel1 The device is not ready.[ Huh ? ] Delphi Compiler Version 8.0 Copyright (c) 1983,95 Borland International C:\D_32\ICS\DELPHI\VC32\ICSDEFS.INC(443) C:\D_32\ICS\DELPHI\VC32\ICSDEFS.INC(443) C:\D_32\ICS\DELPHI\VC32\WSOCKBUF.PAS(255) C:\D_32\ICS\DELPHI\VC\WINSOCK.PAS(640) C:\D_32\ICS\DELPHI\VC32\WSOCKET.PAS(7378) CliDemo1.pas(279) CLIDEMO.DPR(12) Error 164: Duplicate resource identifier (CLIDEMO.RES). Compile error C:\D_32\ICS\Delphi1 I also have D7 installed on this PC, is that conflicting? Looking at the Version 8.0 announcement... So what have I done wrong? I did get it installed and working in D7 with no problem. D1 is fully functional on here too, there don't seem to be any clashes that I know of. Oh yes, the PC, Win XP Pro, all updates etc... The target machine run's Win2k. The IcsDel1.bat file is like this... @echo off REM * * * * * * * * * * * * * * * * * * * * * * * * * * * REM * * REM * ICS - Internet Component Suite* REM * * REM * Delphi 1 automated construction V1.00 * REM * (c) 1997-2000 by Francois PIETTE * REM * http://www.rtfm.be/fpiette/indexuk.htm
Re: [twsocket] Trying to do some old stuff
Forget about the bacth file and follow instructions in readme.txt for Delphi 1. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Dave Baxter [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, November 30, 2007 2:46 PM Subject: Re: [twsocket] Trying to do some old stuff Thanks Francois.. I removed (rem'd out) references to the VC32 folders in the InsDel1.BAT file, so the first part looks like this.. SET DELPHI_PATH=C:\D1\DELPHI SET ICS_PATH=C:\D_32\ICS PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;%DELPHI_PATH%\BIN echo /cwdcc.cfg echo /mdcc.cfg echo /r%DELPHI_PATH%\LIB dcc.cfg echo /u%DELPHI_PATH%\LIB dcc.cfg echo /i%DELPHI_PATH%\LIB dcc.cfg echo /E%ICS_PATH%\DELPHI1 dcc.cfg echo /O%ICS_PATH%\DELPHI1 dcc.cfg echo /I%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /I%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /I%ICS_PATH%\DELPHI\INTERNET dcc.cfg echo /R%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /R%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /R%ICS_PATH%\DELPHI\INTERNET dcc.cfg echo /U%ICS_PATH%\DELPHI\VCdcc.cfg rem echo /U%ICS_PATH%\DELPHI\VC32 dcc.cfg echo /U%ICS_PATH%\DELPHI\INTERNET dcc.cfg C:rem *** I also changed this to C:, it was D: hence the devide not ready errors earlier. cd %ICS_PATH%\delphi\internet call ..\..\delphi1\dcc1 clidemo if errorlevel 1 goto error And so on However, now I get this, when I run the batch file at... C:\D_32\ICS\Delphi1IcsDel1.bat Delphi Compiler Version 8.0 Copyright (c) 1983,95 Borland International CliDemo1.pas(56): Error 15: File not found (WSOCKET.DCU). WSocket; ^Compile error C:\D_32\ICS\Delphi1 I'm still not convinced it's picking up the correct version of Delphi, as the command line compiler signs itself as version 8.0 ? Though it is dated 1995... Still mildly confused. Cheers. Dave B. -Original Message- From: Francois PIETTE [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 7:33 PM To: ICS support mailing Subject: Re: [twsocket] Trying to do some old stuff VC32 folder is for 32 bit. use VC folder in D1 path. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Dave Baxter [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, November 29, 2007 6:31 PM Subject: [twsocket] Trying to do some old stuff Hi All... This in regards to ICS V5. I think... I wish to do some legacy stuff, involving Delphi1 (!!) I'd like to implement a simple UDP conversation, to link an old Win16 app, to a new Win32 only driver via the LocalHost. (I sort of understand this way of doing things, I most defiantely do not understand Thunking, and my C is worse than not good.) Oh yes, this is for my own personal use, an old Win3.11 program I made many years ago, that uses DLLs to interface to hardware. Trouble is, WinNT (2000) does not allow that sort of thing, direct port access, and as it'd be good to have the app running on one machine, talking to ports etc on another one on my LAN, like I have later Win32 stuff, I thought of doing a UDP peer-2-peer thing. I already have UDP stuff working that way between other app's and PC's in the Win32 world. Trouble is, I no longer have readable sources, they are all on 5 1/4 360k floppies! And the only person I know who has old hardware like that, says that the disks are unreadable, Otherwise I'd rework it in D7. However I seem to be having a little trouble getting ICS installed into the D1 IDE. I edited the IcsDel1.bat file in \ICS\Delphi1 to represent the actual paths used on this system. But when I run it, it does this C:\D_32\ICS\Delphi1IcsDel1 The device is not ready.[ Huh ? ] Delphi Compiler Version 8.0 Copyright (c) 1983,95 Borland International C:\D_32\ICS\DELPHI\VC32\ICSDEFS.INC(443) C:\D_32\ICS\DELPHI\VC32\ICSDEFS.INC(443) C:\D_32\ICS\DELPHI\VC32\WSOCKBUF.PAS(255) C:\D_32\ICS\DELPHI\VC\WINSOCK.PAS(640) C:\D_32\ICS\DELPHI\VC32\WSOCKET.PAS(7378) CliDemo1.pas(279) CLIDEMO.DPR(12) Error 164: Duplicate resource identifier (CLIDEMO.RES). Compile error C:\D_32\ICS\Delphi1 I also have D7 installed on this PC, is that conflicting? Looking at the Version 8.0 announcement... So what have I done wrong? I did get it installed and working in D7 with no problem. D1 is fully functional on here too, there don't seem to be any clashes that I know of. Oh yes, the PC, Win XP Pro, all updates etc... The target machine run's Win2k. The IcsDel1.bat file is like this... @echo off REM * * * * * * * * * * * * * * * * * * * * * * * * * * * REM *