Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,835
» Latest member: kuwinaicom1
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 896 online users.
» 7 Member(s) | 886 Guest(s)
Applebot, Bing, Google, 23Winunet, 789clubsbike, ak88space, charliehampton, kuwinaicom1, nc789winloan, vintmintclassic

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

 
  IntraWeb 15.3.7 is out!
Posted by: Alexandre Machado - 06-20-2023, 06:21 AM - Forum: IntraWeb General Discussion - Replies (16)

Hi folks,

there is a new update available for IW 15:

https://www.atozed.com/2023/06/intraweb-15-3-7/

This new release contains many interesting new features. One new demo will be published soon showing this.

Also it contains our new online help (check subfolder \Help). This is the first version but we are working hard to include more content in the next releases.

Enjoy!  Big Grin

Print this item

  Compiling Indy 10 for Delphi XE3, strange error
Posted by: PabloRomero - 06-17-2023, 05:08 PM - Forum: Indy - Replies (2)

Hi Friends.  I've been fighting for days to get Indy 10 working in DXE3 Up2
Compiling, I get this 

   

And this

   

What am I doing wrong?

Regards

Print this item

  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

Print this item

  TIWFont and size in pixels
Posted by: Lenfors - 06-14-2023, 11:49 AM - Forum: IntraWeb General Discussion - Replies (4)

Hello!

I need a function to get the height and width of a string in pixels if I know the TIWFont used.


Best regards, Mikael

Print this item

  TIWImage with AutoSize and Proportional
Posted by: Lenfors - 06-14-2023, 11:42 AM - Forum: IntraWeb General Discussion - No Replies

Hello!

In VCL I use TImage and the properties AutoSize and Proportional. I really miss this in TIWImage!
How can I simulate this behaviour?

Best regards, Mikael

Print this item

  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

Print this item

  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

Print this item

  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;

Print this item

  Browser dimensions always -1 on Mobile devices (Priority Support)
Posted by: valmeras - 06-07-2023, 03:02 PM - Forum: IntraWeb General Discussion - Replies (2)

I am using Intraweb 15.3.6 with C++ Builder 10.2.3
WebApplication->FormWidth and WebApplication->FormHeight are always -1 on Mobile devices for onRender event.
Dimensions are Ok for onAsyncResize and on AsyncOrientationChange.
But the dimensions are OK on desktop for all events.
I don't think that it is a normal behaviour?



Attached Files
.zip   Project3.zip (Size: 58.03 KB / Downloads: 1)
Print this item

  IntraWeb Integrated Help Generator
Posted by: MJS@mjs.us - 06-07-2023, 02:20 PM - Forum: IntraWeb General Discussion - No Replies

For anyone interested this is a short description of the process creating the IW_Help.chm file:  IntraWeb Integrated Help Generator.

Print this item