| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 158
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 132
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 152
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 450
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 224
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 622
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 217
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,211
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 344
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 971
|
|
|
| Faking modal Form |
|
Posted by: Lenfors - 06-14-2023, 01:22 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hello!
I'm converting a VCL application and I'm really missing the ShowModal function in IntraWeb :-)
is there an example how I can "fake" this?
What I want to do is this;
From Form1 I want to create Form2.
Then I want to show Form2.
Depending on what button I press in From2 I want to set a return value and close Form2 making Form1 reappear.
Best regards, Mikael
|
|
|
| Email and FTP no longer working |
|
Posted by: OldBob1938 - 06-13-2023, 06:01 PM - Forum: Indy
- Replies (3)
|
 |
Hi, my program which uses indy 10.6.2.0 was working fine until the beginning of June. It will no longer send emails or ftp. I don't event know where to start. My sending code is below and errors skip the first to Catch attempts. So I have no good idea as to what's up. Any suggestions? This is important for our little non profit.
Code: try
{
gSMTP->Send(idMsg);
MessageSent = true;
// see text with heading A below
}
catch(const std::runtime_error& re)
{
// speciffic handling for runtime_error
//std::cerr << "Runtime error: " << re.what() << std::endl;
BobMessage("Runtime error: "+String(re.what()));
MessageSent = false;
Close();
}
catch(const std::exception& ex)
{
// speciffic handling for all exceptions extending std::exception, except
// std::runtime_error which is handled explicitly
//std::cerr << "Error occurred: " << ex.what() << std::endl;
BobMessage("Error occurred: "+String(ex.what()));
MessageSent = false;
Close();
}
catch(...)
{
MessageSent = false;
BobMessage("Failure on Send to "+ ToEdit->Text+"\nConnect seemed to work");
Close();
// see text with heading B below
}
Any help I can get will be appreciated. I'm out of my depth.
Bob
|
|
|
| IdTCPServer serious bug |
|
Posted by: BartKindt - 06-10-2023, 10:24 PM - Forum: Indy
- Replies (1)
|
 |
PING Remy.
Some years ago I tried to use Linux for a TCPServer application.
This I had to abandon, because of a intermittent problem with the TCPServer not releasing a Context followed by the system locking up during shutdown.
This bug only happened in the live production server, and which I could not reproduce on a test enviroment.
Now this same problem has occured on the replacement production Windows Server VPS.
And I have now been able to consistently reproduce the problem on a test server, by accessing this via a StarLink connection, and after some time the issue then happens under certain conditions (I have more data on this).
I have now opened an Issue #484 on Github, https://github.com/IndySockets/Indy/issues/484
I can now produce debug data, but I do not understand why and how certain functions are called.
Since I posted the issue I have collected a lot more data, but I need somebody with knowledge on the system to look at the logs and tell me where I should go next.
Basically what happens:
- A TCP event occurs (NOT a RESET) which causes the TCPServer to drop the TCP connection, but not clearing the Contexts (and probably other areas).
- Attempting to Disconnect the Context then fails (it is already partly disconnected I assume)
- The Context stays in the Context List, and cannot be removed.
- On Shutdown, the TCPServer locks up with 100% CPU.
I have full Logs now of this situation.
There is an endless loop in TIdScheduler.TerminateAllYarns in which it never comes out, however, this is not where the 100% CPU comes from, as it has a 500ms delay build in.
By breaking out of the loop (as a hack) I can get the TCPServer to finally shut down, and the program terminates.
But all this is a result of the initial failure of the TCPServer not to clear the Context after something has happened to the TCP connection.
Can an experienced Indy programmer please help, as this is a bad situation now it also occured on my production server.
Bart
|
|
|
| SaveDialog in Intraweb 14 |
|
Posted by: matjequier - 06-07-2023, 04:00 PM - Forum: IntraWeb General Discussion
- Replies (9)
|
 |
Hi, I am making a program for internet using for this intraweb 14.0.29 and I would like your help to solve the creation of a file.
In the win32 version of the program create an excel and download it wherever the user wants, but with Intraweb it does not make it work, using the typical TFileSaveDialog components to select the path.
I use something like this.
Code: fdquery1.Open();
if fdquery1.IsEmpty = FALSE then
try
Report := TFlexCelReport.Create(true);
if not SaveDialog1.Execute then exit;
Report.AddTable('fdquery1',fdquery1, TRecordCountMode.SlowCount, TDisposeMode.DoNotDispose);
Report.SetValue('empresa',combobox7.text); // .SetCellValue(1, 1, statusbar1.panels[2].Text);
Report.SetValue('ejercicio',edit9.Text); // .SetCellValue(1, 1, statusbar1.panels[2].Text);
Report.SetValue('periodo',combobox8.Text); // .SetCellValue(1, 1, statusbar1.panels[2].Text);
Report.SetValue('fecha',datetimetostr(now)); // .SetCellValue(1, 1, statusbar1.panels[2].Text);
Report.Run(ExtractFilePath(application.ExeName)+'\EERR_SAP.xlsx', SaveDialog1.FileName);
if MessageDlg('Se ha exportado correctamente. ¿Desea abrir el archivo generado?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
begin
ShellExecute(0, 'open', PCHAR(SaveDialog1.FileName), nil, nil, SW_SHOWNORMAL);
end;
finally
FDCONNECTion1.close;
end;
|
|
|
|