tags:

views:

59

answers:

1

Hi 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 flash component and pass the memorystream as argument.

Just wondering if any one has any suggestions. Thanks N

A: 

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

rockinthesixstring
Yes, i call both close and dispose of memorystream.
np
I have also noticed that VS 2008 continously gives this error message every alternate time i build the solution. Please let me know if you have any suggestions.Thanks
np
Can you post a small chunk of your code?
rockinthesixstring