Thread View: borland.public.cppbuilder.internet.socket
7 messages
7 total messages
Started by Joe Pasquariello
Wed, 12 Dec 2007 02:25
IdTCPServer Exception
Author: Joe Pasquariello
Date: Wed, 12 Dec 2007 02:25
Date: Wed, 12 Dec 2007 02:25
18 lines
1616 bytes
1616 bytes
Hello,
I'm just starting with Indy10 on C++ 2007, trying to build a simple TCP
client and server. The Execute() event handler for the server is shown
below. It's trying to simply read a string from the connection and echo it
back to the client. As soon as the client connects to the server, an access
violation occurs in the call of ReadLn(). The error message says "Read of
address 0x0000008C". Can anyone help me past this first hurdle? Thanks.
Joe
void __fastcall TForm1::IdTCPServer1Execute(TIdContext *AContext)
{
AnsiString Text = AContext->Connection->IOHandler->ReadLn();
AContext->Connection->IOHandler->WriteLn( Text );
MessageCountNumLab->Value += 1;
MessageCountNumLab->RightText = Text;
}
Re: IdTCPServer Exception
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Dec 2007 17:56
Date: Wed, 12 Dec 2007 17:56
12 lines
1379 bytes
1379 bytes
"Joe Pasquariello" <joep@fenway.com> wrote in message news:475f46a6$1@newsgroups.borland.com... > I'm just starting with Indy10 on C++ 2007 Are you using the version of Indy 10 that shipped with CB2007? If so, then that is an old version. Try upgrading to the latest from Indy's website and see if the problem continues. Gambit
Re: IdTCPServer Exception
Author: Joe Pasquariello
Date: Wed, 12 Dec 2007 19:56
Date: Wed, 12 Dec 2007 19:56
44 lines
2385 bytes
2385 bytes
Hi Remy, I am using 10.1.5, the version delivered with RAD2007. Unfortunately, I still don't know how to update to a new version. In an earlier thread, you said: "All I can say is to uninstall the old packages from the IDE, then physically remove the files from the machine, then you can compile and install the new packages." I understand how to uninstall a package. Can you say more about which files need to deleted, and how to build the new packages? Do I simply open the "bdsproj" projects in the "Lib" folder that are in Indy10 distribution? I installed the DelphiWin32 personality, but not DelphiDotNet, and when I try to open those projects, I get a message that I need the DelphiDotNet personality. Does that mean I need to uninstall RAD2007 and start over? If there is some way that I can purchase some support from Atozed, I would be willing to do that. It seems so strange that you are doing all of this great work to improve Indy, but there are no instructions to install new versions. Joe "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4760234c$1@newsgroups.borland.com... > > "Joe Pasquariello" <joep@fenway.com> wrote in message > news:475f46a6$1@newsgroups.borland.com... > > > I'm just starting with Indy10 on C++ 2007 > > Are you using the version of Indy 10 that shipped with CB2007? If so, then > that is an old version. Try upgrading to the latest from Indy's website and > see if the problem continues. > > > Gambit > >
Re: IdTCPServer Exception
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Dec 2007 20:14
Date: Wed, 12 Dec 2007 20:14
46 lines
2725 bytes
2725 bytes
"Joe Pasquariello" <joep@fenway.com> wrote in message news:47603cda$1@newsgroups.borland.com... > I am using 10.1.5, the version delivered with RAD2007. Then you are using a very old version. 10.2.3 is the currently available build. There have been a lot of internal changes between 10.1.5 and 10.2.3. So whatever you are hitting may not even be an issue anymore. Why it was happening in the first place, I cannot say without seeing a stack trace leading up to the exception. > I understand how to uninstall a package. Can you say more about > which files need to deleted Look for all of the "Id*" files in CodeGear's folder hierarchy. > I installed the DelphiWin32 personality, but not DelphiDotNet, > and when I try to open those projects, I get a message that I need > the DelphiDotNet personality. Because you are opening the .NET version of the files. Go into the System, Core, and Protocols subfolders and compile the IndySystem, IndyCore, and IndyProtocols DPK projects individually. Do not compile the ones that have "Net" at the end of their filenames, as those are for .NET. The Win32 versions do not have "Net" at the end. > Does that mean I need to uninstall RAD2007 and start over? No. > If there is some way that I can purchase some support from Atozed Indy Experts http://www.atozed.com/indy/Experts/index.EN.aspx But why pay for something you can get for free? ;-) > It seems so strange that you are doing all of this great work to > improve Indy, but there are no instructions to install new versions. Because noone has any time to write them. Gambit
Re: IdTCPServer Exception
Author: Joe Pasquariello
Date: Wed, 12 Dec 2007 22:05
Date: Wed, 12 Dec 2007 22:05
84 lines
3973 bytes
3973 bytes
Using DelphiWin32, I was able to open and build the 3 DPK files listed below. I chose the "120" files over the "100" and "110" versions. Was that the correct decision? System \ IndySystem120.dpk Core \ IndyCore120.dpk Protocols \ dclIndyProtocols120.dpk I also was able to open and build these 2 additional DPK files. Was that necessary? Core \ dclIndyCore120.dpk Protocols \ dclIndyProtocols120.dpk Is it sufficient to delete the files from the Lib\Indy10 and Include\Indy10 folders in the BDS\5.0 directory structure and leave the Indy9 folders alone? Once I delete the files from the BDS\5.0 directories, do I need to copy files from the Indy10 build structure to the BDS\5.0 structure, or does that happen automatically I "install" the new package? When I right-clicked on the "bpl" file in the Delphi project window, I see there is an "Install" menu item. Is that how I install the newly built packages? Finally, I've never used Delphi before. Do C++ header files get created during the package installation? Sorry for all the questions. Teach a man to fish... Joe dsproj "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4760433e$1@newsgroups.borland.com... > > "Joe Pasquariello" <joep@fenway.com> wrote in message > news:47603cda$1@newsgroups.borland.com... > > > I am using 10.1.5, the version delivered with RAD2007. > > Then you are using a very old version. 10.2.3 is the currently available > build. There have been a lot of internal changes between 10.1.5 and 10.2.3. > So whatever you are hitting may not even be an issue anymore. Why it was > happening in the first place, I cannot say without seeing a stack trace > leading up to the exception. > > > I understand how to uninstall a package. Can you say more about > > which files need to deleted > > Look for all of the "Id*" files in CodeGear's folder hierarchy. > > > I installed the DelphiWin32 personality, but not DelphiDotNet, > > and when I try to open those projects, I get a message that I need > > the DelphiDotNet personality. > > Because you are opening the .NET version of the files. > > Go into the System, Core, and Protocols subfolders and compile the > IndySystem, IndyCore, and IndyProtocols DPK projects individually. Do not > compile the ones that have "Net" at the end of their filenames, as those are > for .NET. The Win32 versions do not have "Net" at the end. > > > Does that mean I need to uninstall RAD2007 and start over? > > No. > > > If there is some way that I can purchase some support from Atozed > > Indy Experts > http://www.atozed.com/indy/Experts/index.EN.aspx > > But why pay for something you can get for free? ;-) > > > It seems so strange that you are doing all of this great work to > > improve Indy, but there are no instructions to install new versions. > > Because noone has any time to write them. > > > Gambit > >
Re: IdTCPServer Exception
Author: Remy Lebeau (TeamB)
Date: Wed, 12 Dec 2007 23:11
Date: Wed, 12 Dec 2007 23:11
53 lines
2910 bytes
2910 bytes
"Joe Pasquariello" <joep@fenway.com> wrote in message news:47605b36$1@newsgroups.borland.com... > System \ IndySystem120.dpk > Core \ IndyCore120.dpk > Protocols \ dclIndyProtocols120.dpk I assume you meant "IndyProtocols120" instead? > I also was able to open and build these 2 additional DPK files. > Was that necessary? If you want to install the Indy components into the IDE's palette, yes. Those are Indy's design-time packages. > Is it sufficient to delete the files from the Lib\Indy10 and > Include\Indy10 > folders in the BDS\5.0 directory structure and leave the Indy9 folders > alone? Should be, as long as you make sure that the Indy9 folder does not appear in front of your new Indy10 folder in a project's Path settings. Otherwise, the compiler will likely pull in the wrong files and cause all kinds of problems. > Once I delete the files from the BDS\5.0 directories, do I need to > copy files from the Indy10 build structure to the BDS\5.0 structure Not strictly required, but probably not a bad idea. Let configuration that way, since everything is already set up for Indy 10 that shipped with the IDE. > does that happen automatically I "install" the new package? No. Doing that will put the files in other locations. > When I right-clicked on the "bpl" file in the Delphi project window, > I see there is an "Install" menu item. Is that how I install the newly > built packages? Yes. > Finally, I've never used Delphi before. Do C++ header files get > created during the package installation? They get created during the compiling stage, not the installing stage, provided the "Generate all C++ files" setting is enabled in the Project Options of each package. I don't know if that setting is enabled by default. I'm not the one who makes the package files. Gambit
Re: IdTCPServer Exception
Author: Joe Pasquariello
Date: Thu, 13 Dec 2007 01:34
Date: Thu, 13 Dec 2007 01:34
72 lines
3578 bytes
3578 bytes
The RAD2007 directory structure contains the Indy10-related folders listed below. I have a ways to go to figure out how to get all of the correct files from the various folders in the Indy10 install directory structure to this one. Help \ Doc \ Indy Include \ Indy10 Lib \ Indy10 Lib \ Debug \ Indy10 Source \ Indy \ Indy10 \ Core Source \ Indy \ Indy10 \ Protocols Source \ Indy \ Indy10 \ System "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:47606af2$1@newsgroups.borland.com... > > "Joe Pasquariello" <joep@fenway.com> wrote in message > news:47605b36$1@newsgroups.borland.com... > > > System \ IndySystem120.dpk > > Core \ IndyCore120.dpk > > Protocols \ dclIndyProtocols120.dpk > > I assume you meant "IndyProtocols120" instead? > > > I also was able to open and build these 2 additional DPK files. > > Was that necessary? > > If you want to install the Indy components into the IDE's palette, yes. > Those are Indy's design-time packages. > > > Is it sufficient to delete the files from the Lib\Indy10 and > > Include\Indy10 > > folders in the BDS\5.0 directory structure and leave the Indy9 folders > > alone? > > Should be, as long as you make sure that the Indy9 folder does not appear in > front of your new Indy10 folder in a project's Path settings. Otherwise, > the compiler will likely pull in the wrong files and cause all kinds of > problems. > > > Once I delete the files from the BDS\5.0 directories, do I need to > > copy files from the Indy10 build structure to the BDS\5.0 structure > > Not strictly required, but probably not a bad idea. Let configuration that > way, since everything is already set up for Indy 10 that shipped with the > IDE. > > > does that happen automatically I "install" the new package? > > No. Doing that will put the files in other locations. > > > When I right-clicked on the "bpl" file in the Delphi project window, > > I see there is an "Install" menu item. Is that how I install the newly > > built packages? > > Yes. > > > Finally, I've never used Delphi before. Do C++ header files get > > created during the package installation? > > They get created during the compiling stage, not the installing stage, > provided the "Generate all C++ files" setting is enabled in the Project > Options of each package. I don't know if that setting is enabled by > default. I'm not the one who makes the package files. > > > Gambit > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads