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. [v4.7.2] Leak with static QMessageBox?
Forum Updated to NodeBB v4.3 + New Features

[v4.7.2] Leak with static QMessageBox?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.8k 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.
  • W Offline
    W Offline
    wjlrkjjv
    wrote on 29 Mar 2011, 15:24 last edited by
    #1

    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
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 29 Mar 2011, 19:10 last edited by
      #2

      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
      0

      1/2

      29 Mar 2011, 15:24

      • Login

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