Fix memory error caused by memory overflowing
Summary: how i solve memory error in my song recognition project

When I was adding all my song to the data base yesterday, I always found memory error after several song was processed.

memory error

after checking the task manager, i found i got memory overflow when processing the song.

After doing some research, i come up with a solution.

By using del and gc.collect() after finish using a varible that takes lots of memory, the problem is successfully solved.

code1

code2

Latest Updated Time:2019-04-06 17:42:31