| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
License registration or u...
Forum: IntraWeb General Discussion
Last Post: sglodek
3 hours ago
» Replies: 0
» Views: 10
|
Button options on modal w...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
10-23-2025, 12:29 AM
» Replies: 3
» Views: 120
|
Lazarus and Bootstrap
Forum: IntraWeb General Discussion
Last Post: deridan
10-22-2025, 03:26 AM
» Replies: 2
» Views: 80
|
Reinstalling CGDevTools f...
Forum: CGDevTools
Last Post: hsbelli
10-21-2025, 04:30 PM
» Replies: 8
» Views: 1,217
|
iwbs4checkbox
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
10-20-2025, 11:15 PM
» Replies: 7
» Views: 589
|
First beta version of CGD...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
10-19-2025, 01:51 AM
» Replies: 3
» Views: 297
|
Win64 designtime packages
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
10-19-2025, 01:50 AM
» Replies: 2
» Views: 366
|
Position Issue with iwMod...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
10-19-2025, 01:49 AM
» Replies: 8
» Views: 547
|
IntraWeb 16.1.7 is out!
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
10-19-2025, 12:12 AM
» Replies: 1
» Views: 131
|
Preventing "Default" Focu...
Forum: IntraWeb General Discussion
Last Post: takyon_dg
10-16-2025, 03:20 PM
» Replies: 0
» Views: 95
|
|
|
| Delphi 7 and Internet comunication |
|
Posted by: Goultek - 08-07-2018, 12:20 AM - Forum: Indy
- Replies (3)
|
 |
hello guys
I have been searching on google for the past weeks to no avail
Can someone share a link or a complete code to a working example of Indy(or other) server/client code which will allow me to send data from one IP to another IP. The chat example which comes with D7 seems to only work when run on localhost, all other attempts have failed with the D7 chat example, I can't even connect from one computer to another within the same house, this is really getting the best of me... grunts...
I need to send any kind of data, text, raw info (bytes, integers and whatnot) and of course files
This all should be for a server hosted anywhere, should it be on a private computer or a cloud (clients are only private owners) This to download updates, program activation and data... The server must be able to handle many clients at the same time (well, threading or whatnot) All this is for a game I am creating right now with D7
As I am really not gifted in internet stuff, I need something simple or with extensive help files so a dummy like me can understand it
or at least explain to me what I'm doing wrong with the "chat" example in D7
please help
Goul
|
|
|
| Multiple declaration fd_set |
|
Posted by: jjeffman - 08-06-2018, 08:16 PM - Forum: Indy
- Replies (1)
|
 |
Hello,
I am using Indy 10 (10.6.2.0) on C++Builder 6.0 .
I have built an application which send emails when a certain event happens. It is working fine.
Now I am making a Windows service which should do the same, I am getting include errors telling fd_set has multiple declarations.
I can not figure out why this is happening in the windows service application.
Is there anything I can do to avoid this error? I have tried to define _winsock2api_ but other errors are being raised when I set it.
Can somebody please help me ?
|
|
|
| How get current active form name |
|
Posted by: morhous - 08-06-2018, 06:49 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
so for i doing something like this
Webapplication.create('FormName').show --> in form1
but i want to use form1 name in form2 like this way
TiwForm1.release
I found my solution after posting this
maybe someone need this
TIWAppForm(WebApplication.ActiveForm).Release;
|
|
|
| Http.sys on Win Server |
|
Posted by: zsleo - 08-06-2018, 03:58 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
I have a Windows Server 2008 that I am trying to deploy an IW Http.sys app.
The first time is start the app it starts as expected and I log in to the app.
I then shut is down and try to start again and I get the following message:
Error: [HttpSys] A call to "HttpAddUrlToUrlGroup" failed: The process cannot access the file because it is being used by another process
https://203.XXX.XXX.XXX:443/ody/$/start
What am I missing / not doing?
I do not have this problem on my Win 10 Dev system
TIA
P.S. Sometime I get the following error
Error: [HttpSys] A call to "HttpAddUrlToUrlGroup" failed: The format of the specified network name is invalid
|
|
|
| TCPServer crash on shutdown |
|
Posted by: kbriggs - 08-05-2018, 07:50 PM - Forum: Indy
- Replies (12)
|
 |
