Re: [Python.NET] [Python for .NET] question: How to correctly clean up MemoryStream object
김해기 <[email protected]>
| Newsgroups | gmane.comp.python.dotnet |
|---|---|
| Message-ID | <[email protected]> |
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. _________________________________________________ Python.NET mailing list - [email protected] https://mail.python.org/mailman/listinfo/pythondotnet