c# - Best way to keep image in memory -


i want keep 1000-2000 images in memory. tried imagetobytearray , store them in key value pair gives memory leak. there other way or i'm lost? reason keeping them in memory fast reading looks bad idea.

pretty small images 450, 250 use them in winforms. problem grouped in clips in runtime show 25picture/second thats why need memory

thanks in advance,

is there situation need 1000 images @ once?

if keep them all, depends on image size hit memory caps in long run. need have cache mechanism manage smartly. may can deal db sqlite manage them efficiently or use own smart way of caching based on application preferences.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -