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
M

moswal

@moswal
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • friend function problem ...
    M moswal

    Your MyMath class's Sum function is public to other classes so there is not need to declare it as friend. And you can declare the method as friend if you are writing a class template(generating new classes depending upon what type of parameters you pass to the function). In your code I do not see a reason for declaring it as a friend or also it not possible to declare it as a friend. Einstein's Assistant

    C / C++ / MFC game-dev question html database com

  • Memory Context Memory Leak
    M moswal

    Hi. I have uploaded my whole application in my temp. yahoo account. I could not locate the source of memory leak. Please help me to pin point source of serious memory leak. I have uploaded a zip file in the yahoo briefcase. Yahoo details userid : moswal0071 password : cooldude Thanx in advance. Einstein's Assistant

    C / C++ / MFC performance help

  • Memory Leak due to Memory context
    M moswal

    Hi again, I uploaded my whole application in yahoo's briefcase. Please go through it and help me spot the source of memory leak. Thanks in advance. userid : moswal0071 password : cooldude Einstein's Assistant

    C / C++ / MFC data-structures performance help tutorial announcement

  • Memory Leak due to Memory context
    M moswal

    Hi, I am still unable to pin down the source of memory leak. If I upload my source code can u help me to solve the memory leak problem. Thanx a lot in advance. Einstein's Assistant

    C / C++ / MFC data-structures performance help tutorial announcement

  • Memory Leak due to Memory context
    M moswal

    But is it true that reusing Memory context object does not cause any memory leak. Thanx in advance Einstein's Assistant

    C / C++ / MFC data-structures performance help tutorial announcement

  • Memory Leak due to Memory context
    M moswal

    I am working Win2K. Currently I am not deleting the DCs. I am just reusing the memory context to bitblt the processed output to the screen. I realized that my application has a leak by using windows task manager. And after lot of memory is consumed for pull down menus i just see black box. So I guess it is GDI memory leak. I am not creating and deleting DC over and over again. I just create them once when a image is opened. I.e I call the saveimg method which saves the image in the memory context. I want to release memory used by memory context because I fear that reusing memory context is one of the cause of memory leak. To work around this problem I thought I would copy the pixel color values in an array and then release the memory consumed by the memory context. But unfortunately I am not able to release the memory by any the three methods. Thanx in advance. Einstein's Assistant

    C / C++ / MFC data-structures performance help tutorial announcement

  • Image transformations
    M moswal

    Hi, Try this url. It gives you all the information that u need. In fact the whole application does exactly what u want. http://www.codeguru.com/bitmap/CPicture.html I suggest you use GDI+ libraries. They are really to use and you can save,load and modify the images much more easily compared to the method used by the author of CPicture class. Einstein's Assistant

    C / C++ / MFC graphics

  • Memory Leak due to Memory context
    M moswal

    My application has a serious memory leak problem. It is because I am not able to release the memory consumed by the memory context. In general I save an image in 2 memory context variables. One is used to hold latest data and the other one holds previous data(used for undo purpose). I process the image in the memory context and after processing i display it on the device context. I am reusing the same memory context variables for processing the image. But i believe reusing of memory context causes memory leaks therefore i thought I would the image information in an array. I will process that array and save in the memory context and then display it on the device context. But in order to do this I tried the following ways to release the memory consumed by the memory context. 1) memDC.SelectObject(oldbmp); 2) ReleaseDC(memDC); 3) memDC.DeleteDC(); But i am still facing the memory leak problem. Please confirm if reusing memory context is possible and how to release the memory consumed by the memory context. Thanx in advance. Einstein's Assistant

    C / C++ / MFC data-structures performance help tutorial 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