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

.NET (Core and Framework)

 
GeneralRe: System.Design - Not enough memory resources Pin
Pete O'Hanlon6-Jan-23 2:11
mvePete O'Hanlon6-Jan-23 2:11 
GeneralRe: System.Design - Not enough memory resources Pin
Dave Kreskowiak6-Jan-23 11:44
mveDave Kreskowiak6-Jan-23 11:44 
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 
trønderen wrote:
Can dotNet run out of memory if the computer has plenty?

Yes, for a variety of reasons. For example, large heap fragmentation. You try to allocate a large object, but there is not a "hole" in the Large Object heap big enough to allocate the object, even though there is technically enough memory to hold it if you add up all the "holes" to get the size of "available" memory.

Quote:
If any free (that includes 'Standby' in Resource Monitor terms) memory can be used by dotNet, keeping a window open with Resource Monitor or Task manager would be a very simple way to see if your problem is with memory or with, say, handles.

If you're running into a handle exhaustion problem, if you try to even launch Task Manager, you can end up with it crashing just trying to create its own window.

You are thinking in simple terms of everything. "Free memory" is treated as a single contiguous block in Task Manager, but that's not how memory is really represented. What you're not seeing is "largest available block" of memory.

You also seem to think Windows can track an unlimited number of objects in the Object Manager handle table. It can't. Read up on it here[^].

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 
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 

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.