Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

k

@k
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ReleaseDC doesn't release memory
    K k

    I already tryied but it doesn't change. Thank you anyway. I fixed the problem using handles instead of pointers for the dc, but I really don't understand why it happens.

    Mobile help c++ performance question announcement

  • ReleaseDC doesn't release memory
    K k

    I had problems using GetDC and ReleaseDC, so I built a blank MFC app like this: BOOL CTestdcDlg::OnInitDialog() { CDialog::OnInitDialog(); // Set the icon for this dialog. The framework does this automatically // when the application's main window is not a dialog SetIcon(m_hIcon, TRUE); // Set big icon SetIcon(m_hIcon, FALSE); // Set small icon CenterWindow(GetDesktopWindow()); // center to the hpc screen // TODO: Add extra initialization here **SetTimer(1,200,NULL);** return TRUE; // return TRUE unless you set the focus to a control } void CTestdcDlg::OnTimer(UINT nIDEvent) { // TODO: Add your message handler code here and/or call default CDC *myDC; switch(nIDEvent) { case 1: **myDC=GetDC(); ReleaseDC(myDC);** break; } CDialog::OnTimer(nIDEvent); } The memory used by this application increases continuously. What am I missing? This issue is causing me a lot of problems, do you ever encountered a problem like this? Thanks, Keraam

    Mobile help c++ performance question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups