InternalBufferOverflowException Class
The exception thrown when the internal buffer overflows.
For a list of all members of this type, see InternalBufferOverflowException Members.
System.Object
System.Exception
System.SystemException
System.IO.InternalBufferOverflowException
[Visual Basic] <Serializable> Public Class InternalBufferOverflowException Inherits SystemException [C#] [Serializable] public class InternalBufferOverflowException : SystemException [C++] [Serializable] public __gc class InternalBufferOverflowException : public SystemException [JScript] public Serializable class InternalBufferOverflowException extends SystemException
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.
Remarks
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.
Requirements
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