Hi Jan,
I have made an email to Jan Fiala <[EMAIL PROTECTED]> but I haven't received a
reply.

I have a problem with the 2 last BETA 2271 and 2272(I haven't that error using
the previous ones : 2269,...)

I have a script linked to F10 shortcut (CloseMinimize.js) :
--------------------------------------------------------------------------------
--------------------

var module_name = "CloseTabAndMinimize";

function CloseActiveTabAndMinimize ()
{
var WshShell = new ActiveXObject("WScript.Shell");

if (editorsCount() > 1)
WshShell.SendKeys("^{F4}");
else
{
WshShell.SendKeys("^{F4}");
WshShell.SendKeys("%{F2}");
}
}

function Init()
{
addMenuItem( "Close - Minimize", "", "CloseActiveTabAndMinimize", "F10");
}
--------------------------------------------------------------------------------
--------------------
Extract from my KeyMap.INI file :
aExitEsc=Alt+F2
aClose=Ctrl+F4
--------------------------------------------------------------------------------
--------------------


It ran right since several versions.

But with the 2 last versions, if I open a file, after viewing the file content,
if I do F10, it gives an exception.

Recompiling scripts does not change the problem.
Can you investigate ?

Best regards.   Menet.

Here is the Exception description with 2271:

Access violation at address 0048D521 in module 'PSPad.exe'. Read of address
000002F4.

Exception class: EAccessViolation
Exception address: 0048D521
--------------------------------------------------------------------------------
--------------------
Stack list, generated 17/08/2007 21:30:54
[0048D521] Forms.TCustomForm.Close + $5
[00404BE3] [EMAIL PROTECTED] + $33
[004A48A3] Controls.TWinControl.WndProc + $157
[0048A6ED] Forms.TCustomForm.WndProc + $421
[004223CC] Classes.TThreadList.UnlockList + $4
[00434190] Graphics.FreeMemoryContexts + $98
[00696C7B] uMain.TfPSPad.aExitEscExecute (Line 8987, "uMain.pas" + 23) + $2
[0069AD04] uMain.TfPSPad.ActionListExecute (Line 10363, "uMain.pas" + 8) + $7
[004846EC] ActnList.TCustomActionList.ExecuteAction + $14
[00484334] ActnList.TContainedAction.Execute + $14
[00484FF3] ActnList.TCustomAction.Execute + $4F
[00485089] ActnList.TCustomAction.HandleShortCut + $5
[004846C7] ActnList.TCustomActionList.IsShortCut + $7B
[0048DDF4] Forms.DispatchShortCut + $3C
[0048DE6C] Forms.TCustomForm.IsShortCut + $60
[004A64E2] Controls.TWinControl.IsMenuKey + $66
[004A66A5] Controls.TWinControl.CNSysKeyDown + $11
[004A1844] Controls.TControl.WndProc + $188
[004A48A3] Controls.TWinControl.WndProc + $157
[0048A6ED] Forms.TCustomForm.WndProc + $421
[004F1BF9] TntControls.TWinControlTrap.WindowProc (Line 662, "TntControls.pas" +
19) + $5
[004A4520] Controls.TWinControl.MainWndProc + $2C
[0042C488] Classes.StdWndProc + $14
[004F185C] TntControls.TWinControlTrap.Win32Proc (Line 550, "TntControls.pas" +
12) + $19
[0042C488] Classes.StdWndProc + $14
[00490CAB] Forms.TApplication.IsKeyMsg + $77
[00490DF2] Forms.TApplication.ProcessMessage + $66
[00490E46] Forms.TApplication.HandleMessage + $A
[00491076] Forms.TApplication.Run + $96
[006BEDBA] PSPad.PSPad (Line 55, "I:\Delphi7\Projekty\PSPad\PSPad.dpr" + 31) +
$7
--------------------------------------------------------------------------------
--------------------
Program  : c:\util\pspad\PSPad.exe  4.5.3 (2271)
System   : Windows XP Home Edition, Version: 5.1, Build: A28, "Service Pack 2"
Processor: AMD, AMD Athlon(tm) 64 Processor 3400+, 2190 MHz MMX
Display  : 1024x768 pixels, 32 bpp
--------------------------------------------------------------------------------
--------------------

Here is the Exception description with 2272 (seems to be the same error log):
Access violation at address 0048D521 in module 'PSPad.exe'. Read of address
000002F4.

Exception class: EAccessViolation
Exception address: 0048D521
--------------------------------------------------------------------------------
--------------------
Stack list, generated 30/08/2007 07:54:11
[0048D521] Forms.TCustomForm.Close + $5
[00404BE3] [EMAIL PROTECTED] + $33
[004A48A3] Controls.TWinControl.WndProc + $157
[0048A6ED] Forms.TCustomForm.WndProc + $421
[004223CC] Classes.TThreadList.UnlockList + $4
[00434190] Graphics.FreeMemoryContexts + $98
[006968E7] uMain.TfPSPad.aExitEscExecute (Line 8991, "uMain.pas" + 23) + $2
[0069A970] uMain.TfPSPad.ActionListExecute (Line 10367, "uMain.pas" + 8) + $7
[004846EC] ActnList.TCustomActionList.ExecuteAction + $14
[00484334] ActnList.TContainedAction.Execute + $14
[00484FF3] ActnList.TCustomAction.Execute + $4F
[00485089] ActnList.TCustomAction.HandleShortCut + $5
[004846C7] ActnList.TCustomActionList.IsShortCut + $7B
[0048DDF4] Forms.DispatchShortCut + $3C
[0048DE6C] Forms.TCustomForm.IsShortCut + $60
[004A64E2] Controls.TWinControl.IsMenuKey + $66
[004A66A5] Controls.TWinControl.CNSysKeyDown + $11
[004A1844] Controls.TControl.WndProc + $188
[004A48A3] Controls.TWinControl.WndProc + $157
[0048A6ED] Forms.TCustomForm.WndProc + $421
[004F11A9] TntControls.TWinControlTrap.WindowProc (Line 662, "TntControls.pas" +
19) + $5
[004A4520] Controls.TWinControl.MainWndProc + $2C
[0042C488] Classes.StdWndProc + $14
[004F0E0C] TntControls.TWinControlTrap.Win32Proc (Line 550, "TntControls.pas" +
12) + $19
[0042C488] Classes.StdWndProc + $14
[00490CAB] Forms.TApplication.IsKeyMsg + $77
[00490DF2] Forms.TApplication.ProcessMessage + $66
[00490E46] Forms.TApplication.HandleMessage + $A
[00491076] Forms.TApplication.Run + $96
[006BEA6E] PSPad.PSPad (Line 55, "I:\Delphi7\Projekty\PSPad\PSPad.dpr" + 31) +
$7
--------------------------------------------------------------------------------
--------------------
Program  : c:\util\pspad\PSPad.exe  4.5.3 (2272)
System   : Windows XP Home Edition, Version: 5.1, Build: A28, "Service Pack 2"
Processor: AMD, AMD Athlon(tm) 64 Processor 3400+, 2190 MHz MMX
Display  : 1024x768 pixels, 32 bpp
--------------------------------------------------------------------------------
--------------------

-- 
<http://forum.pspad.com/read.php?6,42042,42077>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem