PictureBox and out of memory exception

LEVY XAVIER MOUZINHO DE ABREU 0 Reputation points
2023-03-03T06:33:39.0066667+00:00

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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,459 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,698 questions
C#
C#
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.
10,384 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LEVY XAVIER MOUZINHO DE ABREU 0 Reputation points
    2023-03-03T20:40:13.73+00:00

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

    0 comments No comments