| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 986 online users. » 0 Member(s) | 981 Guest(s) Applebot, Baidu, Bing, Facebook, Google
|
| Latest Threads |
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:33 PM
» Replies: 1
» Views: 409
|
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-21-2026, 05:31 PM
» Replies: 2
» Views: 455
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 338
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 693
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 401
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 885
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 361
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,600
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 534
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 1,275
|
|
|
| Cross Talk error |
|
Posted by: joelcc - 08-24-2020, 07:13 PM - Forum: CrossTalk General Discussion
- Replies (1)
|
 |
v.2.0.27
I am trying to compile Net.mscorlib and the following code errors at the line: const MaxValue: Byte = 255;
The error is the following: [dcc32 Error] NET.mscorlib.pas(355): E2010 Incompatible types: 'Byte' and 'Integer'
How do I correct this?
Here is the full object.
Byte = class(TCTBaseObject)
private
protected
class function CTFullTypeName: string; override;
public
const MaxValue: Byte = 255;
const MinValue: Byte = 0;
function CompareTo(
const aValue: TCTObject): Int32; overload;
function CompareTo(
const aValue: Byte): Int32; overload;
function Equals(
const aObj: TCTObject): Boolean; reintroduce; overload;
function Equals(
const aObj: Byte): Boolean; reintroduce; overload;
function GetHashCode: Int32; reintroduce; overload;
class function Parse(
const s: string): Byte; overload;
class function Parse(
const s: string;
const aStyle: NumberStyles): Byte; overload;
class function TryParse(
const s: string;
out aResult: Byte): Boolean; overload;
function ToString: string; reintroduce; overload;
function ToString(
const aFormat: string): string; reintroduce; overload;
function GetTypeCode: TypeCode; overload;
function GetType: TypeNET; overload;
end;
|
|
|
| Memory Leak on v15.2.13 |
|
Posted by: Encina - 08-24-2020, 03:10 AM - Forum: IntraWeb General Discussion
- Replies (5)
|
 |
Code: unit Unit1;
interface
uses
Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Vcl.Controls,
IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompButton;
type
TIWForm1 = class(TIWAppForm)
IWButton1: TIWButton;
procedure IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
public
end;
implementation
{$R *.dfm}
procedure TIWForm1.IWButton1AsyncClick(Sender: TObject; EventParams: TStringList);
begin
//
end;
initialization
TIWForm1.SetAsMainForm;
end.
|
|
|
| v15.2.12 IWModalWindow doesn't work |
|
Posted by: Encina - 08-21-2020, 09:14 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
v15.2.12 is ok
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
With IWModalWindow1 do
begin
Reset;
Autosize := False;
Title := 'Test';
Draggable := False;
Src := 'http://cdn07.foxitsoftware.cn/pub/foxit/manual/cPDF/zh_cn/FoxitConnectedPDF_Manual.pdf';
OnAsyncClick := nil;
Show;
end;
end;
|
|
|
| AV & Memory leak |
|
Posted by: Encina - 08-21-2020, 03:15 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Delphi10.3.3
Intraweb v15.2.12
1.New / Other / Delphi / Intraweb / Intraweb Application Wizard
StandAlone Application (Http.sys)
Project Name: Test
2.program Test
+ ReportMemoryLeaksOnShutdown := True;
3.New / Other / Delphi / Intraweb / New Frame
unit Unit2;
interface
uses
SysUtils, Classes, Controls, Forms, IWVCLBaseContainer, IWColor, IWContainer,
IWRegion, IWHTMLContainer, IWHTML40Container;
type
TIWFrame2 = class(TFrame)
IWFrameRegion: TIWRegion;
IWRegion1: TIWRegion;
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
{$R *.dfm}
end.
4.Copy IWFrame2(Unit2.pas) to IWForm1(Unit1.pas)
unit Unit1;
interface
uses
Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Vcl.Controls,
Vcl.Forms, IWVCLBaseContainer, IWContainer, IWHTMLContainer, IWHTML40Container, Unit2;
type
TIWForm1 = class(TIWAppForm)
IWFrame2: TIWFrame2;
public
end;
implementation
{$R *.dfm}
initialization
TIWForm1.SetAsMainForm;
end.
5.Run (F9)
6.Launch Firefox and execute application
http://127.0.0.1:8888/
7.Shutdown
AV...
Memory Leak...
|
|
|
| Get error with IdWship when compiling Indy for Delphi 7 on windows 7 |
|
Posted by: russ3ell - 08-20-2020, 01:48 PM - Forum: Indy
- Replies (1)
|
 |
