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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,897
» Latest member: gioithieutylenhacai
» Forum threads: 2,426
» Forum posts: 11,371

Full Statistics

Online Users
There are currently 1147 online users.
» 0 Member(s) | 1142 Guest(s)
Applebot, Baidu, Bing, Google, Yandex

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 168
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 135
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 154
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 451
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 227
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 625
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,215
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 346
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 972

 
  IWAppFormAsyncPageUnloaded generates exception (Priority support)
Posted by: valmeras - 04-11-2023, 06:39 PM - Forum: IntraWeb General Discussion - Replies (4)

Using Rad Studio 10.2.3 with Intraweb 15.2.69

I am trying to use the procedure described below to be sure that the session is really terminated after WebApplication->Terminate() is called.

https://www.atozed.com/2022/12/terminati...-sessions/

I use the code below:


void __fastcall TformMain::IWAppFormAsyncPageUnloaded(TObject *Sender, TStringList *EventParams,
          bool AIsCurrent)
{
    if (AIsCurrent && (WebApplication->ActiveFormCount == 1))
    {
        WebApplication->SelfDestruct();
    }
}


If the user remains inactive more than 1 minute, or maybe less, on the landing page (main form) the application generates the exception attached.

I think the problem is related to the way this function works. The landing page is the only active form. And after the end of the internal timer, 15 s default, it tries to destruct the application even if the Terminate() function was not called.
Even if there is only one form active like in the case of the main form and the application timeout, which is 30 minutes or more, is not reached or Terminate() has not been called, this function should not be triggered!
It cannot rely only on the number of active forms, because the application can have more than 1 form still available and the timeout may have been reached or Terminate() called!



Attached Files Thumbnail(s)
   
Print this item

  What's new in IntraWeb 15.3
Posted by: Alexandre Machado - 04-11-2023, 01:31 AM - Forum: IntraWeb General Discussion - Replies (1)

Please allow yourself sometime to find out what's new and enhanced in IntraWeb 15.3:

https://www.atozed.com/2023/04/whats-new...aweb-15-3/


Enjoy!  Big Grin

Print this item

  Intraweb 15.30 - Cannot save modifications in ExtraHeader (Priority Support)
Posted by: valmeras - 04-09-2023, 01:07 AM - Forum: IntraWeb General Discussion - Replies (7)

Rad Studio version 10.2.3 (C++ Builder)
Since I installed the new version of Intraweb 15.3.0, I cannot save a form if I make modifications to the ExtraHeader of the form (add or modify content)
I am getting an access violation error message!

[50061F46]{rtl250.bpl  } System.@UStrAsg (Line 25649, "System.pas" + 28) + $0
[5016EBCC]{rtl250.bpl  } System.Classes.StdWndProc (Line 17408, "System.Classes.pas" + 11) + $2
[21A24ED7]{vclactnband250.bpl} Vcl.ActnMenus.CallWindowHook (Line 750, "Vcl.ActnMenus.pas" + 20) + $F
[50156839]{rtl250.bpl  } System.Classes.TStringList.InsertItem (Line 7206, "System.Classes.pas" + 11) + $0
[50156387]{rtl250.bpl  } System.Classes.TStringList.AddObject (Line 7009, "System.Classes.pas" + 10) + $2
[1C2A4675]{Intraweb_15_D10_2.bpl} Iw.Common.Strlists.TIWStringList.AddStrings + $9D
[1C2A4743]{Intraweb_15_D10_2.bpl} Iw.Common.Strlists.TIWStringList.AddStrings + $7
[5015483E]{rtl250.bpl  } System.Classes.TStrings.Assign (Line 6258, "System.Classes.pas" + 15) + $F
[501563CA]{rtl250.bpl  } System.Classes.TStringList.Assign (Line 7020, "System.Classes.pas" + 8) + $3
[1C38E61C]{Intraweb_15_D10_2.bpl} Iwbaseform.TIWBaseForm.SetExtraHeader + $8
[50120EBA]{rtl250.bpl  } System.TypInfo.SetOrdProp (Line 2871, "System.TypInfo.pas" + 37) + $4
[211C97DA]{designide250.bpl} DesignEditors.TPropertyEditor.SetOrdValue (Line 840, "DesignEditors.pas" + 2) + $E
[212301A4]{designide250.bpl} StrEdit.TStringListProperty.SetStrings (Line 281, "StrEdit.pas" + 0) + $0
[21230351]{designide250.bpl} StrEdit.TStringListProperty.Edit (Line 316, "StrEdit.pas" + 23) + $11
[209931FB]{coreide250.bpl} PropInsp.TPropertyInspector.PropListEditDblClick (Line 976, "PropInsp.pas" + 20) + $5
[213E675D]{vclide250.bpl} IDEInspListBox.TInspListBox.DoEditDblClick (Line 626, "IDEInspListBox.pas" + 2) + $A
[213E855B]{vclide250.bpl} IDEInspListBox.TInspListBox.ListButtonClick (Line 1322, "IDEInspListBox.pas" + 2) + $2
[50AE51CB]{vcl250.bpl  } Vcl.Controls.TControl.Click (Line 7454, "Vcl.Controls.pas" + 9) + $8
[213DD576]{vclide250.bpl} IDEListBtns.TListButton.WMLButtonUp (Line 627, "IDEListBtns.pas" + 8) + $11
[50AE4C5E]{vcl250.bpl  } Vcl.Controls.TControl.WndProc (Line 7338, "Vcl.Controls.pas" + 91) + $6
[50BDAEBD]{vcl250.bpl  } Vcl.Themes.TCustomStyleEngine.HookCBProc (Line 7384, "Vcl.Themes.pas" + 1) + $9
[50BD757B]{vcl250.bpl  } Vcl.Themes.TStyleManager.GetIsCustomStyleActive (Line 5529, "Vcl.Themes.pas" + 0) + $7
[50BDAEC5]{vcl250.bpl  } Vcl.Themes.TCustomStyleEngine.HookCBProc (Line 7386, "Vcl.Themes.pas" + 3) + $0
[50BDB08E]{vcl250.bpl  } Vcl.Themes.TCustomStyleEngine.HookCBProc (Line 7437, "Vcl.Themes.pas" + 54) + $18
[50AE8FFF]{vcl250.bpl  } Vcl.Controls.TWinControl.IsControlMouseMsg (Line 9964, "Vcl.Controls.pas" + 1) + $9
[50AE9843]{vcl250.bpl  } Vcl.Controls.TWinControl.WndProc (Line 10209, "Vcl.Controls.pas" + 166) + $6
[50AE8E10]{vcl250.bpl  } Vcl.Controls.TWinControl.MainWndProc (Line 9908, "Vcl.Controls.pas" + 3) + $6
[5016EBCC]{rtl250.bpl  } System.Classes.StdWndProc (Line 17408, "System.Classes.pas" + 11) + $2
[50C31E1F]{vcl250.bpl  } Vcl.Forms.TApplication.ProcessMessage (Line 10641, "Vcl.Forms.pas" + 23) + $1
[50C31E62]{vcl250.bpl  } Vcl.Forms.TApplication.HandleMessage (Line 10671, "Vcl.Forms.pas" + 1) + $4
[50C32195]{vcl250.bpl  } Vcl.Forms.TApplication.Run (Line 10809, "Vcl.Forms.pas" + 26) + $3
[005088F2]{bds.exe    } bds.bds (Line 212, "" + 7) + $7



Attached Files Thumbnail(s)
   
Print this item

  IntraWeb 15.3.1 is available
Posted by: Alexandre Machado - 04-08-2023, 06:12 AM - Forum: IntraWeb General Discussion - Replies (5)

Hi guys,

I'm about to write a post about the issue that happened to most users running RAD Studio (Delphi and C++Builder) versions 11.0, 11.1 and 11.2 and had installed IntraWeb 15.3.0.

