K
K
KamAKAM2020-05-31 11:21:26
C++ / C#
KamAKAM, 2020-05-31 11:21:26

When you start the application or when saving, it gives an error that "there is not enough memory to continue executing the program"?

when starting the application or when saving it, it gives an error that "there is not enough memory to continue executing the program." what to do in this case? I have a lot of pictures in the application, maybe because of this?
the entire folder with the application weighs 132 MB, and specifically the program (bin \ debug) weighs 30 MB
5ed368f1509a8998125328.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
none7, 2020-05-31
@none7

The task manager is lying, you have even less memory. There are 62 MB of swap left, that is, if the program asks for more to unpack the picture, then a fail will happen, and languages ​​​​with gc reserve memory in large blocks. Pictures eat a little more than 4 bytes per pixel, gifs are also for each frame, here you can count how much memory it is. What to do? The correct option will fork out for memory, the issue price for Ali is about 1500 rubles. Incorrect, tighten the belt tighter. Increase the swap, switch to 32-bit Windows, crash discord and other gluttonous applications and unnecessary services. As a last resort, code in a lightweight editor, and debug in the old fashioned way, outputting information to the log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question