I am upgrading my version of Indy so I can get a more recent version of TLS. I started by removing all the the Indy directories and dclIndy* and Indy* files from the lib and bi directories.
I used Fulld_7 and it generated no errors. I then installed the two packages that were created in the D7 directory. However, when I try to compile one of my modules with Indy things in I get the following error
[Fatal Error] IndySystem70.dpk(43): Unit IdIDN was compiled with a different version of IdGlobal.TIdUnicodeString
|
|
|
| TIWUserSession or TUserSession |
|
Posted by: bruce.eglington@usask.ca - 08-19-2020, 08:59 PM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
I have some SA programs that have worked for years and am in the process of moving to a different host system which runs in a virtual machine. Some of my Intraweb 15 programs run fine but others crash every night on the VM, even though, to the best of my knowledge I designed them all the same way and they never did so on the old physical machine. Original code was developed in Intraweb 5 with changes where forced on me during compiling since then as I have moved to more recent versions of Intraweb.
I am wondering whether part of the issue may be due to the way I use TUserSession rather than TIWUserSession in many cases because I have multiple datamodules in each program.
What exactly is the purpose and difference between a UserSession and a IWUserSession. Recent examples in the Intraweb documentation use a UserSessionUnit which is mostly based on TIWUserSession and declare links to datamodules within this. Is it better to do things this way or should it not matter?
Any suggestions for ways to improve or implement a currently preferred way to do things would be appreciated. I have also noted in various documentation that since IW 14 one should declare the aSession as a descendent of TIWUserSession with (nil, aSession) but, since I use UserSessions, this does not compile.
My current general program structure is to have, say, two datamodules with definitions something like the following
unit datamodule1;
interface
uses
various items listed here;
type
Tdatamodule1 = class(TDataModule)
various data components;
private
public
published
end;
function datamodule1: Tdatamodule1;
implementation
use
various items here;
function datamodule1: Tdatamodule1;
Result := TUserSession(WebApplication.data).datamodule1;
end;
various procedure here;
end.
In the ServerController unit I have:
unit ServerController;
interface
uses
datamodule1name, datamodule2name,
various other items listed here;
type
TIWServerController = class(TIWServerControllerBase)
procedure IWServerControllerBaseNewSession(aSession: TIWApplication);
procedure IWServerControllerBaseGetMainForm(var vMainForm: TIWBaseForm);
various data components;
private
public
end;
TUserSession = class(TComponent)
public
MainForm : TMainForm;
datamodule1 : Tdatamodule1;
datamodule2 : Tdatamodule2;
various other usersession items defined here;
end;
function UserSession: TUserSession;
function IWServerController: TIWServerController;
implementation
uses
various items defined here;
function IWServerController: TIWServerController;
begin
Result := TIWServerController(WebApplication.Data);
end;
function UserSession: TUserSession;
begin
Result := TUserSession(WebApplication.Data);
end;
procedure TIWServerController.IWServerControllerBaseGetMainForm(var vMainForm: TIWBaseForm);
begin
vMainForm := TMainForm.Create(WebApplication);
end;
procedure TIWServerController.IWServerControllerBaseNewSession(aSession := TIWApplication);
begin
aSession := TUserSession.Creat(nil);
end;
procedure TUserSession.Destroy;
begin
various items get destroyed here;
inherited Destroy;
end;
end.
|
|
|
|