Since the Embarcadero forums seem to be unusable now, thought I try here first. I've Googled around and seen this issued raised before but nothing I've found so far has helped.
After years of no issues, I'm suddenly having a problem with shutting down a TIdTCPServer component. Setting Active := False is occasionally locking up my app. So much so that the process cannot be killed in either the Windows Task Manager or Process Explorer. One single thread (identified as TMethodImplementationIntercept in Process Explorer) remains and a Windows reboot is the only way out. I upgraded to a more recent Indy version (10.6.2.5469) but the problem persists. It happens maybe 10% of the time even when I perform the same steps over and over.
By inserting markers in the code to record to an error log (which runs in a critical section) I've traced the problem this deep, where 2 listening threads are supposed to terminate:
Active := False
SetActive
Shutdown
StopListing
LListener.Binding.CloseSocket (if crashes, always does so on the first of two loops)
Disconnect
GStack.Disconnect(Handle)
That last one never returns. It's a virtual abstract method so I'm not sure where to go from there.
My app is a game server with an HTTPServer (that servers an HTML5 web app client) and a TCPServer and acts as websocket connection for the client. Both are started and stopped together from a button click in the app's main thread. The HTTPServer never crashes on shutdown, only the TCPServer does. I've tried using a worker thread to shut down the TCPServer. That allows me to exit the app when the problem occurs but the EXE is still running on the Processes tab and cannot be killed. I'm using the OnConnect, OnDisconnect, and OnExecute events and all are contained in try/except blocks that reraise Indy exceptions like this:
try
// stuff here
except
on E: Exception do
begin
if not(E is EIdException) then LogData.AddError('WSServerConnect error: ' + E.Message);
raise;
end;
end;
So what else can I check to track this down?
|
|
|
| duplex audio over udp |
|
Posted by: Madammar - 08-03-2018, 04:08 PM - Forum: Indy
- Replies (4)
|
 |
i use Tidtudpserver to send audio to clients i have something i do not understand from long time ago
when one client Send Audiodata to udpserver and udpserver send it back to clients every thing works fine and audio arrived good and clear
if 2 or 3 clients send audio at the same time the audio arrived un understandable and have too many cutting i wanted to make it a live conversation with duplex audio but i dont understand where is the problem is is it from idudpserver or from receiver side ?
here is the receiver side code
Code: procedure TForm2.udpreciverUDPRead(AThread: TIdUDPListenerThread;
const AData: TIdBytes; ABinding: TIdSocketHandle);
var
AudioDataSize: Integer;
AudioData : Pointer;
begin
TThread.Synchronize(nil,
procedure
begin
AudioDataSize := Length(AData);
if (AudioDataSize > 10) then
begin
try
if not Player.Active then
begin
Player.Active := True;
Player.WaitForStart;
end;
except
end;
if BlockAlign > 1 then
begin
Dec(AudioDataSize, AudioDataSize mod BlockAlign);
end;
AudioData := AudioBuffer.BeginUpdate(AudioDataSize);
try
BytesToRaw(AData, AudioData^, AudioDataSize);
finally
AudioBuffer.EndUpdate;
end;
end else
begin
Player.Active := False;
Player.WaitForStop;
end;
end);
end;
and here is the server side i have set multithreaded event to True
Code: procedure TForm1.broadcatsaudio(ABinding: TIdSocketHandle; ipada : string; porta, serverprta : integer; const AData: TIdBytes);
var
AUDIOLIST : TAUDIOLIST;
c : integer;
List : Tlist;
begin
list := AllAUDIO.LockList;
try
for c := 0 to list.Count - 1 do
begin
AUDIOLIST := list.Items[c];
if (AUDIOLIST.userserverPort = serverprta)
And (AUDIOLIST.userport <> porta) then
begin
Abinding.SendTo(AUDIOLIST.userip, AUDIOLIST.userport, Adata);
end;
end;
finally
AllAUDIO.UnlockList;
end;
end;
sorry for my bad grammar i am trying to describe what i am trying to do as best as i can
|
|
|
| Triggering component event from raw text HTML element -- Answered |
|
Posted by: mdomke - 08-02-2018, 03:29 AM - Forum: IntraWeb General Discussion
- Replies (5)
|
 |
Is there a way to trigger an IWControl event from a HTML element created in raw text?
For example, if I create a series of HTML elements, for example anchor tags <a>, using the raw text mode of an IWText component, can I hook the onClick event of that HTML element to an onClick event defined in an IWForm, or the WebApplication for that matter?
I'm trying to create a visually unique navigation and the only way I found I can do this is by using the raw text mode of the IW Text component. I need the HTML elements within the raw text to be interactive and I need that interaction to be managed by the WebApplication session, for example, navigating to another page.
I hope this makes and any insight and especially code examples would be much appreciated.
Many thanks,
Michael
|
|
|
|