Hello,
Sorry for my bad english.
I cannot create more than 4000 BitmapCacheBrush. I think it's because there is a limit of 10000 GDI handle per process.
There is no error, but the application block.
The MSDN don't say anything about this limit (it should at least). Is there a workaround ?
Am I wrong if I say that BitmapCacheBrush use RenderTargetBitmap ? Which is bugged (see my last post at https://social.msdn.microsoft.com/Forums/vstudio/en-US/e6713faa-2d0d-4f28-b6b7-4e5213253538/releasing-rendertargetbitmap?forum=wpf).
Thank you for your help.