@AdamDanischewski ok, but there is still no obvious amount to keep in reserve, 
how much memory is used for things like saving files depends on the size of the 
file.  And since there is an unknown amount of memory allocated in libraries 
the "reserve" memory would have to be de-allocated to make it available, and 
then Geany has no control over where it is used.

The best solution is to not crash or hang on memory exhaustion and to try to 
notify the user to save files.  If they save and close small files more memory 
will progressively become available.  If they only have one huuge file open 
then there is not much to do about it.  Also note that the problem currently 
will only occur on 32 bit builds, which currently means windows, but if someone 
contributes the build process for 64 bit windows that can be made available.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1569#issuecomment-320143788

Reply via email to