| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
CSS in CGDevTools
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
2 hours ago
» Replies: 1
» Views: 13
|
KanBan like behaviour
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
10-06-2026, 09:31 PM
» Replies: 6
» Views: 677
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
10-02-2026, 04:14 PM
» Replies: 1
» Views: 566
|
TIWSummernote Issue
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
09-30-2026, 07:34 PM
» Replies: 1
» Views: 276
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 628
|
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 728
|
How can I get started? Do...
Forum: CrossTalk General Discussion
Last Post: taggame
09-17-2026, 03:17 AM
» Replies: 2
» Views: 4,427
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 468
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 891
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 513
|
|
|
| Difference between Async and Sync events |
|
Posted by: Lenfors - 02-15-2023, 11:36 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hello!
I really need to know what the difference is between asynch and synch events!
For instance, I created a new application with only a TIWTimer on the form. Then I created a OnTimerEvent doing nothing.
When run the OnTimerEvent is fired as it should.
Now I added a OnAsynchTimer event to the same IWTimer.
When run now the OnAsynchTimer is fired but not the OnTimerEvent?
Another example:
New empty application with only a event defined for OnResize doing nothing.
When starting the application or resizing the browser window OnResize is called as expected.
Now creating a OnAsyncResize event. Both OnResize and OnAsyncResize are called on form creation and browser form resize.
Now I added a IWTimer to the last example and added a OnTimer event to it.
The OnTimerEvent fires as expected but also the forms OnAsyncResize event?!
If I remove the OnTimer event and instead add a OnAsyncTimer the OnAsyncTimer is triggerd as expected but there is no OnAsyncResize triggered.
Is there some documentation about this? I Googled but can't find any good explanation.
Best regards, Mikael
|
|
|
| TIWCustomControl's FPageContext field |
|
Posted by: ebob42 - 02-14-2023, 12:25 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
I would like to suggest a possible change in the way IntraWeb custom controls decide to call the UnRegisterAsyncEvents method.
At this time, in IW 15.2.69, the Dispose method of TIWCustomControls only checks to see if IsDesignMode is true. I would like to add another condition to that:
if Assigned(OwnerForm) and not (OwnerForm as TIWForm).PageContext.Destroying then
This will be faster, since the UnRegisterAsyncEvents will no longer have to do through all controls and all events to unregister them (which is not required, since we are in the Destroy of our main form anyway).
It is also a bit safer, since my code uses an approach with templates where numerous controls are added dynamically to the form, with a temporary PageContext. Since this PageContext often no longer exists when the page is destroyed, I sometimes get access violations (if the custom control's PageContext, which no longer exists, has a Destroying field pointing to some place in memory which just happend to be False).
I've been using the modified IWControl.pas for a while now, without any further problems.
Thanks for your consideration.
Groetjes, Bob Swart
|
|
|
| IWAppFormAsyncResize fired without reason |
|
Posted by: Lenfors - 02-14-2023, 10:10 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hello!
Discovered another strange ting in IntraWeb 15.2.69.
Try the following:
Create a new IW application and put a TIWTabControl on it.
Add a couple of pages to the TabControl.
Create an event for the forms OnAsynchResize.
When running the application the OnAsynchResize is fired once as it should and you can switch between the pages on the TabControl and no more OnAsynchResize is fired.
Now add an event to the TabControls OnChange event, it can be an empty event doing nothing.
Now when you run the program the OnAsynchResize event is fired on program startup as it should, but it's also fired every time you change page in the page control!
This is a big issue for me as I use the OnAsynchResize event for rescaling every component on the form.
Am i missing soething here? Is this normal behaviour?
Best regards, Mikael
object IWForm2: TIWForm2
Left = 0
Top = 0
Width = 555
Height = 400
RenderInvisibleControls = True
AllowPageAccess = True
ConnectionMode = cmAny
OnAsyncResize = IWAppFormAsyncResize
Background.Fixed = False
HandleTabs = False
LeftToRight = True
LockUntilLoaded = True
LockOnSubmit = True
ShowHint = True
DesignLeft = 3
DesignTop = 3
object IWTabControl1: TIWTabControl
Left = 96
Top = 72
Width = 305
Height = 225
RenderInvisibleControls = True
OnChange = IWTabControl1Change
ActiveTabFont.Color = clWebWHITE
ActiveTabFont.FontFamily = 'Arial, Sans-Serif, Verdana'
ActiveTabFont.Size = 10
ActiveTabFont.Style = [fsBold]
ActiveTabFont.PxSize = 13
InactiveTabFont.Color = clWebBLACK
InactiveTabFont.FontFamily = 'Arial, Sans-Serif, Verdana'
InactiveTabFont.Size = 10
InactiveTabFont.Style = []
InactiveTabFont.PxSize = 13
ActiveTabColor = clWebDARKGRAY
InactiveTabColor = clWebLIGHTGRAY
ActivePage = 0
BorderOptions.NumericWidth = 0
BorderOptions.Style = cbsNone
Color = clWebSILVER
ClipRegion = False
TabPadding = 0
ActiveTabBorder.Color = clWebBLACK
ActiveTabBorder.Width = 0
InactiveTabBorder.Color = clWebBLACK
InactiveTabBorder.Width = 0
DesignSize = (
305
225)
object IWTabControl1Page0: TIWTabPage
Left = 0
Top = 20
Width = 305
Height = 205
RenderInvisibleControls = True
Title = 'Page0'
BorderOptions.NumericWidth = 0
BorderOptions.Style = cbsNone
Color = clWebWHITE
end
object IWTabControl1Page1: TIWTabPage
Left = 0
Top = 20
Width = 305
Height = 205
RenderInvisibleControls = True
TabOrder = 1
Title = 'Page1'
BorderOptions.NumericWidth = 0
BorderOptions.Style = cbsNone
Color = clWebWHITE
end
end
end
unit Unit2;
interface
uses
Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes,
IWCompTabControl, Vcl.Controls, Vcl.Forms, IWVCLBaseContainer, IWContainer,
IWHTMLContainer, IWHTML40Container, IWRegion;
type
TIWForm2 = class(TIWAppForm)
IWTabControl1: TIWTabControl;
IWTabControl1Page0: TIWTabPage;
IWTabControl1Page1: TIWTabPage;
procedure IWAppFormAsyncResize(Sender: TObject; EventParams: TStringList);
procedure IWTabControl1Change(Sender: TObject);
public
end;
implementation
{$R *.dfm}
procedure TIWForm2.IWAppFormAsyncResize(Sender: TObject; EventParams: TStringList);
begin
// Put breakpoint here if you want to see when it's fired
end;
// If this function is removed everything works fine!
procedure TIWForm2.IWTabControl1Change(Sender: TObject);
begin
//
end;
initialization
TIWForm2.SetAsMainForm;
end.
|
|
|
| Indy on windows 2022 server |
|
Posted by: mike.price@asterox.net - 02-10-2023, 02:54 PM - Forum: Indy
- Replies (1)
|
 |
I am programming a rest sever in Delphi 11 It has the standard Indy 10.6.2.0 installed. Ssleay32.dll and libeay32.dll are in the same directory as the exe. When run on development machine all starts ok.
Copy exe and the dll’s to a directory on my windows 2022 server and it gives ‘could not load ssl library’ I have set in code IdOpenSSLSetLibPath('c:\TestDLL') which I believe should not be necessary if the dlls are in the same directory still the same error. I have installed Indy directly on the server same error.
The rest server used to run ok on Microsoft server 2012 is there settings I am missing on new server?
|
|
|
| Idhttpserver force Login/password |
|
Posted by: BartKindt - 02-05-2023, 09:44 PM - Forum: Indy
- Replies (1)
|
 |
I am writing a IdHttpsServer application, which requires that the connecting web browser login with username and password.
I am not a HTML specialist, but I remember that basic authentication would pop-up a (what looks like) *internal* web browser window where the Login and Password can be entered, after which these are send back to the Server in the 'Basic' authentication format.
So they show up in ARequestInfo.AuthUsername and ARequestInfo.AuthPassword.
How do I 'force' this to happen on the Browser side? I was looking for a IdHttpsServer option to force this request, but can't find anything; So it must be a special HTML command/webpage to generate this on the browser side?
|
|
|
| Terminating IntraWeb sessions |
|
Posted by: JuergenS - 02-04-2023, 01:04 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
Hi Alexandre,
i get an EIWSecurityException if try to use the new Event OnAsyncPageUnloaded
------------------------------------------------------------------------------------------------------------------------
Exception message : Invalid page context
Security check failed. Please restart the application.
Exception class : EIWSecurityException
Exception address : 009B32F5
Exception Time : 2023-02-04 13:40:22.155
------------------------------------------------------------------------------------------------------------------------
Application Name : ???
Application Version: ???
Started at : 2023-02-04 13:39:45.585
Running for : 36 seconds
Computer Name : ???
Compiler Version : 350
------------------------------------------------------------------------------------------------------------------------
IntraWeb Version : 15.2.69
Multi-session : False
Content Path : ???
Session count : 1
Application Path : ???
Active Form : IWA_Frm_Main (TIWA_Frm_Main)
Active Form list : [1] IWA_Frm_Main (TIWA_Frm_Main)
Form list : [1] IWUserSession (TIWUserSession)
[2] IWC_Session (TIWC_Session)
[3] IWA_Frm_Main (TIWA_Frm_Main)
Browser Name : Firefox
Browser UserAgent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Session ID : MZnkcD~D7TiJN-DaHvuZrSv4AMC
Last Access : 2023-02-04 13:40:21.488
Callback : True
Callback name : DoOnAsyncPageUnloaded
Runtime parameters :
------------------------------------------------------------------------------------------------------------------------
Client IP address : 127.0.0.1
Request PathInfo : /$/callback
Request Method : POST
Request User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Cookies Count : 1
------------------------------------------------------------------------------------------------------------------------
[Stack trace is empty]
------------------------------------------------------------------------------------------------------------------------
void setAsMainForm()
{
TIWA_Frm_Main::SetAsMainForm();
}
Regards
Juergen
|
|
|
|