1

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.

Any suggestions?

2 Answers 2

2

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.

2
  • thanks. What i find is very weird: the directory structure in the old file (wroclav version) has a syntax with "/". n the new file (Lisboa version), it is with "\". as in <datasource>V:\02.DEVELOPMENT\B_CaPa.shp</datasou‌​rce>. furthermore, the old wroclav code contains "../.." which is of course not a good idea when migrating to another computer.
    – joris
    Aug 3, 2012 at 13:45
  • Thats the difference between absolute and relative paths. You can change that in project properties, first tab. But ../.. for relative paths comes also here in my Lisboa files. Infact its better to use relative paths if the files are on another drive on the new pc.
    – AndreJ
    Aug 3, 2012 at 14:26
2

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.

Diego.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.