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

.NET (Core and Framework)

 
GeneralRe: Out of memory exception handling Pin
Eddy Vluggen24-Oct-11 9:48
professionalEddy Vluggen24-Oct-11 9:48 
GeneralRe: Out of memory exception handling Pin
Dave Kreskowiak24-Oct-11 12:09
mveDave Kreskowiak24-Oct-11 12:09 
AnswerRe: Out of memory exception handling Pin
Eddy Vluggen25-Oct-11 6:58
professionalEddy Vluggen25-Oct-11 6:58 
GeneralRe: Out of memory exception handling Pin
jschell25-Oct-11 8:07
jschell25-Oct-11 8:07 
AnswerRe: Out of memory exception handling Pin
Eddy Vluggen25-Oct-11 8:19
professionalEddy Vluggen25-Oct-11 8:19 
GeneralRe: Out of memory exception handling Pin
jschell25-Oct-11 14:08
jschell25-Oct-11 14:08 
AnswerRe: Out of memory exception handling Pin
Luc Pattyn25-Oct-11 15:40
sitebuilderLuc Pattyn25-Oct-11 15:40 
GeneralRe: Out of memory exception handling Pin
jschell26-Oct-11 10:25
jschell26-Oct-11 10:25 
Luc Pattyn wrote:
Most Exceptions exist to tell you something is going wrong, however also to give you a chance to act upon the situation.


Which I didn't claim otherwise.

However an Out of Memory exception does not fall into that category.

Luc Pattyn wrote:
And if my app holds several algorithms to do something, and the preferred one fails with an OutOfMemory, it can still continue with the probably slower but less memory-hungry alternatives.


Nope. You are assuming that your 'algorithm' caused the exception.

You have threads 1,2,3 running three algorithms.
You also have thread X.

Thread X does something that causes an out of memory exception which shows up in thread 1.
Exactly what are you going to do in thread 1 in that case?

Luc Pattyn wrote:
What I'm saying is an exception is only bad if you can't cope with it;


And what I am say pertains to an Out of Memory exception ONLY.
So your general comment means nothing.

Although your comment does not apply to all other exceptions either. For example a stack overflow exception.

modified 27-Oct-11 14:08pm.

AnswerRe: Out of memory exception handling Pin
jschell24-Oct-11 8:33
jschell24-Oct-11 8:33 
Questionproblem with Setup Deployment in VB.Net Framework 3.5 Pin
Baloch_khan20-Oct-11 3:14
Baloch_khan20-Oct-11 3:14 
AnswerRe: problem with Setup Deployment in VB.Net Framework 3.5 Pin
Richard MacCutchan20-Oct-11 3:27
mveRichard MacCutchan20-Oct-11 3:27 
QuestionWho's using Windows XP with no service pack Pin
Pascal Ganaye20-Oct-11 1:04
Pascal Ganaye20-Oct-11 1:04 
AnswerRe: Who's using Windows XP with no service pack Pin
Eddy Vluggen20-Oct-11 2:19
professionalEddy Vluggen20-Oct-11 2:19 
AnswerRe: Who's using Windows XP with no service pack Pin
Richard MacCutchan20-Oct-11 2:25
mveRichard MacCutchan20-Oct-11 2:25 
QuestionMaking a program...moddable? Pin
shingouki200219-Oct-11 8:48
shingouki200219-Oct-11 8:48 
AnswerRe: Making a program...moddable? Pin
Abhinav S22-Oct-11 5:55
Abhinav S22-Oct-11 5:55 
QuestionClient Server Application Pin
telme15-Oct-11 21:58
telme15-Oct-11 21:58 
AnswerRe: Client Server Application Pin
Abhinav S15-Oct-11 22:09
Abhinav S15-Oct-11 22:09 
QuestionPerformance of managed c++ Pin
Mehdi Gholam15-Oct-11 20:15
Mehdi Gholam15-Oct-11 20:15 
AnswerRe: Performance of managed c++ Pin
Abhinav S15-Oct-11 21:48
Abhinav S15-Oct-11 21:48 
AnswerRe: Performance of managed c++ Pin
jschell16-Oct-11 9:29
jschell16-Oct-11 9:29 
QuestionProblem when loading solution in the VS2010 Pin
dayakar_dn12-Oct-11 21:22
dayakar_dn12-Oct-11 21:22 
AnswerRe: Problem when loading solution in the VS2010 Pin
Pete O'Hanlon12-Oct-11 22:27
mvePete O'Hanlon12-Oct-11 22:27 
GeneralRe: Problem when loading solution in the VS2010 Pin
clq_271520093@hotmail.com17-Oct-11 21:31
clq_271520093@hotmail.com17-Oct-11 21:31 
AnswerRe: Problem when loading solution in the VS2010 Pin
Not Active13-Oct-11 1:29
mentorNot Active13-Oct-11 1: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.