23R8kd7O%a_-@#h*3uI+17DfZp*=E25?k9Y9d@A>Y;PXd<^^`E$L
zp5qRP_`Ns4As<7l(TI)mUx>AF&^Yl!@5k@?moLX0sBMTTe%A8N@f>L_`d(Vt89%)r
z_0eANC19qo&Y1IemitzR=sWH&IEF9$5x>`8W8(EZ4e~EL*4^hESiY{kc{j3_=Yg@m
zmwo)`Y2t3R!@uHBeD~e(13T8I()w3^Bmd&2xx_;Ajet(U=VcDO24lP5h@s&}{`Icf
znsG)mH*waM`oOJ|o%VWtq`e=9b|%Fkf7{t}iSO^a>-@JPF%Ikf=l!R5a)Q8*`wL&h
zMeNQ^v6I7$HSdM^hFbHmi?3dYdyV)Nk8toGF-HFoAKyTnbD!5c_tesx;)M+y
zXWq|rN8Ay6o?Xrv*b9deV{);5Sm#{5#$oCC0~m1G>T_&zyxy~nR}NrZKFlF|XCXOJ
zBW(Ph=@M_%@w?Y>)DQU`nL7L3eOwaIJM&25UDc=fEulAvk-Tvy@(xGuCCzWY<-Gna
z2RqQq)WU%tqu1UdvUN=LB;OART>N|3b>sx!Z+Vi#YyI$o7kn2UPwh;?;eFW2FFBw+
zwm0O#?dFyX#Z7I}Px^hY&i!ce@hX?6Ctt@d_q`YIntl3vtG?#va=sqTswV%H{3H1!
z`6xLyd6Y)p`#kDz2jpmWi+nWuQog?t#z9z}Fl#;D)^E-1dr7Td+b{N`{cOKVezM=B
X^V$Bd!M_>$KjZ%1|JC4MkQ@6C&37VX
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UMain.dfm
deleted file mode 100644
index bbb2cea522..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UMain.dfm
+++ /dev/null
@@ -1,387 +0,0 @@
-object FormMain: TFormMain
- Left = 0
- Top = 0
- Caption = 'FormMain'
- ClientHeight = 301
- ClientWidth = 771
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- OldCreateOrder = False
- OnCreate = FormCreate
- OnDestroy = FormDestroy
- PixelsPerInch = 96
- TextHeight = 13
- object ListView1: TListView
- Left = 0
- Top = 81
- Width = 771
- Height = 204
- Align = alClient
- Columns = <
- item
- Caption = 'Local name'
- Width = 150
- end
- item
- Caption = 'Archive name'
- Width = 150
- end
- item
- Caption = 'Size'
- Width = 30
- end
- item
- Caption = 'Compressed'
- Width = 30
- end
- item
- Caption = 'Creation'
- end
- item
- Caption = 'Last access'
- end
- item
- Caption = 'Last write'
- end
- item
- Caption = 'Comment'
- Width = 30
- end
- item
- Caption = 'OS'
- Width = 20
- end
- item
- Caption = 'FS'
- Width = 20
- end
- item
- Caption = 'User'
- Width = 20
- end
- item
- Caption = 'Group'
- Width = 20
- end
- item
- Caption = 'CRC'
- end>
- MultiSelect = True
- OwnerData = True
- RowSelect = True
- TabOrder = 0
- ViewStyle = vsReport
- OnData = ListView1Data
- end
- object ProgressBar1: TProgressBar
- Left = 0
- Top = 285
- Width = 771
- Height = 16
- Align = alBottom
- TabOrder = 1
- end
- object PageControl1: TPageControl
- Left = 0
- Top = 0
- Width = 771
- Height = 81
- ActivePage = TabSheetReadOnly
- Align = alTop
- TabOrder = 2
- object TabSheetReadOnly: TTabSheet
- Caption = 'Read-only'
- object ButtonOpen: TButton
- Left = 16
- Top = 16
- Width = 75
- Height = 25
- Action = ActionOpenRO
- TabOrder = 0
- end
- object ButtonExtractSelected: TButton
- Left = 97
- Top = 16
- Width = 96
- Height = 25
- Action = ActionExtractSelectedRO
- TabOrder = 1
- end
- object ButtonExtractAll: TButton
- Left = 199
- Top = 16
- Width = 75
- Height = 25
- Action = ActionExtractAllRO
- TabOrder = 2
- end
- object ButtonROProperties: TButton
- Left = 280
- Top = 16
- Width = 75
- Height = 25
- Action = ActionProperties
- TabOrder = 3
- end
- object ButtonDescend: TButton
- Left = 361
- Top = 16
- Width = 75
- Height = 25
- Action = ActionDescendRO
- TabOrder = 4
- end
- object ButtonLevelUp: TButton
- Left = 442
- Top = 16
- Width = 75
- Height = 25
- Action = ActionLevelUpRO
- TabOrder = 5
- end
- end
- object TabSheetWriteOnly: TTabSheet
- Caption = 'Write-only'
- ImageIndex = 1
- object ButtonNew: TButton
- Left = 16
- Top = 16
- Width = 75
- Height = 25
- Action = ActionNewWO
- TabOrder = 0
- end
- object ButtonAddFile: TButton
- Left = 97
- Top = 16
- Width = 75
- Height = 25
- Action = ActionAddFile
- TabOrder = 1
- end
- object ButtonAddDirectory: TButton
- Left = 178
- Top = 16
- Width = 75
- Height = 25
- Action = ActionAddDirectory
- TabOrder = 2
- end
- object ButtonSave: TButton
- Left = 259
- Top = 16
- Width = 75
- Height = 25
- Action = ActionSave
- TabOrder = 3
- end
- object ButtonPropertiesWO: TButton
- Left = 340
- Top = 16
- Width = 75
- Height = 25
- Action = ActionProperties
- TabOrder = 4
- end
- end
- object TabSheetReadWrite: TTabSheet
- Caption = 'Read and write'
- ImageIndex = 2
- object ButtonNewRW: TButton
- Left = 16
- Top = 16
- Width = 75
- Height = 25
- Action = ActionNewRW
- TabOrder = 0
- end
- object ButtonOpenRW: TButton
- Left = 97
- Top = 16
- Width = 75
- Height = 25
- Action = ActionOpenRW
- TabOrder = 1
- end
- object ButtonDeleteRW: TButton
- Left = 178
- Top = 16
- Width = 75
- Height = 25
- Action = ActionDeleteRW
- TabOrder = 2
- end
- object ButtonAddFileRW: TButton
- Left = 259
- Top = 16
- Width = 75
- Height = 25
- Action = ActionAddFile
- TabOrder = 3
- end
- object ButtonAddDirectoryRW: TButton
- Left = 340
- Top = 16
- Width = 75
- Height = 25
- Action = ActionAddDirectory
- TabOrder = 4
- end
- object ButtonExtractSelectedRW: TButton
- Left = 421
- Top = 16
- Width = 92
- Height = 25
- Action = ActionExtractSelectedRO
- TabOrder = 5
- end
- object ButtonExtractAllRW: TButton
- Left = 519
- Top = 16
- Width = 75
- Height = 25
- Action = ActionExtractAllRO
- TabOrder = 6
- end
- object ButtonSaveRW: TButton
- Left = 600
- Top = 16
- Width = 75
- Height = 25
- Action = ActionSave
- TabOrder = 7
- end
- object ButtonPropertiesRW: TButton
- Left = 681
- Top = 16
- Width = 75
- Height = 25
- Action = ActionProperties
- TabOrder = 8
- end
- end
- end
- object ActionList1: TActionList
- Left = 64
- Top = 152
- object ActionOpenRO: TAction
- Category = 'ReadOnly'
- Caption = '&Open'
- OnExecute = ActionOpenROExecute
- OnUpdate = ActionAlwaysEnabled
- end
- object ActionExtractSelectedRO: TAction
- Category = 'ReadOnly'
- Caption = '&Extract selected'
- OnExecute = ActionExtractSelectedROExecute
- OnUpdate = ActionExtractSelectedROUpdate
- end
- object ActionExtractAllRO: TAction
- Category = 'ReadOnly'
- Caption = 'Extract &all'
- OnExecute = ActionExtractAllROExecute
- OnUpdate = ActionExtractAllROUpdate
- end
- object ActionNewWO: TAction
- Category = 'WriteOnly'
- Caption = '&New'
- OnExecute = ActionNewWOExecute
- OnUpdate = ActionAlwaysEnabled
- end
- object ActionAddFile: TAction
- Category = 'Write'
- Caption = 'Add &file'
- OnExecute = ActionAddFileExecute
- OnUpdate = ActionAddFileUpdate
- end
- object ActionAddDirectory: TAction
- Category = 'Write'
- Caption = 'Add &directory'
- OnExecute = ActionAddDirectoryExecute
- OnUpdate = ActionAddDirectoryUpdate
- end
- object ActionSave: TAction
- Category = 'Write'
- Caption = '&Save'
- OnExecute = ActionSaveExecute
- OnUpdate = ActionSaveUpdate
- end
- object ActionDeleteRW: TAction
- Category = 'ReadWrite'
- Caption = '&Delete'
- OnExecute = ActionDeleteRWExecute
- OnUpdate = ActionDeleteRWUpdate
- end
- object ActionNewRW: TAction
- Category = 'ReadWrite'
- Caption = '&New'
- OnExecute = ActionNewRWExecute
- OnUpdate = ActionAlwaysEnabled
- end
- object ActionOpenRW: TAction
- Category = 'ReadWrite'
- Caption = '&Open'
- OnExecute = ActionOpenRWExecute
- OnUpdate = ActionAlwaysEnabled
- end
- object ActionProperties: TAction
- Category = 'ReadWrite'
- Caption = '&Properties'
- OnExecute = ActionPropertiesExecute
- OnUpdate = ActionPropertiesUpdate
- end
- object ActionDescendRO: TAction
- Category = 'ReadOnly'
- Caption = 'Descend'
- OnExecute = ActionDescendROExecute
- OnUpdate = ActionDescendROUpdate
- end
- object ActionLevelUpRO: TAction
- Category = 'ReadOnly'
- Caption = 'Level up'
- OnExecute = ActionLevelUpROExecute
- OnUpdate = ActionLevelUpROUpdate
- end
- end
- object OpenDialogArchiveRO: TOpenDialog
- FilterIndex = 0
- Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
- Title = 'Open an archive for extraction'
- Left = 104
- Top = 152
- end
- object SaveDialogArchiveWO: TSaveDialog
- DefaultExt = '*.zip'
- FilterIndex = 0
- Options = [ofOverwritePrompt, ofHideReadOnly, ofPathMustExist, ofCreatePrompt, ofNoReadOnlyReturn, ofEnableSizing]
- Title = 'Create a new archive'
- Left = 144
- Top = 152
- end
- object OpenDialogFile: TOpenDialog
- Filter = 'All files (*.*)|*.*'
- FilterIndex = 0
- Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
- Left = 184
- Top = 152
- end
- object OpenDialogArchiveRW: TOpenDialog
- FilterIndex = 0
- Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
- Title = 'Open an archive for modification'
- Left = 104
- Top = 184
- end
- object SaveDialogArchiveRW: TSaveDialog
- DefaultExt = '*.zip'
- FilterIndex = 0
- Options = [ofOverwritePrompt, ofHideReadOnly, ofPathMustExist, ofCreatePrompt, ofNoReadOnlyReturn, ofEnableSizing]
- Title = 'Create a new archive'
- Left = 144
- Top = 184
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UMain.pas
deleted file mode 100644
index f29c12e994..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UMain.pas
+++ /dev/null
@@ -1,676 +0,0 @@
-unit UMain;
-
-{$I jcl.inc}
-{$I windowsonly.inc}
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, ExtCtrls, ActnList, ComCtrls, ImgList, Contnrs,
- JclCompression;
-
-const
- WM_SYNC_ARCHIVE_PROGRESS = WM_USER + 153;
-
-type
- TFormMain = class(TForm)
- ActionList1: TActionList;
- ActionOpenRO: TAction;
- ActionExtractSelectedRO: TAction;
- ActionExtractAllRO: TAction;
- ActionNewWO: TAction;
- ActionAddFile: TAction;
- ActionAddDirectory: TAction;
- ActionSave: TAction;
- ListView1: TListView;
- OpenDialogArchiveRO: TOpenDialog;
- SaveDialogArchiveWO: TSaveDialog;
- OpenDialogFile: TOpenDialog;
- ProgressBar1: TProgressBar;
- PageControl1: TPageControl;
- TabSheetReadOnly: TTabSheet;
- TabSheetWriteOnly: TTabSheet;
- TabSheetReadWrite: TTabSheet;
- ButtonOpen: TButton;
- ButtonExtractSelected: TButton;
- ButtonExtractAll: TButton;
- ButtonNew: TButton;
- ButtonAddFile: TButton;
- ButtonAddDirectory: TButton;
- ButtonSave: TButton;
- ActionDeleteRW: TAction;
- ActionNewRW: TAction;
- ActionOpenRW: TAction;
- ButtonNewRW: TButton;
- ButtonOpenRW: TButton;
- ButtonDeleteRW: TButton;
- ButtonAddFileRW: TButton;
- ButtonAddDirectoryRW: TButton;
- ButtonExtractSelectedRW: TButton;
- ButtonExtractAllRW: TButton;
- ButtonSaveRW: TButton;
- OpenDialogArchiveRW: TOpenDialog;
- SaveDialogArchiveRW: TSaveDialog;
- ButtonROProperties: TButton;
- ActionProperties: TAction;
- ButtonPropertiesWO: TButton;
- ButtonPropertiesRW: TButton;
- ButtonDescend: TButton;
- ActionDescendRO: TAction;
- ActionLevelUpRO: TAction;
- ButtonLevelUp: TButton;
- procedure ActionAlwaysEnabled(Sender: TObject);
- procedure ActionExtractSelectedROUpdate(Sender: TObject);
- procedure ActionExtractAllROUpdate(Sender: TObject);
- procedure ActionAddFileUpdate(Sender: TObject);
- procedure ActionAddDirectoryUpdate(Sender: TObject);
- procedure ActionSaveUpdate(Sender: TObject);
- procedure ActionNewWOExecute(Sender: TObject);
- procedure FormDestroy(Sender: TObject);
- procedure ActionAddFileExecute(Sender: TObject);
- procedure ActionAddDirectoryExecute(Sender: TObject);
- procedure ActionSaveExecute(Sender: TObject);
- procedure ActionOpenROExecute(Sender: TObject);
- procedure ListView1Data(Sender: TObject; Item: TListItem);
- procedure ActionExtractAllROExecute(Sender: TObject);
- procedure ActionExtractSelectedROExecute(Sender: TObject);
- procedure ActionDeleteRWUpdate(Sender: TObject);
- procedure ActionDeleteRWExecute(Sender: TObject);
- procedure ActionNewRWExecute(Sender: TObject);
- procedure ActionOpenRWExecute(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure ActionPropertiesUpdate(Sender: TObject);
- procedure ActionPropertiesExecute(Sender: TObject);
- procedure ActionDescendROUpdate(Sender: TObject);
- procedure ActionLevelUpROUpdate(Sender: TObject);
- procedure ActionDescendROExecute(Sender: TObject);
- procedure ActionLevelUpROExecute(Sender: TObject);
- private
- FArchiveStack: TObjectList;
- FArchive: TJclCompressionArchive;
- procedure WmSyncArchiveProgress(var Message: TMessage); message WM_SYNC_ARCHIVE_PROGRESS;
- public
- procedure CloseArchive;
- procedure CloseAllArchive;
- procedure ArchiveProgress(Sender: TObject; const Value, MaxValue: Int64);
- end;
-
-var
- FormMain: TFormMain;
-
-implementation
-
-{$R *.dfm}
-
-uses
- Sevenzip, FileCtrl,
- JclAnsiStrings,
- UProperties;
-
-function FileTimeToString(const FileTime: TFileTime): string;
-var
- LocalFileTime: TFileTime;
- SystemTime: TSystemTime;
-begin
- if FileTimeToLocalFileTime(FileTime, LocalFileTime)
- and FileTimeToSystemTime(LocalFileTime, SystemTime) then
- Result := DateTimeToStr(EncodeDate(SystemTime.wYear, SystemTime.wMonth, SystemTime.wDay)
- + EncodeTime(SystemTime.wHour, SystemTime.wMinute, SystemTime.wSecond, SystemTime.wMilliseconds))
- else
- Result := '';
-end;
-
-procedure TFormMain.ActionAddDirectoryExecute(Sender: TObject);
-var
- Directory: string;
-begin
- if FileCtrl.SelectDirectory('Select directory', '', Directory {$IFDEF COMPILER9_UP} , [sdNewUI], Self {$ENDIF}) then
- begin
- (FArchive as TJclCompressArchive).AddDirectory(ExtractFileName(Directory), Directory, True, True);
- ListView1.Items.BeginUpdate;
- try
- while ListView1.Items.Count < FArchive.ItemCount do
- ListView1.Items.Add;
- finally
- ListView1.Items.EndUpdate;
- end;
- end;
-end;
-
-procedure TFormMain.ActionAddDirectoryUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := (FArchive is TJclCompressArchive) and FArchive.MultipleItemContainer;
-end;
-
-procedure TFormMain.ActionAddFileExecute(Sender: TObject);
-begin
- if OpenDialogFile.Execute then
- begin
- (FArchive as TJclCompressArchive).AddFile(ExtractFileName(OpenDialogFile.FileName), OpenDialogFile.FileName);
- ListView1.Items.Add;
- end;
-end;
-
-procedure TFormMain.ActionAddFileUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := (FArchive is TJclCompressArchive)
- and (FArchive.MultipleItemContainer or (ListView1.Items.Count = 0));
-end;
-
-procedure TFormMain.ActionAlwaysEnabled(Sender: TObject);
-begin
- (Sender as TAction).Enabled := True;
-end;
-
-procedure TFormMain.ActionDeleteRWExecute(Sender: TObject);
-var
- Index: Integer;
-begin
- for Index := ListView1.Items.Count - 1 downto 0 do
- if ListView1.Items[Index].Selected then
- begin
- (FArchive as TJclUpdateArchive).DeleteItem(Index);
- Break;
- end;
-
- ListView1.Items.Count := FArchive.ItemCount;
- ListView1.Invalidate;
-end;
-
-procedure TFormMain.ActionDeleteRWUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := (FArchive is TJclUpdateArchive) and (ListView1.SelCount = 1);
-end;
-
-procedure TFormMain.ActionDescendROExecute(Sender: TObject);
-var
- ArchiveItem: TJclCompressionItem;
- ArchiveFileName: WideString;
- AFormat: TJclDecompressArchiveClass;
-begin
- ArchiveItem := FArchive.Items[ListView1.ItemIndex];
- ArchiveFileName := ArchiveItem.NestedArchiveName;
- AFormat := GetArchiveFormats.FindDecompressFormat(ArchiveFileName);
- if AFormat <> nil then
- begin
- ListView1.Items.Clear;
- FArchiveStack.Add(FArchive);
-
- FArchive := AFormat.Create(ArchiveItem.NestedArchiveStream, 0, True);
- (FArchive as TJclDecompressArchive).ListFiles;
-
- ListView1.Items.BeginUpdate;
- try
- while ListView1.Items.Count < FArchive.ItemCount do
- ListView1.Items.Add;
- finally
- ListView1.Items.EndUpdate;
- end;
- end
- else
- ShowMessage('not a supported format');
-end;
-
-procedure TFormMain.ActionDescendROUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := Assigned(FArchive) and (FArchive.SupportsNestedArchive) and (ListView1.SelCount = 1);
-end;
-
-procedure TFormMain.ActionExtractAllROExecute(Sender: TObject);
-var
- Directory: string;
-begin
- if FileCtrl.SelectDirectory('Target directory', '', Directory {$IFDEF COMPILER9_UP} , [sdNewUI], Self {$ENDIF}) then
- begin
- if FArchive is TJclDecompressArchive then
- TJclDecompressArchive(FArchive).ExtractAll(Directory, True)
- else
- if FArchive is TJclUpdateArchive then
- TJclUpdateArchive(FArchive).ExtractAll(Directory, True);
- end;
-end;
-
-procedure TFormMain.ActionExtractAllROUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := (FArchive is TJclDecompressArchive) or (FArchive is TJclUpdateArchive);
-end;
-
-procedure TFormMain.ActionExtractSelectedROExecute(Sender: TObject);
-var
- Directory: string;
- Index: Integer;
-begin
- if FileCtrl.SelectDirectory('Target directory', '', Directory {$IFDEF COMPILER9_UP} , [sdNewUI], Self {$ENDIF}) then
- begin
- for Index := 0 to ListView1.Items.Count - 1 do
- FArchive.Items[Index].Selected := ListView1.Items.Item[Index].Selected;
-
- if FArchive is TJclDecompressArchive then
- TJclDecompressArchive(FArchive).ExtractSelected(Directory, True)
- else
- if FArchive is TJclUpdateArchive then
- TJclUpdateArchive(FArchive).ExtractSelected(Directory, True);
- end;
-end;
-
-procedure TFormMain.ActionExtractSelectedROUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := ((FArchive is TJclDecompressArchive) or (FArchive is TJclUpdateArchive))
- and (ListView1.SelCount > 0);
-end;
-
-procedure TFormMain.ActionLevelUpROExecute(Sender: TObject);
-begin
- CloseArchive;
-end;
-
-procedure TFormMain.ActionLevelUpROUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := FArchiveStack.Count > 0;
-end;
-
-procedure TFormMain.ActionNewWOExecute(Sender: TObject);
-var
- ArchiveFileName, VolumeSizeStr, Password: string;
- AFormat: TJclCompressArchiveClass;
- VolumeSize: Int64;
- Code: Integer;
-begin
- if SaveDialogArchiveWO.Execute then
- begin
- CloseAllArchive;
-
- ArchiveFileName := SaveDialogArchiveWO.FileName;
-
- AFormat := GetArchiveFormats.FindCompressFormat(ArchiveFileName);
-
- if AFormat <> nil then
- begin
- VolumeSizeStr := '0';
- repeat
- if InputQuery('Split archive?', 'Volume size in byte:', VolumeSizeStr) then
- Val(VolumeSizeStr, VolumeSize, Code)
- else
- begin
- VolumeSize := 0;
- Code := 0;
- end;
- until Code = 0;
-
- InputQuery('Archive password', 'Value', Password);
-
- if VolumeSize <> 0 then
- ArchiveFileName := ArchiveFileName + '.%.3d';
-
- FArchive := AFormat.Create(ArchiveFileName, VolumeSize, VolumeSize <> 0);
- FArchive.Password := Password;
- FArchive.OnProgress := ArchiveProgress;
- end
- else
- ShowMessage('not a supported format');
- end;
-end;
-
-procedure TFormMain.ActionNewRWExecute(Sender: TObject);
-var
- ArchiveFileName, VolumeSizeStr, Password: string;
- AFormat: TJclUpdateArchiveClass;
- VolumeSize: Int64;
- Code: Integer;
-begin
- if SaveDialogArchiveRW.Execute then
- begin
- CloseAllArchive;
-
- ArchiveFileName := SaveDialogArchiveRW.FileName;
-
- AFormat := GetArchiveFormats.FindUpdateFormat(ArchiveFileName);
-
- if AFormat <> nil then
- begin
- VolumeSizeStr := '0';
- repeat
- if InputQuery('Split archive?', 'Volume size in byte:', VolumeSizeStr) then
- Val(VolumeSizeStr, VolumeSize, Code)
- else
- begin
- VolumeSize := 0;
- Code := 0;
- end;
- until Code = 0;
-
- InputQuery('Archive password', 'Value', Password);
-
- if VolumeSize <> 0 then
- ArchiveFileName := ArchiveFileName + '.%.3d';
-
- FArchive := AFormat.Create(ArchiveFileName, VolumeSize, VolumeSize <> 0);
- FArchive.Password := Password;
- FArchive.OnProgress := ArchiveProgress;
- end
- else
- ShowMessage('not a supported format');
- end;
-end;
-
-procedure TFormMain.ActionOpenROExecute(Sender: TObject);
-var
- ArchiveFileName, Password: string;
- AFormats: TJclDecompressArchiveClassArray;
- SplitArchive: Boolean;
- Index: Integer;
-begin
- if OpenDialogArchiveRO.Execute then
- begin
- CloseAllArchive;
-
- ArchiveFileName := OpenDialogArchiveRO.FileName;
- SplitArchive := AnsiSameText(ExtractFileExt(ArchiveFileName), '.001');
- if SplitArchive then
- ArchiveFileName := ChangeFileExt(ArchiveFileName, '');
-
- AFormats := GetArchiveFormats.FindDecompressFormats(ArchiveFileName);
-
- if Length(AFormats) > 0 then
- begin
- if SplitArchive then
- ArchiveFileName := ArchiveFileName + '.%.3d';
-
- InputQuery('Archive password', 'Value', Password);
- end;
-
- for Index := Low(AFormats) to High(AFormats) do
- begin
- FArchive := AFormats[Index].Create(ArchiveFileName, 0, SplitArchive);
- try
- FArchive.Password := Password;
- FArchive.OnProgress := ArchiveProgress;
-
- if FArchive is TJclDecompressArchive then
- TJclDecompressArchive(FArchive).ListFiles
- else
- if FArchive is TJclUpdateArchive then
- TJclUpdateArchive(FArchive).ListFiles;
-
- ListView1.Items.BeginUpdate;
- try
- while ListView1.Items.Count < FArchive.ItemCount do
- ListView1.Items.Add;
- finally
- ListView1.Items.EndUpdate;
- end;
- Break;
- except
- CloseAllArchive;
- end;
- end;
-
- if not Assigned(FArchive) then
- ShowMessage('not a supported format');
- end;
-end;
-
-procedure TFormMain.ActionOpenRWExecute(Sender: TObject);
-var
- ArchiveFileName, Password: string;
- AFormats: TJclUpdateArchiveClassArray;
- SplitArchive: Boolean;
- Index: Integer;
-begin
- if OpenDialogArchiveRW.Execute then
- begin
- CloseAllArchive;
-
- ArchiveFileName := OpenDialogArchiveRW.FileName;
- SplitArchive := AnsiSameText(ExtractFileExt(ArchiveFileName), '.001');
- if SplitArchive then
- ArchiveFileName := ChangeFileExt(ArchiveFileName, '');
-
- AFormats := GetArchiveFormats.FindUpdateFormats(ArchiveFileName);
-
- if Length(AFormats) > 0 then
- begin
- if SplitArchive then
- ArchiveFileName := ArchiveFileName + '.%.3d';
-
- InputQuery('Archive password', 'Value', Password);
- end;
-
- for Index := Low(AFormats) to High(AFormats) do
- begin
- FArchive := AFormats[Index].Create(ArchiveFileName, 0, SplitArchive);
- try
- FArchive.Password := Password;
- FArchive.OnProgress := ArchiveProgress;
-
- if FArchive is TJclDecompressArchive then
- TJclDecompressArchive(FArchive).ListFiles
- else
- if FArchive is TJclUpdateArchive then
- TJclUpdateArchive(FArchive).ListFiles;
-
- ListView1.Items.BeginUpdate;
- try
- while ListView1.Items.Count < FArchive.ItemCount do
- ListView1.Items.Add;
- finally
- ListView1.Items.EndUpdate;
- end;
- Break;
- except
- CloseAllArchive;
- end;
- end;
- if not Assigned(FArchive) then
- ShowMessage('not a supported format');
- end;
-end;
-
-procedure TFormMain.ActionPropertiesExecute(Sender: TObject);
-begin
- TFormArchiveSettings.Execute(FArchive);
-end;
-
-procedure TFormMain.ActionPropertiesUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := Assigned(FArchive);
-end;
-
-procedure TFormMain.ActionSaveExecute(Sender: TObject);
-begin
- (FArchive as TJclCompressArchive).Compress;
- CloseAllArchive;
-end;
-
-procedure TFormMain.ActionSaveUpdate(Sender: TObject);
-begin
- (Sender as TAction).Enabled := (FArchive is TJclCompressArchive) and (ListView1.Items.Count > 0);
-end;
-
-procedure TFormMain.ArchiveProgress(Sender: TObject; const Value, MaxValue: Int64);
-var
- MyValue, MyMaxValue: Int64;
-begin
- MyValue := Value;
- MyMaxValue := MaxValue;
-
- while MyMaxValue > High(Byte) do
- begin
- MyMaxValue := MyMaxValue shr 8;
- MyValue := MyValue shr 8;
- end;
-
- PostMessage(Handle, WM_SYNC_ARCHIVE_PROGRESS, MyValue, MyMaxValue);
-end;
-
-procedure TFormMain.CloseAllArchive;
-begin
- while Assigned(FArchive) do
- CloseArchive;
-end;
-
-procedure TFormMain.CloseArchive;
-begin
- ListView1.Items.Clear;
- FreeAndNil(FArchive);
- if FArchiveStack.Count > 0 then
- begin
- FArchive := FArchiveStack.Items[FArchiveStack.Count - 1] as TJclCompressionArchive;
- FArchiveStack.Count := FArchiveStack.Count - 1;
- end;
- if Assigned(FArchive) then
- begin
- ListView1.Items.BeginUpdate;
- try
- while ListView1.Items.Count < FArchive.ItemCount do
- ListView1.Items.Add;
- finally
- ListView1.Items.EndUpdate;
- end;
- end;
-end;
-
-procedure TFormMain.FormCreate(Sender: TObject);
- procedure MergeFilters(var AFilter, AllExtensions: string; AFormat: TJclCompressionArchiveClass);
- var
- AName, AExtensions: string;
- begin
- AName := AFormat.ArchiveName;
- AExtensions := AFormat.ArchiveExtensions;
- if AFilter = '' then
- AFilter := Format('%0:s (%1:s)|%1:s', [AName, AExtensions])
- else
- AFilter := Format('%0:s|%1:s (%2:s)|%2:s', [AFilter, AName, AExtensions]);
- if AllExtensions = '' then
- AllExtensions := AExtensions
- else
- AllExtensions := Format('%s;%s', [AllExtensions, AExtensions]);
- end;
- function AddStandardFilters(const AFilter, AllExtensions: string): string;
- begin
- if AFilter = '' then
- Result := ''
- else
- Result := Format('All supported formats|(%0:s)|%1:s', [AllExtensions, AFilter]);
- end;
-var
- AFilter, AllExtensions: string;
- AFormats: TJclCompressionArchiveFormats;
- Index: Integer;
-begin
- FArchiveStack := TObjectList.Create(False);
-
- AFormats := GetArchiveFormats;
-
- AFilter := '';
- AllExtensions := '';
- for Index := 0 to AFormats.CompressFormatCount - 1 do
- MergeFilters(AFilter, AllExtensions, AFormats.CompressFormats[Index]);
- SaveDialogArchiveWO.Filter := AFilter;
-
- AFilter := '';
- AllExtensions := '';
- for Index := 0 to AFormats.UpdateFormatCount - 1 do
- MergeFilters(AFilter, AllExtensions, AFormats.UpdateFormats[Index]);
- SaveDialogArchiveRW.Filter := AFilter;
-
- AFilter := '';
- AllExtensions := '';
- for Index := 0 to AFormats.DecompressFormatCount - 1 do
- MergeFilters(AFilter, AllExtensions, AFormats.DecompressFormats[Index]);
- OpenDialogArchiveRO.Filter := AddStandardFilters(AFilter, AllExtensions);
-
- AFilter := '';
- AllExtensions := '';
- for Index := 0 to AFormats.UpdateFormatCount - 1 do
- MergeFilters(AFilter, AllExtensions, AFormats.UpdateFormats[Index]);
- OpenDialogArchiveRW.Filter := AddStandardFilters(AFilter, AllExtensions);
-end;
-
-procedure TFormMain.FormDestroy(Sender: TObject);
-begin
- CloseAllArchive;
- FArchiveStack.Free;
-end;
-
-procedure TFormMain.ListView1Data(Sender: TObject; Item: TListItem);
-var
- CompressionItem: TJclCompressionItem;
-begin
- if not Assigned(FArchive) then
- begin
- Item.Caption := '';
- Item.SubItems.Clear;
- Exit;
- end;
-
- CompressionItem := FArchive.Items[Item.Index];
-
- Item.Caption := CompressionItem.FileName;
- Item.SubItems.Clear;
- if ipPackedName in CompressionItem.ValidProperties then
- Item.SubItems.Add(CompressionItem.PackedName)
- else
- if ipPackedExtension in CompressionItem.ValidProperties then
- Item.SubItems.Add('(Extension)' + CompressionItem.PackedExtension)
- else
- Item.SubItems.Add('(Auto)');
- if ipFileSize in CompressionItem.ValidProperties then
- Item.SubItems.Add(IntToStr(CompressionItem.FileSize))
- else
- Item.SubItems.Add('');
- if ipPackedSize in CompressionItem.ValidProperties then
- Item.SubItems.Add(IntToStr(CompressionItem.PackedSize))
- else
- Item.SubItems.Add('');
- if ipCreationTime in CompressionItem.ValidProperties then
- Item.SubItems.Add(FileTimeToString(CompressionItem.CreationTime))
- else
- Item.SubItems.Add('');
- if ipLastAccessTime in CompressionItem.ValidProperties then
- Item.SubItems.Add(FileTimeToString(CompressionItem.LastAccessTime))
- else
- Item.SubItems.Add('');
- if ipLastWriteTime in CompressionItem.ValidProperties then
- Item.SubItems.Add(FileTimeToString(CompressionItem.LastWriteTime))
- else
- Item.SubItems.Add('');
- if ipComment in CompressionItem.ValidProperties then
- Item.SubItems.Add(CompressionItem.Comment)
- else
- Item.SubItems.Add('');
- if ipHostOS in CompressionItem.ValidProperties then
- Item.SubItems.Add(CompressionItem.HostOS)
- else
- Item.SubItems.Add('');
- if ipHostFS in CompressionItem.ValidProperties then
- Item.SubItems.Add(CompressionItem.HostFS)
- else
- Item.SubItems.Add('');
- if ipUser in CompressionItem.ValidProperties then
- Item.SubItems.Add(CompressionItem.User)
- else
- Item.SubItems.Add('');
- if ipGroup in CompressionItem.ValidProperties then
- Item.SubItems.Add(CompressionItem.Group)
- else
- Item.SubItems.Add('');
- if ipCRC in CompressionItem.ValidProperties then
- Item.SubItems.Add(IntToHex(CompressionItem.CRC, 8))
- else
- Item.SubItems.Add('');
-end;
-
-procedure TFormMain.WMSyncArchiveProgress(var Message: TMessage);
-begin
- ProgressBar1.Max := Message.LParam;
- ProgressBar1.Position := Message.WParam;
-end;
-
-initialization
-
- if not Load7Zip then
- raise EJclCompressionError.Create('Cannot load sevenzip library');
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UProperties.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UProperties.dfm
deleted file mode 100644
index 38627d3741..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UProperties.dfm
+++ /dev/null
@@ -1,271 +0,0 @@
-object FormArchiveSettings: TFormArchiveSettings
- Left = 0
- Top = 0
- BorderStyle = bsDialog
- Caption = 'Archive settings'
- ClientHeight = 371
- ClientWidth = 493
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Tahoma'
- Font.Style = []
- OldCreateOrder = False
- Position = poMainFormCenter
- PixelsPerInch = 96
- TextHeight = 13
- object GroupBoxGeneralSettings: TGroupBox
- Left = 8
- Top = 8
- Width = 273
- Height = 97
- Caption = 'General settings:'
- TabOrder = 0
- object LabelPassword: TLabel
- Left = 16
- Top = 27
- Width = 50
- Height = 13
- Caption = '&Password:'
- FocusControl = EditPassword
- end
- object LabelNumberOfThreads: TLabel
- Left = 16
- Top = 62
- Width = 94
- Height = 13
- Caption = 'Number of &threads:'
- FocusControl = EditNumberOfThreads
- end
- object EditPassword: TEdit
- Left = 88
- Top = 24
- Width = 169
- Height = 21
- TabOrder = 0
- OnExit = EditPasswordExit
- end
- object EditNumberOfThreads: TEdit
- Left = 128
- Top = 59
- Width = 129
- Height = 21
- BiDiMode = bdRightToLeft
- ParentBiDiMode = False
- TabOrder = 1
- Text = '1'
- OnExit = EditNumberOfThreadsExit
- end
- end
- object GroupBoxCompressionProperties: TGroupBox
- Left = 8
- Top = 111
- Width = 273
- Height = 226
- Caption = 'Compression properties:'
- TabOrder = 1
- object LabelCompressionLevel: TLabel
- Left = 16
- Top = 27
- Width = 176
- Height = 13
- Caption = 'Compression &level (from %d to %d):'
- FocusControl = EditCompressionLevel
- end
- object LabelCompressionMethod: TLabel
- Left = 16
- Top = 58
- Width = 104
- Height = 13
- Caption = '&Compression method:'
- FocusControl = ComboBoxCompressionMethod
- end
- object LabelEncryptionMethod: TLabel
- Left = 16
- Top = 90
- Width = 94
- Height = 13
- Caption = '&Encryption method:'
- FocusControl = ComboBoxEncryptionMethod
- end
- object LabelDictionarySize: TLabel
- Left = 16
- Top = 123
- Width = 73
- Height = 13
- Caption = '&Dictionary size:'
- FocusControl = EditDictionarySize
- end
- object LabelNumberOfPasses: TLabel
- Left = 16
- Top = 158
- Width = 90
- Height = 13
- Caption = '&Number of passes:'
- FocusControl = EditNumberOfPasses
- end
- object LabelSolidBlockSize: TLabel
- Left = 16
- Top = 192
- Width = 74
- Height = 13
- Caption = '&Solid block size:'
- FocusControl = EditSolidBlockSize
- end
- object EditCompressionLevel: TEdit
- Left = 216
- Top = 24
- Width = 41
- Height = 21
- BiDiMode = bdRightToLeft
- ParentBiDiMode = False
- TabOrder = 0
- Text = '6'
- OnExit = EditCompressionLevelExit
- end
- object ComboBoxCompressionMethod: TComboBox
- Left = 136
- Top = 55
- Width = 121
- Height = 21
- Style = csDropDownList
- ItemHeight = 13
- TabOrder = 1
- OnExit = ComboBoxCompressionMethodExit
- end
- object ComboBoxEncryptionMethod: TComboBox
- Left = 136
- Top = 88
- Width = 121
- Height = 21
- Style = csDropDownList
- ItemHeight = 13
- TabOrder = 2
- OnChange = ComboBoxEncryptionMethodChange
- end
- object EditDictionarySize: TEdit
- Left = 136
- Top = 122
- Width = 121
- Height = 21
- BiDiMode = bdRightToLeft
- ParentBiDiMode = False
- TabOrder = 3
- Text = '0'
- OnExit = EditDictionarySizeExit
- end
- object EditNumberOfPasses: TEdit
- Left = 136
- Top = 156
- Width = 121
- Height = 21
- BiDiMode = bdRightToLeft
- ParentBiDiMode = False
- TabOrder = 4
- Text = '0'
- OnExit = EditNumberOfPassesExit
- end
- object EditSolidBlockSize: TEdit
- Left = 136
- Top = 190
- Width = 121
- Height = 21
- BiDiMode = bdRightToLeft
- ParentBiDiMode = False
- TabOrder = 5
- Text = '0'
- OnExit = EditSolidBlockSizeExit
- end
- end
- object GroupBox1: TGroupBox
- Left = 296
- Top = 8
- Width = 185
- Height = 218
- Caption = 'Content:'
- TabOrder = 2
- object CheckBoxRemoveSfxBlock: TCheckBox
- Left = 16
- Top = 24
- Width = 153
- Height = 17
- Caption = '&Remove Sfx block'
- TabOrder = 0
- OnExit = CheckBoxRemoveSfxBlockExit
- end
- object CheckBoxCompressHeader: TCheckBox
- Left = 16
- Top = 48
- Width = 153
- Height = 17
- Caption = 'Compress &header'
- TabOrder = 1
- OnExit = CheckBoxCompressHeaderExit
- end
- object CheckBoxCompressHeaderFull: TCheckBox
- Left = 32
- Top = 72
- Width = 137
- Height = 17
- Caption = 'Compress header &full'
- TabOrder = 2
- OnExit = CheckBoxCompressHeaderFullExit
- end
- object CheckBoxEncryptHeader: TCheckBox
- Left = 16
- Top = 96
- Width = 153
- Height = 17
- Caption = 'Encr&ypt header'
- TabOrder = 3
- OnExit = CheckBoxEncryptHeaderExit
- end
- object CheckBoxSaveCreationDateTime: TCheckBox
- Left = 16
- Top = 120
- Width = 153
- Height = 17
- Caption = 'Save cr&eation date-time'
- TabOrder = 4
- OnExit = CheckBoxSaveCreationDateTimeExit
- end
- object CheckBoxSaveLastAccessDateTime: TCheckBox
- Left = 16
- Top = 144
- Width = 153
- Height = 17
- Caption = 'Save last &access date-time'
- TabOrder = 5
- OnExit = CheckBoxSaveLastAccessDateTimeExit
- end
- object CheckBoxSaveLastSaveDateTime: TCheckBox
- Left = 16
- Top = 167
- Width = 153
- Height = 17
- Caption = 'Save last &write date-time'
- TabOrder = 6
- OnExit = CheckBoxSaveLastSaveDateTimeExit
- end
- object CheckBoxSolidExtension: TCheckBox
- Left = 16
- Top = 190
- Width = 153
- Height = 17
- Caption = 'Solid archive by e&xtension'
- TabOrder = 7
- OnExit = CheckBoxSolidExtensionExit
- end
- end
- object ButtonClose: TButton
- Left = 328
- Top = 257
- Width = 121
- Height = 25
- Caption = 'Close'
- Default = True
- ModalResult = 1
- TabOrder = 3
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UProperties.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UProperties.pas
deleted file mode 100644
index b368e8c5ba..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/compression/archive/UProperties.pas
+++ /dev/null
@@ -1,289 +0,0 @@
-unit UProperties;
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, JclCompression, ActnList;
-
-type
- TFormArchiveSettings = class(TForm)
- GroupBoxGeneralSettings: TGroupBox;
- EditPassword: TEdit;
- LabelPassword: TLabel;
- EditNumberOfThreads: TEdit;
- LabelNumberOfThreads: TLabel;
- GroupBoxCompressionProperties: TGroupBox;
- EditCompressionLevel: TEdit;
- LabelCompressionLevel: TLabel;
- ComboBoxCompressionMethod: TComboBox;
- LabelCompressionMethod: TLabel;
- ComboBoxEncryptionMethod: TComboBox;
- LabelEncryptionMethod: TLabel;
- EditDictionarySize: TEdit;
- LabelDictionarySize: TLabel;
- EditNumberOfPasses: TEdit;
- LabelNumberOfPasses: TLabel;
- GroupBox1: TGroupBox;
- CheckBoxRemoveSfxBlock: TCheckBox;
- CheckBoxCompressHeader: TCheckBox;
- CheckBoxCompressHeaderFull: TCheckBox;
- CheckBoxEncryptHeader: TCheckBox;
- CheckBoxSaveCreationDateTime: TCheckBox;
- CheckBoxSaveLastAccessDateTime: TCheckBox;
- CheckBoxSaveLastSaveDateTime: TCheckBox;
- ButtonClose: TButton;
- CheckBoxSolidExtension: TCheckBox;
- LabelSolidBlockSize: TLabel;
- EditSolidBlockSize: TEdit;
- procedure EditPasswordExit(Sender: TObject);
- procedure EditNumberOfThreadsExit(Sender: TObject);
- procedure EditCompressionLevelExit(Sender: TObject);
- procedure ComboBoxCompressionMethodExit(Sender: TObject);
- procedure ComboBoxEncryptionMethodChange(Sender: TObject);
- procedure EditDictionarySizeExit(Sender: TObject);
- procedure EditNumberOfPassesExit(Sender: TObject);
- procedure CheckBoxRemoveSfxBlockExit(Sender: TObject);
- procedure CheckBoxCompressHeaderExit(Sender: TObject);
- procedure CheckBoxCompressHeaderFullExit(Sender: TObject);
- procedure CheckBoxEncryptHeaderExit(Sender: TObject);
- procedure CheckBoxSaveCreationDateTimeExit(Sender: TObject);
- procedure CheckBoxSaveLastAccessDateTimeExit(Sender: TObject);
- procedure CheckBoxSaveLastSaveDateTimeExit(Sender: TObject);
- procedure CheckBoxSolidExtensionExit(Sender: TObject);
- procedure EditSolidBlockSizeExit(Sender: TObject);
- protected
- FArchive: TJclCompressionArchive;
- FNumberOfThreads: IJclArchiveNumberOfThreads;
- FCompressionLevel: IJclArchiveCompressionLevel;
- FCompressionMethod: IJclArchiveCompressionMethod;
- FEncryptionMethod: IJclArchiveEncryptionMethod;
- FDictionarySize: IJclArchiveDictionarySize;
- FNumberOfPasses: IJclArchiveNumberOfPasses;
- FRemoveSfxBlock: IJclArchiveRemoveSfxBlock;
- FCompressHeader: IJclArchiveCompressHeader;
- FEncryptHeader: IJclArchiveEncryptHeader;
- FSaveCreationDateTime: IJclArchiveSaveCreationDateTime;
- FSaveLastAccessDateTime: IJclArchiveSaveLastAccessDateTime;
- FSaveLastWriteDateTime: IJclArchiveSaveLastWriteDateTime;
- FAlgoritm: IJclArchiveAlgorithm;
- FSolid: IJclArchiveSolid;
- public
- class procedure Execute(Archive: TJclCompressionArchive);
- procedure RefreshValues;
- end;
-
-implementation
-
-{$R *.dfm}
-
-uses
- TypInfo;
-
-procedure TFormArchiveSettings.CheckBoxCompressHeaderExit(Sender: TObject);
-begin
- FCompressHeader.CompressHeader := CheckBoxCompressHeader.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxCompressHeaderFullExit(Sender: TObject);
-begin
- FCompressHeader.CompressHeaderFull := CheckBoxCompressHeaderFull.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxEncryptHeaderExit(Sender: TObject);
-begin
- FEncryptHeader.EncryptHeader := CheckBoxEncryptHeader.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxRemoveSfxBlockExit(Sender: TObject);
-begin
- FRemoveSfxBlock.RemoveSfxBlock := CheckBoxRemoveSfxBlock.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxSaveCreationDateTimeExit(Sender: TObject);
-begin
- FSaveCreationDateTime.SaveCreationDateTime := CheckBoxSaveCreationDateTime.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxSaveLastAccessDateTimeExit(Sender: TObject);
-begin
- FSaveLastAccessDateTime.SaveLastAccessDateTime := CheckBoxSaveLastAccessDateTime.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxSaveLastSaveDateTimeExit(Sender: TObject);
-begin
- FSaveLastWriteDateTime.SaveLastWriteDateTime := CheckBoxSaveLastSaveDateTime.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.CheckBoxSolidExtensionExit(Sender: TObject);
-begin
- FSolid.SolidExtension := CheckBoxSolidExtension.Checked;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.ComboBoxCompressionMethodExit(Sender: TObject);
-begin
- FCompressionMethod.CompressionMethod := TJclCompressionMethod(GetEnumValue(TypeInfo(TJclCompressionMethod),ComboBoxCompressionMethod.Text));
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.ComboBoxEncryptionMethodChange(Sender: TObject);
-begin
- FEncryptionMethod.EncryptionMethod := TJclEncryptionMethod(GetEnumValue(TypeInfo(TJclEncryptionMethod),ComboBoxEncryptionMethod.Text));
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.EditCompressionLevelExit(Sender: TObject);
-begin
- FCompressionLevel.CompressionLevel := StrToInt(EditCompressionLevel.Text);
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.EditDictionarySizeExit(Sender: TObject);
-begin
- FDictionarySize.DictionarySize := StrToInt(EditDictionarySize.Text);
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.EditNumberOfPassesExit(Sender: TObject);
-begin
- FNumberOfPasses.NumberOfPasses := StrToInt(EditNumberOfPasses.Text);
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.EditNumberOfThreadsExit(Sender: TObject);
-begin
- FNumberOfThreads.NumberOfThreads := StrToInt(EditNumberOfThreads.Text);
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.EditPasswordExit(Sender: TObject);
-begin
- FArchive.Password := EditPassword.Text;
- RefreshValues;
-end;
-
-procedure TFormArchiveSettings.EditSolidBlockSizeExit(Sender: TObject);
-begin
- FSolid.SolidBlockSize := StrToInt64(EditSolidBlockSize.Text);
- RefreshValues;
-end;
-
-class procedure TFormArchiveSettings.Execute(Archive: TJclCompressionArchive);
-var
- AFormSettings: TFormArchiveSettings;
- CompressionMethod: TJclCompressionMethod;
- EncryptionMethod: TJclEncryptionMethod;
-begin
- AFormSettings := TFormArchiveSettings.Create(Application);
- try
- Supports(IUnknown(Archive),IJclArchiveNumberOfThreads,AFormSettings.FNumberOfThreads);
- Supports(IUnknown(Archive),IJclArchiveCompressionLevel,AFormSettings.FCompressionLevel);
- Supports(IUnknown(Archive),IJclArchiveCompressionMethod,AFormSettings.FCompressionMethod);
- Supports(IUnknown(Archive),IJclArchiveEncryptionMethod,AFormSettings.FEncryptionMethod);
- Supports(IUnknown(Archive),IJclArchiveDictionarySize,AFormSettings.FDictionarySize);
- Supports(IUnknown(Archive),IJclArchiveNumberOfPasses,AFormSettings.FNumberOfPasses);
- Supports(IUnknown(Archive),IJclArchiveRemoveSfxBlock,AFormSettings.FRemoveSfxBlock);
- Supports(IUnknown(Archive),IJclArchiveCompressHeader,AFormSettings.FCompressHeader);
- Supports(IUnknown(Archive),IJclArchiveEncryptHeader,AFormSettings.FEncryptHeader);
- Supports(IUnknown(Archive),IJclArchiveSaveCreationDateTime,AFormSettings.FSaveCreationDateTime);
- Supports(IUnknown(Archive),IJclArchiveSaveLastAccessDateTime,AFormSettings.FSaveLastAccessDateTime);
- Supports(IUnknown(Archive),IJclArchiveSaveLastWriteDateTime,AFormSettings.FSaveLastWriteDateTime);
- Supports(IUnknown(Archive),IJclArchiveSolid,AFormSettings.FSolid);
- AFormSettings.FArchive := Archive;
-
- if Assigned(AFormSettings.FCompressionLevel) then
- AFormSettings.LabelCompressionLevel.Caption := Format(AFormSettings.LabelCompressionLevel.Caption,
- [AFormSettings.FCompressionLevel.CompressionLevelMin,AFormSettings.FCompressionLevel.CompressionLevelMax])
- else
- AFormSettings.LabelCompressionLevel.Caption := Format(AFormSettings.LabelCompressionLevel.Caption,[0,0]);
-
- if Assigned(AFormSettings.FCompressionMethod) then
- for CompressionMethod := Low(TJclCompressionMethod) to High(TJclCompressionMethod) do
- if CompressionMethod in AFormSettings.FCompressionMethod.SupportedCompressionMethods then
- AFormSettings.ComboBoxCompressionMethod.Items.Add(GetEnumName(TypeInfo(TJclCompressionMethod),Integer(CompressionMethod)));
-
- if Assigned(AFormSettings.FEncryptionMethod) then
- for EncryptionMethod := Low(TJclEncryptionMethod) to High(TJclEncryptionMethod) do
- if EncryptionMethod in AFormSettings.FEncryptionMethod.SupportedEncryptionMethods then
- AFormSettings.ComboBoxEncryptionMethod.Items.Add(GetEnumName(TypeInfo(TJclEncryptionMethod),Integer(EncryptionMethod)));
-
- AFormSettings.RefreshValues;
- AFormSettings.ShowModal;
- finally
- AFormSettings.Free;
- end;
-end;
-
-procedure TFormArchiveSettings.RefreshValues;
-begin
- // password
- EditPassword.Text := FArchive.Password;
- // number of threads
- EditNumberOfThreads.Enabled := Assigned(FNumberOfThreads);
- if Assigned(FNumberOfThreads) then
- EditNumberOfThreads.Text := IntToStr(FNumberOfThreads.NumberOfThreads);
- // compression level
- EditCompressionLevel.Enabled := Assigned(FCompressionLevel);
- if Assigned(FCompressionLevel) then
- EditCompressionLevel.Text := IntToStr(FCompressionLevel.CompressionLevel);
- // compression method
- if Assigned(FCompressionMethod) then
- ComboBoxCompressionMethod.ItemIndex := ComboBoxCompressionMethod.Items.IndexOf(GetEnumName(TypeInfo(TJclCompressionMethod),Integer(FCompressionMethod.CompressionMethod)))
- else
- ComboBoxCompressionMethod.Enabled := False;
- // encryption method
- if Assigned(FEncryptionMethod) then
- ComboBoxEncryptionMethod.ItemIndex := ComboBoxEncryptionMethod.Items.IndexOf(GetEnumName(TypeInfo(TJclEncryptionMethod),Integer(FEncryptionMethod.EncryptionMethod)))
- else
- ComboBoxEncryptionMethod.Enabled := False;
- // dictionary size
- if Assigned(FDictionarySize) then
- EditDictionarySize.Text := IntToStr(FDictionarySize.DictionarySize)
- else
- EditDictionarySize.Enabled := False;
- // number of passes
- if Assigned(FNumberOfPasses) then
- EditNumberOfPasses.Text := IntToStr(FNumberOfPasses.NumberOfPasses)
- else
- EditNumberOfPasses.Enabled := False;
- // solid block size
- if Assigned(FSolid) then
- EditSolidBlockSize.Text := IntToStr(FSolid.SolidBlockSize)
- else
- EditSolidBlockSize.Enabled := False;
- // remove sfx
- CheckBoxRemoveSfxBlock.Enabled := Assigned(FRemoveSfxBlock);
- CheckBoxRemoveSfxBlock.Checked := Assigned(FRemoveSfxBlock) and FRemoveSfxBlock.RemoveSfxBlock;
- // compress header
- CheckBoxCompressHeader.Enabled := Assigned(FCompressHeader);
- CheckBoxCompressHeader.Checked := Assigned(FCompressHeader) and FCompressHeader.CompressHeader;
- // compress header full
- CheckBoxCompressHeaderFull.Enabled := Assigned(FCompressHeader);
- CheckBoxCompressHeaderFull.Checked := Assigned(FCompressHeader) and FCompressHeader.CompressHeaderFull;
- // encrypt header
- CheckBoxEncryptHeader.Enabled := Assigned(FEncryptHeader);
- CheckBoxEncryptHeader.Checked := Assigned(FEncryptHeader) and FEncryptHeader.EncryptHeader;
- // save creation date time
- CheckBoxSaveCreationDateTime.Enabled := Assigned(FSaveCreationDateTime);
- CheckBoxSaveCreationDateTime.Checked := Assigned(FSaveCreationDateTime) and FSaveCreationDateTime.SaveCreationDateTime;
- // save last access date time
- CheckBoxSaveLastAccessDateTime.Enabled := Assigned(FSaveLastAccessDateTime);
- CheckBoxSaveLastAccessDateTime.Checked := Assigned(FSaveLastAccessDateTime) and FSaveLastAccessDateTime.SaveLastAccessDateTime;
- // save last write date time
- CheckBoxSaveLastSaveDateTime.Enabled := Assigned(FSaveLastWriteDateTime);
- CheckBoxSaveLastSaveDateTime.Checked := Assigned(FSaveLastWriteDateTime) and FSaveLastWriteDateTime.SaveLastWriteDateTime;
- // solid by extension
- CheckBoxSolidExtension.Enabled := Assigned(FSolid);
- CheckBoxSolidExtension.Checked := Assigned(FSolid) and FSolid.SolidExtension;
-end;
-
-end.
-
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/console/ConsoleExamples.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/console/ConsoleExamples.dof
deleted file mode 100644
index 246ec9bfe4..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/console/ConsoleExamples.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/console/ConsoleExamples.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/console/ConsoleExamples.dpr
deleted file mode 100644
index 5e5c0ed2fa..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/console/ConsoleExamples.dpr
+++ /dev/null
@@ -1,408 +0,0 @@
-program ConsoleExamples;
-
-{$APPTYPE CONSOLE}
-
-{$I jcl.inc}
-{$I windowsonly.inc}
-
-uses
- SysUtils,
- Windows,
- TypInfo,
- JclBase,
- JclConsole;
-
-{$R ..\..\..\source\windows\JclNoDepAsInvoker.res}
-
-type
- TCPInfoEx = packed record
- MaxCharSize: DWORD;
- DefaultChar: array[0..MAX_DEFAULTCHAR-1] of Byte;
- LeadByte: array[0..MAX_LEADBYTES-1] of Byte;
- UnicodeDefaultChar: WideChar;
- CodePage: DWORD;
- CodePageName: array[0..MAX_PATH-1] of Char;
- end;
-
-function GetCPInfoEx(CodePage, dwFlags: DWORD; var lpCPInfoEx: TCPInfoEx): BOOL; stdcall;
- external 'kernel32.dll' name 'GetCPInfoExA';
-
-procedure ShowConsoleInfo(const Console: TJclConsole);
- function CodePageToName(CodePage: DWORD): string;
- var
- CpInfo: TCPInfoEx;
- begin
- Win32Check(GetCPInfoEx(CodePage, 0, CpInfo));
- Result := CpInfo.CodePageName;
- end;
-begin
- Assert(TJclConsole.IsConsole(GetModuleHandle(nil)));
- Assert(TJclConsole.IsConsole(ParamStr(0)));
-
- Console.ActiveScreen.WriteLn('Old Windows Title : ' + Console.Title);
- Console.Title := 'Information of the Default Output Screen Buffer';
- Console.ActiveScreen.WriteLn('New Windows Title : ' + Console.Title);
- Console.ActiveScreen.WriteLn(Format('Input Code Page : %s', [CodePageToName(Console.InputCodePage)]));
- Console.ActiveScreen.WriteLn(Format('Output Code Page : %s', [CodePageToName(Console.OutputCodePage)]));
-end;
-
-procedure ShowScreenInfo(const ScrBuf: TJclScreenBuffer);
- function ModeToString: string;
- var
- AMode: TJclConsoleOutputMode;
- begin
- for AMode:=Low(TJclConsoleOutputMode) to High(TJclConsoleOutputMode) do
- begin
- if AMode in ScrBuf.Mode then
- begin
- if Result <> '' then
- Result := Result + ', ';
- Result := Result + GetEnumName(TypeInfo(TJclConsoleOutputMode), Integer(AMode));
- end;
- end;
- end;
-var
- OldMode: TJclConsoleOutputModes;
- Attr: IJclScreenTextAttribute;
-begin
- ScrBuf.WriteLn;
- ScrBuf.WriteLn(Format('Handle: ' + HexFmt, [ScrBuf.Handle]));
- ScrBuf.Writeln('Old Mode : ' + ModeToString);
- OldMode := ScrBuf.Mode;
- ScrBuf.Mode := ScrBuf.Mode - [omWrapAtEol];
- ScrBuf.Write('New Mode : ' + ModeToString);
- Readln;
- ScrBuf.Mode := OldMode;
-
- ScrBuf.WriteLn(Format('Old Size: (%d, %d)', [ScrBuf.Width, ScrBuf.Height]));
- ScrBuf.Width := ScrBuf.Width * 2;
- ScrBuf.Write(Format('New Size: (%d, %d)', [ScrBuf.Width, ScrBuf.Height]));
- Readln;
- ScrBuf.Width := ScrBuf.Width div 2;
-
- Attr := TJclScreenTextAttribute.Create(fclYellow, bclBlue, True, False,
- [fsGridHorizontal, fsUnderscore]);
-
- ScrBuf.Write('Top', thaCenter, tvaTop, Attr);
- ScrBuf.Write('Bottom', thaCenter, tvaBottom, Attr);
- ScrBuf.Write('Left', thaLeft, tvaCenter, Attr);
- ScrBuf.Write('Right', thaRight, tvaCenter, Attr);
- ScrBuf.Write('Center', thaCenter, tvaCenter, Attr);
-end;
-
-procedure ShowCursorInfo(const ScrBuf: TJclScreenBuffer);
-const
- BoolName: array[Boolean] of string = ('Hide', 'Show');
-var
- OldPos: TCoord;
- OldSize: TJclScreenCursorSize;
-begin
- ScrBuf.WriteLn;
- ScrBuf.WriteLn(Format('Cursor Position: (%d, %d)', [ScrBuf.Cursor.Position.X, ScrBuf.Cursor.Position.Y]));
- OldPos := ScrBuf.Cursor.Position;
- ScrBuf.Cursor.MoveTo(ScrBuf.Window.Left, ScrBuf.Window.Top);
- ScrBuf.Write(Format('(%d, %d)', [ScrBuf.Cursor.Position.X, ScrBuf.Cursor.Position.Y]));
- ScrBuf.Cursor.Position := OldPos;
- Readln;
- ScrBuf.WriteLn('Left-Top corner :' + ScrBuf.ReadLn(0, 0));
-
- ScrBuf.WriteLn(Format('Old Cursor Size: %d', [ScrBuf.Cursor.Size]));
- OldSize := ScrBuf.Cursor.Size; ScrBuf.Cursor.Size := 100;
- ScrBuf.Write(Format('New Cursor Size: %d', [ScrBuf.Cursor.Size]));
- Readln;
- ScrBuf.Cursor.Size := OldSize;
-
- ScrBuf.WriteLn('Visible of Cursor: ' + BoolName[ScrBuf.Cursor.Visible]);
- ScrBuf.Cursor.Visible := False;
- ScrBuf.Write('Hidden Cursor: ' + BoolName[ScrBuf.Cursor.Visible]);
- Readln;
- ScrBuf.Cursor.Visible := True;
-end;
-
-procedure ShowWindowInfo(const ScrBuf: TJclScreenBuffer);
-var
- OldPos, OldSize: TCoord;
-begin
- ScrBuf.WriteLn;
- ScrBuf.WriteLn(Format('Largest Console Size : (%d, %d)',
- [ScrBuf.Window.MaxConsoleWindowSize.X, ScrBuf.Window.MaxConsoleWindowSize.Y]));
- ScrBuf.WriteLn(Format('Largest Window Size : (%d, %d)',
- [ScrBuf.Window.MaxWindow.X, ScrBuf.Window.MaxWindow.Y]));
-
- ScrBuf.WriteLn(Format('Old Window Position : (%d, %d)', [ScrBuf.Window.Left, ScrBuf.Window.Top]));
- OldPos := ScrBuf.Window.Position;
- ScrBuf.Window.Left := 0;
- ScrBuf.Window.Top := 0;
- ScrBuf.Write(Format('New Window Position : (%d, %d)', [ScrBuf.Window.Left, ScrBuf.Window.Top]));
- Readln;
- ScrBuf.Window.Position := OldPos;
-
- ScrBuf.WriteLn(Format('Old Window Size : (%d, %d)', [ScrBuf.Window.Width, ScrBuf.Window.Height]));
- OldSize := ScrBuf.Window.Size;
- ScrBuf.Window.Width := ScrBuf.Window.Width div 2;
- ScrBuf.Window.Height := ScrBuf.Window.Height div 2;
- ScrBuf.Write(Format('New Window Size : (%d, %d)', [ScrBuf.Window.Width, ScrBuf.Window.Height]));
- Readln;
- ScrBuf.Window.Size := OldSize;
-
- ScrBuf.Write(Format('Scroll up %d line: ', [ScrBuf.Window.Top]));
- Readln;
- OldPos := ScrBuf.Window.Position;
- ScrBuf.Window.Scroll(0, -ScrBuf.Window.Top);
- Readln;
- ScrBuf.Window.Position := OldPos;
-end;
-
-procedure ShowTextAttributeInfo(const ScrBuf: TJclScreenBuffer);
- function StyleToString: string;
- var
- AStyle: TJclScreenFontStyle;
- begin
- for AStyle:=Low(TJclScreenFontStyle) to High(TJclScreenFontStyle) do
- begin
- if AStyle in ScrBuf.Font.Style then
- begin
- if Result <> '' then
- Result := Result + ', ';
- Result := Result + GetEnumName(TypeInfo(TJclScreenFontStyle), Integer(AStyle));
- end;
- end;
- end;
-const
- HighlightName: array[Boolean] of string = ('', ' [Highlight]');
-var
- OldTextAttribute: Word;
-begin
- ScrBuf.WriteLn('Old Font Color : ' +
- GetEnumName(TypeInfo(TJclScreenFontColor), Integer(ScrBuf.Font.Color)) +
- HighlightName[ScrBuf.Font.Highlight]);
- ScrBuf.WriteLn('Old Back Color : ' +
- GetEnumName(TypeInfo(TJclScreenBackColor), Integer(ScrBuf.Font.BgColor)) +
- HighlightName[ScrBuf.Font.BgHighlight]);
- ScrBuf.Writeln('Old Font Style : ' + StyleToString);
- OldTextAttribute := ScrBuf.Font.TextAttribute;
- ScrBuf.Font.Color := fclYellow;
- ScrBuf.Font.Highlight := True;
- ScrBuf.Font.BgColor := bclBlue;
- ScrBuf.Font.Style := ScrBuf.Font.Style + [fsUnderscore];
- ScrBuf.WriteLn('New Font Color : ' +
- GetEnumName(TypeInfo(TJclScreenFontColor), Integer(ScrBuf.Font.Color)) +
- HighlightName[ScrBuf.Font.Highlight]);
- ScrBuf.WriteLn('New Back Color : ' +
- GetEnumName(TypeInfo(TJclScreenBackColor), Integer(ScrBuf.Font.BgColor)) +
- HighlightName[ScrBuf.Font.BgHighlight]);
- ScrBuf.Write('New Font Style : ' + StyleToString);
- ScrBuf.Font.TextAttribute := OldTextAttribute;
- ScrBuf.Writeln;
-end;
-
-{ TCtrlEventHandler }
-
-type
- TCtrlEventHandler = class
- private
- FConsole: TJclConsole;
- FTerminated: Boolean;
- protected
- procedure OnCtrlC(Sender: TObject);
- procedure OnCtrlBreak(Sender: TObject);
- procedure OnClose(Sender: TObject);
- procedure OnLogOff(Sender: TObject);
- procedure OnShutdown(Sender: TObject);
-
- procedure Terminate;
- public
- constructor Create(AConsole: TJclConsole);
-
- property Console: TJclConsole read FConsole;
- property Terminated: Boolean read FTerminated;
- end;
-
-constructor TCtrlEventHandler.Create(AConsole: TJclConsole);
-begin
- FConsole := AConsole;
- FTerminated := False;
-
- Console.OnCtrlC := OnCtrlC;
- Console.OnCtrlBreak := OnCtrlBreak;
- Console.OnClose := OnClose;
- Console.OnLogOff := OnLogOff;
- Console.OnShutdown := OnShutdown;
-end;
-
-procedure TCtrlEventHandler.Terminate;
-var
- Evt: TInputRecord;
-begin
- Sleep(1000);
-
- FTerminated := True;
-
- Evt.EventType := FOCUS_EVENT;
- Evt.Event.FocusEvent.bSetFocus := False;
- FConsole.Input.PutEvent(Evt);
-end;
-
-procedure TCtrlEventHandler.OnCtrlC(Sender: TObject);
-begin
- Console.ActiveScreen.Writeln('Ctrl Event: Ctrl-C');
-end;
-
-procedure TCtrlEventHandler.OnCtrlBreak(Sender: TObject);
-begin
- Console.ActiveScreen.Writeln('Ctrl Event: Ctrl-Break');
-end;
-
-procedure TCtrlEventHandler.OnClose(Sender: TObject);
-begin
- Console.ActiveScreen.Writeln('Ctrl Event: Close');
- Terminate;
-end;
-
-procedure TCtrlEventHandler.OnLogOff(Sender: TObject);
-begin
- Console.ActiveScreen.Writeln('Ctrl Event: Logoff');
- Terminate;
-end;
-
-procedure TCtrlEventHandler.OnShutdown(Sender: TObject);
-begin
- Console.ActiveScreen.Writeln('Ctrl Event: Shutdown');
- Terminate;
-end;
-
-procedure ShowInputInfo(const InputBuf: TJclInputBuffer);
- function ModeToString: string;
- var
- AMode: TJclConsoleInputMode;
- begin
- for AMode:=Low(TJclConsoleInputMode) to High(TJclConsoleInputMode) do
- begin
- if AMode in InputBuf.Mode then
- begin
- if Result <> '' then
- Result := Result + ', ';
- Result := Result + GetEnumName(TypeInfo(TJclConsoleInputMode), Integer(AMode));
- end;
- end;
- end;
-
- procedure AddEvent;
- var
- ir: TInputRecord;
- begin
- ir.EventType := MENU_EVENT;
- ir.Event.MenuEvent.dwCommandId := 111;
- InputBuf.PutEvent(ir);
- end;
-const
- MOUSE_CLICKED = 0;
- MOUSE_WHEELED = 3;
- KeyDownBoolName: array[Boolean] of string = ('released', 'pressed');
- SetFocusBoolName: array[Boolean] of string = ('deactivated', 'activated');
-var
- I: DWORD;
- OldPos: TCoord;
- CtrlEvt: TCtrlEventHandler;
- ScrBuf: TJclScreenBuffer;
-begin
- ScrBuf := InputBuf.Console.ActiveScreen;
- ScrBuf.WriteLn(Format('Input Event Count : %d', [InputBuf.EventCount]));
-
- InputBuf.Mode := [imProcessed, imWindow, imMouse];
- ScrBuf.Writeln('Input Mode : ' + ModeToString);
-
- InputBuf.Clear;
-
- AddEvent;
-
- CtrlEvt := TCtrlEventHandler.Create(InputBuf.Console);
- try
- ScrBuf.WriteLn('Press [q] to break the loop...');
- while not CtrlEvt.Terminated and InputBuf.WaitEvent do
- begin
- with InputBuf.GetEvent do
- case EventType of
- KEY_EVENT:
- begin
- ScrBuf.WriteLn(Format('Key (%s)$%.2x is %s %d times',
- [Event.KeyEvent.AsciiChar, Event.KeyEvent.wVirtualKeyCode,
- KeyDownBoolName[Event.KeyEvent.bKeyDown], Event.KeyEvent.wRepeatCount]));
-
- if Event.KeyEvent.AsciiChar = 'q' then
- Break;
- end;
- _MOUSE_EVENT:
- begin
- case Event.MouseEvent.dwEventFlags of
- MOUSE_CLICKED:
- begin
- for I:= 1 to TJclConsole.MouseButtonCount do
- if (Event.MouseEvent.dwButtonState and (1 shl (I - 1))) <> 0 then
- begin
- ScrBuf.Write(Format('Mouse %d button click at', [I]));
- Break;
- end;
- if I > TJclConsole.MouseButtonCount then
- ScrBuf.Write('Mouse button released at');
- end;
- DOUBLE_CLICK:
- ScrBuf.Write('Mouse double-click at');
- MOUSE_MOVED:
- begin
- if (OldPos.X <> Event.MouseEvent.dwMousePosition.X) or
- (OldPos.Y <> Event.MouseEvent.dwMousePosition.Y) then
- begin
- ScrBuf.Write('Mouse move to');
- OldPos := Event.MouseEvent.dwMousePosition;
- end
- else
- Continue;
- end;
- MOUSE_WHEELED:
- ScrBuf.Write('Mouse wheeled at');
- else
- ScrBuf.Write('Mouse unknown action at');
- end;
-
- ScrBuf.WriteLn(Format(' (%d, %d) ', [Event.MouseEvent.dwMousePosition.X, Event.MouseEvent.dwMousePosition.Y]));
- end;
- WINDOW_BUFFER_SIZE_EVENT:
- ScrBuf.WriteLn(Format('Screen buffer size is change to (%d, %d)',
- [Event.WindowBufferSizeEvent.dwSize.X, Event.WindowBufferSizeEvent.dwSize.Y]));
- MENU_EVENT:
- ScrBuf.WriteLn(Format('Menu command %d is selected', [Event.MenuEvent.dwCommandId]));
- FOCUS_EVENT:
- ScrBuf.Writeln('Console window is ' + SetFocusBoolName[Event.FocusEvent.bSetFocus]);
- else
- ScrBuf.WriteLn(Format('Unknown event - %d', [EventType]));
- end;
- end;
- finally
- FreeAndNil(CtrlEvt);
- end;
-end;
-
-var
- ScrBuf, NewScrBuf: TJclScreenBuffer;
-begin
- ShowConsoleInfo(TJclConsole.Default);
-
- ScrBuf := TJclConsole.Default.ActiveScreen;
-
- ShowScreenInfo(ScrBuf);
- ShowCursorInfo(ScrBuf);
- ShowWindowInfo(ScrBuf);
-
- ScrBuf.Clear;
-
- NewScrBuf := TJclConsole.Default.Add;
- ShowTextAttributeInfo(NewScrBuf);
- TJclConsole.Default.ActiveScreen := NewScrBuf;
-
- ShowInputInfo(TJclConsole.Default.Input);
-
- NewScrBuf.Clear;
-
- TJclConsole.Default.ActiveScreen := ScrBuf;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackDemoMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackDemoMain.dfm
deleted file mode 100644
index e938088a44..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackDemoMain.dfm
+++ /dev/null
@@ -1,91 +0,0 @@
-object Form1: TForm1
- Left = 192
- Top = 136
- ClientWidth = 782
- ClientHeight = 474
- Caption = 'Exception frame tracking example'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- OnCreate = FormCreate
- OnDestroy = FormDestroy
- PixelsPerInch = 96
- TextHeight = 13
- object mmLog: TMemo
- Left = 172
- Top = 32
- Width = 610
- Height = 441
- Anchors = [akLeft, akTop, akRight, akBottom]
- ScrollBars = ssBoth
- TabOrder = 0
- WordWrap = False
- end
- object Button1: TButton
- Left = 4
- Top = 32
- Width = 165
- Height = 25
- Caption = 'Assign to PChar(nil)'
- TabOrder = 1
- OnClick = Button1Click
- end
- object Button2: TButton
- Left = 4
- Top = 60
- Width = 165
- Height = 25
- Caption = 'try ... except'
- TabOrder = 2
- OnClick = Button2Click
- end
- object Button3: TButton
- Left = 4
- Top = 88
- Width = 165
- Height = 25
- Caption = 'try except on.... else'
- TabOrder = 3
- OnClick = Button3Click
- end
- object Button4: TButton
- Left = 4
- Top = 116
- Width = 165
- Height = 25
- Caption = 'try ... finally'
- TabOrder = 4
- OnClick = Button4Click
- end
- object Button5: TButton
- Left = 4
- Top = 144
- Width = 165
- Height = 25
- Caption = 'try try ... finally except'
- TabOrder = 5
- OnClick = Button5Click
- end
- object chkShowAllFrames: TCheckBox
- Left = 180
- Top = 8
- Width = 145
- Height = 17
- Caption = 'Show all exception frames'
- TabOrder = 6
- end
- object Button6: TButton
- Left = 704
- Top = 4
- Width = 75
- Height = 25
- Anchors = [akTop, akRight]
- Caption = 'Clear'
- TabOrder = 7
- OnClick = Button6Click
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackDemoMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackDemoMain.pas
deleted file mode 100644
index ce3d1b9174..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackDemoMain.pas
+++ /dev/null
@@ -1,184 +0,0 @@
-unit FramesTrackDemoMain;
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls;
-
-type
- TForm1 = class(TForm)
- mmLog: TMemo;
- Button1: TButton;
- Button2: TButton;
- Button3: TButton;
- Button4: TButton;
- Button5: TButton;
- chkShowAllFrames: TCheckBox;
- Button6: TButton;
- procedure FormCreate(Sender: TObject);
- procedure FormDestroy(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- procedure Button6Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- procedure Button4Click(Sender: TObject);
- procedure Button5Click(Sender: TObject);
- private
- { Private declarations }
- procedure LogException(ExceptObj: TObject; ExceptAddr: Pointer; IsOS: Boolean);
- public
- { Public declarations }
- end;
-
-var
- Form1: TForm1;
-
-implementation
-
-{$R *.DFM}
-
-uses
- JclDebug, JclHookExcept, TypInfo;
-
-procedure TForm1.LogException(ExceptObj: TObject; ExceptAddr: Pointer; IsOS: Boolean);
-var
- TmpS: string;
- ModInfo: TJclLocationInfo;
- I: Integer;
- ExceptionHandled: Boolean;
- HandlerLocation: Pointer;
- ExceptFrame: TJclExceptFrame;
-
-begin
- TmpS := 'Exception ' + ExceptObj.ClassName;
- if ExceptObj is Exception then
- TmpS := TmpS + ': ' + Exception(ExceptObj).Message;
- if IsOS then
- TmpS := TmpS + ' (OS Exception)';
- mmLog.Lines.Add(TmpS);
- ModInfo := GetLocationInfo(ExceptAddr);
- mmLog.Lines.Add(Format(
- ' Exception occured at $%p (Module "%s", Procedure "%s", Unit "%s", Line %d)',
- [ModInfo.Address,
- ModInfo.UnitName,
- ModInfo.ProcedureName,
- ModInfo.SourceName,
- ModInfo.LineNumber]));
- if stExceptFrame in JclStackTrackingOptions then
- begin
- mmLog.Lines.Add(' Except frame-dump:');
- I := 0;
- ExceptionHandled := False;
- while (chkShowAllFrames.Checked or not ExceptionHandled) and
- (I < JclLastExceptFrameList.Count) do
- begin
- ExceptFrame := JclLastExceptFrameList.Items[I];
- ExceptionHandled := ExceptFrame.HandlerInfo(ExceptObj, HandlerLocation);
- if (ExceptFrame.FrameKind = efkFinally) or
- (ExceptFrame.FrameKind = efkUnknown) or
- not ExceptionHandled then
- HandlerLocation := ExceptFrame.CodeLocation;
- ModInfo := GetLocationInfo(HandlerLocation);
- TmpS := Format(
- ' Frame at $%p (type: %s',
- [ExceptFrame.FrameLocation,
- GetEnumName(TypeInfo(TExceptFrameKind), Ord(ExceptFrame.FrameKind))]);
- if ExceptionHandled then
- TmpS := TmpS + ', handles exception)'
- else
- TmpS := TmpS + ')';
- mmLog.Lines.Add(TmpS);
- if ExceptionHandled then
- mmLog.Lines.Add(Format(
- ' Handler at $%p',
- [HandlerLocation]))
- else
- mmLog.Lines.Add(Format(
- ' Code at $%p',
- [HandlerLocation]));
- mmLog.Lines.Add(Format(
- ' Module "%s", Procedure "%s", Unit "%s", Line %d',
- [ModInfo.UnitName,
- ModInfo.ProcedureName,
- ModInfo.SourceName,
- ModInfo.LineNumber]));
- Inc(I);
- end;
- end;
- mmLog.Lines.Add('');
-end;
-
-procedure TForm1.FormCreate(Sender: TObject);
-begin
- JclAddExceptNotifier(Form1.LogException);
-end;
-
-procedure TForm1.FormDestroy(Sender: TObject);
-begin
- JclRemoveExceptNotifier(Form1.LogException);
-end;
-
-procedure TForm1.Button1Click(Sender: TObject);
-begin
- mmLog.Lines.Add(TButton(Sender).Caption);
- PChar(nil)^ := 'a';
-end;
-
-procedure TForm1.Button6Click(Sender: TObject);
-begin
- mmLog.Lines.Clear;
-end;
-
-procedure TForm1.Button2Click(Sender: TObject);
-begin
- mmLog.Lines.Add(TButton(Sender).Caption);
- try
- PChar(nil)^ := 'a';
- except
- on E: Exception do
- ShowMessage('Error = ' + E.Message);
- end;
-end;
-
-procedure TForm1.Button3Click(Sender: TObject);
-begin
- mmLog.Lines.Add(TButton(Sender).Caption);
- try
- ShowMessage(IntToStr(StrToInt('a')));
- except
- on E: Exception do
- ShowMessage('Exception + ' + E.Message);
- end;
-end;
-
-procedure TForm1.Button4Click(Sender: TObject);
-begin
- mmLog.Lines.Add(TButton(Sender).Caption);
- try
- PChar(nil)^ := 'a';
- finally
- ShowMessage('finally!');
- end;
-end;
-
-procedure TForm1.Button5Click(Sender: TObject);
-begin
- mmLog.Lines.Add(TButton(Sender).Caption);
- try
- try
- PChar(nil)^ := 'a';
- finally
- ShowMessage('Finally!');
- end;
- except
- ShowMessage('Except!');
- end;
-end;
-
-initialization
-
- JclStackTrackingOptions := JclStackTrackingOptions + [stExceptFrame];
- JclStartExceptionTracking;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.dpr
deleted file mode 100644
index 859de07463..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.dpr
+++ /dev/null
@@ -1,16 +0,0 @@
-program FramesTrackExample;
-
-{$I jcl.inc}
-
-uses
- Forms,
- FramesTrackDemoMain in 'FramesTrackDemoMain.pas' {Form1};
-
-{$R *.RES}
-{$R ..\..\..\..\source\windows\JclCommCtrlAsInvoker.res}
-
-begin
- Application.Initialize;
- Application.CreateForm(TForm1, Form1);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/framestrack/FramesTrackExample.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.dpr
deleted file mode 100644
index 2839d4d4b9..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.dpr
+++ /dev/null
@@ -1,13 +0,0 @@
-program JclDebugMTTest;
-
-uses
- Forms,
- JclDebugMTTestMain in 'JclDebugMTTestMain.pas' {MTTestForm};
-
-{$R *.res}
-
-begin
- Application.Initialize;
- Application.CreateForm(TMTTestForm, MTTestForm);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTest.res
deleted file mode 100644
index 119d1715757829c5b46aea563ff8d007487dd4d0..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 4396
zcmbW5y^ice5QS^CNF)e0AfFAiE(S{o$&3%L$5+F6_
ztLm~nvz}%5S}Ik$ySmP)pYE~7%ek+?BU%R{e>Weh`PJ?^N50V=n
zX`nry`}9L^kB^TwmExLl%I_aOSl{)AP3VWscsrl#tNuSeU?g^G=90%WPQG5nYbw1>
z;;0z_S%yeee;W-|6Mu2+D*J8h)9~Q75&N@ZSKP!8hf!MoE+70OV3Xq|&l)EO
z*Lrt5{K=2!-}jLJhlK|*dX1EWNw#os9;cV_lT&&
z}Zn$UI;=sGs5}#P{jdmV$iyfbu>xYQj
zZRVJR1Mk$|u}5Ja;3+*wAJ`Z1TiM1AzJ#?x&BM>9zy1ggb8zr8TjWP#1NiE(r@CPB
z4p+w?WrOV?-Gz`Jk6->g-VqKO&%#EuKXYGCs@ME%$pKDa1~z^hzU=6GFzJIBljFwo
zAl+%-5FCgR46lFU&W(fmlQqw2tp*1l>wGXz4xIzo$RX+(Pqy
zZLHjDA2^)h1zY~2rY-*D(5>;4bCX}23R8kd7O%a_-@#h*3uI+17DfZp*=E25?k9Y9d@A>Y;PXd<^^`E$L
zp5qRP_`Ns4As<7l(TI)mUx>AF&^Yl!@5k@?moLX0sBMTTe%A8N@f>L_`d(Vt89%)r
z_0eANC19qo&Y1IemitzR=sWH&IEF9$5x>`8W8(EZ4e~EL*4^hESiY{kc{j3_=Yg@m
zmwo)`Y2t3R!@uHBeD~e(13T8I()w3^Bmd&2xx_;Ajet(U=VcDO24lP5h@s&}{`Icf
znsG)mH*waM`oOJ|o%VWtq`e=9b|%Fkf7{t}iSO^a>-@JPF%Ikf=l!R5a)Q8*`wL&h
zMeNQ^v6I7$HSdM^hFbHmi?3dYdyV)Nk8toGF-HFoAKyTnbD!5c_tesx;)M+y
zXWq|rN8Ay6o?Xrv*b9deV{);5Sm#{5#$oCC0~m1G>T_&zyxy~nR}NrZKFlF|XCXOJ
zBW(Ph=@M_%@w?Y>)DQU`nL7L3eOwaIJM&25UDc=fEulAvk-Tvy@(xGuCCzWY<-Gna
z2RqQq)WU%tqu1UdvUN=LB;OART>N|3b>sx!Z+Vi#YyI$o7kn2UPwh;?;eFW2FFBw+
zwm0O#?dFyX#Z7I}Px^hY&i!ce@hX?6Ctt@d_q`YIntl3vtG?#va=sqTswV%H{3H1!
z`6xLyd6Y)p`#kDz2jpmWi+nWuQog?t#z9z}Fl#;D)^E-1dr7Td+b{N`{cOKVezM=B
X^V$Bd!M_>$KjZ%1|JC4MkQ@6C&37VX
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTestMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTestMain.dfm
deleted file mode 100644
index ce58633c43..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTestMain.dfm
+++ /dev/null
@@ -1,36 +0,0 @@
-object MTTestForm: TMTTestForm
- Left = 399
- Top = 375
- Width = 325
- Height = 159
- Caption = 'JclDebug MT Test'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- Position = poScreenCenter
- OnCreate = FormCreate
- PixelsPerInch = 96
- TextHeight = 13
- object Button1: TButton
- Left = 8
- Top = 8
- Width = 225
- Height = 25
- Caption = 'Thread Exception Test (requires 2009)'
- TabOrder = 0
- OnClick = Button1Click
- end
- object Button3: TButton
- Left = 8
- Top = 40
- Width = 225
- Height = 25
- Caption = 'Show Thread Snapshot'
- TabOrder = 1
- OnClick = Button3Click
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTestMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTestMain.pas
deleted file mode 100644
index 4047aeb328..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/mttest/JclDebugMTTestMain.pas
+++ /dev/null
@@ -1,219 +0,0 @@
-unit JclDebugMTTestMain;
-
-{$I jcl.inc}
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, PSAPI, JclDebug, JclFileUtils, JclDebugSerialization, JclDebugXMLSerializer;
-
-type
- TMTTestForm = class(TForm)
- Button1: TButton;
- Button3: TButton;
- procedure Button1Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
-var
- MTTestForm: TMTTestForm;
-
-implementation
-
-uses
- JclBase;
-
-{$R *.dfm}
-
-procedure LoadedModules(ModuleList: TJclSerializableModuleInfoList);
-var
- I: Integer;
- ProcessHandle: THandle;
- FileName: array [0..Max_Path] of Char;
- S, BinFileVersion, FileVersion, FileDescription: string;
- FileVersionInfo: TJclFileVersionInfo;
- ModuleInfoList: TJclModuleInfoList;
- ModuleBase: TJclAddr;
- Module: TJclSerializableModuleInfo;
-begin
- ProcessHandle := GetCurrentProcess;
- ModuleInfoList := TJclModuleInfoList.Create(False, False);
- try
- for I := 0 to ModuleInfoList.Count - 1 do
- begin
- ModuleBase := TJclAddr(ModuleInfoList.Items[I].StartAddr);
- GetModuleFileNameEx(ProcessHandle, ModuleBase, FileName, SizeOf(FileName));
- FileVersion := '';
- if (FileName <> '') and VersionResourceAvailable(FileName) then
- begin
- FileVersionInfo := TJclFileVersionInfo.Create(FileName);
- try
- BinFileVersion := FileVersionInfo.BinFileVersion;
- FileVersion := FileVersionInfo.FileVersion;
- FileDescription := FileVersionInfo.FileDescription;
- finally
- FileVersionInfo.Free;
- end;
- end;
- if ModuleInfoList.Items[I].SystemModule then
- S := '1'
- else
- S := '0';
- Module := ModuleList.Add;
- Module.StartStr := Format(HexFmt, [ModuleBase]);
- Module.EndStr := Format(HexFmt, [TJclAddr(ModuleInfoList.Items[I].EndAddr)]);
- Module.SystemModuleStr := S;
- Module.ModuleName := FileName;
- Module.BinFileVersion := BinFileVersion;
- Module.FileVersion := FileVersion;
- Module.FileDescription := FileDescription;
- end;
- finally
- ModuleInfoList.Free;
- end;
-end;
-
-procedure SaveExceptInfo(AExceptObj: TObject; AThreadInfoList: TJclThreadInfoList);
-var
- StackInfo: TStringList;
- ExceptionInfo: TJclSerializableExceptionInfo;
- XMLSerializer: TJclXMLSerializer;
-begin
- ExceptionInfo := TJclSerializableExceptionInfo.Create;
- try
- if AExceptObj is Exception then
- begin
- ExceptionInfo.Exception.ExceptionClassName := Exception(AExceptObj).ClassName;
- ExceptionInfo.Exception.ExceptionMessage := Exception(AExceptObj).Message;
- end;
- LoadedModules(ExceptionInfo.Modules);
- ExceptionInfo.ThreadInfoList.Assign(AThreadInfoList);
- XMLSerializer := TJclXMLSerializer.Create('ExceptInfo');
- try
- ExceptionInfo.Serialize(XMLSerializer);
- StackInfo := TStringList.Create;
- try
- StackInfo.Text := XMLSerializer.SaveToString;
- StackInfo.SaveToFile('ExceptInfo.xml');
- finally
- StackInfo.Free;
- end;
- finally
- XMLSerializer.Free;
- end;
- finally
- ExceptionInfo.Free;
- end;
-end;
-
-type
- TCrashThread = class(TThread)
- public
- procedure Execute; override;
- end;
-
-procedure TCrashThread.Execute;
-begin
- Sleep(5000);
- raise Exception.Create('TestException');
-end;
-
-procedure ExceptionAcquiredProc(AObj: TObject);
-var
- TID: DWORD;
- ThreadInfoList: TJclThreadInfoList;
- ThreadName, ExceptMessage, ExceptInfo: string;
-begin
- if (not (stDisableIfDebuggerAttached in JclStackTrackingOptions) or (not IsDebuggerAttached)) then
- begin
- TID := GetCurrentThreadId;
- ThreadInfoList := TJclThreadInfoList.Create;
- try
- ThreadInfoList.Add.FillFromExceptThread(ThreadInfoList.GatherOptions);
- ThreadInfoList.Gather(TID);
-
- ThreadName := ThreadInfoList[0].Name;
- if tioIsMainThread in ThreadInfoList[0].Values then
- ThreadName := '[MainThread]'
- else
- ThreadName := ThreadInfoList[0].Name;
- ExceptInfo := ThreadInfoList.AsString;
- SaveExceptInfo(AObj, ThreadInfoList);
- finally
- ThreadInfoList.Free;
- end;
- ExceptMessage := Exception(AObj).Message;
- MessageBox(0, PChar(ExceptMessage + #13#10#13#10 + ExceptInfo), PChar(Format('Exception in Thread %d%s', [TID, ThreadName])), MB_OK);
- end;
-end;
-
-procedure TMTTestForm.Button1Click(Sender: TObject);
-begin
- {$IFDEF COMPILER12_UP}
- ExceptionAcquired := @ExceptionAcquiredProc;
- {$ELSE}
- raise Exception.Create('This is not supported by your Delphi version!');
- {$ENDIF COMPILER12_UP}
- TCrashThread.Create(False);
-end;
-
-type
- TLoopSleepThread = class(TThread)
- public
- procedure Execute; override;
- end;
-
-procedure TLoopSleepThread.Execute;
-begin
- while True do
- begin
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- Sleep(100);
- end;
-end;
-
-procedure TMTTestForm.Button3Click(Sender: TObject);
-var
- TID: DWORD;
- ThreadInfoList: TJclThreadInfoList;
- ThreadInfo: string;
-begin
- TLoopSleepThread.Create(False);
- Sleep(100);
- TLoopSleepThread.Create(False);
- Sleep(100);
- TLoopSleepThread.Create(False);
- Sleep(100);
- TID := GetCurrentThreadId;
- ThreadInfoList := TJclThreadInfoList.Create;
- try
- ThreadInfoList.Gather(TID);
- ThreadInfo := ThreadInfoList.AsString;
- finally
- ThreadInfoList.Free;
- end;
- MessageBox(0, PChar(ThreadInfo), 'Thread info (except current thread)', MB_OK);
-end;
-
-procedure TMTTestForm.FormCreate(Sender: TObject);
-begin
- JclStartExceptionTracking;
- JclDebugThreadList.SaveCreationStack := True;
- JclHookThreads;
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.dpr
deleted file mode 100644
index 6b87367898..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.dpr
+++ /dev/null
@@ -1,18 +0,0 @@
-program ExceptionReportConverter;
-
-{$I jcl.inc}
-
-uses
- Forms,
- formConverter in 'formConverter.pas' {frmConverter},
- ExceptDlgMail in '..\..\..\..\experts\repository\ExceptionDialog\StandardDialogs\ExceptDlgMail.pas' {ExceptionDialogMail};
-
-{$R *.res}
-{$R ..\..\..\..\source\windows\JclCommCtrlAsInvoker.res}
-
-begin
- Application.Initialize;
- Application.Title := 'Exception Report Converter';
- Application.CreateForm(TfrmConverter, frmConverter);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/ExceptionReportConverter.res
deleted file mode 100644
index d8a552809ed6777a882d682ecdbd46969240e34e..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmZuw!D`h&6g_zf7)hzGAhf$aLTTM;$WpKsi^YZZABr?vc}QlbDP0)IqQCM=Hp1Pc
zD}O_9WIIp@v{GZ_Gw5vo0y{u4hZqaM-|cx^g;xG|cZFqsiY
zM1Y7bgEjw;3gCyT>N~bfi3(lUQLs%|r+vq^-y+-u9EQbN|3@1f#ULJWz-L%%kV7bHd+I
z&uzl(1D8Hs44g-@ojSKC1CN__I!RL`gMmEr(rDm>#uFI~wb+3sBJ#oec<3~c1FaqJ
zbI-Xh;IAW>Hm6Zo&n(YbXxs`K<|4JUHj&8JhWEi}2EOPi@5uCI+>jBA1*$-GL>Hp}XHFa%_xh_4YA$@r+R2#9O??8@wZ4;gtOt>+ix|Lx9;V@~^^PQGh?X=+Sln
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/formConverter.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/formConverter.dfm
deleted file mode 100644
index 58f6d65dd2..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/formConverter.dfm
+++ /dev/null
@@ -1,65 +0,0 @@
-object frmConverter: TfrmConverter
- Left = 227
- Top = 119
- ClientWidth = 454
- ClientHeight = 80
- Caption = 'Exception Report Converter'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- Position = poScreenCenter
- PixelsPerInch = 96
- TextHeight = 13
- object btnConvert: TButton
- Left = 368
- Top = 9
- Width = 75
- Height = 25
- Caption = '&Convert'
- TabOrder = 2
- OnClick = btnConvertClick
- end
- object txtReportFile: TEdit
- Left = 8
- Top = 11
- Width = 313
- Height = 21
- TabOrder = 0
- Text = 'txtReportFile'
- end
- object txtMapFile: TEdit
- Left = 8
- Top = 51
- Width = 313
- Height = 21
- TabOrder = 1
- Text = 'txtMapFile'
- end
- object btnReportFile: TButton
- Left = 328
- Top = 9
- Width = 22
- Height = 25
- Caption = '...'
- TabOrder = 3
- OnClick = btnReportFileClick
- end
- object btnMapFile: TButton
- Left = 328
- Top = 49
- Width = 22
- Height = 25
- Caption = '...'
- TabOrder = 4
- OnClick = btnMapFileClick
- end
- object dlgOpen: TOpenDialog
- Options = [ofHideReadOnly, ofPathMustExist, ofFileMustExist, ofEnableSizing]
- Left = 392
- Top = 51
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/formConverter.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/formConverter.pas
deleted file mode 100644
index ed23fed826..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/reportconverter/formConverter.pas
+++ /dev/null
@@ -1,194 +0,0 @@
-{**************************************************************************************************}
-{ }
-{ Project JEDI Code Library (JCL) }
-{ }
-{ The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); }
-{ you may not use this file except in compliance with the License. You may obtain a copy of the }
-{ License at http://www.mozilla.org/MPL/ }
-{ }
-{ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF }
-{ ANY KIND, either express or implied. See the License for the specific language governing rights }
-{ and limitations under the License. }
-{ }
-{ The Original Code is formConverter.pas. }
-{ }
-{ The Initial Developer of the Original Code is Elahn Ientile }
-{ Portions created by Elahn Ientile are Copyright (C) Elahn Ientile. }
-{ }
-{**************************************************************************************************}
-{ }
-{ Converts a report send by TExceptionDialogMail where no Debug Info or Map file was present into }
-{ a report equivalent to one where Debug Info or Map file was present, i.e. inc. line numbers, etc }
-{ }
-{ Note: to generate a Map file on compile, add "-GD" to [project name].cfg }
-{ the map file used must be the one generated when that copy of the program was compiled }
-{ }
-{ Unit owner: Elahn Ientile }
-{ Last modified: $Date$ }
-{ }
-{**************************************************************************************************}
-
-unit formConverter;
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, JclDebug;
-
-type
- TfrmConverter = class(TForm)
- btnConvert: TButton;
- txtReportFile: TEdit;
- txtMapFile: TEdit;
- btnReportFile: TButton;
- btnMapFile: TButton;
- dlgOpen: TOpenDialog;
- procedure btnConvertClick(Sender: TObject);
- procedure btnReportFileClick(Sender: TObject);
- procedure btnMapFileClick(Sender: TObject);
- private
- FScanner: TJclMapScanner;
- public
- procedure ConvertFile(AMap, AInput, AOutput: TFileName);
- function FormatInfo(var Info: TJclLocationInfo;
- IncludeAddressOffset: Boolean = True;
- IncludeStartProcLineOffset: Boolean = True): string;
- function GetVALocationInfo(const VA: DWORD; var Info: TJclLocationInfo): Boolean;
- end;
-
-var
- frmConverter: TfrmConverter;
-
-implementation
-
-{$R *.dfm}
-
-procedure TfrmConverter.btnConvertClick(Sender: TObject);
-var
- lStr, lExt: string;
-begin
- if not FileExists(txtReportFile.Text) then
- ShowMessage('Report File does not exist.')
- else if not FileExists(txtMapFile.Text) then
- ShowMessage('Map File does not exist.')
- else
- begin
- lStr := txtReportFile.Text;
- lExt := ExtractFileExt(lStr);
- Insert('.converted', lStr, Length(lStr) + 1 - Length(lExt));
- ConvertFile(txtMapFile.Text, txtReportFile.Text, lStr);
- end;
-end;
-
-procedure TfrmConverter.ConvertFile(AMap, AInput, AOutput: TFileName);
-var
- ls: TStringList;
- i: Integer;
- lInStackList: Boolean;
- s: string;
- VA: DWORD;
- Info: TJclLocationInfo;
-begin
- FScanner := TJclMapScanner.Create(AMap);
- ls := TStringList.Create;
- try
- ls.LoadFromFile(AInput);
- if ls.Count = 0 then
- Exit;
- lInStackList := False;
- i := 0;
- while i < ls.Count do
- begin
- if (Copy(ls[i], 1, 3) = '---') then
- if lInStackList then
- Break
- else if Copy(ls[i+1], 1, 10) = 'Stack list' then
- begin
- lInStackList := True;
- Inc(i, 2);
- end;
- if lInStackList and (Copy(ls[i], 1, 1) = '(') then
- begin
- s := '$' + Copy(ls[i], 2, 8);
- VA := DWORD(StrToInt64(s));
- if GetVALocationInfo(VA, Info) then
- ls[i] := ls[i] + FormatInfo(Info);
- end;
- Inc(i);
- end;
- ls.SaveToFile(AOutput);
- ShowMessage('Successfully converted. Output filename:' + #13#10#13#10 + AOutput);
- finally
- ls.Free;
- end;
-end;
-
-function TfrmConverter.FormatInfo(var Info: TJclLocationInfo;
- IncludeAddressOffset, IncludeStartProcLineOffset: Boolean): string;
-var
- StartProcInfo: TJclLocationInfo;
- OffsetStr, StartProcOffsetStr: string;
-begin
- OffsetStr := '';
- with Info do
- begin
- if LineNumber > 0 then
- begin
- if IncludeStartProcLineOffset and GetVALocationInfo(DWORD(Cardinal(Info.Address) -
- Cardinal(Info.OffsetFromProcName)), StartProcInfo) and (StartProcInfo.LineNumber > 0) then
- StartProcOffsetStr := Format(' + %d', [LineNumber - StartProcInfo.LineNumber])
- else
- StartProcOffsetStr := '';
- if IncludeAddressOffset then
- begin
- if OffsetFromLineNumber >= 0 then
- OffsetStr := Format(' + $%x', [OffsetFromLineNumber])
- else
- OffsetStr := Format(' - $%x', [-OffsetFromLineNumber])
- end;
- Result := Format(' %s.%s (Line %u, "%s"%s)%s', [UnitName, ProcedureName, LineNumber,
- SourceName, StartProcOffsetStr, OffsetStr]);
- end
- else
- begin
- if IncludeAddressOffset then
- OffsetStr := Format(' + $%x', [OffsetFromProcName]);
- if UnitName <> '' then
- Result := Format(' %s.%s%s', [UnitName, ProcedureName, OffsetStr])
- else
- Result := Format(' %s%s', [ProcedureName, OffsetStr]);
- end;
- end;
-end;
-
-function TfrmConverter.GetVALocationInfo(const VA: DWORD; var Info: TJclLocationInfo): Boolean;
-begin
- with FScanner do
- begin
- Info.UnitName := ModuleNameFromAddr(VA);
- Result := (Info.UnitName <> '');
- if Result then
- begin
- Info.Address := Pointer(VA);
- Info.ProcedureName := ProcNameFromAddr(VA, Info.OffsetFromProcName);
- Info.LineNumber := LineNumberFromAddr(VA, Info.OffsetFromLineNumber);
- Info.SourceName := SourceNameFromAddr(VA);
- Info.DebugInfo := nil;
- end;
- end;
-end;
-
-procedure TfrmConverter.btnReportFileClick(Sender: TObject);
-begin
- if dlgOpen.Execute then
- txtReportFile.Text := dlgOpen.FileName;
-end;
-
-procedure TfrmConverter.btnMapFileClick(Sender: TObject);
-begin
- if dlgOpen.Execute then
- txtMapFile.Text := dlgOpen.FileName;
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocDemoMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocDemoMain.dfm
deleted file mode 100644
index 01d18eab6c..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocDemoMain.dfm
+++ /dev/null
@@ -1,134 +0,0 @@
-object Form1: TForm1
- Left = 192
- Top = 107
- ClientWidth = 638
- ClientHeight = 485
- Caption = 'JclDebug Source location example'
- Color = clBtnFace
- Constraints.MinHeight = 300
- Constraints.MinWidth = 600
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- OnCreate = FormCreate
- PixelsPerInch = 96
- TextHeight = 13
- object Label1: TLabel
- Left = 16
- Top = 40
- Width = 29
- Height = 13
- Caption = 'Level:'
- FocusControl = LevelSpinEdit
- end
- object Label2: TLabel
- Left = 136
- Top = 40
- Width = 67
- Height = 13
- Caption = 'Address (hex):'
- FocusControl = AddrEdit
- end
- object Memo1: TMemo
- Left = 0
- Top = 88
- Width = 638
- Height = 396
- Anchors = [akLeft, akTop, akRight, akBottom]
- Font.Charset = EASTEUROPE_CHARSET
- Font.Color = clWindowText
- Font.Height = -12
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- ReadOnly = True
- ScrollBars = ssBoth
- TabOrder = 0
- WordWrap = False
- end
- object CallerBtn: TButton
- Left = 16
- Top = 8
- Width = 89
- Height = 25
- Caption = 'Caller()'
- TabOrder = 1
- OnClick = CallerBtnClick
- end
- object LevelSpinEdit: TSpinEdit
- Left = 16
- Top = 56
- Width = 89
- Height = 22
- MaxValue = 20
- MinValue = 0
- TabOrder = 2
- Value = 0
- end
- object AddrBtn: TButton
- Left = 136
- Top = 8
- Width = 89
- Height = 25
- Caption = 'Address lookup'
- TabOrder = 3
- OnClick = AddrBtnClick
- end
- object AddrEdit: TEdit
- Left = 136
- Top = 56
- Width = 89
- Height = 21
- CharCase = ecUpperCase
- MaxLength = 8
- TabOrder = 4
- Text = 'ADDREDIT'
- end
- object StackBtn: TButton
- Left = 256
- Top = 8
- Width = 89
- Height = 25
- Caption = 'Stack dump'
- TabOrder = 5
- OnClick = StackBtnClick
- end
- object TraceLocBtn: TButton
- Left = 368
- Top = 8
- Width = 89
- Height = 25
- Caption = 'TraceLoc("text")'
- TabOrder = 6
- OnClick = TraceLocBtnClick
- end
- object ProcBtn: TButton
- Left = 480
- Top = 8
- Width = 81
- Height = 25
- Caption = '__PROC__'
- TabOrder = 8
- OnClick = ProcBtnClick
- end
- object ModuleBtn: TButton
- Left = 480
- Top = 48
- Width = 81
- Height = 25
- Caption = '__MODULE__'
- TabOrder = 9
- OnClick = ModuleBtnClick
- end
- object RawCheckBox: TCheckBox
- Left = 256
- Top = 40
- Width = 89
- Height = 17
- Caption = 'Raw'
- TabOrder = 7
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocDemoMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocDemoMain.pas
deleted file mode 100644
index 1120d61f5a..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocDemoMain.pas
+++ /dev/null
@@ -1,124 +0,0 @@
-unit SourceLocDemoMain;
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, Spin;
-
-type
- TForm1 = class(TForm)
- Memo1: TMemo;
- CallerBtn: TButton;
- LevelSpinEdit: TSpinEdit;
- AddrBtn: TButton;
- AddrEdit: TEdit;
- StackBtn: TButton;
- Label1: TLabel;
- Label2: TLabel;
- TraceLocBtn: TButton;
- ProcBtn: TButton;
- ModuleBtn: TButton;
- RawCheckBox: TCheckBox;
- procedure CallerBtnClick(Sender: TObject);
- procedure AddrBtnClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure StackBtnClick(Sender: TObject);
- procedure TraceLocBtnClick(Sender: TObject);
- procedure ProcBtnClick(Sender: TObject);
- procedure ModuleBtnClick(Sender: TObject);
- private
- { Private declarations }
- public
- procedure ReportLocation(Addr: Pointer);
- procedure ReportTime(T: Extended);
- end;
-
-var
- Form1: TForm1;
-
-implementation
-
-{$R *.DFM}
-
-uses
- JclCounter, JclDebug;
-
-procedure TForm1.FormCreate(Sender: TObject);
-var
- P: Pointer;
-begin
- P := @TForm1.AddrBtnClick;
- AddrEdit.Text := IntToHex(Integer(P), 8);
-end;
-
-procedure TForm1.ReportLocation(Addr: Pointer);
-var
- C: TJclCounter;
- S: string;
- T: Extended;
-begin
- StartCount(C);
- S := GetLocationInfoStr(Addr, False, True, True);
- T := StopCount(C);
- Memo1.Lines.Add(S);
- ReportTime(T);
-end;
-
-procedure TForm1.ReportTime(T: Extended);
-begin
- Memo1.Lines.Add(Format('Time: %4.3f ms'#13#10, [T * 1000]));
-end;
-
-procedure TForm1.CallerBtnClick(Sender: TObject);
-begin
- ReportLocation(Caller(LevelSpinEdit.Value));
-end;
-
-procedure TForm1.AddrBtnClick(Sender: TObject);
-var
- Addr: Pointer;
-begin
- Addr := Pointer(StrToInt('$' + Trim(AddrEdit.Text)));
- ReportLocation(Addr);
-end;
-
-procedure TForm1.StackBtnClick(Sender: TObject);
-var
- C: TJclCounter;
- T: Extended;
- SL: TStringList;
-begin
- SL := TStringList.Create;
- try
- StartCount(C);
- with TJclStackInfoList.Create(RawCheckBox.Checked, 0, nil) do
- try
- AddToStrings(SL, False, True, True);
- T := StopCount(C);
- Memo1.Lines.AddStrings(SL);
- ReportTime(T);
- finally
- Free;
- end;
- finally
- SL.Free;
- end;
-end;
-
-procedure TForm1.TraceLocBtnClick(Sender: TObject);
-begin
- TraceLoc('text');
-end;
-
-procedure TForm1.ProcBtnClick(Sender: TObject);
-begin
- ShowMessage(ProcByLevel);
-end;
-
-procedure TForm1.ModuleBtnClick(Sender: TObject);
-begin
- ShowMessage(ModuleByLevel);
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.dpr
deleted file mode 100644
index 9db410bb6b..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.dpr
+++ /dev/null
@@ -1,16 +0,0 @@
-program SourceLocExample;
-
-{$I jcl.inc}
-
-uses
- Forms,
- SourceLocDemoMain in 'SourceLocDemoMain.pas' {Form1};
-
-{$R *.RES}
-{$R ..\..\..\..\source\windows\JclCommCtrlAsInvoker.res}
-
-begin
- Application.Initialize;
- Application.CreateForm(TForm1, Form1);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/sourceloc/SourceLocExample.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.dpr
deleted file mode 100644
index af534e5fb8..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.dpr
+++ /dev/null
@@ -1,21 +0,0 @@
-library StackTrackDLLsComLibrary;
-
-uses
- ComServ,
- JclHookExcept,
- StackTrackDLLsComLibrary_TLB in 'StackTrackDLLsComLibrary_TLB.pas',
- StackTrackDLLsComUnit in 'StackTrackDLLsComUnit.pas' {StackTrackDllsTest: CoClass};
-
-exports
- DllGetClassObject,
- DllCanUnloadNow,
- DllRegisterServer,
- DllUnregisterServer;
-
-{$R *.TLB}
-
-{$R *.RES}
-
-begin
- JclInitializeLibrariesHookExcept;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.tlb b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary.tlb
deleted file mode 100644
index ce1f5db14ce9b56e6c7cead68a0305cf21b7c955..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1668
zcmd5-&r2IY6n>kgfr7L_MH1*?)B5A064M@nC#AYgAfjmkb0|uFt)M2RZWh#A3O)Ab
zMZEUhgY?j=J++jA7xCb~V4(j&^nE)!GLf{GB;bRYH{bW>&HM70*{tNOe1HssJqdb_
zvJ53d6p+;2{Fqm1AKmz7GH&t!L>@dls_&x3+N
zr$M6>P0i?u(vh!!yNMr$l_YhBKa$%tlidSoi4X?cgj^nq$aK;QZ+)BM_
zCuZGhNeF?x55=Id7cICez2x^ZcYJ_aa7Wa)q+gmN^yPcbEtYrk4o^#&OyfQ*<
QJYJOi{^0GXzJtRVw+94&KmY&$
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary_TLB.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary_TLB.pas
deleted file mode 100644
index 554af80bad..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComLibrary_TLB.pas
+++ /dev/null
@@ -1,97 +0,0 @@
-unit StackTrackDLLsComLibrary_TLB;
-
-// ************************************************************************ //
-// WARNING
-// -------
-// The types declared in this file were generated from data read from a
-// Type Library. If this type library is explicitly or indirectly (via
-// another type library referring to this type library) re-imported, or the
-// 'Refresh' command of the Type Library Editor activated while editing the
-// Type Library, the contents of this file will be regenerated and all
-// manual modifications will be lost.
-// ************************************************************************ //
-
-// PASTLWTR : $Revision$
-// File generated on 1.8.2005 02:48:29 from Type Library described below.
-
-// ************************************************************************ //
-// Type Lib: D:\Quellen\jedi\jcl\examples\vcl\debug\stacktrack\StackTrackDLLsComLibrary.tlb (1)
-// IID\LCID: {D4935E5D-790E-48CA-B360-0165C1305153}\0
-// Helpfile:
-// DepndLst:
-// (1) v2.0 stdole, (F:\WINNT\system32\stdole2.tlb)
-// (2) v4.0 StdVCL, (F:\WINNT\system32\STDVCL40.DLL)
-// ************************************************************************ //
-{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
-interface
-
-uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
-
-// *********************************************************************//
-// GUIDS declared in the TypeLibrary. Following prefixes are used:
-// Type Libraries : LIBID_xxxx
-// CoClasses : CLASS_xxxx
-// DISPInterfaces : DIID_xxxx
-// Non-DISP interfaces: IID_xxxx
-// *********************************************************************//
-const
- // TypeLibrary Major and minor versions
- StackTrackDLLsComLibraryMajorVersion = 1;
- StackTrackDLLsComLibraryMinorVersion = 0;
-
- LIBID_StackTrackDLLsComLibrary: TGUID = '{D4935E5D-790E-48CA-B360-0165C1305153}';
-
- IID_IStackTrackDllsTest: TGUID = '{26473046-CCEB-4671-9AB1-2216EF4D2164}';
- CLASS_StackTrackDllsTest: TGUID = '{DA3AEC52-1481-4119-B140-2157C7ADEC5B}';
-type
-
-// *********************************************************************//
-// Forward declaration of types defined in TypeLibrary
-// *********************************************************************//
- IStackTrackDllsTest = interface;
-
-// *********************************************************************//
-// Declaration of CoClasses defined in Type Library
-// (NOTE: Here we map each CoClass to its Default Interface)
-// *********************************************************************//
- StackTrackDllsTest = IStackTrackDllsTest;
-
-
-// *********************************************************************//
-// Interface: IStackTrackDllsTest
-// Flags: (256) OleAutomation
-// GUID: {26473046-CCEB-4671-9AB1-2216EF4D2164}
-// *********************************************************************//
- IStackTrackDllsTest = interface(IUnknown)
- ['{26473046-CCEB-4671-9AB1-2216EF4D2164}']
- function Error1: HResult; stdcall;
- function Error2: HResult; stdcall;
- end;
-
-// *********************************************************************//
-// The Class CoStackTrackDllsTest provides a Create and CreateRemote method to
-// create instances of the default interface IStackTrackDllsTest exposed by
-// the CoClass StackTrackDllsTest. The functions are intended to be used by
-// clients wishing to automate the CoClass objects exposed by the
-// server of this typelibrary.
-// *********************************************************************//
- CoStackTrackDllsTest = class
- class function Create: IStackTrackDllsTest;
- class function CreateRemote(const MachineName: string): IStackTrackDllsTest;
- end;
-
-implementation
-
-uses ComObj;
-
-class function CoStackTrackDllsTest.Create: IStackTrackDllsTest;
-begin
- Result := CreateComObject(CLASS_StackTrackDllsTest) as IStackTrackDllsTest;
-end;
-
-class function CoStackTrackDllsTest.CreateRemote(const MachineName: string): IStackTrackDllsTest;
-begin
- Result := CreateRemoteComObject(MachineName, CLASS_StackTrackDllsTest) as IStackTrackDllsTest;
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComUnit.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComUnit.pas
deleted file mode 100644
index 866b804ce7..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsComUnit.pas
+++ /dev/null
@@ -1,38 +0,0 @@
-unit StackTrackDLLsComUnit;
-
-interface
-
-uses
- Windows, ActiveX, Classes, ComObj, StackTrackDLLsComLibrary_TLB, StdVcl;
-
-type
- TStackTrackDllsTest = class(TTypedComObject, IStackTrackDllsTest)
- protected
- function Error1: HResult; stdcall;
- function Error2: HResult; stdcall;
- end;
-
-implementation
-
-uses ComServ, SysUtils;
-
-procedure Error1_1;
-begin
- StrToInt('x');
-end;
-
-function TStackTrackDllsTest.Error1: HResult;
-begin
- Error1_1;
- Result := S_FALSE;
-end;
-
-function TStackTrackDllsTest.Error2: HResult;
-begin
- raise Exception.Create('Exception from IDllExceptTestObject.Error2');
-end;
-
-initialization
- TTypedComObjectFactory.Create(ComServer, TStackTrackDllsTest, Class_StackTrackDllsTest,
- ciMultiInstance, tmApartment);
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDemoMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDemoMain.dfm
deleted file mode 100644
index 133e192fab..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDemoMain.dfm
+++ /dev/null
@@ -1,115 +0,0 @@
-object MainForm: TMainForm
- Left = 555
- Top = 318
- BorderIcons = [biSystemMenu, biMinimize]
- BorderStyle = bsSingle
- Caption = 'Exceptions in DLLs example'
- ClientHeight = 296
- ClientWidth = 235
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- OnCreate = FormCreate
- PixelsPerInch = 96
- TextHeight = 13
- object StaticLibGroupBox: TGroupBox
- Left = 8
- Top = 8
- Width = 217
- Height = 65
- Caption = 'Statically linked library'
- TabOrder = 0
- object StaticLibError1Btn: TButton
- Left = 23
- Top = 24
- Width = 75
- Height = 25
- Caption = 'Error1'
- TabOrder = 0
- OnClick = StaticLibError1BtnClick
- end
- object StaticLibError2Btn: TButton
- Left = 119
- Top = 24
- Width = 75
- Height = 25
- Caption = 'Error2'
- TabOrder = 1
- OnClick = StaticLibError2BtnClick
- end
- end
- object ComObjGroupBox: TGroupBox
- Left = 8
- Top = 216
- Width = 217
- Height = 65
- Caption = 'COM object'
- TabOrder = 1
- object ComObjErr1Btn: TButton
- Left = 23
- Top = 24
- Width = 75
- Height = 25
- Caption = 'Error1'
- TabOrder = 0
- OnClick = ComObjErr1BtnClick
- end
- object ComObjErr2Btn: TButton
- Left = 119
- Top = 24
- Width = 75
- Height = 25
- Caption = 'Error2'
- TabOrder = 1
- OnClick = ComObjErr2BtnClick
- end
- end
- object DynLibGroupBox: TGroupBox
- Left = 8
- Top = 88
- Width = 217
- Height = 113
- Caption = 'Dynamically linked library'
- TabOrder = 2
- object DynamicLibError1Btn: TButton
- Left = 23
- Top = 64
- Width = 75
- Height = 25
- Caption = 'Error1'
- TabOrder = 0
- OnClick = DynamicLibError1BtnClick
- end
- object DynamicLibError2Btn: TButton
- Left = 119
- Top = 64
- Width = 75
- Height = 25
- Caption = 'Error2'
- TabOrder = 1
- OnClick = DynamicLibError2BtnClick
- end
- object LoadLibBtn: TButton
- Left = 23
- Top = 24
- Width = 75
- Height = 25
- Caption = 'Load'
- TabOrder = 2
- OnClick = LoadLibBtnClick
- end
- object FreeLibBtn: TButton
- Left = 119
- Top = 24
- Width = 75
- Height = 25
- Caption = 'Free'
- TabOrder = 3
- OnClick = FreeLibBtnClick
- end
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDemoMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDemoMain.pas
deleted file mode 100644
index 119694aa5e..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDemoMain.pas
+++ /dev/null
@@ -1,130 +0,0 @@
-unit StackTrackDLLsDemoMain;
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls;
-
-type
- TMainForm = class(TForm)
- StaticLibError1Btn: TButton;
- StaticLibError2Btn: TButton;
- StaticLibGroupBox: TGroupBox;
- ComObjGroupBox: TGroupBox;
- ComObjErr1Btn: TButton;
- ComObjErr2Btn: TButton;
- DynLibGroupBox: TGroupBox;
- DynamicLibError1Btn: TButton;
- DynamicLibError2Btn: TButton;
- LoadLibBtn: TButton;
- FreeLibBtn: TButton;
- procedure StaticLibError1BtnClick(Sender: TObject);
- procedure StaticLibError2BtnClick(Sender: TObject);
- procedure ComObjErr1BtnClick(Sender: TObject);
- procedure ComObjErr2BtnClick(Sender: TObject);
- procedure DynamicLibError1BtnClick(Sender: TObject);
- procedure DynamicLibError2BtnClick(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- procedure LoadLibBtnClick(Sender: TObject);
- procedure FreeLibBtnClick(Sender: TObject);
- private
- FLibHandle: THandle;
- public
- procedure UpdateButtons;
- end;
-
-var
- MainForm: TMainForm;
-
-implementation
-
-{$R *.dfm}
-
-uses
- JclBase, StackTrackDLLsComLibrary_TLB;
-
-const
- StaticLibrary = 'StackTrackDLLsStaticLibrary.dll';
- DynamicLibrary = 'StackTrackDLLsDynamicLibrary.dll';
-
-procedure Error1; stdcall; external StaticLibrary;
-procedure Error2; stdcall; external StaticLibrary;
-
-{ TMainForm }
-
-procedure TMainForm.FormCreate(Sender: TObject);
-begin
- UpdateButtons;
-end;
-
-procedure TMainForm.StaticLibError1BtnClick(Sender: TObject);
-begin
- Error1;
-end;
-
-procedure TMainForm.StaticLibError2BtnClick(Sender: TObject);
-begin
- Error2;
-end;
-
-procedure TMainForm.ComObjErr1BtnClick(Sender: TObject);
-var
- I: IStackTrackDllsTest;
-begin
- I := CoStackTrackDllsTest.Create;
- I.Error1;
-end;
-
-procedure TMainForm.ComObjErr2BtnClick(Sender: TObject);
-var
- I: IStackTrackDllsTest;
-begin
- I := CoStackTrackDllsTest.Create;
- I.Error2;
-end;
-
-procedure TMainForm.LoadLibBtnClick(Sender: TObject);
-begin
- FLibHandle := LoadLibrary(DynamicLibrary);
- UpdateButtons;
- if FLibHandle = 0 then
- RaiseLastOSError;
-end;
-
-procedure TMainForm.FreeLibBtnClick(Sender: TObject);
-begin
- FreeLibrary(FLibHandle);
- FLibHandle := 0;
- UpdateButtons;
-end;
-
-procedure TMainForm.DynamicLibError1BtnClick(Sender: TObject);
-var
- _Error1: procedure; stdcall;
-begin
- @_Error1 := GetProcAddress(FLibHandle, 'Error1');
- if not Assigned(_Error1) then
- RaiseLastOSError;
- _Error1;
-end;
-
-procedure TMainForm.DynamicLibError2BtnClick(Sender: TObject);
-var
- _Error2: procedure; stdcall;
-begin
- @_Error2 := GetProcAddress(FLibHandle, 'Error2');
- if not Assigned(_Error2) then
- RaiseLastOSError;
- _Error2;
-end;
-
-procedure TMainForm.UpdateButtons;
-begin
- LoadLibBtn.Enabled := (FLibHandle = 0);
- FreeLibBtn.Enabled := (FLibHandle <> 0);
- DynamicLibError1Btn.Enabled := (FLibHandle <> 0);
- DynamicLibError2Btn.Enabled := (FLibHandle <> 0);
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.dpr
deleted file mode 100644
index 8901d9e24e..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.dpr
+++ /dev/null
@@ -1,15 +0,0 @@
-library StackTrackDLLsDynamicLibrary;
-
-uses
- SysUtils,
- JclHookExcept,
- StackTrackDLLsDynamicUnit in 'StackTrackDLLsDynamicUnit.pas';
-
-{$R *.res}
-
-exports
- Error1, Error2;
-
-begin
- JclInitializeLibrariesHookExcept;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicLibrary.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicUnit.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicUnit.pas
deleted file mode 100644
index 63283d1acf..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsDynamicUnit.pas
+++ /dev/null
@@ -1,28 +0,0 @@
-unit StackTrackDLLsDynamicUnit;
-
-interface
-
-procedure Error1; stdcall;
-procedure Error2; stdcall;
-
-implementation
-
-uses
- SysUtils;
-
-procedure Error1_1;
-begin
- StrToInt('x');
-end;
-
-procedure Error1; stdcall;
-begin
- Error1_1;
-end;
-
-procedure Error2; stdcall;
-begin
- raise Exception.Create('Exception from StaticLibrary.dll');
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.dpr
deleted file mode 100644
index 6a3e0ec558..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.dpr
+++ /dev/null
@@ -1,17 +0,0 @@
-program StackTrackDLLsExample;
-
-{$I jcl.inc}
-
-uses
- Forms,
- StackTrackDLLsDemoMain in 'StackTrackDLLsDemoMain.pas' {MainForm},
- ExceptDlg in '..\..\..\..\experts\repository\ExceptionDialog\StandardDialogs\ExceptDlg.pas' {ExceptionDialog};
-
-{$R *.res}
-{$R ..\..\..\..\source\windows\JclCommCtrlAsInvoker.res}
-
-begin
- Application.Initialize;
- Application.CreateForm(TMainForm, MainForm);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsExample.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.dpr
deleted file mode 100644
index 65c1c41bb3..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.dpr
+++ /dev/null
@@ -1,15 +0,0 @@
-library StackTrackDLLsStaticLibrary;
-
-uses
- SysUtils,
- JclHookExcept,
- StackTrackDLLsStaticUnit in 'StackTrackDLLsStaticUnit.pas';
-
-{$R *.res}
-
-exports
- Error1, Error2;
-
-begin
- JclInitializeLibrariesHookExcept;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticLibrary.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticUnit.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticUnit.pas
deleted file mode 100644
index 7f241a3af1..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDLLsStaticUnit.pas
+++ /dev/null
@@ -1,28 +0,0 @@
-unit StackTrackDLLsStaticUnit;
-
-interface
-
-procedure Error1; stdcall;
-procedure Error2; stdcall;
-
-implementation
-
-uses
- SysUtils;
-
-procedure Error1_1;
-begin
- StrToInt('x');
-end;
-
-procedure Error1; stdcall;
-begin
- Error1_1;
-end;
-
-procedure Error2; stdcall;
-begin
- raise Exception.Create('Exception from StaticLibrary.dll');
-end;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDemoMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDemoMain.dfm
deleted file mode 100644
index ee943a605b..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDemoMain.dfm
+++ /dev/null
@@ -1,95 +0,0 @@
-object MainForm: TMainForm
- Left = 342
- Top = 197
- ClientWidth = 606
- ClientHeight = 497
- Caption = 'Tracking unhandled exceptions in VCL application'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- PixelsPerInch = 96
- TextHeight = 13
- object Label1: TLabel
- Left = 0
- Top = 64
- Width = 64
- Height = 13
- Caption = '&Exception log'
- FocusControl = ExceptionLogMemo
- end
- object ExceptionLogMemo: TMemo
- Left = 0
- Top = 80
- Width = 606
- Height = 416
- Anchors = [akLeft, akTop, akRight, akBottom]
- Font.Charset = EASTEUROPE_CHARSET
- Font.Color = clWindowText
- Font.Height = -12
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- ReadOnly = True
- ScrollBars = ssBoth
- TabOrder = 0
- WordWrap = False
- end
- object Button1: TButton
- Left = 8
- Top = 8
- Width = 75
- Height = 25
- Caption = 'Error1'
- TabOrder = 1
- OnClick = Button1Click
- end
- object Button2: TButton
- Left = 88
- Top = 8
- Width = 75
- Height = 25
- Caption = 'Error2'
- TabOrder = 2
- OnClick = Button2Click
- end
- object Button3: TButton
- Left = 168
- Top = 8
- Width = 75
- Height = 25
- Caption = 'Error3'
- TabOrder = 3
- OnClick = Button3Click
- end
- object ListBox1: TListBox
- Left = 472
- Top = 8
- Width = 73
- Height = 49
- ItemHeight = 13
- TabOrder = 4
- Visible = False
- end
- object Button4: TButton
- Left = 248
- Top = 8
- Width = 75
- Height = 25
- Caption = 'Error4'
- TabOrder = 5
- OnClick = Button4Click
- end
- object ApplicationEvents: TApplicationEvents
- OnException = ApplicationEventsException
- Left = 8
- Top = 440
- end
- object ActionList1: TActionList
- Left = 440
- Top = 8
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDemoMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDemoMain.pas
deleted file mode 100644
index fce9e8b296..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackDemoMain.pas
+++ /dev/null
@@ -1,110 +0,0 @@
-unit StackTrackDemoMain;
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, AppEvnts, ActnList;
-
-type
- TMainForm = class(TForm)
- ExceptionLogMemo: TMemo;
- Button1: TButton;
- Button2: TButton;
- Button3: TButton;
- ListBox1: TListBox;
- Button4: TButton;
- ApplicationEvents: TApplicationEvents;
- Label1: TLabel;
- ActionList1: TActionList;
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- procedure Button4Click(Sender: TObject);
- procedure ApplicationEventsException(Sender: TObject; E: Exception);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
-var
- MainForm: TMainForm;
-
-implementation
-
-{$R *.DFM}
-
-uses
- JclDebug;
-
-{ TMainForm }
-
-//--------------------------------------------------------------------------------------------------
-// Simulation of various unhandled exceptions
-//--------------------------------------------------------------------------------------------------
-
-procedure TMainForm.Button1Click(Sender: TObject);
-begin
- PInteger(nil)^ := 0;
-end;
-
-procedure TMainForm.Button2Click(Sender: TObject);
-begin
- ListBox1.Items[1] := 'a';
-end;
-
-procedure AAA;
-begin
- PInteger(nil)^ := 0;
-end;
-
-procedure TMainForm.Button3Click(Sender: TObject);
-begin
- AAA;
-end;
-
-procedure TMainForm.Button4Click(Sender: TObject);
-begin
- ActionList1.Actions[0].Execute;
-end;
-
-//--------------------------------------------------------------------------------------------------
-// Simple VCL application unhandled exception handler using JclDebug
-//--------------------------------------------------------------------------------------------------
-
-procedure TMainForm.ApplicationEventsException(Sender: TObject; E: Exception);
-begin
- // Log time stamp
- ExceptionLogMemo.Lines.Add(DateTimeToStr(Now));
-
- // Log unhandled exception stack info to ExceptionLogMemo
- JclLastExceptStackListToStrings(ExceptionLogMemo.Lines, False, True, True, False);
-
- // Insert empty line
- ExceptionLogMemo.Lines.Add('');
-
- // Display default VCL unhandled exception dialog
- Application.ShowException(E);
-end;
-
-//--------------------------------------------------------------------------------------------------
-// JclDebug initialization and finalization for VCL application
-//--------------------------------------------------------------------------------------------------
-
-initialization
-
- // Enable raw mode (default mode uses stack frames which aren't always generated by the compiler)
- Include(JclStackTrackingOptions, stRawMode);
- // Disable stack tracking in dynamically loaded modules (it makes stack tracking code a bit faster)
- Include(JclStackTrackingOptions, stStaticModuleList);
-
- // Initialize Exception tracking
- JclStartExceptionTracking;
-
-finalization
-
- // Uninitialize Exception tracking
- JclStopExceptionTracking;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.dpr
deleted file mode 100644
index 69c3daf36b..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.dpr
+++ /dev/null
@@ -1,16 +0,0 @@
-program StackTrackExample;
-
-{$I jcl.inc}
-
-uses
- Forms,
- StackTrackDemoMain in 'StackTrackDemoMain.pas' {MainForm};
-
-{$R *.RES}
-{$R ..\..\..\..\source\windows\JclCommCtrlAsInvoker.res}
-
-begin
- Application.Initialize;
- Application.CreateForm(TMainForm, MainForm);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/stacktrack/StackTrackExample.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptDemoMain.dfm b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptDemoMain.dfm
deleted file mode 100644
index ff77d69ee9..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptDemoMain.dfm
+++ /dev/null
@@ -1,93 +0,0 @@
-object MainForm: TMainForm
- Left = 286
- Top = 169
- Caption =
- 'Exception tracking in threads and IDE Thread Status window exten' +
- 'sion demo'
- ClientHeight = 557
- ClientWidth = 715
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- OnCreate = FormCreate
- PixelsPerInch = 96
- TextHeight = 13
- object Label1: TLabel
- Left = 8
- Top = 8
- Width = 63
- Height = 13
- Caption = 'Thread name'
- FocusControl = ThreadNameEdit
- end
- object Label2: TLabel
- Left = 8
- Top = 248
- Width = 55
- Height = 13
- Caption = 'Exceprtions'
- end
- object MessageRichEdit: TRichEdit
- Left = 8
- Top = 264
- Width = 697
- Height = 289
- Anchors = [akLeft, akTop, akRight, akBottom]
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- PlainText = True
- ReadOnly = True
- TabOrder = 0
- WordWrap = False
- end
- object ThreadsRichEdit: TRichEdit
- Left = 168
- Top = 8
- Width = 537
- Height = 249
- Anchors = [akLeft, akTop, akRight]
- Font.Charset = ANSI_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'Courier New'
- Font.Style = []
- ParentFont = False
- PlainText = True
- ReadOnly = True
- TabOrder = 1
- WordWrap = False
- end
- object CreateThreadBtn: TButton
- Left = 8
- Top = 56
- Width = 75
- Height = 25
- Caption = 'Create Thread'
- TabOrder = 2
- OnClick = CreateThreadBtnClick
- end
- object ThreadNameEdit: TEdit
- Left = 8
- Top = 24
- Width = 121
- Height = 21
- TabOrder = 3
- end
- object ListThreadsBtn: TButton
- Left = 8
- Top = 96
- Width = 75
- Height = 25
- Caption = 'List Threads'
- TabOrder = 4
- OnClick = ListThreadsBtnClick
- end
-end
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptDemoMain.pas b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptDemoMain.pas
deleted file mode 100644
index 7e54f48e3d..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptDemoMain.pas
+++ /dev/null
@@ -1,172 +0,0 @@
-unit ThreadExceptDemoMain;
-
-{$I jcl.inc}
-
-interface
-
-uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, ComCtrls, JclDebug;
-
-type
- TDemoThread = class(TJclDebugThread)
- private
- procedure SomeErrorHere;
- protected
- procedure Execute; override;
- end;
-
- TMainForm = class(TForm)
- MessageRichEdit: TRichEdit;
- ThreadsRichEdit: TRichEdit;
- CreateThreadBtn: TButton;
- ThreadNameEdit: TEdit;
- ListThreadsBtn: TButton;
- Label1: TLabel;
- Label2: TLabel;
- procedure FormCreate(Sender: TObject);
- procedure CreateThreadBtnClick(Sender: TObject);
- procedure ListThreadsBtnClick(Sender: TObject);
- private
- procedure DoThreadSyncException(Thread: TJclDebugThread);
- procedure DoThreadRegistered(ThreadID: DWORD);
- procedure DoThreadUnregistered(ThreadID: DWORD);
- public
- ThreadCnt: Integer;
- function GetNewThreadName: string;
- procedure ScrollDownRichEdit(RichEdit: TRichEdit);
- end;
-
-var
- MainForm: TMainForm;
-
-implementation
-
-{$R *.dfm}
-
-{ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! }
-{ }
-{ You have to install ThreadNameExpert package located in "\experts\debug\threadnames" }
-{ }
-{ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! }
-
-{$DEFINE IdeThreadStatusWindowExtension}
-
-{$IFDEF IdeThreadStatusWindowExtension}
-uses
- JclIdeThreadStatus;
-{$ENDIF}
-
-{ TDemoThread }
-
-procedure TDemoThread.Execute;
-var
- I: Integer;
-begin
- try
- I := 0;
- while not Terminated and (I < 5) do
- begin
- Sleep(2000);
- MessageBeep(0);
- try
- SomeErrorHere;
- except
- HandleException;
- end;
- Inc(I);
- {$IFDEF IdeThreadStatusWindowExtension}
- // You can change Thread Name displayed in Thread Status Window in code. This does not change
- // TDemoThread.ThreadName property value
- // ChangeThreadName(Self, Format('I = %d', [I]));
- {$ENDIF}
- end;
- except
- HandleException;
- end;
-end;
-
-procedure TDemoThread.SomeErrorHere;
-begin
- // Set Breakpoint on "begin", uncheck "Break" and check "Ingore subsequent exceptions" in
- // dialog advanced breakpoint actions
- StrToInt('x');
-end;
-
-{ TMainForm }
-
-procedure TMainForm.DoThreadRegistered(ThreadID: DWORD);
-begin
- ThreadsRichEdit.Lines.Add(Format('Thread registered: %s', [JclDebugThreadList.ThreadInfos[ThreadID]]));
- ScrollDownRichEdit(ThreadsRichEdit);
-end;
-
-procedure TMainForm.DoThreadSyncException(Thread: TJclDebugThread);
-begin
- MessageRichEdit.Lines.Add(Format('Exception in thread: %s', [Thread.ThreadInfo]));
- // Note: JclLastExceptStackList always returns list for *current* thread ID. To simplify getting the
- // stack of thread where an exception occured JclLastExceptStackList returns stack of the thread instead
- // of current thread when called *within* the JclDebugThreadList.OnSyncException handler. This is the
- // *only* exception to the behavior of JclLastExceptStackList described above.
- JclLastExceptStackList.AddToStrings(MessageRichEdit.Lines, False, True, True);
- ScrollDownRichEdit(MessageRichEdit);
-end;
-
-procedure TMainForm.DoThreadUnregistered(ThreadID: DWORD);
-begin
- ThreadsRichEdit.Lines.Add(Format('Thread unregistered: %s', [JclDebugThreadList.ThreadInfos[ThreadID]]));
- ScrollDownRichEdit(ThreadsRichEdit);
-end;
-
-procedure TMainForm.FormCreate(Sender: TObject);
-begin
- with JclDebugThreadList do
- begin
- OnSyncException := DoThreadSyncException;
- OnThreadRegistered := DoThreadRegistered;
- OnThreadUnregistered := DoThreadUnregistered;
- end;
- ThreadNameEdit.Text := GetNewThreadName;
-end;
-
-function TMainForm.GetNewThreadName: string;
-begin
- Inc(ThreadCnt);
- Result := Format('Thread%d', [ThreadCnt]);
-end;
-
-procedure TMainForm.CreateThreadBtnClick(Sender: TObject);
-var
- DemoThread: TDemoThread;
-begin
- DemoThread := TDemoThread.Create(True, ThreadNameEdit.Text);
- DemoThread.FreeOnTerminate := True;
- {$IFDEF RTL230_UP}
- DemoThread.Start;
- {$ELSE ~RTL230_UP}
- DemoThread.Resume;
- {$ENDIF ~RTL230_UP}
- ThreadNameEdit.Text := GetNewThreadName;
-end;
-
-procedure TMainForm.ListThreadsBtnClick(Sender: TObject);
-var
- I: Integer;
-begin
- ThreadsRichEdit.Lines.Add('List of registered threads:');
- with JclDebugThreadList do
- for I := 0 to ThreadIDCount - 1 do
- ThreadsRichEdit.Lines.Add(ThreadInfos[ThreadIDs[I]]);
- ScrollDownRichEdit(ThreadsRichEdit);
-end;
-
-procedure TMainForm.ScrollDownRichEdit(RichEdit: TRichEdit);
-begin
- SendMessage(RichEdit.Handle, EM_SCROLLCARET, 0, 0);
-end;
-
-initialization
- Include(JclStackTrackingOptions, stRawMode);
- JclStartExceptionTracking;
-
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.dpr
deleted file mode 100644
index 7c51d620ef..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.dpr
+++ /dev/null
@@ -1,18 +0,0 @@
-program ThreadExceptExample;
-
-{$I jcl.inc}
-
-uses
- Forms,
- JclIdeThreadStatus in '..\..\..\..\experts\debug\threadnames\JclIdeThreadStatus.pas',
- ThreadExpertSharedNames in '..\..\..\..\experts\debug\threadnames\ThreadExpertSharedNames.pas',
- ThreadExceptDemoMain in 'ThreadExceptDemoMain.pas' {MainForm};
-
-{$R *.res}
-{$R ..\..\..\..\source\windows\JclCommCtrlAsInvoker.res}
-
-begin
- Application.Initialize;
- Application.CreateForm(TMainForm, MainForm);
- Application.Run;
-end.
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.res b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/threadexcept/ThreadExceptExample.res
deleted file mode 100644
index 472f2e47297a46cf06bb2ce0c8024f600e93445f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 876
zcmb7Dv2N5r5S`;9xg)W{DJ54@#)?ixq5woi0mwzzd`4C)-)wZn8KKjRL~&IVegsim
z<4;MMl8!BqmN)jD1QHD+KkvSIvoqseFA>ok$aw^&f7!#MgFZ#fWYA7dilal&Gfd{d
zD_}xo0Hra(u1-$Sq_Y{=t)_t=*?Vay!e$CjOQd&(lrSF0Tls2mP+KZU0$}{QB){?Cac-k=ge)P
zs@#gmop0R8g}oxl?IPC5q$+ilyo8%O(__-l!GrVd4Js^S-iEqTry#JnP8vd!s;FDl
zq;Z||>|&v=4zWd2S?5$WWh!|QKY>F}P3_f(5WOWpd|j7mcHv`Ne;>F+kC;*qx`@}N
zI@2b!D425=SVC0ra{+0Ysaf8YfGz8My5jwi7&srkpXp
z9NZS0rZ02XvDWFgVg)9vo;QjnQKSDp@U9?#Ex_7v>500o()q
z9vw!*|5}IN*3c784fkjixsOrfDQdkOu0=o1Pl)Io$oVn7qu2D7-UDyw1IB~>c`xiX
POlUqo8g7N%q6z&5v1T5M
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/tools/MakeJclDbg.dof b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/tools/MakeJclDbg.dof
deleted file mode 100644
index 810d3760f0..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/tools/MakeJclDbg.dof
+++ /dev/null
@@ -1,3 +0,0 @@
-[Directories]
-OutputDir=..\..\..\..\bin
-UsePackages=0
diff --git a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/tools/MakeJclDbg.dpr b/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/tools/MakeJclDbg.dpr
deleted file mode 100644
index 744c436f00..0000000000
--- a/windows/src/ext/jedi/jcl/jcl/examples/windows/debug/tools/MakeJclDbg.dpr
+++ /dev/null
@@ -1,138 +0,0 @@
-{**************************************************************************************************}
-{ }
-{ Project JEDI Code Library (JCL) }
-{ }
-{ The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); }
-{ you may not use this file except in compliance with the License. You may obtain a copy of the }
-{ License at http://www.mozilla.org/MPL/ }
-{ }
-{ Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF }
-{ ANY KIND, either express or implied. See the License for the specific language governing rights }
-{ and limitations under the License. }
-{ }
-{ The Original Code is MakeJclDbg.dpr. }
-{ }
-{ The Initial Developer of the Original Code is documented in the accompanying }
-{ help file JCL.chm. Portions created by these individuals are Copyright (C) of these individuals. }
-{ }
-{**************************************************************************************************}
-{ }
-{ Command line tool for inserting JCL debug data created from MAP files into executable files }
-{ }
-{**************************************************************************************************}
-{ }
-{ Last modified: $Date:: $ }
-{ Revision: $Rev:: $ }
-{ Author: $Author:: $ }
-{ }
-{**************************************************************************************************}
-
-program MakeJclDbg;
-
-{$I jcl.inc}
-
-{$APPTYPE CONSOLE}
-
-uses
- Windows, Classes, SysUtils,
- JclDebug, JclFileUtils, JclPeImage, JclStrings;
-
-var
- CreateJdbgFlag, InsertToExeFlag, DeleteMapFlag: Boolean;
-
-function FindExecutableFileName(const MapFileName: TFileName): TFileName;
-var
- ExecFilesList: TStringList;
- I, ValidCnt: Integer;
-begin
- Result := '';
- ValidCnt := 0;
- ExecFilesList := TStringList.Create;
- try
- if AdvBuildFileList(ChangeFileExt(MapFileName, '.*'), faArchive, ExecFilesList, amSubSetOf, [flFullNames]) then
- with ExecFilesList do
- begin
- for I := 0 to Count - 1 do
- if IsValidPeFile(Strings[I]) then
- begin
- Objects[I] := Pointer(True);
- Inc(ValidCnt);
- if Result = '' then
- Result := Strings[I];
- end;
- case ValidCnt of
- 0: WriteLn(#13#10'Can not find any executable file for the MAP file.');
- 1: Write(' -> ' + ExtractFileName(Result));
- else
- Result := '';
- WriteLn(#13#10'Ambiguous executable file names:');
- for I := 0 to Count - 1 do
- if Boolean(Objects[I]) then
- WriteLn(Strings[I]);
- end;
- end;
- finally
- ExecFilesList.Free;
- end;
-end;
-
-function MakeDebugData(const FileNames: string): Boolean;
-var
- FilesList: TStringList;
- I: Integer;
- MapFileSize, BinDataSize: Integer;
- FileName, ExecutableFileName: TFileName;
- LinkerBugUnit: string;
-begin
- Result := True;
- FilesList := TStringList.Create;
- try
- if AdvBuildFileList(FileNames, faArchive, FilesList, amSubSetOf, [flFullNames]) then
- for I := 0 to FilesList.Count - 1 do
- begin
- FileName := FilesList[I];
- if not AnsiSameText(ExtractFileExt(FileName), '.map') then
- Continue;
- Write(#13#10, FilesList[I]);
- Result := True;
- if Result and CreateJdbgFlag then
- Result := ConvertMapFileToJdbgFile(FileName);
- if Result and InsertToExeFlag then
- begin
- ExecutableFileName := FindExecutableFileName(FileName);
- Result := (ExecutableFileName <> '') and
- InsertDebugDataIntoExecutableFile(ExecutableFileName,
- FileName, LinkerBugUnit, MapFileSize, BinDataSize);
- end;
- if Result and DeleteMapFlag then
- Result := FileDelete(FileName);
- if Result then
- WriteLn(' ... OK')
- else
- begin
- WriteLn(' ... ERROR!');
- Break;
- end;
- end;
- finally
- FilesList.Free;
- end;
-end;
-
-begin
- WriteLn('Make JCL debug data command line utility. (c) 2002-2012 Project JEDI');
- CreateJdbgFlag := ParamPos('J') > 0;
- InsertToExeFlag := ParamPos('E') > 0;
- DeleteMapFlag := ParamPos('M') > 0;
- if not (CreateJdbgFlag or InsertToExeFlag or DeleteMapFlag) then
- begin
- WriteLn('Usage: MAKEJCLDBG [-J] [-E] [-M]