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

.NET (Core and Framework)

 
QuestionCreate an LDAP Listener Pin
tellaston134525-Oct-11 8:01
tellaston134525-Oct-11 8:01 
QuestionUsing ClickOnce to distribute a C# 4.0 App and SQLCE. Pin
Pascal Ganaye24-Oct-11 6:16
Pascal Ganaye24-Oct-11 6:16 
AnswerRe: Using ClickOnce to distribute a C# 4.0 App and SQLCE. Pin
Not Active24-Oct-11 7:54
mentorNot Active24-Oct-11 7:54 
QuestionOut of memory exception handling Pin
Mehdi Gholam23-Oct-11 6:56
Mehdi Gholam23-Oct-11 6:56 
AnswerRe: Out of memory exception handling Pin
Abhinav S23-Oct-11 7:36
Abhinav S23-Oct-11 7:36 
AnswerRe: Out of memory exception handling Pin
Luc Pattyn23-Oct-11 9:24
sitebuilderLuc Pattyn23-Oct-11 9:24 
AnswerRe: Out of memory exception handling Pin
Dave Kreskowiak23-Oct-11 15:36
mveDave Kreskowiak23-Oct-11 15:36 
GeneralRe: Out of memory exception handling Pin
Eddy Vluggen24-Oct-11 9:48
professionalEddy Vluggen24-Oct-11 9:48 
Dave Kreskowiak wrote:
Think about it, if you really were out of memory, how would there be enough memory to create an instance of the OutOfMemory exception object??

I'd expect a decent OS to reserve some memory and to give that specific warning before all memory is consumed, otherwise there would never be such a message (due to string-allocation).

Dave Kreskowiak wrote:
Besides, how are you going to know what you did wrong to generate the exception??

We don't, but we handle the exception like any other; there's multiple ways a write can fail, yet it's hard to have the application "know" what it did wrong. Usually I display a message and let the user handle it. Most of the users recognize a "write failed", and check the file-attributes. Or the write-protection on the medium. Or their access-rights. Or whether the file is open.

That'd be my course of action in this particular case; the user might terminate some other app, like World of Warcraft, to free up valuable system-resources. I'd guess we both would display a message and write a note in the eventlog, as that's almost a default for the unhandled exceptions-handler Smile | :)
Bastard Programmer from Hell Suspicious | :suss:

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

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.