I created a pull to fix this. Such calls should be inside using blocks,
like it was for other methods in PyObject. This particular one was missed.
It would be nice if any static analyzers revealed this. I tried PVS-Studio
and it did not reveal any problems on pythonnet, except handling of
Double.Ma
Hi Eliana,
great, glad you were able to find the problem. I'll make that change in
github.
thanks,
Tony
On Tue, Jan 19, 2016 at 8:46 PM Eliana Mendes
wrote:
> Thank you all for the answers!
>
>
> I got the source code from the githup and built it myself, as you
> suggested. Unfortunately the m
Thank you all for the answers!
I got the source code from the githup and built it myself, as you
suggested. Unfortunately the memory leak problem remains even with this
latest branch. But this time I was able to figure out where the problem is!
The problem is not inside the “AsMangedObject”” a
Your binaries are rather outdated..
Here is the latest branch:
https://github.com/pythonnet/pythonnet/tree/develop
And binaries here:
https://pypi.python.org/pypi/pythonnet/2.1.0.dev1
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonnet
On Mon, Jan 18, 2016, 4:47 PM Eliana Mendes
wrote:
> H
Hi Eliana,
it's best to build it yourself from github:
https://github.com/pythonnet/pythonnet/tree/develop
Failing that, you can get a recent build from pypi:
https://pypi.python.org/pypi/pythonnet/2.1.0.dev1
The version source forge is pretty old and there have been a lot of fixes
made since th
Hello Tony,
Thanks a lot for your answer! I actually just got directly the
“Python.Runtime.dll” from the download link in sourceforge:
http://sourceforge.net/projects/pythonnet/files/. But from the description
I see that the last update of that one was done in 2013. Would there be a
newer versi
Hi Eliana,
which version of pythonnet are you using? when you say you're using the
latest are you building it yourself from the develop branch on github?
I had a quick look at the code that converts from a python object to a
double, and I don't see any obvious memory leaks there. Perhaps the leak
Hello experts,
I'm having a memory leak problem when using the
function AsManagedObject(typeof(double)). Basically I have something like
this:
PyTuple myTuple = PyTuple.AsTuple(result);
double result0 = (double)myTuple[0].AsManagedObject(typeof(double));
double result1 = (double)myTuple[1].