Just got a new laptop (windows7). When opening a qgis project (shape layers on server), I get an error window "bad allocation. Project was made in Wroclaw, new PC has Lisboa.
Create a new simple project, load a shape from the server, save it, and compare the .qgs-Files with the old ones with a good text editor, e.g. notepad++. If you found the difference in < datasource >, you can edit the qgs-files with notepad++. It can open several files at once, and do search&replace on all opened files.
When I formated my PC and reinstall Windows and QGIS I had the same message Exception: bad allocation,
After some time I realised the reason for this is that the project I was trying to open contained a google physical map and I hadn't install the open layers plugin.
So maybe if this happens is because a missing plugin.