开发者

I release all memory that I can, but my program need more, what can I do?

This is a philosophical question. My program send message that need more memory. I release all memory I can to it continue working correct. But, the program tell that need more memory again, and I have no one to release. What I do now?

This almost happens when I am using the camera with the ZBar library, so I don't have control with the ZBar (I can't release it's memory, only mine). And this really need a lot of memory to work. Because this, I don't know what I do.

The program did开发者_高级运维n't crash, but can run unstable.


Without more details to your problem, your answers are going to be vague :)

The obvious answer is to use less memory.

If depends on what you're using the memory for but you could consider putting it into a file on disk and only reading in the data that you need?

You should also check for leaks - you might be using memory without realising it.

If you post more information about your exact problem, we could probably help more.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