This sample demonstrates how to predict and prevent the
MCO_E_DISK_PAGE_POOL_EXHAUSTEDerror. To avoid this error, inspect thepinned_pagesfield of themco_disk_cache_info_tstructure. The count of pinned pages should be less than a threshold calculated from the total number of disk pages available in the disk cache, which is specified by theallocated_pagesfield of the same structure.
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bindirectory:21_overflow_persistent-cacheHowever, it is more instructive to run it in your development-environment debugger, stepping through the code.