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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,265
» Latest member: swordsblade
» Forum threads: 2,426
» Forum posts: 11,370

Full Statistics

Online Users
There are currently 1047 online users.
» 1 Member(s) | 1043 Guest(s)
Applebot, Bing, Google, 88vbeticu

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-09-2026, 03:02 AM
» Replies: 0
» Views: 89
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 93
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 103
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 377
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 192
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 550
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 181
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,119
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 320
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 906

 
Question Indy IdHTTPWebBrokerBridge/TIdCustomHTTPServer threads keep on increasing
Posted by: chris.j - 06-06-2024, 07:24 PM - Forum: Indy - No Replies

I have a customized IdHTTPWebBrokerBridge class which descends from TIdCustomHTTPServer and overrides the DoCommandGet method. Below is the basic code


Code:
procedure TIdHTTPWebBrokerBridge.DoCommandGet(AThread: TIdContext;
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo);
var
  LRequest: TIdHTTPAppRequest;
  LResponse: TIdHTTPAppResponse;
begin
  LRequest := TIdHTTPAppRequest.Create(AThread, ARequestInfo, AResponseInfo);
  try
    LResponse := TIdHTTPAppResponse.Create(AThread, LRequest, ARequestInfo, AResponseInfo);
    try
      // WebBroker will free it and we cannot change this behaviour
      AResponseInfo.FreeContentStream := False;

      try
        if TWebDispatcherAccess(FWebModule).DispatchAction(LRequest, LResponse) then
        begin
          if not LResponse.Sent then
          begin
            LResponse.SendResponse;
          end;
        end;
    finally FreeAndNil(LResponse); end;
  finally FreeAndNil(LRequest); end;
end;

I noticed that the thread count of the process keeps slowly increasing and even reached around above 1500 threads in a few days. It keeps on increasing until I am getting an "Access violation at address 00401ED5 in module 'xxx.exe'. Read of address 80030000"  error. I am not sure why it keeps increasing over time. What might cause the threads to stay and not get released? I did set KeepAlive to true to save on the SSL handshake costs.

I have tried logging all requests and responses and do not see any error that might cause this. I also did not find any long running processes that are stuck in an infinite loop. The thread count does not justify the activity going on. Even when there is no more activity, the thread count does not decrease. I'm already using the latest Indy v10.6.3.3 and OpenSSL v1.0.2u DLL files.

Print this item

  Simultaneous OnAsyncChange and OnAsyncClick on Touch Device
Posted by: RenSword - 06-06-2024, 10:06 AM - Forum: IntraWeb General Discussion - No Replies

I need to bind OnAsyncChange on TIWDBEdit to trigger to field change to calculate some field then reflect changes to user, and I use a TIWButton.OnAsyncClick to Post the DataSet changes.
To use the sample project attached. 
.zip   Sample.zip (Size: 8.04 KB / Downloads: 0)
1) Click Edit.
2) When in edit state, focus on the TIWDBEdit and try to change the code
3) Do not click other place so TIWDBEdit does not lose focus and trigger OnAsyncChange.
4) Click on Post button directly. (this will trigger TIWDBEdit.OnAsyncChange then TIWButton.OnAsyncClick)

I notice a different behavior between Mouse Click Device (Desktop) and Touch Device (Phone). When I use browser inspect tool, I can see the timing like this.

First Img: Mouse Click Device.png     
First callback is OnAsyncChange and second callback is OnAsyncClick, it can be seen that they are far away and do not overlap

Second Img: Touch Device.png     
It can be seen that OnAsyncChange overlapped with OnAsyncClick callback.
There are rare cases that will happen sometimes, like this image, OnAsyncClick finished faster than OnAsyncChange. This cause

Code:
procedure TIWForm1.btnPostAsyncClick(Sender: TObject; EventParams: TStringList);

to be runned first and EventParams does not contain EDCODE=NewValue, so its posted without change in value
based on IWBase.js, when typing on edCode, it is added to window.ChangedControls, but bcz SendPostRequest of OnAsyncChange cleared the window.ChangedControls, SendPostRequest of OnAsyncClick cannot see edCode as changed and cannot pass the changed value to server

=========================================================================

if u uncomment the Exception in field change, you can see when you redo the above step

For Mouse click device, due to its no overlapping behavior, when OnFieldChange raise the Exception, OnAsyncClick callback is not run at all (the value on the field is reverted and posting is not done, this is the more correct behavior)

For Touch device, when OnFieldChange raise the Exception, OnAsyncClick callback is still runned (the value on the field is reverted and posted directly).

==============================================================================

This is probably not a bug, but rather a issue due to touch and click difference, any idea to solve this?

