im just repeating myself: GET A NEW ROUTER! It solved 99% "out of memory" problems! Seriously.
I used to get the "out of memory" probably 10-20 times a day using SmartShare. And now after getting new router i got the error only 3 times during 2 months after (3-4hrs) long hours of youtube when switched to SmartShare.
GET A NEW ROUTER and 'out of memory. app is closed' problem is SOLVED. LG TVs dont communicate well with older routers, and that is fine.