Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [split] dll issues
Qt 6.11 is out! See what's new in the release blog

[split] dll issues

Scheduled Pinned Locked Moved General and Desktop
13 Posts 4 Posters 5.3k 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.
  • T Offline
    T Offline
    tobias.hunger
    wrote on last edited by
    #4

    I just split this out of another thread to make the issue more visible. Hope this helps getting it resolved fast.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #5

      I would guess that your buffer overrun corrupts the string you pass. Fix the overrun and your problem should go away.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #6

        ... and merge with http://developer.qt.nokia.com/forums/viewthread/13631/ please ;-)

        1 Reply Last reply
        0
        • I Offline
          I Offline
          Indrajeet
          wrote on last edited by
          #7

          How to fix over run.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #8

            Check http://en.wikipedia.org/wiki/Buffer_overflow for more information on what is going wrong.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #9

              If I read the code, it is buggy:

              @
              Sample App Code:

              #include <QLibrary>
              #include <QString>
              #include <qdebug.h>
               
              //Function Pointers
              typedef QString (*Data)(QString);
               
              int main(int argc, char *argv[])
              {
                      // ...
                      Data  data= (Data) lib.resolve("Data");
                      if(bLoaded)
                      {
                          // ....
                            QString strTagInfo = Data(strName);
                            // here you use the type, not the pointer?
                      }
                      // ...
                      return a.exec&#40;&#41;;
              }
              

              @

              I would recommend to rename the pointer data to something like dataFkt or similar, so such things are seen earlier...

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • I Offline
                I Offline
                Indrajeet
                wrote on last edited by
                #10

                Hi Gerolf

                I didnt exactly get what you want me to do can you please explain clearly.

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  Indrajeet
                  wrote on last edited by
                  #11

                  Hi Gerolf

                  That was the typing mistake in actual I was using data() only. But still same problem.

                  1 Reply Last reply
                  0
                  • I Offline
                    I Offline
                    Indrajeet
                    wrote on last edited by
                    #12

                    Can anyone please help me to resolve this.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lgeyer
                      wrote on last edited by
                      #13

                      Well, you might provide a small, compilable example that reproduces your problem, which can be downloaded somewhere.

                      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