Click here to Skip to main content
15,884,388 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: System.Design - Not enough memory resources Pin
jschell10-Jan-23 6:46
jschell10-Jan-23 6:46 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak10-Jan-23 6:47
mveDave Kreskowiak10-Jan-23 6:47 
GeneralRe: System.Design - Not enough memory resources Pin
jschell15-Jan-23 7:40
jschell15-Jan-23 7:40 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak15-Jan-23 8:07
mveDave Kreskowiak15-Jan-23 8:07 
GeneralRe: System.Design - Not enough memory resources Pin
trønderen15-Jan-23 12:29
trønderen15-Jan-23 12:29 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak15-Jan-23 13:50
mveDave Kreskowiak15-Jan-23 13:50 
AnswerRe: System.Design - Not enough memory resources Pin
Randor 5-Jan-23 16:10
professional Randor 5-Jan-23 16:10 
AnswerRe: System.Design - Not enough memory resources Pin
jschell10-Jan-23 7:05
jschell10-Jan-23 7:05 
JoshWilliams wrote:
The application has been running fine for years...taking up around 400 MB of memory and I have over 10 GB RAM...VisualBasic


First noting of course that a 32 bit application is not going to use 10 GB of memory even if it exists. Last time I looked into this (last year) the apps that had been built years ago required setting a flag explicitly to make them into 64 bit apps. There it a attribute somewhere that you can read (and log) to see exactly whether it is 32/64 bit. I suggest using that explicitly to check.

Second what is missing in your description is whether you have also been modifying that same application for years. If you haven't then the problem is with the environment or due to load. If you have been modifying then the problem could either be due to the modifications or to load.

You can test for load problems at least for memory by starting the application up with a reduced memory space. That artificially forces memory problems to show up. Of course you must still exercise the application after that.

JoshWilliams wrote:
Here is the stack trace:


The stack trace for a resource exhaustion is generally almost worthless because the exhaustion is just telling you where it ran out.

It does NOT tell you, most of the time, where the code exists that is using it all up.

The entire application is responsible for the resources. So code completely un-associated with the code that you are looking at could be doing something that uses it up.

I will mention the following because the error occurs when loading an assembly. This unfortunately is very esoteric and not easy to follow (even when someone already knows something about memory handling.) But it is something that developers should be aware of.

Large object heap (LOH) on Windows | Microsoft Learn[^]

I think there might be a way to increase this. If you do change it and the error goes away you must keep in mind that you have put a bandaid on a gushing wound and you still need to find the actual problem.
GeneralRe: System.Design - Not enough memory resources Pin
jochance7-Mar-23 9:26
jochance7-Mar-23 9:26 
Questionpasting a sub into windows forms Pin
Member 1587993730-Dec-22 1:19
Member 1587993730-Dec-22 1:19 
AnswerRe: pasting a sub into windows forms Pin
Graeme_Grant30-Dec-22 2:28
mvaGraeme_Grant30-Dec-22 2:28 
AnswerRe: pasting a sub into windows forms Pin
Gerry Schmitz30-Dec-22 4:23
mveGerry Schmitz30-Dec-22 4:23 
AnswerRe: pasting a sub into windows forms Pin
Dave Kreskowiak30-Dec-22 4:31
mveDave Kreskowiak30-Dec-22 4:31 
QuestionRuntime Prerequisites Pin
Yuppers14-Dec-22 3:12
Yuppers14-Dec-22 3:12 
AnswerRe: Runtime Prerequisites Pin
Gerry Schmitz14-Dec-22 9:01
mveGerry Schmitz14-Dec-22 9:01 
AnswerRe: Runtime Prerequisites Pin
jschell20-Dec-22 13:24
jschell20-Dec-22 13:24 
AnswerRe: Runtime Prerequisites Pin
jochance7-Mar-23 9:26
jochance7-Mar-23 9:26 
QuestionConvert image pdf to text in c# Pin
manish0037-Dec-22 19:08
manish0037-Dec-22 19:08 
AnswerRe: Convert image pdf to text in c# Pin
OriginalGriff7-Dec-22 19:09
mveOriginalGriff7-Dec-22 19:09 
GeneralRe: Convert image pdf to text in c# Pin
arushi mehra10-Dec-22 5:13
professionalarushi mehra10-Dec-22 5:13 
GeneralRe: Convert image pdf to text in c# Pin
Dave Kreskowiak10-Dec-22 5:33
mveDave Kreskowiak10-Dec-22 5:33 
GeneralRe: Convert image pdf to text in c# Pin
Richard Deeming12-Dec-22 23:30
mveRichard Deeming12-Dec-22 23:30 
GeneralRe: Convert image pdf to text in c# Pin
Dave Kreskowiak13-Dec-22 1:56
mveDave Kreskowiak13-Dec-22 1:56 
AnswerRe: Convert image pdf to text in c# Pin
Sam Hobbs9-Dec-22 9:51
Sam Hobbs9-Dec-22 9:51 
AnswerRe: Convert image pdf to text in c# Pin
Kirk Hawley13-Aug-23 8:29
professionalKirk Hawley13-Aug-23 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.