The main points are: IW 15.3.0 was built using Delphi 11.3 compiler and RTL (of course, I'm referring to the IW files targeted to RAD Studio 11). Unfortunately, we discovered that RAD Studio 11.0, 11.1 and 11.2 don't handle well the DCUs built with the newer compiler. For instance, most of the users running RAD Studio 11.2 got the internal compiler error URW8074 when trying to build any IW application.

The reason is unknown to us and it's very hard to find out what in your code is causing it, especially in a big library like IntraWeb. This internal compiler errors also happened in other cases (https://raize.com/forums/topic/f2084-int...r-urw8074/)

This compiler bug has been fixed in 11.3, but whoever is using an older version will surely hit it.

Delphi 11.0, 11.1, 11.2 and 11.3 are all binary compatible, according to Embarcadero, meaning that a DCU created by one of them should be able to be used in any other compiler, because the internal version number is the same and the interface of the units didn't change. But obviously something is not exactly as planned and affected the older compilers.

Extraordinarily we decided to build 2 sets of files to handle all RAD Studio 11 versions, because we identified a relevant number of users in versions 11.0 and 11.2.

We have just released IW 15.3.1 which has a new option during the installer. It will ask the user to select between RAD Studio versions 11.3 and 11.0/1/2 during the installation process. Chose the one that match your RAD Studio 11 version. If later you update to 11.3, you can (and must) run the IW installer again and install the 11.3 file set.

It was a huge effort to change our build machine, build and install script to handle 2 different versions of the same IDE (once they can't be installed side-by-side) in a little more than 24 hours. I hope you can appreciate this.

We run all our unit tests with both versions, so they should work as expected. But have in mind that the development and all manual testing is done using IW 11.3 only.

Finally, here is the new update: https://www.atozed.com/2023/04/intraweb-15-3-1/

It also fixed a couple of issues found.

Enjoy!  Big Grin

Print this item

  Error on IWjQDBGrid1AsyncSelectRow v15.3
Posted by: Comograma - 04-05-2023, 11:45 AM - Forum: IntraWeb General Discussion - Replies (1)

After upgrading to IW v15.3.0, the IWjQDBGrid1 OnAsyncSelectRow event is raizing an error:
Exception message  : '' is not a valid integer value for Integer type

I debugged it and RowID is empty. Some bug here!!!!!!!!!!!!

Print this item

  IntraWeb 15.3.0 is out!
Posted by: Alexandre Machado - 04-05-2023, 05:44 AM - Forum: IntraWeb General Discussion - Replies (17)

Hi guys,

There is a new major IntraWeb update, with tons of new and enhanced stuff:


https://www.atozed.com/2023/04/intraweb-15-3-0/


List of new and enhanced here:

https://www.atozed.com/2023/04/15-3-0-h/

new demos will follow!

Enjoy!  Big Grin

Print this item

  TIWListbox how to get Selected Values (Priority support)
Posted by: valmeras - 04-02-2023, 09:06 PM - Forum: IntraWeb General Discussion - Replies (12)

I am using Intraweb 15.2.69 with Rad Studio 10.2.3
How to get all the values or text selected in a TIWListBox when MultiSelect option is true?
Because TIWListBox->SelectedValue and TIWListBox->SelectedText are both UnicodeString instead of TStringList!
So only one value is returned instead of a list even when multiple values are selected at the same time!

Print this item

  Recycle the webpool
Posted by: Mikael Nilsson - 04-02-2023, 04:43 PM - Forum: IntraWeb General Discussion - Replies (5)

Hi,

If I recycle the webpool. Why do the users get a EExpiredSession instead of a EInvalidAppId?

Print this item

  External JS and CSS Files
Posted by: baxing - 04-01-2023, 04:51 PM - Forum: IntraWeb General Discussion - Replies (14)

Hello,

I use Bootstrap for my IntraWeb project and there are many css and js files which using in each page (same and differ of each pages).
Now I use AddBodyScriptFile and ContentFiles to add them in my each form. It's work, if build with SA Indy (.exe) but I switch to build with ISAPI (.dll) and test it on IIS. I found AddBodyScriptFile and ContentFiles not working in this case. Below is result

example my css and js link when Run Web App with SA Indy (.exe) --> OK

<link href="/assets/mycss.cssrel="stylesheettype="text/css"/>

<script src="/assets/myjs.min.js"></script>


but this is example my css and js link when Run Web App with ISAPI (.dll) --> not working

<link href="/myIWProject.dll/assets/mycss.cssrel="stylesheettype="text/css"/>

<script src="/myIWProject.dll/assets/myjs.min.js"></script>

--------
The Problem : when Run Web App with ISAPI (.dll) in path of both CSS and JS have my dll name together ( this case is --> /myIWProject.dll on the file path).
How to cancel this name/path(/myIWProject.dll) or 
Which way I should to add link(css) and script(js) tag for css and js path in my each Delphi form (Each form may not reference the same css or js.)

Thank you.

Print this item

  class function TIWExceptionRendererEx.RenderHTML
Posted by: Mikael Nilsson - 03-31-2023, 12:11 PM - Forum: IntraWeb General Discussion - Replies (8)

Hi,

I'm using this function with great success.
But I need to reference a variable in the UserSession. How do I do that?

Print this item