Hello I'm trying to get QT to communicate with my arduino board on a serial communications port. My application worked in eclipse but not on QT I did some research and it looks that QextSerialPort project would do the job. I tried running their example enumerator
Qt Code:
  1. #include <QtCore/QCoreApplication>
  2. #include "qextserialenumerator.h"
  3. #include "stdio.h"
  4.  
  5. using namespace std;
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. QCoreApplication a(argc, argv);
  10.  
  11. QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
  12. printf("List of ports:\n");
  13. for (int i = 0; i < ports.size(); i++) {
  14. printf("port name: %s\n", ports.at(i).portName.toLocal8Bit().constData());
  15. printf("friendly name: %s\n", ports.at(i).friendName.toLocal8Bit().constData());
  16. printf("physical name: %s\n", ports.at(i).physName.toLocal8Bit().constData());
  17. printf("enumerator name: %s\n", ports.at(i).enumName.toLocal8Bit().constData());
  18. printf("===================================\n\n");
  19. }
  20. return a.exec();
  21. }
To copy to clipboard, switch view to plain text mode 

What I end up getting is "../enumerator.exe exited with code -1073741515". When I try to debug it I get an error "During startup program exited with code 0xc000..."

after some commenting, it turns out "QextSerialEnumerator::getPorts()" is to blame, because if I comment it out I can debug that program.

Does anyone have idea why would a call to a function cause such behaviour ?