This documentation is archived and is not being maintained.

InternalBufferOverflowException Class

The exception thrown when the internal buffer overflows.

For a list of all members of this type, see InternalBufferOverflowException Members.


[Visual Basic]
Public Class InternalBufferOverflowException
   Inherits SystemException
public class InternalBufferOverflowException : SystemException
public __gc class InternalBufferOverflowException : public
class InternalBufferOverflowException extends

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


In a FileSystemWatcher, when you are notified of file changes, the system stores those changes in a buffer the component creates and passes to the Application Programming Interfaces (APIs). If there are many changes in a short time, the buffer can easily overflow, resulting in an exception being thrown, which essentially loses all changes. To keep the buffer from overflowing, use the FileSystemWatcher.NotifyFilter and FileSystemWatcher.IncludeSubdirectories properties to filter out your unwanted change notifications. You can also increase the size of the internal buffer through the FileSystemWatcher.InternalBufferSize property. However, increasing the size of the buffer is expensive, so keep the buffer as small as possible.


Namespace: System.IO

Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

InternalBufferOverflowException Members | System.IO Namespace | FileSystemEventArgs | FileSystemEventHandler | FileSystemWatcher | IncludeSubdirectories | InternalBufferSize | NotifyFilter | NotifyFilters | RenamedEventArgs | RenamedEventHandler | WaitForChangedResult | WatcherChangeTypes