Skip to content

question: debugging services ran out of memory #122252

@ghost

Description

Hi

When trying to add 40000+ bitmap images in a Hashtable, visual studio uses 32 GB of RAM. Then it terminates the program and gives following error. I use latest visual studio community 2026 and latest .NET 10 on Windows 11. My computer has 16 GB of RAM.

2 questions:

  • is 32 GB the maximum amount of memory a .NET program can use on the configuration above?
  • can a Hashtable hold more then 32 GB of bitmap images? In other words: is a hashtable unlimited in memory it consumes?
  • is there a solution for this? if yes, what can I do to store all images in the Hashtable without getting this error and without my program being terminated by visual studio?
Image

Here are the images: https://limewire.com/d/ZSXDW#7dRPCnTFGN

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions