login about faq

Hi,

is it possible to get a null Task? I'd like to skip the null check. Looks unnecessary.

Thanks in advance

asked Jan 09 at 07:28

Stefan%20O's gravatar image

Stefan O
173

edited Jan 09 at 07:28


Typically, it should never return null. The only case (thinking off the top of my head) is if somehow the program ran out of memory just at the point of creating the task -- which would be highly unlikely. If there's even a small chance that something could fail, then Chilkat must be able to return either null or false. Not checking for null leaves open the very very tiny possibility that your program could crash rather than fail gracefully.

link

answered Jan 09 at 19:09

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Thanks for your answer. When my program runs out of momery I will get an OutOfMemoryException anyway.

link

answered Jan 10 at 01:36

Stefan%20O's gravatar image

Stefan O
173

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33
×21
×15

Asked: Jan 09 at 07:28

Seen: 651 times

Last updated: Jan 10 at 01:36

powered by OSQA