You are here: PSPad forum > Bug report / Hlášení chyb > out of memory exception using Ctrl+Z in hex mode

out of memory exception using Ctrl+Z in hex mode

#1 out of memory exception using Ctrl+Z in hex mode

Posted by: aGerman | Date: 2018-07-22 15:05 | IP: IP Logged

I got the following exception.
Exception class: EOutOfMemory
Exception address: 00721625
----------------------------------------------------------------------------------------------------
Stack list, generated 22/07/2018 16:45:06
[00721620] MPHexEditor.AllocRedoPointer (Line 8917, "MPHexEditor.pas" + 2) + $9
[00407086] System.ErrorAt + $16
[004070CA] System.Error + $E
[00721620] MPHexEditor.AllocRedoPointer (Line 8917, "MPHexEditor.pas" + 2) + $9
[004C3457] System.Classes.TCustomMemoryStream.Read + $37
[00721CA3] MPHexEditor.TMPHUndoStorage.ReadUndoRecord (Line 9095, "MPHexEditor.pas" + 22) + $2
[00721900] MPHexEditor.TMPHUndoStorage.CreateRedo (Line 8986, "MPHexEditor.pas" + 29) + $1
[00720A63] MPHexEditor.TMPHUndoStorage.Undo (Line 8547, "MPHexEditor.pas" + 13) + $6
[0071DFD6] MPHexEditor.TCustomMPHexEditor.Undo (Line 7077, "MPHexEditor.pas" + 0) + $6
[009861DD] uMain.TfPSPad.aUndoExecute (Line 5262, "uMain.pas" + 2) + $F
[00996B4C] uMain.TfPSPad.ActionListExecute (Line 11199, "uMain.pas" + 11) + $7
[0052F0E4] System.Actions.TContainedActionList.ExecuteAction + $70
[00409B56] System.@CallDynaInst + $6
[00531EBD] Vcl.ActnList.TCustomAction.Execute + $69
[004D45A3] System.Classes.TBasicActionLink.Execute + $13
[0064E763] Vcl.Menus.TMenuItem.Click + $93
[006503EF] Vcl.Menus.DoClick + $EF
[006504DB] Vcl.Menus.TMenu.IsShortCut + $87
[0063401D] Vcl.Forms.TCustomForm.IsShortCut + $4D
[00409B56] System.@CallDynaInst + $6
[0063841E] Vcl.Forms.TApplication.IsShortCut + $4E
[00637952] Vcl.Forms.TApplication.WndProc + $482
[004D549C] System.Classes.StdWndProc + $14
[0064FDEC] Vcl.Menus.Find + $7C
[0065D8DC] Vcl.Controls.SendAppMessage + $18
[00669C65] Vcl.Controls.TWinControl.IsMenuKey + $7D
[00669C9D] Vcl.Controls.TWinControl.CNKeyDown + $1D
[00662C06] Vcl.Controls.TControl.WndProc + $2BE
[006677EB] Vcl.Controls.TWinControl.WndProc + $63B
[00666DB8] Vcl.Controls.TWinControl.MainWndProc + $2C
[004D549C] System.Classes.StdWndProc + $14
[00638328] Vcl.Forms.TApplication.IsKeyMsg + $84
[00638293] Vcl.Forms.TApplication.IsMDIMsg + $3F
[006385D7] Vcl.Forms.TApplication.ProcessMessage + $CF
[0063863E] Vcl.Forms.TApplication.HandleMessage + $A
[00638971] Vcl.Forms.TApplication.Run + $C9
[009C1A72] PSPad.PSPad (Line 95, "PSPad.dpr" + 39) + $7
----------------------------------------------------------------------------------------------------
Program : C:\PROGRA~1\PSPADE~1\PSPad.exe 5.0.0 (277)
System : Windows 10 Home Edition x32, Version: 10.0, Build: 42EE,
Processor: Intel, Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz, 1333 MHz MMX
Display : 1366x768 pixels, 32 bpp
----------------------------------------------------------------------------------------------------
Active Controls Hierarchy:
TMPHexEditorEx ""
TfChildHexa "fChildHex_O1414198"
----------------------------------------------------------------------------------------------------

Step by step to reproduce:
1) I opened a binary file in hex mode (256 ascending bytes, 0x00 - 0xFF in my case)
2) Ctrl+A to mark all
3) Ctrl+C to copy all
4) Ctrl+V to paste/overwrite
5) second Ctrl+V (which seems to be necessary to generate the exception)
6) Ctrl+Z to undo makes the exception appear
Note that I didn't use mouse or cursor keys. Thus, the selection done by Ctrl+A was never changed during that test.

Steffen

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR