Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [v4.7.2] Leak with static QMessageBox?

    General and Desktop
    2
    2
    1642
    Loading More Posts
    • 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.
    • W
      wjlrkjjv last edited by

      Hi!

      Simple code in a minimal example already: QMessageBox::warning(this, "TEST TITLE", "TEST TEXT");
      Running it over and over again, watching "Private Bytes" in Process Explorer @WinXP.

      Result (KB):

      Box closed | Box opened
      Box closed again | Box opened again
      ...

      2236 2328 (+92K when opening box, -36K when closing box) (program start)
      2292 2340 (+48, -40)
      2300 2348 (+48, -40)
      2308 2348 (+40, -40)
      2308 2348 (+40, -40)
      2308 2356 (+48, -40)
      2316 2356 (+40, -40)
      2316 2364 (+48, -40)
      2324 2364 (+40, -40)
      2324 2364 (+40, -40)
      2324 2372 (+48, -40)
      2332 2372 (+40, ...

      U see, sometimes there's more being allocated than deleted.
      Can't be normal, is it?

      1 Reply Last reply Reply Quote 0
      • L
        leon.anavi last edited by

        Hm... this is strange. Have you run the test on other computers and/or OS? May be you should reported it as a bug?

        Best regards,
        Leon

        http://anavi.org/

        1 Reply Last reply Reply Quote 0
        • First post
          Last post