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. QSharedPointer error
Qt 6.11 is out! See what's new in the release blog

QSharedPointer error

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 341 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.
  • F Offline
    F Offline
    firsnur96
    wrote on last edited by
    #1

    What is the reason getting this error

    T *data() const noexcept { return value; }
    
    JonBJ 1 Reply Last reply
    0
    • F firsnur96

      What is the reason getting this error

      T *data() const noexcept { return value; }
      
      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @firsnur96 What error?

      F 1 Reply Last reply
      1
      • JonBJ JonB

        @firsnur96 What error?

        F Offline
        F Offline
        firsnur96
        wrote on last edited by
        #3

        @JonB my application crash and debugger point that line

        JonBJ 1 Reply Last reply
        0
        • F firsnur96

          @JonB my application crash and debugger point that line

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by JonB
          #4

          @firsnur96
          I don't know that anyone can tell you what is wrong just from that description. In the debugger when it crashes what is the value of value? What about this? Are they both valid? Is there any chance your this/QSharedPointer has gone out of scope already?

          1 Reply Last reply
          1

          • Login

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