Out of memory exception
When loading a flash file of size 70MB and above in a WPF app it works successfully for one or 2 times and then it starts throwing OutofMemoryException
.
But when loading small flash files which are 10MB to 20 MB it always works successfully.
Here are the steps that we are following:
ReadAllbytes
of a flash file.- Create
MemoryStream
instance from above step - Use f-in-box f开发者_高级运维lash component and pass the
MemoryStream
as argument.
Just wondering if any one has any suggestions. Thanks N
Are you clearing the object after it is created? I'm not a WPF guy but in asp.net when I create an object and forget to close it, the next time it's loaded, another instance is created. This can chew up memory very quickly if the file is 70MB
精彩评论