GDI problem in SW 2013

Since today, I´ve been getting a problem where SW recource monitor starts warning me about low rescources. SW works well for a while but will eventually crash.

I´ve figured out its due to SW not releasing GDI objects when closing parts/assemblies. I'm using windows 7, and couldn't find the registry option to up the limit from 10.000

I also saw that in SW2011 they introduced an option to have SW release the GDI objects when closing a window, as specified here: http://files.solidworks.com/swexpress/API_Tips/SWX040511_APItips.html

However, this isn't available in my version.

Any ideas?

Thanks!

SolidworksApi macros