Results 1 to 8 of 8

Thread: Serial Port - qextserialport (Windows) crash

  1. #1
    Join Date
    Mar 2013
    Location
    Poland
    Posts
    15
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Unhappy Serial Port - qextserialport (Windows) crash

    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.

    Qt Code:
    1. http://speedy.sh/sstuS/SerialModbus-2.zip
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2013-04-18T23:05:32
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8.  
    9. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    10.  
    11. TARGET = SerialModbus
    12. TEMPLATE = app
    13.  
    14.  
    15. SOURCES += main.cpp\
    16. mainwindow.cpp
    17.  
    18. HEADERS += mainwindow.h
    19. win32:DEFINES = _TTY_WIN_
    20. FORMS += mainwindow.ui
    21. LIBS += -Lqextserialport
    22. LIBS += "D:\Qt_projects\SerialModbus\qextserialport\build\qextserialport1.dll"
    23. LIBS += "D:\Qt_projects\SerialModbus\qextserialport\build\qextserialportd1.dll"
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Serial Port - qextserialport (Windows) crash

    Do you think that sharing the error message and some details about how it "has crashed" might help?

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Serial Port - qextserialport (Windows) crash

    Firsy of all use current version of qextserialport. You are using alpha version. This is not good idea.

  4. #4
    Join Date
    Mar 2013
    Location
    Poland
    Posts
    15
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Serial Port - qextserialport (Windows) crash

    Quote Originally Posted by ChrisW67 View Post
    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

    Quote Originally Posted by Lesiok View Post
    Firsy of all use current version 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)

  5. #5
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Serial Port - qextserialport (Windows) crash

    h-n-s,

    try QtSerialPort instead of QextSerialPort

  6. #6
    Join Date
    Mar 2013
    Location
    Poland
    Posts
    15
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Serial Port - qextserialport (Windows) crash

    Quote Originally Posted by kuzulis View Post
    h-n-s,

    try QtSerialPort instead of QextSerialPort
    Tries. It's exactly the same problem.

  7. #7
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Serial Port - qextserialport (Windows) crash

    So, the problem is in your code.

  8. #8
    Join Date
    Mar 2013
    Location
    Poland
    Posts
    15
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Serial Port - qextserialport (Windows) crash

    hmmm weird ... because it works

    What is the difference?

    qtextserial-work.zip

Similar Threads

  1. Serial port timeout - Qextserialport
    By h-n-s in forum Newbie
    Replies: 1
    Last Post: 9th April 2013, 06:42
  2. Replies: 5
    Last Post: 22nd November 2012, 20:54
  3. Replies: 2
    Last Post: 3rd July 2012, 16:42
  4. Serial comms on Windows Pc (Qextserialport)
    By SteveH in forum Qt Programming
    Replies: 19
    Last Post: 10th June 2010, 23:05
  5. Replies: 1
    Last Post: 1st July 2009, 00:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.