CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Ralf Schneider

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    489

    Re: glNewList allocates 260KB!!!!

    Hello,

    but the problem is that glEndList do not release the memory.
    If I use 1000x glNewlist and glEndList, there can be 260MB allocated!
  2. Replies
    3
    Views
    489

    glNewList allocates 260KB!!!!

    Hello,

    I have a big problem in my app.
    Many times I create a displaylist, the following function allocated approx. 260KB!


    glNewList((UINT)this,GL_COMPILE);


    I figured this out by...
  3. Replies
    14
    Views
    1,216

    Re: error 193 with CreateProcess, why?

    Hello,

    I am happy to have a forum to get help, but once again:
    the path was not hard coded.
    I get the path from CWinApp::m_pszHelpFilePath.
    Then I extract the path from the string and add...
  4. Replies
    14
    Views
    1,216

    Re: error 193 with CreateProcess, why?

    @all.

    I did not hard coded it!
    And I provided CreateProcess with the correct path, but Windows was confused with two files/folders which were translated to the same name. In the users system you...
  5. Replies
    14
    Views
    1,216

    Re: error 193 with CreateProcess, why?

    Hello Paul,

    thx.
    Problem solved.
    I think it is a problem especially with the German windows version.
    In the folder "C:" the user has a file called "Program" and the folder "Program files"....
  6. Replies
    14
    Views
    1,216

    Re: error 193 with CreateProcess, why?

    Hello Paul,

    thx.
    But that can not be the reason.
    I use the full path in the CreateProcess-call.
  7. Replies
    14
    Views
    1,216

    Re: error 193 with CreateProcess, why?

    Hello Vladimir,

    it is difficult to test it on the users pc.
    But is that possible?
    It is written to the drive from the setup medium (CDROM), directly.
    The setup was done more than once to check...
  8. Replies
    14
    Views
    1,216

    error 193 with CreateProcess, why?

    Hello,

    on a customers pc I have the following problem:
    I want to run an exe file with CreateProcess, but this generates the error 193 which means

    ERROR_BAD_EXE_FORMAT
    %1 is not a valid...
  9. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    see post #7 !
  10. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    Hello Ovidiu,

    the DLLs are not developed by me. I have to use it and find the bugs!!!!!
    Very bad....
    But do not think about further. My problem is solved for the moment.

    Ralf
  11. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    e.g.

    char* zz=new char[10]; // without releasing later!

    somewhere in the code.
  12. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    maybe there are no memory leaks?
    Then there is no report!
  13. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    Hello,

    do you refer to my link?
    In MFC you do not need it. The leaks will be shown at the end of the programme in debug mode with VC++ automatically.

    Ralf
  14. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    Hallo Alex,

    thx. The problem were C++ new.
    I found this and it helps:
    http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/5a98b72e-c927-4f4b-9441-8a73575dfb10/

    Ralf
  15. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    Hello Alex,

    thx. I am one step further!
    The calling app is mfc. The dll non-mfc.
    Now, I included
    #define _CRTDBG_MAP_ALLOC
    #include <stdlib.h>
    #include <crtdbg.h>
    in the header files of the...
  16. Replies
    17
    Views
    1,154

    Re: Show memory leaks in dll?

    It have!!!!
    To check it, I write this code:
    char* fgh=new char[10];
    But it will not be shown.

    Ralf
  17. Replies
    17
    Views
    1,154

    Show memory leaks in dll?

    Hello,

    when ending my app in the debugger, memory leaks will be shown like this:
    Detected memory leaks!
    Dumping objects ->
    C:\PROGRAM FILES\VISUAL STUDIO\MyProjects\leaktest\leaktest.cpp(20) :...
  18. Replies
    1
    Views
    221

    GetSaveFileName: memory usage?

    Hello,

    I have a question:
    before I call GetSaveFileName the memory usage is:
    1657MB free, largest free memory block: 1080MB

    after calling GetSaveFileName:
    1641MB free, largest free memory...
  19. Replies
    4
    Views
    540

    Re: Why do GlobalAlloc fail?

    Hello,

    that sounds complicated.
    My problem occurs in a DLL.
    Do I have to enable the low-fragmentation heap at the beginning of the calling app?

    br
    ralf
  20. Replies
    4
    Views
    540

    Why do GlobalAlloc fail?

    Hello,

    I try to allocate approx. 50MB of memory for a DIB:

    hDIB= GlobalAlloc(GHND,dw /*approx 50MB*/);

    It fails. But Windows task manager told me that more than 500MB available.

    The OS is...
  21. How to get the general default height of a CListbox item?

    Hello,

    how can I get the height of a item in a standard CListBox?
    Is there something like GetSystemMetrics for that?

    I want to create a customized listbox with the standard height!

    thx.
  22. Replies
    31
    Views
    2,294

    Re: CreateCompatibleBitmap failed

    Hello Igor,

    can you see that there is something wrong in the code snippet written in the above link (http://forums.codeguru.com/showthread.php?t=523980)?

    Ralf
  23. Replies
    31
    Views
    2,294

    Re: CreateCompatibleBitmap failed

    Hello Paul,

    I know, that you want to help me. Please tell me, are you familiar with the DIBSection stuff?

    AFAIK: the link demonstrates that the approach with the DIBSection do not work. Because...
  24. Replies
    31
    Views
    2,294

    Re: CreateCompatibleBitmap failed

    Hello OReubens,

    I tried to use CreateDIBSection also.
    But there were also some problems.
    AFAI remember a DIBSection can not be selected into the DC (SelectObject works not for DIBs) and then a...
  25. Replies
    31
    Views
    2,294

    Re: CreateCompatibleBitmap failed

    update:

    I think, CreateCompatibleBitmap uses video memory:
    I uses Process explorer (linked above) to check the memory consumption.
    And there is no changes in the amount of "physical memory -...
Results 1 to 25 of 214
Page 1 of 9 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width