c++ - Embedded Python Memory Grows until I Run Out of Memory :( -


i've added ability scripting embedded python in app. need pass large dictionary of data (around 15mb) python plugins application. reason, app using close 60mb of memory each time pass in 15mb dict.

i've been looking online , seems there problem embedded python not releasing memory, i.e. memory leak. segfaults if continue run plugin enough times runs out of main memory.

i've tried releasing memory dictionary using "del mydict" @ end of script , "gc.collect()", isn't helping @ all. happens in both linux , os x.

each time run python plugin call py_initialize() , py_finalize().


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -