开发者

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:

  1. ReadAllbytes of a flash file.
  2. Create MemoryStream instance from above step
  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