Solucionando problemas de exceções: System.IO.InternalBufferOverflowException

Um InternalBufferOverflowException exceção é lançada quando a estouros de buffer interno.

Associated Tips

  • Ao usar FileSystemWatcher, filtre notificações de alteração indesejadas.
    In a file-system watcher, when you are notified of file changes, the system stores those changes in a buffer that the component creates and passes to the application programming interfaces (APIs). Se houver muitas alterações em um curto período de tempo, o buffer pode estourar, resultando em um InternalBufferOverflowException exceção, que perde todas as alterações. Para evitar que o buffer estoure, use o NotifyFilter e IncludeSubdirectories Propriedades para filtrar notificações de alteração indesejadas. For more information, see FileSystemWatcher.

Remarks

Você também pode aumentar o tamanho do buffer interno através de InternalBufferSize propriedade. No entanto, aumentando o tamanho do buffer afetará o desempenho, então é melhor manter o buffer de menor tamanho possível.

Consulte também

Tarefas

Como: Use o Assistente de exceção

Referência

InternalBufferOverflowException