Windows 10: Possible BUG / memory leak when trying to print from a 32bit process on Windows10

Discus and support Possible BUG / memory leak when trying to print from a 32bit process on Windows10 in Windows 10 Drivers and Hardware to solve the problem; I have a x86 application working on windows10 64 bit environment. One pf the app's features is to generate a lot of reports, so there is a lot of... Discussion in 'Windows 10 Drivers and Hardware' started by Grzegorz Kloc, Dec 16, 2020.

  1. Possible BUG / memory leak when trying to print from a 32bit process on Windows10


    I have a x86 application working on windows10 64 bit environment. One pf the app's features is to generate a lot of reports, so there is a lot of printing involved. However, I noticed that every time I try to use call DefaultPrintTicket on the print queue the dllhost process COM Surrogate grows rapidly in memory.

    I managed to isolate the code responsible and moved it to a test WPF app. When a button is clicked this code is being fired:


    var localPrintServer = new LocalPrintServer;

    var oneNotePrintQueue = localPrintServer.GetPrintQueues.FirstOrDefaultp => p.Description.ContainsOneNote;

    var printTicket = oneNotePrintQueue?.DefaultPrintTicket;



    The printing queue is irrelevant as I tried them all and the problem remains.


    I tried some tweaks in the registry i.e. finding AppId AA0B85DA-FDDF-4272-8D1D-FF9B966D75B0 and removing "AccessPermission", "LaunchPermission" and "RunAs" with no result.

    Is there any way I can stop the memory leak or allow normal printing from an 32bit process?

    :)
     
    Grzegorz Kloc, Dec 16, 2020
    #1
  2. BulldogXX Win User

    Possible Memory Leaks in Windows 10

    A memory leak occurs when an application closes and fails to release all its RAM back to the operating system.

    The first step in dealing with a memory leak is to determine which application is leaking memory.

    The next step is to contact that application's technical support with complete details of the memory leak, since the developers will want to fix the problem ASAP.
     
    BulldogXX, Dec 16, 2020
    #2
  3. BulldogXX Win User
    Memory leak issue

    The term "memory leak" means that an application fails to return all its RAM to the operating system when it exits. The leftover RAM is unusable to the operating system.

    Step one is to identify the application that is leaking memory. Step two is to contact the application's developers and provide as much detailed data on the memory leak as you can. For example: which processes are still in RAM after the application exits
    and how much RAM they occupy. Application developers never want their applications to leak memory and they will be grateful for the details you provide, particularly if they can replicate the leak on their own computers.
     
    BulldogXX, Dec 16, 2020
    #3
  4. BulldogXX Win User

    Possible BUG / memory leak when trying to print from a 32bit process on Windows10

    Windows Memory Leak

    'Memory leak' refers to a process that continues to use memory even after the process has ended.

    Since leaking memory is a coding problem (and a serious one at that) the only way to solve it is to bring it to the software developer's attention.

    In the illustration accompanying your question, which process(es) is/are leaking memory?
     
    BulldogXX, Dec 16, 2020
    #4
Thema:

Possible BUG / memory leak when trying to print from a 32bit process on Windows10

Loading...
  1. Possible BUG / memory leak when trying to print from a 32bit process on Windows10 - Similar Threads - Possible BUG memory

  2. Possible Memory Leak?

    in Windows 10 Gaming
    Possible Memory Leak?: So I've been running into an issue for quite some time, I've noticed that my non paged pool at times seems way too high. Sometimes a restart fixes this issue but other times it doesn't. From what I have gathered this is most likely a network driver, however I have already...
  3. Possible Memory Leak?

    in Windows 10 Software and Apps
    Possible Memory Leak?: So I've been running into an issue for quite some time, I've noticed that my non paged pool at times seems way too high. Sometimes a restart fixes this issue but other times it doesn't. From what I have gathered this is most likely a network driver, however I have already...
  4. Possible Memory Leak?

    in Windows 10 BSOD Crashes and Debugging
    Possible Memory Leak?: So I've been running into an issue for quite some time, I've noticed that my non paged pool at times seems way too high. Sometimes a restart fixes this issue but other times it doesn't. From what I have gathered this is most likely a network driver, however I have already...
  5. "Windows Widget" Process Memory Leak

    in Windows 10 Gaming
    "Windows Widget" Process Memory Leak: Microsoft please fix this memory leak issue on Windows Widgets process. Taking lots of memory in background**Please don't tell me to do any troubleshooting step like sfc scannow, DISM etc. Because it's a fresh & UpToDate copy of Windows 11. It's windows internal issue. Noting...
  6. "Windows Widget" Process Memory Leak

    in Windows 10 Software and Apps
    "Windows Widget" Process Memory Leak: Microsoft please fix this memory leak issue on Windows Widgets process. Taking lots of memory in background**Please don't tell me to do any troubleshooting step like sfc scannow, DISM etc. Because it's a fresh & UpToDate copy of Windows 11. It's windows internal issue. Noting...
  7. DWM.exe possible memory leak

    in Windows 10 BSOD Crashes and Debugging
    DWM.exe possible memory leak: Hello,Please help? https://answers.microsoft.com/en-us/windows/forum/all/dwmexe-possible-memory-leak/55f0bcbe-696c-4ca8-877e-0b67d89e9a72
  8. Memory leak, possible malware

    in Windows 10 Ask Insider
    Memory leak, possible malware: My mom was trying to install TurboTax on the computer I built her this morning, but it was saying she didn't have enough memory (needed 2048 MB). I knew that shouldn't be the case because I installed 8 GB of RAM when I built it. Well, when I looked at the task manager I saw...
  9. Possible Memory Leak

    in Windows 10 Ask Insider
    Possible Memory Leak: Windows 10 v1809 Intel i5-8250U 8GB RAM I updated to v1809 from v1803 back in December, and since then, I've noticed that my Memory used at idle and my paged/non-paged pool is significantly more than it used to be, particularly after my computer has been running for awhile....
  10. active process has a possible leak

    in Windows 10 BSOD Crashes and Debugging
    active process has a possible leak: This showed up on my screen "An active process has a possible handle leak explorer.exe;" now I keep hearing air noise like a jet flying over about every ten minutes from my modem. What should I do?...