Page 1 of 1

Crash after "Insufficient memory"

Posted: 03 Jul 2009, 22:16
by mdruiter
I have two files, 1,724,600,320 bytes each. I tried to compare them, but by accident "Files Type" was set to Text. Probably because of that, I got this error:
Insufficient memory to allocate 1724600321 bytes. Try to release some memory (e.g. close some running application) and click Retry. Click Cancel to terminate this application (it may result in data loss).
Retry Cancel

I think the error is perfectly legitimate, considering the size of the files and the fact that the comparison is done in memory. But after I clicked Cancel, I got:
Do you really want to terminate this application?
WARNING: All unsaved data will be lost!

No matter what I tried, the only way out was to choose Yes here, so I lost my Salamander instance. Maybe this can be prevented easily?

Re: Crash after "Insufficient memory"

Posted: 06 Jul 2009, 23:04
by Petr Solin
This problem is solved in prepared version 2.52 beta 2. We have added third button (Ignore) to allow user to pass allocation error to application (allocator returns NULL, application should solve this error state).

Re: Crash after "Insufficient memory"

Posted: 08 Dec 2009, 23:03
by mdruiter
Petr Solin wrote:This problem is solved in prepared version 2.52 beta 2. We have added third button (Ignore) to allow user to pass allocation error to application (allocator returns NULL, application should solve this error state).
Confirmed! It works well with (for example) the File Comparator plugin.