---
layout: default-layout
title: BufferOverflowProtectionMode – Capture Vision C++ Enum Reference
description: Reference for the BufferOverflowProtectionMode enumeration in Dynamsoft Core C++ Edition, describing strategies when the image source buffer overflows (ignore new, update oldest).
keywords: Buffer overflow protection mode 
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
breadcrumbText: BufferOverflowProtectionMode
codeAutoHeight: true
---

# Enumeration BufferOverflowProtectionMode

`BufferOverflowProtectionMode` describes the protection modes to manage situations when the `ImageSourceAdapter`'s buffer exceeds its capacity. 

```cpp
typedef enum BufferOverflowProtectionMode
{
   /** New images are blocked when the buffer is full. */
   BOPM_BLOCK = 0,
   /** New images are appended at the end, and oldest images are pushed out from the beginning if the buffer is full. */
   BOPM_UPDATE = 1
} BufferOverflowProtectionMode;
```