Gmod crashing when trying to connect to a heavy server.

When i try to join a server, everything goes well, but then loading stops at some point and crashes.
What should I do?
I’ve got 6 gb ram. My graphics card drivers are up to date, I’ve tried reinstalling gmod, uninstalling all addons, nothing works.

Sometimes “failed to lock vertex buffer in CMeshDX8::LockVertexBuffer” message pops up, <-------- This most often
sometimes “Failed to lock index buffer in CMeshDX8::LockIndexBuffer”,
“lua panic something went horribly wrong not enough memory” and sometimes nothing.

I’ve googled every case and nothing worked. Help?

Looks like you may be running out of VRAM. Probably because there are too many models spawned or they have too high polygon count.

What OS are you running? This error is most common on XP and W2000. Make sure you high a high enough page file, or that it is enabled.

I am running Windows 7 32-bit and have 1919 VRAM
Page file size is 4096 MB.

[editline]26th April 2015[/editline]

It also stops often on maps/graphs/(map).ain and then crash occurs.