PDA

View Full Version : [SOLVED] My program crashes when is running in a PC that hasn't Qt installed



qt_developer
4th June 2012, 16:52
Hi all,

My program crashes when is running in a PC that hasn't Qt installed.

I have added the libraries QtXml4.dll and QtXmlPatterns4.dll in the same place that the executable file.

The code that closes the program:



QXmlInputSource source;
source.setData(data);

QXmlSimpleReader reader;
reader.setContentHandler(&qxmlDefaultHandler);

bool parsed = reader.parse(source); // The program crashes in this line


If I execute the program in the development PC, the application works properly.

What's wrong?

Regards.

tferreira
4th June 2012, 17:07
Are you sure your "source" is valid?

qt_developer
4th June 2012, 18:46
The problem was not in that line, the problem was in another part of the code that use a SQLite database. I have added "sqldrivers/qsqlite4.dll" in the executable folder and now works properly.