Not enough memory?
- Author
- Message
-
Offline
- Posts: 282
- Joined: Thu Sep 10, 2015 9:53 am
- Location: Deutschland
Not enough memory?
number of text lines: 130000
after about 10 minutes, pops up:
Fatal error: not enough memory. It is recommended to end the program.
Can you increase this memory?
after about 10 minutes, pops up:
Fatal error: not enough memory. It is recommended to end the program.
Can you increase this memory?
-
Offline
- Posts: 1250
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Re: Not enough memory?
The memory is most likely consumed by the Undo buffer.
Try to call the following script after massive replacements:
ClearUndo.js
Try to call the following script after massive replacements:
ClearUndo.js
Code: Select all
var WM_USER = 0x0400;
var AEM_EMPTYUNDOBUFFER = WM_USER + 2055;
var hEditWnd = AkelPad.GetEditWnd();
AkelPad.SendMessage(hEditWnd, AEM_EMPTYUNDOBUFFER, 0, 0);
-
Offline
- Posts: 282
- Joined: Thu Sep 10, 2015 9:53 am
- Location: Deutschland
Gdy pomylę się w zamienianiu, będę musiał robić wszystko od nowa
To nie rozwiązuje problemu.
To lepiej niech się zacina. AkelPad muszę wtedy wyłączać przez Task Manager.
Mam nastawione 9999 i wyłączony limit.
Undo dalej działa. Nie wiem jaki jest wówczas limit,
ale nie limit jest powodem tego, tylko za mały bufor pamięci.
Może można zrobić tak aby komunikat ostrzegawczy pokazywał się,
przed zapełnieniem pamięci?
To nie rozwiązuje problemu.
To lepiej niech się zacina. AkelPad muszę wtedy wyłączać przez Task Manager.
Mam nastawione 9999 i wyłączony limit.
Undo dalej działa. Nie wiem jaki jest wówczas limit,
ale nie limit jest powodem tego, tylko za mały bufor pamięci.
Może można zrobić tak aby komunikat ostrzegawczy pokazywał się,
przed zapełnieniem pamięci?
-
Offline
- Posts: 1250
- Joined: Thu Nov 16, 2006 11:53 am
- Location: Kyiv, Ukraine
Having this simple script, just call it manually after massive replacements that surely do not need to be undone via Undo.sexy96 wrote:How do you call it at the right time?
A better solution would be to include the functionality of this simple script into a more complicated script running in background that will monitor AkelPad's memory usage and asks whether the Undo buffer needs to be cleared when the memory usage becomes high. But such a script needs to be written
Another, completely alternative, approach would be to use 64-bit AkelPad - thus allowing it to utilize _all_ the available memory without 2 GB limit caused by a 32-bit application. But surely it assumes you are using 64-bit Windows.
-
Offline
- Posts: 282
- Joined: Thu Sep 10, 2015 9:53 am
- Location: Deutschland
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland