PictureBox and out of memory exception


I am having out of memory exception in picturebox. I already compressed the 8 images, my computer has 8 gb of ram and nothing is running in the background.

Microsoft Technologies based on the .NET software framework.
906 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,815 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,621 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2023-03-03T20:40:13.73+00:00

    i solved it by adding try catch global::System.OutOfMemoryException