login about faq


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

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.


answered Jan 09 at 19:09

chilkat's gravatar image

chilkat ♦♦

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


answered Jan 10 at 01:36

Stefan%20O's gravatar image

Stefan O

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Jan 09 at 07:28

Seen: 600 times

Last updated: Jan 10 at 01:36

powered by OSQA