VB (or any program) transfers physical memory usage to virtual memory

Source: Internet
Author: User

Some time ago, someone asked a question on csdn

: How does a VB program transfer physical memory usage to virtual memory? [VBCommunity]

Other related posts

How to make the program occupy virtual memory instead of the actual memory [VC Community]

Compiled by VBProgramHow can I move the physical memory usage to the virtual memory? [VB]

Carrying the desktop Hitachi show software, we found that it only occupies 376 KB of memory and has 6 MB of virtual memory,
How can this technology be implemented? Because some buttons in my VB program also need to occupy more than 4 MB of memory.

The post has not been discussed for a long time, and the general win program, even if there is no content such as: VC helloworld, will occupy more than 1 MB of memory.

On the home page, the desktop Hitachi show author advertised that he had used the exclusive technology to compress the memory, so that he could keep his memory at around kb. Can I really compress the memory?

In this regard, I am very confused, I also asked in the C community, failed, no way, everything can only rely on myself.

It took me one day to analyze and I found this trick.

A Simulated Program, VB,

Before the command is executed, test.exe occupies approximately 2. 2 MB memory

2. compress the memory and quickly reduce the memory to about 300 kb.

3. Compress a random program, such as Excel, and quickly reduce it to 104 KB of memory.

4. Use other processes to view the results of the tool.

So. Is my program particularly able to save memory?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.