I have a weird problem while using QXmlQuery.

The following code compiles and runs fine on my laptop at home (Qt 4.4.0)
Qt Code:
  1. #include <qxml>
  2. #include <qxmlquery>
  3. #include <qfile>
  4. #include <QCoreApplication>
  5. #include <stringlist>
  6. int main(int argc, char* argv[])
  7. {
  8. QCoreApplication a(argc, argv);
  9. QXmlQuery query;
  10. QFile xmlfile("c:/a.xml");
  11. xmlfile.open(QIODevice::ReadOnly);
  12. query.bindVariable("xmlDocument", &xmlfile);
  13. query.setQuery("doc($xmlDocument)/a//c[@name='c2name']/string()");
  14. query.evaluateTo(&res);
  15. return;}
To copy to clipboard, switch view to plain text mode 

However when I try it at work (Qt 4.3.6) it compiles, but when I run it it crashes on startup with a message saying: The application could not be initialized (i.e. it doesn't even get as far as the first line of code). I googled around but couldn't find whether this is a known bug of Qt 4.3.6 or not. It seems to be a problem with the QtXmlPatternsd4.lib (?)

Unfortunately I am not allowed to update to 4.4.0 at work . Anybody know whether there is a fix for this? Or do I have to implement my own XML parser if I can't use XMLQuery?