PDA

View Full Version : Serial Port - qextserialport (Windows) crash



h-n-s
19th April 2013, 00:00
Hi.
I have a problem.I wrote a program using a class qextserialport under Linux and there are about
I want to move it to Windows, but when it tries to run the program has crashed.
I searched the internet half and did not find a solution. I send the file to the project.


http://speedy.sh/sstuS/SerialModbus-2.zip


#-------------------------------------------------
#
# Project created by QtCreator 2013-04-18T23:05:32
#
#-------------------------------------------------

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = SerialModbus
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp

HEADERS += mainwindow.h
win32:DEFINES = _TTY_WIN_
FORMS += mainwindow.ui
LIBS += -Lqextserialport
LIBS += "D:\Qt_projects\SerialModbus\qextserialport\build\q extserialport1.dll"
LIBS += "D:\Qt_projects\SerialModbus\qextserialport\build\q extserialportd1.dll"

ChrisW67
19th April 2013, 00:58
Do you think that sharing the error message and some details about how it "has crashed" might help?

Lesiok
19th April 2013, 06:40
Firsy of all use current version (http://code.google.com/p/qextserialport/downloads/detail?name=qextserialport-1.2rc.zip) of qextserialport. You are using alpha version. This is not good idea.

h-n-s
19th April 2013, 08:13
Do you think that sharing the error message and some details about how it "has crashed" might help?
program starts ... program crashes without giving any error


Firsy of all use current version (http://code.google.com/p/qextserialport/downloads/detail?name=qextserialport-1.2rc.zip) of qextserialport. You are using alpha version. This is not good idea.

I tried but I did not want to build ... ( .../bin/ld.exe: <unknown-file>:0: syntax error)

kuzulis
19th April 2013, 08:38
h-n-s,

try QtSerialPort (http://qt-project.org/wiki/QtSerialPort)instead of QextSerialPort :)

h-n-s
19th April 2013, 10:23
h-n-s,

try QtSerialPort (http://qt-project.org/wiki/QtSerialPort)instead of QextSerialPort :)

Tries. It's exactly the same problem.

kuzulis
19th April 2013, 10:33
So, the problem is in your code.

h-n-s
19th April 2013, 11:46
hmmm weird ... because it works;)

What is the difference?

8966