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. Qt applications will crash if I change the clipboard on Windows

Qt applications will crash if I change the clipboard on Windows

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 3.8k Views
  • 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.
  • Z Offline
    Z Offline
    zyxwvu
    wrote on last edited by
    #1

    On Windows, if I change the clipboard in any application, Qt applications will crash, and its CPU usage will be higher.

    If it crashes, it will be busy for unknown reason, and the OS won't tell me something wrong like accessing protected memory.

    I'm using Qt 4.7.4, and Windows XP with SP3.

    Debug info:

    7C92E4ED lea ecx,[ecx]
    7C92E4F0 mov edx,esp
    7C92E4F2 sysenter
    7C92E4F4 ret <- ECX: 0114E034 EDX: 7C92E4F4 ESP:0114E034
    7C92E4F5 lea esp,[esp]

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #2

      I had another kind of this problem before with Qt Creator. I had a delay when copying something like text on another application. But i don't have same problem with 2.3.1.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        Your actual C++ code that copies to the clipboard would be helpful.

        http://www.catb.org/~esr/faqs/smart-questions.html

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

          [quote author="Volker" date="1323609180"]Your actual C++ code that copies to the clipboard would be helpful.[/quote]

          It's not about coding on Qt Creator. Assume you have Qt Creator opened and other side you have a notepad on windows. Then you write some text on notepad and select your text and Ctrl + C. Now bring your Qt Creator. You'll see it's busy for unknown reason!

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Using Editor and Wordpad on a Vista box and copying some text to Creator 2.4 RC, I cannot reproduce the error.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zyxwvu
              wrote on last edited by
              #6

              [quote author="mohsen" date="1323609679"][quote author="Volker" date="1323609180"]Your actual C++ code that copies to the clipboard would be helpful.[/quote]

              It's not about coding on Qt Creator. Assume you have Qt Creator opened and other side you have a notepad on windows. Then you write some text on notepad and select your text and Ctrl + C. Now bring your Qt Creator. You'll see it's busy for unknown reason![/quote]

              Thank for your better description.

              Mohsen's problem looks the same as mine. Each Qt app (like Qt Creator) on Windows(Language: Chinese) has this problem. And it won't crash on Linux.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                Ah, that would explain the non-error on my latin1 box. In that case, I recommend opening an issue on the "public bugtracker":https://bugreports.qt.nokia.com. Don't forget to search if an issues has already been openend for the same problem.

                http://www.catb.org/~esr/faqs/smart-questions.html

                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