[Python.NET] [Python for .NET] question: How to correctly clean up MemoryStream object

김해기 khg at power21.co.kr
Thu Feb 5 10:52:35 CET 2015


Hi,

I have a MemoryStream created from Python (3.4)
*memory_stream = MemoryStream(data_size)*
and pass it to a C# library function to get data.
*self.the_library.Read(memory_stream)*
This definitely works. The problem is, python.exe's memory usage
increases over time.
Calling *memory_stream.Dispose()* and *memory_stream.Close()* doesn't help.
What am I missing?

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20150205/6d694701/attachment.html>


More information about the PythonDotNet mailing list