M4chin3
3rd June 2013, 13:02
Hi,
i'm trying to use the QtSerialPort Libary (http://qt-project.org/wiki/QtSerialPort). The install process worked fine (with Perl installed).
The problem is, as soon as i start my test program (debug or release mode) it crashes with this error:
Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: Test.exe
Anwendungsversion: 0.0.0.0
Anwendungszeitstempel: 51a3623c
Fehlermodulname: Qt5Cored.dll
Fehlermodulversion: 5.0.2.0
Fehlermodulzeitstempel: 516367ae
Ausnahmecode: c0000005
Ausnahmeoffset: 00021f3b
Betriebsystemversion: 6.1.7601.2.1.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: 0a9e
Zusatzinformation 2: 0a9e372d3b4ad19135b953a78882e789
Zusatzinformation 3: 0a9e
Zusatzinformation 4: 0a9e372d3b4ad19135b953a78882e789
.cpp file:
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
QT_USE_NAMESPACE
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "Begin";
// Example use QSerialPortInfo
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();
// Example use QSerialPort
QSerialPort serial;
serial.setPort(info);
if (serial.open(QIODevice::ReadWrite))
serial.close();
}
qDebug() << "End";
return a.exec();
}
.pro file:
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-10T15:50:24
#
#-------------------------------------------------
QT += core
QT -= gui
QT += serialport
TARGET = Test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
My setup is:
Windows 7 Prof. 64 bit
Qt 5.0.2 32 bit
QtSerialPort Stable (f301591)
Any ideas?
i'm trying to use the QtSerialPort Libary (http://qt-project.org/wiki/QtSerialPort). The install process worked fine (with Perl installed).
The problem is, as soon as i start my test program (debug or release mode) it crashes with this error:
Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: Test.exe
Anwendungsversion: 0.0.0.0
Anwendungszeitstempel: 51a3623c
Fehlermodulname: Qt5Cored.dll
Fehlermodulversion: 5.0.2.0
Fehlermodulzeitstempel: 516367ae
Ausnahmecode: c0000005
Ausnahmeoffset: 00021f3b
Betriebsystemversion: 6.1.7601.2.1.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: 0a9e
Zusatzinformation 2: 0a9e372d3b4ad19135b953a78882e789
Zusatzinformation 3: 0a9e
Zusatzinformation 4: 0a9e372d3b4ad19135b953a78882e789
.cpp file:
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
QT_USE_NAMESPACE
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
qDebug() << "Begin";
// Example use QSerialPortInfo
foreach (const QSerialPortInfo &info, QSerialPortInfo::availablePorts()) {
qDebug() << "Name : " << info.portName();
qDebug() << "Description : " << info.description();
qDebug() << "Manufacturer: " << info.manufacturer();
// Example use QSerialPort
QSerialPort serial;
serial.setPort(info);
if (serial.open(QIODevice::ReadWrite))
serial.close();
}
qDebug() << "End";
return a.exec();
}
.pro file:
#-------------------------------------------------
#
# Project created by QtCreator 2013-05-10T15:50:24
#
#-------------------------------------------------
QT += core
QT -= gui
QT += serialport
TARGET = Test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
My setup is:
Windows 7 Prof. 64 bit
Qt 5.0.2 32 bit
QtSerialPort Stable (f301591)
Any ideas?