| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 967 online users. » 1 Member(s) | 963 Guest(s) Applebot, Bing, Google, fillmelscirla1982
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 308
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 241
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 262
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 571
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 311
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 737
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 288
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,389
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 426
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 1,093
|
|
|
| sending stringlist as chunks |
|
Posted by: Madammar - 03-18-2018, 11:11 AM - Forum: Indy
- Replies (2)
|
 |
i have got tstringlist with 1000 lines that i want to send its text from idtcpserver to a clientside
i did not want to send this stringlist as memorystream i want to avoid using memorystream at all i will use writeln to write this stringlist.text
but i am trying to find a way to separate this string list and send it content separately
as example sending each 100 lines until i reach the end of lines
but couldn't figure out a way in coding to do this purpose
|
|
|
| Issue installing Indy10 with Delphi 7 and Windows 7 |
|
Posted by: Carlos - 03-16-2018, 06:09 PM - Forum: Indy
- No Replies
|
 |
I'm installing Delphi 7 and some components, as Indy 10, from an old computer to a new one. Manually, I mean.
In the old computer dclIndycore70 and dclIndyProtocols70 packages are installed, so I first tried to install dclIndycore70 package in the new computer.
At some point, it tries to process IndySystem70 package, the editor window appears for it, with the line "IdWship6 in 'IdWship6.pas';" signaled (or selected) as an error but no message error appears. 'IdWship6.pas' file is in "C:\Delphi7-Componentes\Indy10_5422\Lib\System" folder as IndySystem70 package is, so I suppose the error is not "file not found".
The Search Path used is:
C:\Delphi7-Componentes\Indy10_5422\Lib\Core;C:\Delphi7-Componentes\Indy10_5422\Lib\System;C:\Delphi7-Componentes\Indy10_5422\Lib\Protocols
I'd appreciate some help. I'm really stuck. Thank you.
Carlos
Just posted the message, I found the answer.... in the Indy 10 installation Instructions. So I'm very sorry for having skipped this step.
If someone feels the need to skip the installation documentation, the packages to install are, for Delphi 7:
IndySystem70, IndyCore70, IndyProtocols70, dclIndyCore70, dclIndyProtocols70
So have a look at: http://www.indyproject.org/Sockets/Docs/...on.EN.aspx
Thank you, anyway
Carlos
|
|
|
| Reading returned data via TIdTcpClient? |
|
Posted by: BosseB - 03-15-2018, 06:53 PM - Forum: Indy
- Replies (1)
|
 |
I am always struggling with this whenever I try to throw together a TCP client application...
I can easily send commands to the server (in this case a WiFi IoT module.
I know it responds to the command but for the life of me I cannot get the reply.
The platform I use is 64 bit FreePascal 3.0.4 + Lazarus 1.8.0 with the IndyLaz package installed
THe function that fails to work as I hoped looks like this (FComm is a TIdTcpClient object):
Code: function TConfigCommHandler.GetItem(Cmd: TIdBytes; var Data: TIdBytes): boolean;
begin
Result := false;
SetLength(Cmd, Length(Cmd) + 1);
Cmd[Length(Cmd)-1] := ETX;
FComm.IOHandler.ReadTimeout := 2000;
try
FComm.IOHandler.Write(Cmd);
SetLength(Data, 0);
FComm.IOHandler.ReadBytes(Data, -1, false); //<== Is this way correct?
Result := Length(Data) > 0;
if Result then
begin
if Data[Length(Data)-1] <> ETX then //Received packet should end in ETX...
begin
FLastError := 'Terminating ETX missing!';
Result := false;
end
else
SetLength(Data, Length(Data) -1); //Remove trailing ETX
end
else
FLastError := 'No data received within timeout!';
except
on E: Exception do
begin
Result := false;
FLastError := 'Exception: ' + E.Message;
Exit;
end;
end;
end;
For example what happens if this ReadBytes function does not get all of the incoming bytes?
I try to detect it via the ETX check but since the data is only at maximum some 25-40 bytes (not possible to know beforehand) I thought it highly unlikely it would be split between packets...
I found the cause regarding this specific problem:
The server did not add the trailing ETX to replies, so all of them were thrown away.
I modified the server code to always add the ETX to all outgoing messages.
But I have a follow-up question:
How can the PC application be made such that it will catch and display all incoming data without first sending a command?
For example spontaneous messages from the device are also interesting...
|
|
|
| Validating files before upload |
|
Posted by: davenovo - 03-14-2018, 11:13 PM - Forum: IntraWeb General Discussion
- Replies (10)
|
 |
Hello,
How do I validate files before they are uploaded. i.e. if I want to only allow files that have the word 'banana' somewhere in the filename, how do I check that before all the files are uploaded?
If the validation fails, how do I then cancel the upload? If multiple files are selected, and only one fails validation, can I just abort the upload of that one file?
|
|
|
| Historic IW Forum Content |
|
Posted by: DanBarclay - 03-14-2018, 06:52 PM - Forum: IntraWeb General Discussion
- Replies (10)
|
 |
It's a shame we can't maintain/move the content from the EMB IW forum. There are a lot of very helpful threads (google search works even if EMB search doesn't <g>).
FWIW, I still use that information, and when first starting with IW I probably would have given up without it. Other new users will face the same issues since documentation doesn't (can't) keep up.
I can write something that crawls the forum (relatively straightforward compared to some things I've done), but I'm not going to launch into something like that without permission to use the content. OTOH, if they would give permission to use the content then they could probably extract it from their server database pretty easily.
What are the options for retaining that info?
Other thoughts?
Dan
|
|
|
| New Forums! |
|
Posted by: kudzu - 03-13-2018, 02:29 PM - Forum: COSMOS
- Replies (6)
|
 |
Welcome to our new forums! As they are brand new, do not be startled by lack of posts. We are here and waiting for users to migrate from the chat and github tracker, so feel free to post away.
|
|
|
| Novos fóruns de IntraWeb! |
|
Posted by: kudzu - 03-12-2018, 10:06 PM - Forum: IntraWeb Dúvidas Gerais
- Replies (1)
|
 |
Como os fóruns do Embarcadero não são confiáveis e muitas vezes são desconectados por longos períodos de tempo, criamos fóruns na web para a IntraWeb.
Sinta-se livre para se juntar a nós e espalhar a palavra.
|
|
|
| New IntraWeb 17 forums! |
|
Posted by: kudzu - 03-12-2018, 10:03 PM - Forum: IntraWeb 17
- No Replies
|
 |
As of mid March 2018 we have transitioned to the web forums, so do not be alarmed by the lack of older messages.
|
|
|
|