Using the SD card AND the Ethernet on sheild causes issues

I have been integrating my previous code with yours and slowly but surely. It is really strange as it all works and then I add in extra bit and it will suddenly stop. I think it could be a space issue as I need a few libs, The SPI, SD, Ethernet and also VirtualWire. This means that my sketch is the upper 20k's (27+) and so I think this could be the reason I am getting wrong outputs and freezing. I removed some text processing stuff I had in there and it works and always the ethernet initializes. I add it in (I know it works as it is from another sketch I use) and it does not work and it is all loop code nothing in setup