Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qextserialport question
Forum Updated to NodeBB v4.3 + New Features

Qextserialport question

Scheduled Pinned Locked Moved 3rd Party Software
4 Posts 3 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cmessineoC Offline
    cmessineoC Offline
    cmessineo
    wrote on last edited by
    #1

    Anybody using qextserialport lib?

    Why would the code below cause a memory error, it will work fine in main.cpp:

    @Test::Test(QWidget *parent, Qt::WFlags flags)
    : QMainWindow(parent, flags)
    {
    QList<QextPortInfo> ports = QextSerialEnumerator::getPorts();
    }
    @

    Edit : @ tags added by Eddy

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      What exactly is the error you get, how are you instantiating Test?

      1 Reply Last reply
      0
      • cmessineoC Offline
        cmessineoC Offline
        cmessineo
        wrote on last edited by
        #3

        Thanks for trying to help, Error I get is :

        HEAP[Test.exe]: Invalid address specified to RtlValidateHeap( 00910000, 00E97230 )
        Windows has triggered a breakpoint in Test.exe. The break point it shows is at this location in qpalette.cpp file:

        @/*!
        Destroys the palette.
        */
        QPalette::~QPalette()
        {
        if(!d->ref.deref())
        delete d;
        }@


        I instantiate test in main.cpp as:

        @int main(int argc, char *argv[])
        {
        QApplication a(argc, argv);

        Test w;

        w.show();
        return a.exec();
        }@

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          Please be sure to wrap all your code in @ tags. Thanks!

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved