Solved

Kernel/Memory Bleed

Posted on 2002-05-14
1
328 Views
Last Modified: 2008-03-06
Can anyone explain to me what a Kernel/Memory bleed is and how to fix it?
0
Comment
Question by:Whittonian
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 7009470
If by "bleed" you mean what is more commonly called "leak" then the answer is the allocation of memory or other resources in a program without freeing them.

Example:

main()
{
  BYTE *p;

  while(1){
    Sleep(1000);
    p = new BYTE[1024];
  }
}

What does this program do?  It allocates 1024 BYTES of memory, and then does it again.  Over and over again.  Eventually all available resources for memory allocation will be consumed.

Of course, in practice things are not usually this obvious.  Usually you have objects or memory or handles or whatever that you forget to free under certain circumstances and the program "leaks".
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question