none
Layered window memory pool RRS feed

  • Question

  • What pool of memory is used when you call SetLayeredWindowAttributes() ? I get an out of memory error in XP and Windows Server 2003 when there is plenty of memory in the system. Is there any way to increase the pool (e.g. desktop heap) ?

    // example code
    BOOL retVal = SetLayeredWindowAttributes(m_TargetWindow, 0, 225, LWA_ALPHA);
    if(retVal == FALSE){
    DWORD errVal = ::GetLastError();
    return FAIL;
    }


    GetLastError() is returning 0x8 (ERROR_NOT_ENOUGH_MEMORY).

    Thanks,
    Erik
    Friday, February 29, 2008 5:16 PM

Answers

  • Erik,

     

    This is an architecture forum, so you're unlikely to get any answers from here.

     

    Try the programming forums, particularly C++ to get your answers,

     

    Good luck,

     

    Martin Platt.

    Monday, March 3, 2008 4:10 AM

All replies

  • Erik,

     

    This is an architecture forum, so you're unlikely to get any answers from here.

     

    Try the programming forums, particularly C++ to get your answers,

     

    Good luck,

     

    Martin Platt.

    Monday, March 3, 2008 4:10 AM
  • Hi Martin,

    I guess I was looking at this from an architectural point of view - where does the memory come from? I will try somewhere else and see.

    Thanks,
    Erik
    Wednesday, March 5, 2008 12:28 AM