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
Post a Comment