Closed hesilong closed 6 years ago
I won't be able to debug this before next week. But you should look into the python C API and check what are the ownerships of the objects you create and who takes ownership of what. go-python exposes the python C API, with all its quirks, you can't make the economy of knowing its idioms.
Thank you all the same! We'll try again! And If you have any idea later, please tell me !
We just tested our code and I find that the memory leaks have nothing with your code! Thanks for your reply!
hello! Recently I am using your api to call python methods. But I found a problem that has not been resolved, when I finished calling python's method. The memory did not come down. I'm not sure Whether my method is correct or not. The code is like belows: ` func (this TAiCall) SendSgfToPn(inMsg string, inBoardSize byte, outCArr C.CArray) {
} ` And Memory Supervision is like this:
From the picture, we can see the memory increases madly. Can the Clear Method release the memory that the List occupied or is there another method to realize the GC?