Print this item

  TIWChartJS memory leak
Posted by: ioan - 06-05-2024, 05:11 PM - Forum: IntraWeb General Discussion - No Replies

In the ChartJS demo, I enabled the memory leak report (ReportMemoryLeaksOnShutdown := true) and when closing the application the following memory leak is reported:


Code:
---------------------------
Unexpected Memory Leak
---------------------------
An unexpected memory leak has occurred. The unexpected small block leaks are:
29 - 36 bytes: TIWBorderOptions x 3

EDIT:

It looks like in the unit IWCanvas, at line 259 TIWBorderOptions is created and never freed. If I add FBorderOptions.Free; in TIWCustomCanvas.Dispose, the leak disappears.

Print this item

  Relative path to wwwroot for C++ Builder
Posted by: valmeras - 06-05-2024, 03:24 PM - Forum: IntraWeb General Discussion - Replies (5)

I am using C++ Builder 10.2.3 with Intraweb 15.6.1

I am trying to access a subfolder (myfolder) I created in wwwroot following this reference article:

https://docs.atozed.com/docs.dll/develop...20XIV.html

This for sure does not work as a relative path in C++ builder: "\\myfolder\\myfile.xml"
It is referring to C:\myfoler\myfile.xml

This one is close: "myfolder\\myfile.xml". But is referring to the application path were the .exe is running!

So, in C++ Builder, how can I use a relative path to access a file or subfolder located in wwwroot?

Print this item

  Install different version of IW
Posted by: zsleo - 06-03-2024, 11:54 PM - Forum: IntraWeb General Discussion - Replies (2)

First let me say that I think CG Dev Tools is DEAD and their source code version, in it present form, requires the licencing DCUs to be compiled with nthe latest Delphi Version and I am unable (for six month) to get CG Dev Tools to respond.

So I want to convert some of my apps to IW/Bootstrap.

I have both Delphi 11.3 and Delphi 12.1 installed on my computer.

QUESTION:

How do I keep my IW 15.4.1 installed on my Delphi 11.3 - for CG Dev Tools maintenance 
AND
Install IW 15.6.2 installed on my Delphi 12.1 - for Bootstrap development 

TIA

Print this item

  IntraWeb 15.6.2 is out!
Posted by: Alexandre Machado - 06-02-2024, 01:14 AM - Forum: IntraWeb General Discussion - Replies (2)

Hi guys,

a new maintenance update has been released with a few important bug fixes:

https://www.atozed.com/2024/06/intraweb-15-6-2/

Enjoy!  Big Grin

Print this item

  Cannot run any IW app after update to 15.6.1
Posted by: PDSBILL - 06-01-2024, 03:42 AM - Forum: IntraWeb General Discussion - Replies (6)

Installed ver 15.6.1 in Delphi 11 update 1.  No issues installing and latest License expires 2025
Upgraded from 15.2
When I try and compile a simple iw standalone app with just a blank form i get the following error

[dcc64 Fatal Error] IwtestPC.dpr(12): F2084 Internal Error: URW8036

error appears in uses IWappForm

Any suggestions.

Print this item

  Priority support
Posted by: Comograma - 05-29-2024, 09:25 AM - Forum: IntraWeb General Discussion - Replies (1)

How can I have support? How can I have priority support? I have Intraweb Ultimate and I thought that I had a better support on this.
I have several questions on this forum, but I get no answer. 
I'm missing something? That's one of the reasons I'd upgrade to Utimate version.
It would be better to everyone and for this tremendous components, that someone within Atozed had a little more attention to this forums and the ones that here to try to do the best for their applications, regarding Intraweb components.
Thanks

Print this item

  Page refresh
Posted by: rburton - 05-25-2024, 10:21 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi, I have a small application that has wo page/forms.  Form 1 is a list with a link to show more information.  Clicking the link goes to the second page to show the further information. when I close form (hide) it goes back to the original form but it refreshes, which means if I scrolled down the list, rather than returning to the list where I left it, it has now refreshed and is back at the top of the list.

Is there anyway of stopping this?

Thank you

Print this item

  Indy TLS 1.3 in IntraWeb
Posted by: rlebeau - 05-24-2024, 09:23 PM - Forum: IntraWeb General Discussion - Replies (2)

On this recent AToZed blog post: What’s new in IntraWeb 15, it says:

Quote:51. Brand new Indy server branch capable of TLS 1.3 using OpenSSL 1.1.1

Can I get more details about that? This is the 1st time I'm hearing about it related to IntraWeb.  What "server branch" is it referring to?  Did AToZed implement their own SSLIOHandler class for Indy and not contribute it to the Indy project yet?

Print this item